Test case
56 generated files · +15,690 −12,976test/inputs/json/priority/keywords.json
Mcjsondefault / TopLevel.c+965 −770
| @@ -10921,6 +10921,61 @@ void cJSON_DeleteList(struct List * x) { | ||
| 10921 | 10921 | } |
| 10922 | 10922 | } |
| 10923 | 10923 | |
| 10924 | +struct LocalDate * cJSON_ParseLocalDate(const char * s) { | |
| 10925 | + struct LocalDate * x = NULL; | |
| 10926 | + if (NULL != s) { | |
| 10927 | + cJSON * j = cJSON_Parse(s); | |
| 10928 | + if (NULL != j) { | |
| 10929 | + x = cJSON_GetLocalDateValue(j); | |
| 10930 | + cJSON_Delete(j); | |
| 10931 | + } | |
| 10932 | + } | |
| 10933 | + return x; | |
| 10934 | +} | |
| 10935 | + | |
| 10936 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) { | |
| 10937 | + struct LocalDate * x = NULL; | |
| 10938 | + if (NULL != j) { | |
| 10939 | + if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) { | |
| 10940 | + memset(x, 0, sizeof(struct LocalDate)); | |
| 10941 | + if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteLocalDate(x); return NULL; } | |
| 10942 | + if (cJSON_HasObjectItem(j, "LocalDate")) { | |
| 10943 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteLocalDate(x); return NULL; } | |
| 10944 | + x->local_date = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate")); | |
| 10945 | + } | |
| 10946 | + } | |
| 10947 | + } | |
| 10948 | + return x; | |
| 10949 | +} | |
| 10950 | + | |
| 10951 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) { | |
| 10952 | + cJSON * j = NULL; | |
| 10953 | + if (NULL != x) { | |
| 10954 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 10955 | + cJSON_AddNumberToObject(j, "LocalDate", x->local_date); | |
| 10956 | + } | |
| 10957 | + } | |
| 10958 | + return j; | |
| 10959 | +} | |
| 10960 | + | |
| 10961 | +char * cJSON_PrintLocalDate(const struct LocalDate * x) { | |
| 10962 | + char * s = NULL; | |
| 10963 | + if (NULL != x) { | |
| 10964 | + cJSON * j = cJSON_CreateLocalDate(x); | |
| 10965 | + if (NULL != j) { | |
| 10966 | + s = cJSON_Print(j); | |
| 10967 | + cJSON_Delete(j); | |
| 10968 | + } | |
| 10969 | + } | |
| 10970 | + return s; | |
| 10971 | +} | |
| 10972 | + | |
| 10973 | +void cJSON_DeleteLocalDate(struct LocalDate * x) { | |
| 10974 | + if (NULL != x) { | |
| 10975 | + cJSON_free(x); | |
| 10976 | + } | |
| 10977 | +} | |
| 10978 | + | |
| 10924 | 10979 | struct Locale * cJSON_ParseLocale(const char * s) { |
| 10925 | 10980 | struct Locale * x = NULL; |
| 10926 | 10981 | if (NULL != s) { |
| @@ -11416,116 +11471,6 @@ void cJSON_DeleteNewtonsoft(struct Newtonsoft * x) { | ||
| 11416 | 11471 | } |
| 11417 | 11472 | } |
| 11418 | 11473 | |
| 11419 | -struct Nil * cJSON_ParseNil(const char * s) { | |
| 11420 | - struct Nil * x = NULL; | |
| 11421 | - if (NULL != s) { | |
| 11422 | - cJSON * j = cJSON_Parse(s); | |
| 11423 | - if (NULL != j) { | |
| 11424 | - x = cJSON_GetNilValue(j); | |
| 11425 | - cJSON_Delete(j); | |
| 11426 | - } | |
| 11427 | - } | |
| 11428 | - return x; | |
| 11429 | -} | |
| 11430 | - | |
| 11431 | -struct Nil * cJSON_GetNilValue(const cJSON * j) { | |
| 11432 | - struct Nil * x = NULL; | |
| 11433 | - if (NULL != j) { | |
| 11434 | - if (NULL != (x = cJSON_malloc(sizeof(struct Nil)))) { | |
| 11435 | - memset(x, 0, sizeof(struct Nil)); | |
| 11436 | - if (!cJSON_HasObjectItem(j, "nil")) { cJSON_DeleteNil(x); return NULL; } | |
| 11437 | - if (cJSON_HasObjectItem(j, "nil")) { | |
| 11438 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "nil"))) { cJSON_DeleteNil(x); return NULL; } | |
| 11439 | - x->nil = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "nil")); | |
| 11440 | - } | |
| 11441 | - } | |
| 11442 | - } | |
| 11443 | - return x; | |
| 11444 | -} | |
| 11445 | - | |
| 11446 | -cJSON * cJSON_CreateNil(const struct Nil * x) { | |
| 11447 | - cJSON * j = NULL; | |
| 11448 | - if (NULL != x) { | |
| 11449 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 11450 | - cJSON_AddNumberToObject(j, "nil", x->nil); | |
| 11451 | - } | |
| 11452 | - } | |
| 11453 | - return j; | |
| 11454 | -} | |
| 11455 | - | |
| 11456 | -char * cJSON_PrintNil(const struct Nil * x) { | |
| 11457 | - char * s = NULL; | |
| 11458 | - if (NULL != x) { | |
| 11459 | - cJSON * j = cJSON_CreateNil(x); | |
| 11460 | - if (NULL != j) { | |
| 11461 | - s = cJSON_Print(j); | |
| 11462 | - cJSON_Delete(j); | |
| 11463 | - } | |
| 11464 | - } | |
| 11465 | - return s; | |
| 11466 | -} | |
| 11467 | - | |
| 11468 | -void cJSON_DeleteNil(struct Nil * x) { | |
| 11469 | - if (NULL != x) { | |
| 11470 | - cJSON_free(x); | |
| 11471 | - } | |
| 11472 | -} | |
| 11473 | - | |
| 11474 | -struct No * cJSON_ParseNo(const char * s) { | |
| 11475 | - struct No * x = NULL; | |
| 11476 | - if (NULL != s) { | |
| 11477 | - cJSON * j = cJSON_Parse(s); | |
| 11478 | - if (NULL != j) { | |
| 11479 | - x = cJSON_GetNoValue(j); | |
| 11480 | - cJSON_Delete(j); | |
| 11481 | - } | |
| 11482 | - } | |
| 11483 | - return x; | |
| 11484 | -} | |
| 11485 | - | |
| 11486 | -struct No * cJSON_GetNoValue(const cJSON * j) { | |
| 11487 | - struct No * x = NULL; | |
| 11488 | - if (NULL != j) { | |
| 11489 | - if (NULL != (x = cJSON_malloc(sizeof(struct No)))) { | |
| 11490 | - memset(x, 0, sizeof(struct No)); | |
| 11491 | - if (!cJSON_HasObjectItem(j, "NO")) { cJSON_DeleteNo(x); return NULL; } | |
| 11492 | - if (cJSON_HasObjectItem(j, "NO")) { | |
| 11493 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "NO"))) { cJSON_DeleteNo(x); return NULL; } | |
| 11494 | - x->no = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "NO")); | |
| 11495 | - } | |
| 11496 | - } | |
| 11497 | - } | |
| 11498 | - return x; | |
| 11499 | -} | |
| 11500 | - | |
| 11501 | -cJSON * cJSON_CreateNo(const struct No * x) { | |
| 11502 | - cJSON * j = NULL; | |
| 11503 | - if (NULL != x) { | |
| 11504 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 11505 | - cJSON_AddNumberToObject(j, "NO", x->no); | |
| 11506 | - } | |
| 11507 | - } | |
| 11508 | - return j; | |
| 11509 | -} | |
| 11510 | - | |
| 11511 | -char * cJSON_PrintNo(const struct No * x) { | |
| 11512 | - char * s = NULL; | |
| 11513 | - if (NULL != x) { | |
| 11514 | - cJSON * j = cJSON_CreateNo(x); | |
| 11515 | - if (NULL != j) { | |
| 11516 | - s = cJSON_Print(j); | |
| 11517 | - cJSON_Delete(j); | |
| 11518 | - } | |
| 11519 | - } | |
| 11520 | - return s; | |
| 11521 | -} | |
| 11522 | - | |
| 11523 | -void cJSON_DeleteNo(struct No * x) { | |
| 11524 | - if (NULL != x) { | |
| 11525 | - cJSON_free(x); | |
| 11526 | - } | |
| 11527 | -} | |
| 11528 | - | |
| 11529 | 11474 | struct Goto * cJSON_ParseGoto(const char * s) { |
| 11530 | 11475 | struct Goto * x = NULL; |
| 11531 | 11476 | if (NULL != s) { |
| @@ -12362,6 +12307,12 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) { | ||
| 12362 | 12307 | x->list = cJSON_GetListValue(cJSON_GetObjectItemCaseSensitive(j, "list")); |
| 12363 | 12308 | if (NULL == x->list) { cJSON_DeleteObj3(x); return NULL; } |
| 12364 | 12309 | } |
| 12310 | + if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteObj3(x); return NULL; } | |
| 12311 | + if (cJSON_HasObjectItem(j, "LocalDate")) { | |
| 12312 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteObj3(x); return NULL; } | |
| 12313 | + x->local_date = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate")); | |
| 12314 | + if (NULL == x->local_date) { cJSON_DeleteObj3(x); return NULL; } | |
| 12315 | + } | |
| 12365 | 12316 | if (!cJSON_HasObjectItem(j, "Locale")) { cJSON_DeleteObj3(x); return NULL; } |
| 12366 | 12317 | if (cJSON_HasObjectItem(j, "Locale")) { |
| 12367 | 12318 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteObj3(x); return NULL; } |
| @@ -12416,18 +12367,6 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) { | ||
| 12416 | 12367 | x->newtonsoft = cJSON_GetNewtonsoftValue(cJSON_GetObjectItemCaseSensitive(j, "newtonsoft")); |
| 12417 | 12368 | if (NULL == x->newtonsoft) { cJSON_DeleteObj3(x); return NULL; } |
| 12418 | 12369 | } |
| 12419 | - if (!cJSON_HasObjectItem(j, "nil")) { cJSON_DeleteObj3(x); return NULL; } | |
| 12420 | - if (cJSON_HasObjectItem(j, "nil")) { | |
| 12421 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "nil"))) { cJSON_DeleteObj3(x); return NULL; } | |
| 12422 | - x->nil = cJSON_GetNilValue(cJSON_GetObjectItemCaseSensitive(j, "nil")); | |
| 12423 | - if (NULL == x->nil) { cJSON_DeleteObj3(x); return NULL; } | |
| 12424 | - } | |
| 12425 | - if (!cJSON_HasObjectItem(j, "NO")) { cJSON_DeleteObj3(x); return NULL; } | |
| 12426 | - if (cJSON_HasObjectItem(j, "NO")) { | |
| 12427 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "NO"))) { cJSON_DeleteObj3(x); return NULL; } | |
| 12428 | - x->no = cJSON_GetNoValue(cJSON_GetObjectItemCaseSensitive(j, "NO")); | |
| 12429 | - if (NULL == x->no) { cJSON_DeleteObj3(x); return NULL; } | |
| 12430 | - } | |
| 12431 | 12370 | if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteObj3(x); return NULL; } |
| 12432 | 12371 | if (cJSON_HasObjectItem(j, "goto")) { |
| 12433 | 12372 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteObj3(x); return NULL; } |
| @@ -12542,6 +12481,7 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) { | ||
| 12542 | 12481 | cJSON_AddItemToObject(j, "left", cJSON_CreateLeft(x->left)); |
| 12543 | 12482 | cJSON_AddItemToObject(j, "let", cJSON_CreateLet(x->let)); |
| 12544 | 12483 | cJSON_AddItemToObject(j, "list", cJSON_CreateList(x->list)); |
| 12484 | + cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateLocalDate(x->local_date)); | |
| 12545 | 12485 | cJSON_AddItemToObject(j, "Locale", cJSON_CreateLocale(x->locale)); |
| 12546 | 12486 | cJSON_AddItemToObject(j, "lock", cJSON_CreateLock(x->lock)); |
| 12547 | 12487 | cJSON_AddItemToObject(j, "map", cJSON_CreateMap(x->map)); |
| @@ -12551,8 +12491,6 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) { | ||
| 12551 | 12491 | cJSON_AddItemToObject(j, "mutating", cJSON_CreateMutating(x->mutating)); |
| 12552 | 12492 | cJSON_AddItemToObject(j, "native", cJSON_CreateNative(x->native)); |
| 12553 | 12493 | cJSON_AddItemToObject(j, "newtonsoft", cJSON_CreateNewtonsoft(x->newtonsoft)); |
| 12554 | - cJSON_AddItemToObject(j, "nil", cJSON_CreateNil(x->nil)); | |
| 12555 | - cJSON_AddItemToObject(j, "NO", cJSON_CreateNo(x->no)); | |
| 12556 | 12494 | cJSON_AddItemToObject(j, "goto", cJSON_CreateGoto(x->obj3_goto)); |
| 12557 | 12495 | cJSON_AddItemToObject(j, "if", cJSON_CreateIf(x->obj3_if)); |
| 12558 | 12496 | cJSON_AddItemToObject(j, "import", cJSON_CreateImport(x->obj3_import)); |
| @@ -12714,6 +12652,9 @@ void cJSON_DeleteObj3(struct Obj3 * x) { | ||
| 12714 | 12652 | if (NULL != x->list) { |
| 12715 | 12653 | cJSON_DeleteList(x->list); |
| 12716 | 12654 | } |
| 12655 | + if (NULL != x->local_date) { | |
| 12656 | + cJSON_DeleteLocalDate(x->local_date); | |
| 12657 | + } | |
| 12717 | 12658 | if (NULL != x->locale) { |
| 12718 | 12659 | cJSON_DeleteLocale(x->locale); |
| 12719 | 12660 | } |
| @@ -12741,12 +12682,6 @@ void cJSON_DeleteObj3(struct Obj3 * x) { | ||
| 12741 | 12682 | if (NULL != x->newtonsoft) { |
| 12742 | 12683 | cJSON_DeleteNewtonsoft(x->newtonsoft); |
| 12743 | 12684 | } |
| 12744 | - if (NULL != x->nil) { | |
| 12745 | - cJSON_DeleteNil(x->nil); | |
| 12746 | - } | |
| 12747 | - if (NULL != x->no) { | |
| 12748 | - cJSON_DeleteNo(x->no); | |
| 12749 | - } | |
| 12750 | 12685 | if (NULL != x->obj3_goto) { |
| 12751 | 12686 | cJSON_DeleteGoto(x->obj3_goto); |
| 12752 | 12687 | } |
| @@ -12781,47 +12716,47 @@ void cJSON_DeleteObj3(struct Obj3 * x) { | ||
| 12781 | 12716 | } |
| 12782 | 12717 | } |
| 12783 | 12718 | |
| 12784 | -struct NoSuchMethod * cJSON_ParseNoSuchMethod(const char * s) { | |
| 12785 | - struct NoSuchMethod * x = NULL; | |
| 12719 | +struct Nil * cJSON_ParseNil(const char * s) { | |
| 12720 | + struct Nil * x = NULL; | |
| 12786 | 12721 | if (NULL != s) { |
| 12787 | 12722 | cJSON * j = cJSON_Parse(s); |
| 12788 | 12723 | if (NULL != j) { |
| 12789 | - x = cJSON_GetNoSuchMethodValue(j); | |
| 12724 | + x = cJSON_GetNilValue(j); | |
| 12790 | 12725 | cJSON_Delete(j); |
| 12791 | 12726 | } |
| 12792 | 12727 | } |
| 12793 | 12728 | return x; |
| 12794 | 12729 | } |
| 12795 | 12730 | |
| 12796 | -struct NoSuchMethod * cJSON_GetNoSuchMethodValue(const cJSON * j) { | |
| 12797 | - struct NoSuchMethod * x = NULL; | |
| 12731 | +struct Nil * cJSON_GetNilValue(const cJSON * j) { | |
| 12732 | + struct Nil * x = NULL; | |
| 12798 | 12733 | if (NULL != j) { |
| 12799 | - if (NULL != (x = cJSON_malloc(sizeof(struct NoSuchMethod)))) { | |
| 12800 | - memset(x, 0, sizeof(struct NoSuchMethod)); | |
| 12801 | - if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteNoSuchMethod(x); return NULL; } | |
| 12802 | - if (cJSON_HasObjectItem(j, "noSuchMethod")) { | |
| 12803 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"))) { cJSON_DeleteNoSuchMethod(x); return NULL; } | |
| 12804 | - x->no_such_method = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod")); | |
| 12734 | + if (NULL != (x = cJSON_malloc(sizeof(struct Nil)))) { | |
| 12735 | + memset(x, 0, sizeof(struct Nil)); | |
| 12736 | + if (!cJSON_HasObjectItem(j, "nil")) { cJSON_DeleteNil(x); return NULL; } | |
| 12737 | + if (cJSON_HasObjectItem(j, "nil")) { | |
| 12738 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "nil"))) { cJSON_DeleteNil(x); return NULL; } | |
| 12739 | + x->nil = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "nil")); | |
| 12805 | 12740 | } |
| 12806 | 12741 | } |
| 12807 | 12742 | } |
| 12808 | 12743 | return x; |
| 12809 | 12744 | } |
| 12810 | 12745 | |
| 12811 | -cJSON * cJSON_CreateNoSuchMethod(const struct NoSuchMethod * x) { | |
| 12746 | +cJSON * cJSON_CreateNil(const struct Nil * x) { | |
| 12812 | 12747 | cJSON * j = NULL; |
| 12813 | 12748 | if (NULL != x) { |
| 12814 | 12749 | if (NULL != (j = cJSON_CreateObject())) { |
| 12815 | - cJSON_AddNumberToObject(j, "noSuchMethod", x->no_such_method); | |
| 12750 | + cJSON_AddNumberToObject(j, "nil", x->nil); | |
| 12816 | 12751 | } |
| 12817 | 12752 | } |
| 12818 | 12753 | return j; |
| 12819 | 12754 | } |
| 12820 | 12755 | |
| 12821 | -char * cJSON_PrintNoSuchMethod(const struct NoSuchMethod * x) { | |
| 12756 | +char * cJSON_PrintNil(const struct Nil * x) { | |
| 12822 | 12757 | char * s = NULL; |
| 12823 | 12758 | if (NULL != x) { |
| 12824 | - cJSON * j = cJSON_CreateNoSuchMethod(x); | |
| 12759 | + cJSON * j = cJSON_CreateNil(x); | |
| 12825 | 12760 | if (NULL != j) { |
| 12826 | 12761 | s = cJSON_Print(j); |
| 12827 | 12762 | cJSON_Delete(j); |
| @@ -12830,53 +12765,53 @@ char * cJSON_PrintNoSuchMethod(const struct NoSuchMethod * x) { | ||
| 12830 | 12765 | return s; |
| 12831 | 12766 | } |
| 12832 | 12767 | |
| 12833 | -void cJSON_DeleteNoSuchMethod(struct NoSuchMethod * x) { | |
| 12768 | +void cJSON_DeleteNil(struct Nil * x) { | |
| 12834 | 12769 | if (NULL != x) { |
| 12835 | 12770 | cJSON_free(x); |
| 12836 | 12771 | } |
| 12837 | 12772 | } |
| 12838 | 12773 | |
| 12839 | -struct Nonatomic * cJSON_ParseNonatomic(const char * s) { | |
| 12840 | - struct Nonatomic * x = NULL; | |
| 12774 | +struct No * cJSON_ParseNo(const char * s) { | |
| 12775 | + struct No * x = NULL; | |
| 12841 | 12776 | if (NULL != s) { |
| 12842 | 12777 | cJSON * j = cJSON_Parse(s); |
| 12843 | 12778 | if (NULL != j) { |
| 12844 | - x = cJSON_GetNonatomicValue(j); | |
| 12779 | + x = cJSON_GetNoValue(j); | |
| 12845 | 12780 | cJSON_Delete(j); |
| 12846 | 12781 | } |
| 12847 | 12782 | } |
| 12848 | 12783 | return x; |
| 12849 | 12784 | } |
| 12850 | 12785 | |
| 12851 | -struct Nonatomic * cJSON_GetNonatomicValue(const cJSON * j) { | |
| 12852 | - struct Nonatomic * x = NULL; | |
| 12786 | +struct No * cJSON_GetNoValue(const cJSON * j) { | |
| 12787 | + struct No * x = NULL; | |
| 12853 | 12788 | if (NULL != j) { |
| 12854 | - if (NULL != (x = cJSON_malloc(sizeof(struct Nonatomic)))) { | |
| 12855 | - memset(x, 0, sizeof(struct Nonatomic)); | |
| 12856 | - if (!cJSON_HasObjectItem(j, "nonatomic")) { cJSON_DeleteNonatomic(x); return NULL; } | |
| 12857 | - if (cJSON_HasObjectItem(j, "nonatomic")) { | |
| 12858 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "nonatomic"))) { cJSON_DeleteNonatomic(x); return NULL; } | |
| 12859 | - x->nonatomic = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "nonatomic")); | |
| 12789 | + if (NULL != (x = cJSON_malloc(sizeof(struct No)))) { | |
| 12790 | + memset(x, 0, sizeof(struct No)); | |
| 12791 | + if (!cJSON_HasObjectItem(j, "NO")) { cJSON_DeleteNo(x); return NULL; } | |
| 12792 | + if (cJSON_HasObjectItem(j, "NO")) { | |
| 12793 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "NO"))) { cJSON_DeleteNo(x); return NULL; } | |
| 12794 | + x->no = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "NO")); | |
| 12860 | 12795 | } |
| 12861 | 12796 | } |
| 12862 | 12797 | } |
| 12863 | 12798 | return x; |
| 12864 | 12799 | } |
| 12865 | 12800 | |
| 12866 | -cJSON * cJSON_CreateNonatomic(const struct Nonatomic * x) { | |
| 12801 | +cJSON * cJSON_CreateNo(const struct No * x) { | |
| 12867 | 12802 | cJSON * j = NULL; |
| 12868 | 12803 | if (NULL != x) { |
| 12869 | 12804 | if (NULL != (j = cJSON_CreateObject())) { |
| 12870 | - cJSON_AddNumberToObject(j, "nonatomic", x->nonatomic); | |
| 12805 | + cJSON_AddNumberToObject(j, "NO", x->no); | |
| 12871 | 12806 | } |
| 12872 | 12807 | } |
| 12873 | 12808 | return j; |
| 12874 | 12809 | } |
| 12875 | 12810 | |
| 12876 | -char * cJSON_PrintNonatomic(const struct Nonatomic * x) { | |
| 12811 | +char * cJSON_PrintNo(const struct No * x) { | |
| 12877 | 12812 | char * s = NULL; |
| 12878 | 12813 | if (NULL != x) { |
| 12879 | - cJSON * j = cJSON_CreateNonatomic(x); | |
| 12814 | + cJSON * j = cJSON_CreateNo(x); | |
| 12880 | 12815 | if (NULL != j) { |
| 12881 | 12816 | s = cJSON_Print(j); |
| 12882 | 12817 | cJSON_Delete(j); |
| @@ -12885,50 +12820,160 @@ char * cJSON_PrintNonatomic(const struct Nonatomic * x) { | ||
| 12885 | 12820 | return s; |
| 12886 | 12821 | } |
| 12887 | 12822 | |
| 12888 | -void cJSON_DeleteNonatomic(struct Nonatomic * x) { | |
| 12823 | +void cJSON_DeleteNo(struct No * x) { | |
| 12889 | 12824 | if (NULL != x) { |
| 12890 | 12825 | cJSON_free(x); |
| 12891 | 12826 | } |
| 12892 | 12827 | } |
| 12893 | 12828 | |
| 12894 | -struct None * cJSON_ParseNone(const char * s) { | |
| 12895 | - struct None * x = NULL; | |
| 12829 | +struct NoSuchMethod * cJSON_ParseNoSuchMethod(const char * s) { | |
| 12830 | + struct NoSuchMethod * x = NULL; | |
| 12896 | 12831 | if (NULL != s) { |
| 12897 | 12832 | cJSON * j = cJSON_Parse(s); |
| 12898 | 12833 | if (NULL != j) { |
| 12899 | - x = cJSON_GetNoneValue(j); | |
| 12834 | + x = cJSON_GetNoSuchMethodValue(j); | |
| 12900 | 12835 | cJSON_Delete(j); |
| 12901 | 12836 | } |
| 12902 | 12837 | } |
| 12903 | 12838 | return x; |
| 12904 | 12839 | } |
| 12905 | 12840 | |
| 12906 | -struct None * cJSON_GetNoneValue(const cJSON * j) { | |
| 12907 | - struct None * x = NULL; | |
| 12841 | +struct NoSuchMethod * cJSON_GetNoSuchMethodValue(const cJSON * j) { | |
| 12842 | + struct NoSuchMethod * x = NULL; | |
| 12908 | 12843 | if (NULL != j) { |
| 12909 | - if (NULL != (x = cJSON_malloc(sizeof(struct None)))) { | |
| 12910 | - memset(x, 0, sizeof(struct None)); | |
| 12911 | - if (!cJSON_HasObjectItem(j, "None")) { cJSON_DeleteNone(x); return NULL; } | |
| 12912 | - if (cJSON_HasObjectItem(j, "None")) { | |
| 12913 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "None"))) { cJSON_DeleteNone(x); return NULL; } | |
| 12914 | - x->none = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "None")); | |
| 12844 | + if (NULL != (x = cJSON_malloc(sizeof(struct NoSuchMethod)))) { | |
| 12845 | + memset(x, 0, sizeof(struct NoSuchMethod)); | |
| 12846 | + if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteNoSuchMethod(x); return NULL; } | |
| 12847 | + if (cJSON_HasObjectItem(j, "noSuchMethod")) { | |
| 12848 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"))) { cJSON_DeleteNoSuchMethod(x); return NULL; } | |
| 12849 | + x->no_such_method = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod")); | |
| 12915 | 12850 | } |
| 12916 | 12851 | } |
| 12917 | 12852 | } |
| 12918 | 12853 | return x; |
| 12919 | 12854 | } |
| 12920 | 12855 | |
| 12921 | -cJSON * cJSON_CreateNone(const struct None * x) { | |
| 12856 | +cJSON * cJSON_CreateNoSuchMethod(const struct NoSuchMethod * x) { | |
| 12922 | 12857 | cJSON * j = NULL; |
| 12923 | 12858 | if (NULL != x) { |
| 12924 | 12859 | if (NULL != (j = cJSON_CreateObject())) { |
| 12925 | - cJSON_AddNumberToObject(j, "None", x->none); | |
| 12860 | + cJSON_AddNumberToObject(j, "noSuchMethod", x->no_such_method); | |
| 12926 | 12861 | } |
| 12927 | 12862 | } |
| 12928 | 12863 | return j; |
| 12929 | 12864 | } |
| 12930 | 12865 | |
| 12931 | -char * cJSON_PrintNone(const struct None * x) { | |
| 12866 | +char * cJSON_PrintNoSuchMethod(const struct NoSuchMethod * x) { | |
| 12867 | + char * s = NULL; | |
| 12868 | + if (NULL != x) { | |
| 12869 | + cJSON * j = cJSON_CreateNoSuchMethod(x); | |
| 12870 | + if (NULL != j) { | |
| 12871 | + s = cJSON_Print(j); | |
| 12872 | + cJSON_Delete(j); | |
| 12873 | + } | |
| 12874 | + } | |
| 12875 | + return s; | |
| 12876 | +} | |
| 12877 | + | |
| 12878 | +void cJSON_DeleteNoSuchMethod(struct NoSuchMethod * x) { | |
| 12879 | + if (NULL != x) { | |
| 12880 | + cJSON_free(x); | |
| 12881 | + } | |
| 12882 | +} | |
| 12883 | + | |
| 12884 | +struct Nonatomic * cJSON_ParseNonatomic(const char * s) { | |
| 12885 | + struct Nonatomic * x = NULL; | |
| 12886 | + if (NULL != s) { | |
| 12887 | + cJSON * j = cJSON_Parse(s); | |
| 12888 | + if (NULL != j) { | |
| 12889 | + x = cJSON_GetNonatomicValue(j); | |
| 12890 | + cJSON_Delete(j); | |
| 12891 | + } | |
| 12892 | + } | |
| 12893 | + return x; | |
| 12894 | +} | |
| 12895 | + | |
| 12896 | +struct Nonatomic * cJSON_GetNonatomicValue(const cJSON * j) { | |
| 12897 | + struct Nonatomic * x = NULL; | |
| 12898 | + if (NULL != j) { | |
| 12899 | + if (NULL != (x = cJSON_malloc(sizeof(struct Nonatomic)))) { | |
| 12900 | + memset(x, 0, sizeof(struct Nonatomic)); | |
| 12901 | + if (!cJSON_HasObjectItem(j, "nonatomic")) { cJSON_DeleteNonatomic(x); return NULL; } | |
| 12902 | + if (cJSON_HasObjectItem(j, "nonatomic")) { | |
| 12903 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "nonatomic"))) { cJSON_DeleteNonatomic(x); return NULL; } | |
| 12904 | + x->nonatomic = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "nonatomic")); | |
| 12905 | + } | |
| 12906 | + } | |
| 12907 | + } | |
| 12908 | + return x; | |
| 12909 | +} | |
| 12910 | + | |
| 12911 | +cJSON * cJSON_CreateNonatomic(const struct Nonatomic * x) { | |
| 12912 | + cJSON * j = NULL; | |
| 12913 | + if (NULL != x) { | |
| 12914 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 12915 | + cJSON_AddNumberToObject(j, "nonatomic", x->nonatomic); | |
| 12916 | + } | |
| 12917 | + } | |
| 12918 | + return j; | |
| 12919 | +} | |
| 12920 | + | |
| 12921 | +char * cJSON_PrintNonatomic(const struct Nonatomic * x) { | |
| 12922 | + char * s = NULL; | |
| 12923 | + if (NULL != x) { | |
| 12924 | + cJSON * j = cJSON_CreateNonatomic(x); | |
| 12925 | + if (NULL != j) { | |
| 12926 | + s = cJSON_Print(j); | |
| 12927 | + cJSON_Delete(j); | |
| 12928 | + } | |
| 12929 | + } | |
| 12930 | + return s; | |
| 12931 | +} | |
| 12932 | + | |
| 12933 | +void cJSON_DeleteNonatomic(struct Nonatomic * x) { | |
| 12934 | + if (NULL != x) { | |
| 12935 | + cJSON_free(x); | |
| 12936 | + } | |
| 12937 | +} | |
| 12938 | + | |
| 12939 | +struct None * cJSON_ParseNone(const char * s) { | |
| 12940 | + struct None * x = NULL; | |
| 12941 | + if (NULL != s) { | |
| 12942 | + cJSON * j = cJSON_Parse(s); | |
| 12943 | + if (NULL != j) { | |
| 12944 | + x = cJSON_GetNoneValue(j); | |
| 12945 | + cJSON_Delete(j); | |
| 12946 | + } | |
| 12947 | + } | |
| 12948 | + return x; | |
| 12949 | +} | |
| 12950 | + | |
| 12951 | +struct None * cJSON_GetNoneValue(const cJSON * j) { | |
| 12952 | + struct None * x = NULL; | |
| 12953 | + if (NULL != j) { | |
| 12954 | + if (NULL != (x = cJSON_malloc(sizeof(struct None)))) { | |
| 12955 | + memset(x, 0, sizeof(struct None)); | |
| 12956 | + if (!cJSON_HasObjectItem(j, "None")) { cJSON_DeleteNone(x); return NULL; } | |
| 12957 | + if (cJSON_HasObjectItem(j, "None")) { | |
| 12958 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "None"))) { cJSON_DeleteNone(x); return NULL; } | |
| 12959 | + x->none = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "None")); | |
| 12960 | + } | |
| 12961 | + } | |
| 12962 | + } | |
| 12963 | + return x; | |
| 12964 | +} | |
| 12965 | + | |
| 12966 | +cJSON * cJSON_CreateNone(const struct None * x) { | |
| 12967 | + cJSON * j = NULL; | |
| 12968 | + if (NULL != x) { | |
| 12969 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 12970 | + cJSON_AddNumberToObject(j, "None", x->none); | |
| 12971 | + } | |
| 12972 | + } | |
| 12973 | + return j; | |
| 12974 | +} | |
| 12975 | + | |
| 12976 | +char * cJSON_PrintNone(const struct None * x) { | |
| 12932 | 12977 | char * s = NULL; |
| 12933 | 12978 | if (NULL != x) { |
| 12934 | 12979 | cJSON * j = cJSON_CreateNone(x); |
| @@ -14541,6 +14586,116 @@ void cJSON_DeleteOf(struct Of * x) { | ||
| 14541 | 14586 | } |
| 14542 | 14587 | } |
| 14543 | 14588 | |
| 14589 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) { | |
| 14590 | + struct OffsetDateTime * x = NULL; | |
| 14591 | + if (NULL != s) { | |
| 14592 | + cJSON * j = cJSON_Parse(s); | |
| 14593 | + if (NULL != j) { | |
| 14594 | + x = cJSON_GetOffsetDateTimeValue(j); | |
| 14595 | + cJSON_Delete(j); | |
| 14596 | + } | |
| 14597 | + } | |
| 14598 | + return x; | |
| 14599 | +} | |
| 14600 | + | |
| 14601 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) { | |
| 14602 | + struct OffsetDateTime * x = NULL; | |
| 14603 | + if (NULL != j) { | |
| 14604 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) { | |
| 14605 | + memset(x, 0, sizeof(struct OffsetDateTime)); | |
| 14606 | + if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteOffsetDateTime(x); return NULL; } | |
| 14607 | + if (cJSON_HasObjectItem(j, "OffsetDateTime")) { | |
| 14608 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteOffsetDateTime(x); return NULL; } | |
| 14609 | + x->offset_date_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime")); | |
| 14610 | + } | |
| 14611 | + } | |
| 14612 | + } | |
| 14613 | + return x; | |
| 14614 | +} | |
| 14615 | + | |
| 14616 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) { | |
| 14617 | + cJSON * j = NULL; | |
| 14618 | + if (NULL != x) { | |
| 14619 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 14620 | + cJSON_AddNumberToObject(j, "OffsetDateTime", x->offset_date_time); | |
| 14621 | + } | |
| 14622 | + } | |
| 14623 | + return j; | |
| 14624 | +} | |
| 14625 | + | |
| 14626 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) { | |
| 14627 | + char * s = NULL; | |
| 14628 | + if (NULL != x) { | |
| 14629 | + cJSON * j = cJSON_CreateOffsetDateTime(x); | |
| 14630 | + if (NULL != j) { | |
| 14631 | + s = cJSON_Print(j); | |
| 14632 | + cJSON_Delete(j); | |
| 14633 | + } | |
| 14634 | + } | |
| 14635 | + return s; | |
| 14636 | +} | |
| 14637 | + | |
| 14638 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) { | |
| 14639 | + if (NULL != x) { | |
| 14640 | + cJSON_free(x); | |
| 14641 | + } | |
| 14642 | +} | |
| 14643 | + | |
| 14644 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s) { | |
| 14645 | + struct OffsetTime * x = NULL; | |
| 14646 | + if (NULL != s) { | |
| 14647 | + cJSON * j = cJSON_Parse(s); | |
| 14648 | + if (NULL != j) { | |
| 14649 | + x = cJSON_GetOffsetTimeValue(j); | |
| 14650 | + cJSON_Delete(j); | |
| 14651 | + } | |
| 14652 | + } | |
| 14653 | + return x; | |
| 14654 | +} | |
| 14655 | + | |
| 14656 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) { | |
| 14657 | + struct OffsetTime * x = NULL; | |
| 14658 | + if (NULL != j) { | |
| 14659 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) { | |
| 14660 | + memset(x, 0, sizeof(struct OffsetTime)); | |
| 14661 | + if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteOffsetTime(x); return NULL; } | |
| 14662 | + if (cJSON_HasObjectItem(j, "OffsetTime")) { | |
| 14663 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteOffsetTime(x); return NULL; } | |
| 14664 | + x->offset_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime")); | |
| 14665 | + } | |
| 14666 | + } | |
| 14667 | + } | |
| 14668 | + return x; | |
| 14669 | +} | |
| 14670 | + | |
| 14671 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) { | |
| 14672 | + cJSON * j = NULL; | |
| 14673 | + if (NULL != x) { | |
| 14674 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 14675 | + cJSON_AddNumberToObject(j, "OffsetTime", x->offset_time); | |
| 14676 | + } | |
| 14677 | + } | |
| 14678 | + return j; | |
| 14679 | +} | |
| 14680 | + | |
| 14681 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x) { | |
| 14682 | + char * s = NULL; | |
| 14683 | + if (NULL != x) { | |
| 14684 | + cJSON * j = cJSON_CreateOffsetTime(x); | |
| 14685 | + if (NULL != j) { | |
| 14686 | + s = cJSON_Print(j); | |
| 14687 | + cJSON_Delete(j); | |
| 14688 | + } | |
| 14689 | + } | |
| 14690 | + return s; | |
| 14691 | +} | |
| 14692 | + | |
| 14693 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x) { | |
| 14694 | + if (NULL != x) { | |
| 14695 | + cJSON_free(x); | |
| 14696 | + } | |
| 14697 | +} | |
| 14698 | + | |
| 14544 | 14699 | struct Oneway * cJSON_ParseOneway(const char * s) { |
| 14545 | 14700 | struct Oneway * x = NULL; |
| 14546 | 14701 | if (NULL != s) { |
| @@ -16094,247 +16249,39 @@ void cJSON_DeleteRuntimeType(struct RuntimeType * x) { | ||
| 16094 | 16249 | } |
| 16095 | 16250 | } |
| 16096 | 16251 | |
| 16097 | -struct S * cJSON_ParseS(const char * s) { | |
| 16098 | - struct S * x = NULL; | |
| 16252 | +struct Obj4 * cJSON_ParseObj4(const char * s) { | |
| 16253 | + struct Obj4 * x = NULL; | |
| 16099 | 16254 | if (NULL != s) { |
| 16100 | 16255 | cJSON * j = cJSON_Parse(s); |
| 16101 | 16256 | if (NULL != j) { |
| 16102 | - x = cJSON_GetSValue(j); | |
| 16257 | + x = cJSON_GetObj4Value(j); | |
| 16103 | 16258 | cJSON_Delete(j); |
| 16104 | 16259 | } |
| 16105 | 16260 | } |
| 16106 | 16261 | return x; |
| 16107 | 16262 | } |
| 16108 | 16263 | |
| 16109 | -struct S * cJSON_GetSValue(const cJSON * j) { | |
| 16110 | - struct S * x = NULL; | |
| 16264 | +struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | |
| 16265 | + struct Obj4 * x = NULL; | |
| 16111 | 16266 | if (NULL != j) { |
| 16112 | - if (NULL != (x = cJSON_malloc(sizeof(struct S)))) { | |
| 16113 | - memset(x, 0, sizeof(struct S)); | |
| 16114 | - if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteS(x); return NULL; } | |
| 16115 | - if (cJSON_HasObjectItem(j, "s")) { | |
| 16116 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteS(x); return NULL; } | |
| 16117 | - x->s = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "s")); | |
| 16267 | + if (NULL != (x = cJSON_malloc(sizeof(struct Obj4)))) { | |
| 16268 | + memset(x, 0, sizeof(struct Obj4)); | |
| 16269 | + if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16270 | + if (cJSON_HasObjectItem(j, "dummy")) { | |
| 16271 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16272 | + x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); | |
| 16118 | 16273 | } |
| 16119 | - } | |
| 16120 | - } | |
| 16121 | - return x; | |
| 16122 | -} | |
| 16123 | - | |
| 16124 | -cJSON * cJSON_CreateS(const struct S * x) { | |
| 16125 | - cJSON * j = NULL; | |
| 16126 | - if (NULL != x) { | |
| 16127 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 16128 | - cJSON_AddNumberToObject(j, "s", x->s); | |
| 16129 | - } | |
| 16130 | - } | |
| 16131 | - return j; | |
| 16132 | -} | |
| 16133 | - | |
| 16134 | -char * cJSON_PrintS(const struct S * x) { | |
| 16135 | - char * s = NULL; | |
| 16136 | - if (NULL != x) { | |
| 16137 | - cJSON * j = cJSON_CreateS(x); | |
| 16138 | - if (NULL != j) { | |
| 16139 | - s = cJSON_Print(j); | |
| 16140 | - cJSON_Delete(j); | |
| 16141 | - } | |
| 16142 | - } | |
| 16143 | - return s; | |
| 16144 | -} | |
| 16145 | - | |
| 16146 | -void cJSON_DeleteS(struct S * x) { | |
| 16147 | - if (NULL != x) { | |
| 16148 | - cJSON_free(x); | |
| 16149 | - } | |
| 16150 | -} | |
| 16151 | - | |
| 16152 | -struct Sbyte * cJSON_ParseSbyte(const char * s) { | |
| 16153 | - struct Sbyte * x = NULL; | |
| 16154 | - if (NULL != s) { | |
| 16155 | - cJSON * j = cJSON_Parse(s); | |
| 16156 | - if (NULL != j) { | |
| 16157 | - x = cJSON_GetSbyteValue(j); | |
| 16158 | - cJSON_Delete(j); | |
| 16159 | - } | |
| 16160 | - } | |
| 16161 | - return x; | |
| 16162 | -} | |
| 16163 | - | |
| 16164 | -struct Sbyte * cJSON_GetSbyteValue(const cJSON * j) { | |
| 16165 | - struct Sbyte * x = NULL; | |
| 16166 | - if (NULL != j) { | |
| 16167 | - if (NULL != (x = cJSON_malloc(sizeof(struct Sbyte)))) { | |
| 16168 | - memset(x, 0, sizeof(struct Sbyte)); | |
| 16169 | - if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteSbyte(x); return NULL; } | |
| 16170 | - if (cJSON_HasObjectItem(j, "sbyte")) { | |
| 16171 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteSbyte(x); return NULL; } | |
| 16172 | - x->sbyte = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte")); | |
| 16173 | - } | |
| 16174 | - } | |
| 16175 | - } | |
| 16176 | - return x; | |
| 16177 | -} | |
| 16178 | - | |
| 16179 | -cJSON * cJSON_CreateSbyte(const struct Sbyte * x) { | |
| 16180 | - cJSON * j = NULL; | |
| 16181 | - if (NULL != x) { | |
| 16182 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 16183 | - cJSON_AddNumberToObject(j, "sbyte", x->sbyte); | |
| 16184 | - } | |
| 16185 | - } | |
| 16186 | - return j; | |
| 16187 | -} | |
| 16188 | - | |
| 16189 | -char * cJSON_PrintSbyte(const struct Sbyte * x) { | |
| 16190 | - char * s = NULL; | |
| 16191 | - if (NULL != x) { | |
| 16192 | - cJSON * j = cJSON_CreateSbyte(x); | |
| 16193 | - if (NULL != j) { | |
| 16194 | - s = cJSON_Print(j); | |
| 16195 | - cJSON_Delete(j); | |
| 16196 | - } | |
| 16197 | - } | |
| 16198 | - return s; | |
| 16199 | -} | |
| 16200 | - | |
| 16201 | -void cJSON_DeleteSbyte(struct Sbyte * x) { | |
| 16202 | - if (NULL != x) { | |
| 16203 | - cJSON_free(x); | |
| 16204 | - } | |
| 16205 | -} | |
| 16206 | - | |
| 16207 | -struct Sealed * cJSON_ParseSealed(const char * s) { | |
| 16208 | - struct Sealed * x = NULL; | |
| 16209 | - if (NULL != s) { | |
| 16210 | - cJSON * j = cJSON_Parse(s); | |
| 16211 | - if (NULL != j) { | |
| 16212 | - x = cJSON_GetSealedValue(j); | |
| 16213 | - cJSON_Delete(j); | |
| 16214 | - } | |
| 16215 | - } | |
| 16216 | - return x; | |
| 16217 | -} | |
| 16218 | - | |
| 16219 | -struct Sealed * cJSON_GetSealedValue(const cJSON * j) { | |
| 16220 | - struct Sealed * x = NULL; | |
| 16221 | - if (NULL != j) { | |
| 16222 | - if (NULL != (x = cJSON_malloc(sizeof(struct Sealed)))) { | |
| 16223 | - memset(x, 0, sizeof(struct Sealed)); | |
| 16224 | - if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteSealed(x); return NULL; } | |
| 16225 | - if (cJSON_HasObjectItem(j, "sealed")) { | |
| 16226 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteSealed(x); return NULL; } | |
| 16227 | - x->sealed = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sealed")); | |
| 16228 | - } | |
| 16229 | - } | |
| 16230 | - } | |
| 16231 | - return x; | |
| 16232 | -} | |
| 16233 | - | |
| 16234 | -cJSON * cJSON_CreateSealed(const struct Sealed * x) { | |
| 16235 | - cJSON * j = NULL; | |
| 16236 | - if (NULL != x) { | |
| 16237 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 16238 | - cJSON_AddNumberToObject(j, "sealed", x->sealed); | |
| 16239 | - } | |
| 16240 | - } | |
| 16241 | - return j; | |
| 16242 | -} | |
| 16243 | - | |
| 16244 | -char * cJSON_PrintSealed(const struct Sealed * x) { | |
| 16245 | - char * s = NULL; | |
| 16246 | - if (NULL != x) { | |
| 16247 | - cJSON * j = cJSON_CreateSealed(x); | |
| 16248 | - if (NULL != j) { | |
| 16249 | - s = cJSON_Print(j); | |
| 16250 | - cJSON_Delete(j); | |
| 16251 | - } | |
| 16252 | - } | |
| 16253 | - return s; | |
| 16254 | -} | |
| 16255 | - | |
| 16256 | -void cJSON_DeleteSealed(struct Sealed * x) { | |
| 16257 | - if (NULL != x) { | |
| 16258 | - cJSON_free(x); | |
| 16259 | - } | |
| 16260 | -} | |
| 16261 | - | |
| 16262 | -struct Sel * cJSON_ParseSel(const char * s) { | |
| 16263 | - struct Sel * x = NULL; | |
| 16264 | - if (NULL != s) { | |
| 16265 | - cJSON * j = cJSON_Parse(s); | |
| 16266 | - if (NULL != j) { | |
| 16267 | - x = cJSON_GetSelValue(j); | |
| 16268 | - cJSON_Delete(j); | |
| 16269 | - } | |
| 16270 | - } | |
| 16271 | - return x; | |
| 16272 | -} | |
| 16273 | - | |
| 16274 | -struct Sel * cJSON_GetSelValue(const cJSON * j) { | |
| 16275 | - struct Sel * x = NULL; | |
| 16276 | - if (NULL != j) { | |
| 16277 | - if (NULL != (x = cJSON_malloc(sizeof(struct Sel)))) { | |
| 16278 | - memset(x, 0, sizeof(struct Sel)); | |
| 16279 | - if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteSel(x); return NULL; } | |
| 16280 | - if (cJSON_HasObjectItem(j, "SEL")) { | |
| 16281 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteSel(x); return NULL; } | |
| 16282 | - x->sel = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SEL")); | |
| 16274 | + if (!cJSON_HasObjectItem(j, "nil")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16275 | + if (cJSON_HasObjectItem(j, "nil")) { | |
| 16276 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "nil"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16277 | + x->nil = cJSON_GetNilValue(cJSON_GetObjectItemCaseSensitive(j, "nil")); | |
| 16278 | + if (NULL == x->nil) { cJSON_DeleteObj4(x); return NULL; } | |
| 16283 | 16279 | } |
| 16284 | - } | |
| 16285 | - } | |
| 16286 | - return x; | |
| 16287 | -} | |
| 16288 | - | |
| 16289 | -cJSON * cJSON_CreateSel(const struct Sel * x) { | |
| 16290 | - cJSON * j = NULL; | |
| 16291 | - if (NULL != x) { | |
| 16292 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 16293 | - cJSON_AddNumberToObject(j, "SEL", x->sel); | |
| 16294 | - } | |
| 16295 | - } | |
| 16296 | - return j; | |
| 16297 | -} | |
| 16298 | - | |
| 16299 | -char * cJSON_PrintSel(const struct Sel * x) { | |
| 16300 | - char * s = NULL; | |
| 16301 | - if (NULL != x) { | |
| 16302 | - cJSON * j = cJSON_CreateSel(x); | |
| 16303 | - if (NULL != j) { | |
| 16304 | - s = cJSON_Print(j); | |
| 16305 | - cJSON_Delete(j); | |
| 16306 | - } | |
| 16307 | - } | |
| 16308 | - return s; | |
| 16309 | -} | |
| 16310 | - | |
| 16311 | -void cJSON_DeleteSel(struct Sel * x) { | |
| 16312 | - if (NULL != x) { | |
| 16313 | - cJSON_free(x); | |
| 16314 | - } | |
| 16315 | -} | |
| 16316 | - | |
| 16317 | -struct Obj4 * cJSON_ParseObj4(const char * s) { | |
| 16318 | - struct Obj4 * x = NULL; | |
| 16319 | - if (NULL != s) { | |
| 16320 | - cJSON * j = cJSON_Parse(s); | |
| 16321 | - if (NULL != j) { | |
| 16322 | - x = cJSON_GetObj4Value(j); | |
| 16323 | - cJSON_Delete(j); | |
| 16324 | - } | |
| 16325 | - } | |
| 16326 | - return x; | |
| 16327 | -} | |
| 16328 | - | |
| 16329 | -struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | |
| 16330 | - struct Obj4 * x = NULL; | |
| 16331 | - if (NULL != j) { | |
| 16332 | - if (NULL != (x = cJSON_malloc(sizeof(struct Obj4)))) { | |
| 16333 | - memset(x, 0, sizeof(struct Obj4)); | |
| 16334 | - if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16335 | - if (cJSON_HasObjectItem(j, "dummy")) { | |
| 16336 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16337 | - x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); | |
| 16280 | + if (!cJSON_HasObjectItem(j, "NO")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16281 | + if (cJSON_HasObjectItem(j, "NO")) { | |
| 16282 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "NO"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16283 | + x->no = cJSON_GetNoValue(cJSON_GetObjectItemCaseSensitive(j, "NO")); | |
| 16284 | + if (NULL == x->no) { cJSON_DeleteObj4(x); return NULL; } | |
| 16338 | 16285 | } |
| 16339 | 16286 | if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteObj4(x); return NULL; } |
| 16340 | 16287 | if (cJSON_HasObjectItem(j, "noSuchMethod")) { |
| @@ -16528,6 +16475,18 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | ||
| 16528 | 16475 | x->of = cJSON_GetOfValue(cJSON_GetObjectItemCaseSensitive(j, "of")); |
| 16529 | 16476 | if (NULL == x->of) { cJSON_DeleteObj4(x); return NULL; } |
| 16530 | 16477 | } |
| 16478 | + if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16479 | + if (cJSON_HasObjectItem(j, "OffsetDateTime")) { | |
| 16480 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16481 | + x->offset_date_time = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime")); | |
| 16482 | + if (NULL == x->offset_date_time) { cJSON_DeleteObj4(x); return NULL; } | |
| 16483 | + } | |
| 16484 | + if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16485 | + if (cJSON_HasObjectItem(j, "OffsetTime")) { | |
| 16486 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16487 | + x->offset_time = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime")); | |
| 16488 | + if (NULL == x->offset_time) { cJSON_DeleteObj4(x); return NULL; } | |
| 16489 | + } | |
| 16531 | 16490 | if (!cJSON_HasObjectItem(j, "oneway")) { cJSON_DeleteObj4(x); return NULL; } |
| 16532 | 16491 | if (cJSON_HasObjectItem(j, "oneway")) { |
| 16533 | 16492 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteObj4(x); return NULL; } |
| @@ -16696,30 +16655,6 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | ||
| 16696 | 16655 | x->runtime_type = cJSON_GetRuntimeTypeValue(cJSON_GetObjectItemCaseSensitive(j, "runtimeType")); |
| 16697 | 16656 | if (NULL == x->runtime_type) { cJSON_DeleteObj4(x); return NULL; } |
| 16698 | 16657 | } |
| 16699 | - if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16700 | - if (cJSON_HasObjectItem(j, "s")) { | |
| 16701 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16702 | - x->s = cJSON_GetSValue(cJSON_GetObjectItemCaseSensitive(j, "s")); | |
| 16703 | - if (NULL == x->s) { cJSON_DeleteObj4(x); return NULL; } | |
| 16704 | - } | |
| 16705 | - if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16706 | - if (cJSON_HasObjectItem(j, "sbyte")) { | |
| 16707 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16708 | - x->sbyte = cJSON_GetSbyteValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte")); | |
| 16709 | - if (NULL == x->sbyte) { cJSON_DeleteObj4(x); return NULL; } | |
| 16710 | - } | |
| 16711 | - if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16712 | - if (cJSON_HasObjectItem(j, "sealed")) { | |
| 16713 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16714 | - x->sealed = cJSON_GetSealedValue(cJSON_GetObjectItemCaseSensitive(j, "sealed")); | |
| 16715 | - if (NULL == x->sealed) { cJSON_DeleteObj4(x); return NULL; } | |
| 16716 | - } | |
| 16717 | - if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16718 | - if (cJSON_HasObjectItem(j, "SEL")) { | |
| 16719 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16720 | - x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL")); | |
| 16721 | - if (NULL == x->sel) { cJSON_DeleteObj4(x); return NULL; } | |
| 16722 | - } | |
| 16723 | 16658 | } |
| 16724 | 16659 | } |
| 16725 | 16660 | return x; |
| @@ -16730,6 +16665,8 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) { | ||
| 16730 | 16665 | if (NULL != x) { |
| 16731 | 16666 | if (NULL != (j = cJSON_CreateObject())) { |
| 16732 | 16667 | cJSON_AddNumberToObject(j, "dummy", x->dummy); |
| 16668 | + cJSON_AddItemToObject(j, "nil", cJSON_CreateNil(x->nil)); | |
| 16669 | + cJSON_AddItemToObject(j, "NO", cJSON_CreateNo(x->no)); | |
| 16733 | 16670 | cJSON_AddItemToObject(j, "noSuchMethod", cJSON_CreateNoSuchMethod(x->no_such_method)); |
| 16734 | 16671 | cJSON_AddItemToObject(j, "nonatomic", cJSON_CreateNonatomic(x->nonatomic)); |
| 16735 | 16672 | cJSON_AddItemToObject(j, "None", cJSON_CreateNone(x->none)); |
| @@ -16762,6 +16699,8 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) { | ||
| 16762 | 16699 | cJSON_AddItemToObject(j, "object", cJSON_CreateObjectClass(x->object)); |
| 16763 | 16700 | cJSON_AddItemToObject(j, "ObjectMapper", cJSON_CreateObjectMapper(x->object_mapper)); |
| 16764 | 16701 | cJSON_AddItemToObject(j, "of", cJSON_CreateOf(x->of)); |
| 16702 | + cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateOffsetDateTime(x->offset_date_time)); | |
| 16703 | + cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateOffsetTime(x->offset_time)); | |
| 16765 | 16704 | cJSON_AddItemToObject(j, "oneway", cJSON_CreateOneway(x->oneway)); |
| 16766 | 16705 | cJSON_AddItemToObject(j, "open", cJSON_CreateOpen(x->open)); |
| 16767 | 16706 | cJSON_AddItemToObject(j, "optional", cJSON_CreateOptional(x->optional)); |
| @@ -16790,10 +16729,6 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) { | ||
| 16790 | 16729 | cJSON_AddItemToObject(j, "rethrows", cJSON_CreateRethrows(x->rethrows)); |
| 16791 | 16730 | cJSON_AddItemToObject(j, "right", cJSON_CreateRight(x->right)); |
| 16792 | 16731 | cJSON_AddItemToObject(j, "runtimeType", cJSON_CreateRuntimeType(x->runtime_type)); |
| 16793 | - cJSON_AddItemToObject(j, "s", cJSON_CreateS(x->s)); | |
| 16794 | - cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte)); | |
| 16795 | - cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed)); | |
| 16796 | - cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel)); | |
| 16797 | 16732 | } |
| 16798 | 16733 | } |
| 16799 | 16734 | return j; |
| @@ -16813,6 +16748,12 @@ char * cJSON_PrintObj4(const struct Obj4 * x) { | ||
| 16813 | 16748 | |
| 16814 | 16749 | void cJSON_DeleteObj4(struct Obj4 * x) { |
| 16815 | 16750 | if (NULL != x) { |
| 16751 | + if (NULL != x->nil) { | |
| 16752 | + cJSON_DeleteNil(x->nil); | |
| 16753 | + } | |
| 16754 | + if (NULL != x->no) { | |
| 16755 | + cJSON_DeleteNo(x->no); | |
| 16756 | + } | |
| 16816 | 16757 | if (NULL != x->no_such_method) { |
| 16817 | 16758 | cJSON_DeleteNoSuchMethod(x->no_such_method); |
| 16818 | 16759 | } |
| @@ -16909,6 +16850,12 @@ void cJSON_DeleteObj4(struct Obj4 * x) { | ||
| 16909 | 16850 | if (NULL != x->of) { |
| 16910 | 16851 | cJSON_DeleteOf(x->of); |
| 16911 | 16852 | } |
| 16853 | + if (NULL != x->offset_date_time) { | |
| 16854 | + cJSON_DeleteOffsetDateTime(x->offset_date_time); | |
| 16855 | + } | |
| 16856 | + if (NULL != x->offset_time) { | |
| 16857 | + cJSON_DeleteOffsetTime(x->offset_time); | |
| 16858 | + } | |
| 16912 | 16859 | if (NULL != x->oneway) { |
| 16913 | 16860 | cJSON_DeleteOneway(x->oneway); |
| 16914 | 16861 | } |
| @@ -16993,18 +16940,6 @@ void cJSON_DeleteObj4(struct Obj4 * x) { | ||
| 16993 | 16940 | if (NULL != x->runtime_type) { |
| 16994 | 16941 | cJSON_DeleteRuntimeType(x->runtime_type); |
| 16995 | 16942 | } |
| 16996 | - if (NULL != x->s) { | |
| 16997 | - cJSON_DeleteS(x->s); | |
| 16998 | - } | |
| 16999 | - if (NULL != x->sbyte) { | |
| 17000 | - cJSON_DeleteSbyte(x->sbyte); | |
| 17001 | - } | |
| 17002 | - if (NULL != x->sealed) { | |
| 17003 | - cJSON_DeleteSealed(x->sealed); | |
| 17004 | - } | |
| 17005 | - if (NULL != x->sel) { | |
| 17006 | - cJSON_DeleteSel(x->sel); | |
| 17007 | - } | |
| 17008 | 16943 | cJSON_free(x); |
| 17009 | 16944 | } |
| 17010 | 16945 | } |
| @@ -18219,47 +18154,47 @@ void cJSON_DeleteTypeof(struct Typeof * x) { | ||
| 18219 | 18154 | } |
| 18220 | 18155 | } |
| 18221 | 18156 | |
| 18222 | -struct Union * cJSON_ParseUnion(const char * s) { | |
| 18223 | - struct Union * x = NULL; | |
| 18157 | +struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) { | |
| 18158 | + struct PrimitiveKind * x = NULL; | |
| 18224 | 18159 | if (NULL != s) { |
| 18225 | 18160 | cJSON * j = cJSON_Parse(s); |
| 18226 | 18161 | if (NULL != j) { |
| 18227 | - x = cJSON_GetUnionValue(j); | |
| 18162 | + x = cJSON_GetPrimitiveKindValue(j); | |
| 18228 | 18163 | cJSON_Delete(j); |
| 18229 | 18164 | } |
| 18230 | 18165 | } |
| 18231 | 18166 | return x; |
| 18232 | 18167 | } |
| 18233 | 18168 | |
| 18234 | -struct Union * cJSON_GetUnionValue(const cJSON * j) { | |
| 18235 | - struct Union * x = NULL; | |
| 18169 | +struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) { | |
| 18170 | + struct PrimitiveKind * x = NULL; | |
| 18236 | 18171 | if (NULL != j) { |
| 18237 | - if (NULL != (x = cJSON_malloc(sizeof(struct Union)))) { | |
| 18238 | - memset(x, 0, sizeof(struct Union)); | |
| 18239 | - if (!cJSON_HasObjectItem(j, "union")) { cJSON_DeleteUnion(x); return NULL; } | |
| 18240 | - if (cJSON_HasObjectItem(j, "union")) { | |
| 18241 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "union"))) { cJSON_DeleteUnion(x); return NULL; } | |
| 18242 | - x->union_union = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "union")); | |
| 18172 | + if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) { | |
| 18173 | + memset(x, 0, sizeof(struct PrimitiveKind)); | |
| 18174 | + if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; } | |
| 18175 | + if (cJSON_HasObjectItem(j, "PrimitiveKind")) { | |
| 18176 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; } | |
| 18177 | + x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind")); | |
| 18243 | 18178 | } |
| 18244 | 18179 | } |
| 18245 | 18180 | } |
| 18246 | 18181 | return x; |
| 18247 | 18182 | } |
| 18248 | 18183 | |
| 18249 | -cJSON * cJSON_CreateUnion(const struct Union * x) { | |
| 18184 | +cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) { | |
| 18250 | 18185 | cJSON * j = NULL; |
| 18251 | 18186 | if (NULL != x) { |
| 18252 | 18187 | if (NULL != (j = cJSON_CreateObject())) { |
| 18253 | - cJSON_AddNumberToObject(j, "union", x->union_union); | |
| 18188 | + cJSON_AddNumberToObject(j, "PrimitiveKind", x->primitive_kind); | |
| 18254 | 18189 | } |
| 18255 | 18190 | } |
| 18256 | 18191 | return j; |
| 18257 | 18192 | } |
| 18258 | 18193 | |
| 18259 | -char * cJSON_PrintUnion(const struct Union * x) { | |
| 18194 | +char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) { | |
| 18260 | 18195 | char * s = NULL; |
| 18261 | 18196 | if (NULL != x) { |
| 18262 | - cJSON * j = cJSON_CreateUnion(x); | |
| 18197 | + cJSON * j = cJSON_CreatePrimitiveKind(x); | |
| 18263 | 18198 | if (NULL != j) { |
| 18264 | 18199 | s = cJSON_Print(j); |
| 18265 | 18200 | cJSON_Delete(j); |
| @@ -18268,53 +18203,53 @@ char * cJSON_PrintUnion(const struct Union * x) { | ||
| 18268 | 18203 | return s; |
| 18269 | 18204 | } |
| 18270 | 18205 | |
| 18271 | -void cJSON_DeleteUnion(struct Union * x) { | |
| 18206 | +void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) { | |
| 18272 | 18207 | if (NULL != x) { |
| 18273 | 18208 | cJSON_free(x); |
| 18274 | 18209 | } |
| 18275 | 18210 | } |
| 18276 | 18211 | |
| 18277 | -struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) { | |
| 18278 | - struct PrimitiveKind * x = NULL; | |
| 18212 | +struct Obj5True * cJSON_ParseObj5True(const char * s) { | |
| 18213 | + struct Obj5True * x = NULL; | |
| 18279 | 18214 | if (NULL != s) { |
| 18280 | 18215 | cJSON * j = cJSON_Parse(s); |
| 18281 | 18216 | if (NULL != j) { |
| 18282 | - x = cJSON_GetPrimitiveKindValue(j); | |
| 18217 | + x = cJSON_GetObj5TrueValue(j); | |
| 18283 | 18218 | cJSON_Delete(j); |
| 18284 | 18219 | } |
| 18285 | 18220 | } |
| 18286 | 18221 | return x; |
| 18287 | 18222 | } |
| 18288 | 18223 | |
| 18289 | -struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j) { | |
| 18290 | - struct PrimitiveKind * x = NULL; | |
| 18224 | +struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) { | |
| 18225 | + struct Obj5True * x = NULL; | |
| 18291 | 18226 | if (NULL != j) { |
| 18292 | - if (NULL != (x = cJSON_malloc(sizeof(struct PrimitiveKind)))) { | |
| 18293 | - memset(x, 0, sizeof(struct PrimitiveKind)); | |
| 18294 | - if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeletePrimitiveKind(x); return NULL; } | |
| 18295 | - if (cJSON_HasObjectItem(j, "PrimitiveKind")) { | |
| 18296 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeletePrimitiveKind(x); return NULL; } | |
| 18297 | - x->primitive_kind = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind")); | |
| 18227 | + if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) { | |
| 18228 | + memset(x, 0, sizeof(struct Obj5True)); | |
| 18229 | + if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; } | |
| 18230 | + if (cJSON_HasObjectItem(j, "true")) { | |
| 18231 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; } | |
| 18232 | + x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true")); | |
| 18298 | 18233 | } |
| 18299 | 18234 | } |
| 18300 | 18235 | } |
| 18301 | 18236 | return x; |
| 18302 | 18237 | } |
| 18303 | 18238 | |
| 18304 | -cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x) { | |
| 18239 | +cJSON * cJSON_CreateObj5True(const struct Obj5True * x) { | |
| 18305 | 18240 | cJSON * j = NULL; |
| 18306 | 18241 | if (NULL != x) { |
| 18307 | 18242 | if (NULL != (j = cJSON_CreateObject())) { |
| 18308 | - cJSON_AddNumberToObject(j, "PrimitiveKind", x->primitive_kind); | |
| 18243 | + cJSON_AddNumberToObject(j, "true", x->true_true); | |
| 18309 | 18244 | } |
| 18310 | 18245 | } |
| 18311 | 18246 | return j; |
| 18312 | 18247 | } |
| 18313 | 18248 | |
| 18314 | -char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) { | |
| 18249 | +char * cJSON_PrintObj5True(const struct Obj5True * x) { | |
| 18315 | 18250 | char * s = NULL; |
| 18316 | 18251 | if (NULL != x) { |
| 18317 | - cJSON * j = cJSON_CreatePrimitiveKind(x); | |
| 18252 | + cJSON * j = cJSON_CreateObj5True(x); | |
| 18318 | 18253 | if (NULL != j) { |
| 18319 | 18254 | s = cJSON_Print(j); |
| 18320 | 18255 | cJSON_Delete(j); |
| @@ -18323,53 +18258,53 @@ char * cJSON_PrintPrimitiveKind(const struct PrimitiveKind * x) { | ||
| 18323 | 18258 | return s; |
| 18324 | 18259 | } |
| 18325 | 18260 | |
| 18326 | -void cJSON_DeletePrimitiveKind(struct PrimitiveKind * x) { | |
| 18261 | +void cJSON_DeleteObj5True(struct Obj5True * x) { | |
| 18327 | 18262 | if (NULL != x) { |
| 18328 | 18263 | cJSON_free(x); |
| 18329 | 18264 | } |
| 18330 | 18265 | } |
| 18331 | 18266 | |
| 18332 | -struct Obj5True * cJSON_ParseObj5True(const char * s) { | |
| 18333 | - struct Obj5True * x = NULL; | |
| 18267 | +struct S * cJSON_ParseS(const char * s) { | |
| 18268 | + struct S * x = NULL; | |
| 18334 | 18269 | if (NULL != s) { |
| 18335 | 18270 | cJSON * j = cJSON_Parse(s); |
| 18336 | 18271 | if (NULL != j) { |
| 18337 | - x = cJSON_GetObj5TrueValue(j); | |
| 18272 | + x = cJSON_GetSValue(j); | |
| 18338 | 18273 | cJSON_Delete(j); |
| 18339 | 18274 | } |
| 18340 | 18275 | } |
| 18341 | 18276 | return x; |
| 18342 | 18277 | } |
| 18343 | 18278 | |
| 18344 | -struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j) { | |
| 18345 | - struct Obj5True * x = NULL; | |
| 18279 | +struct S * cJSON_GetSValue(const cJSON * j) { | |
| 18280 | + struct S * x = NULL; | |
| 18346 | 18281 | if (NULL != j) { |
| 18347 | - if (NULL != (x = cJSON_malloc(sizeof(struct Obj5True)))) { | |
| 18348 | - memset(x, 0, sizeof(struct Obj5True)); | |
| 18349 | - if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5True(x); return NULL; } | |
| 18350 | - if (cJSON_HasObjectItem(j, "true")) { | |
| 18351 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5True(x); return NULL; } | |
| 18352 | - x->true_true = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "true")); | |
| 18282 | + if (NULL != (x = cJSON_malloc(sizeof(struct S)))) { | |
| 18283 | + memset(x, 0, sizeof(struct S)); | |
| 18284 | + if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteS(x); return NULL; } | |
| 18285 | + if (cJSON_HasObjectItem(j, "s")) { | |
| 18286 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteS(x); return NULL; } | |
| 18287 | + x->s = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "s")); | |
| 18353 | 18288 | } |
| 18354 | 18289 | } |
| 18355 | 18290 | } |
| 18356 | 18291 | return x; |
| 18357 | 18292 | } |
| 18358 | 18293 | |
| 18359 | -cJSON * cJSON_CreateObj5True(const struct Obj5True * x) { | |
| 18294 | +cJSON * cJSON_CreateS(const struct S * x) { | |
| 18360 | 18295 | cJSON * j = NULL; |
| 18361 | 18296 | if (NULL != x) { |
| 18362 | 18297 | if (NULL != (j = cJSON_CreateObject())) { |
| 18363 | - cJSON_AddNumberToObject(j, "true", x->true_true); | |
| 18298 | + cJSON_AddNumberToObject(j, "s", x->s); | |
| 18364 | 18299 | } |
| 18365 | 18300 | } |
| 18366 | 18301 | return j; |
| 18367 | 18302 | } |
| 18368 | 18303 | |
| 18369 | -char * cJSON_PrintObj5True(const struct Obj5True * x) { | |
| 18304 | +char * cJSON_PrintS(const struct S * x) { | |
| 18370 | 18305 | char * s = NULL; |
| 18371 | 18306 | if (NULL != x) { |
| 18372 | - cJSON * j = cJSON_CreateObj5True(x); | |
| 18307 | + cJSON * j = cJSON_CreateS(x); | |
| 18373 | 18308 | if (NULL != j) { |
| 18374 | 18309 | s = cJSON_Print(j); |
| 18375 | 18310 | cJSON_Delete(j); |
| @@ -18378,7 +18313,172 @@ char * cJSON_PrintObj5True(const struct Obj5True * x) { | ||
| 18378 | 18313 | return s; |
| 18379 | 18314 | } |
| 18380 | 18315 | |
| 18381 | -void cJSON_DeleteObj5True(struct Obj5True * x) { | |
| 18316 | +void cJSON_DeleteS(struct S * x) { | |
| 18317 | + if (NULL != x) { | |
| 18318 | + cJSON_free(x); | |
| 18319 | + } | |
| 18320 | +} | |
| 18321 | + | |
| 18322 | +struct Sbyte * cJSON_ParseSbyte(const char * s) { | |
| 18323 | + struct Sbyte * x = NULL; | |
| 18324 | + if (NULL != s) { | |
| 18325 | + cJSON * j = cJSON_Parse(s); | |
| 18326 | + if (NULL != j) { | |
| 18327 | + x = cJSON_GetSbyteValue(j); | |
| 18328 | + cJSON_Delete(j); | |
| 18329 | + } | |
| 18330 | + } | |
| 18331 | + return x; | |
| 18332 | +} | |
| 18333 | + | |
| 18334 | +struct Sbyte * cJSON_GetSbyteValue(const cJSON * j) { | |
| 18335 | + struct Sbyte * x = NULL; | |
| 18336 | + if (NULL != j) { | |
| 18337 | + if (NULL != (x = cJSON_malloc(sizeof(struct Sbyte)))) { | |
| 18338 | + memset(x, 0, sizeof(struct Sbyte)); | |
| 18339 | + if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteSbyte(x); return NULL; } | |
| 18340 | + if (cJSON_HasObjectItem(j, "sbyte")) { | |
| 18341 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteSbyte(x); return NULL; } | |
| 18342 | + x->sbyte = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte")); | |
| 18343 | + } | |
| 18344 | + } | |
| 18345 | + } | |
| 18346 | + return x; | |
| 18347 | +} | |
| 18348 | + | |
| 18349 | +cJSON * cJSON_CreateSbyte(const struct Sbyte * x) { | |
| 18350 | + cJSON * j = NULL; | |
| 18351 | + if (NULL != x) { | |
| 18352 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18353 | + cJSON_AddNumberToObject(j, "sbyte", x->sbyte); | |
| 18354 | + } | |
| 18355 | + } | |
| 18356 | + return j; | |
| 18357 | +} | |
| 18358 | + | |
| 18359 | +char * cJSON_PrintSbyte(const struct Sbyte * x) { | |
| 18360 | + char * s = NULL; | |
| 18361 | + if (NULL != x) { | |
| 18362 | + cJSON * j = cJSON_CreateSbyte(x); | |
| 18363 | + if (NULL != j) { | |
| 18364 | + s = cJSON_Print(j); | |
| 18365 | + cJSON_Delete(j); | |
| 18366 | + } | |
| 18367 | + } | |
| 18368 | + return s; | |
| 18369 | +} | |
| 18370 | + | |
| 18371 | +void cJSON_DeleteSbyte(struct Sbyte * x) { | |
| 18372 | + if (NULL != x) { | |
| 18373 | + cJSON_free(x); | |
| 18374 | + } | |
| 18375 | +} | |
| 18376 | + | |
| 18377 | +struct Sealed * cJSON_ParseSealed(const char * s) { | |
| 18378 | + struct Sealed * x = NULL; | |
| 18379 | + if (NULL != s) { | |
| 18380 | + cJSON * j = cJSON_Parse(s); | |
| 18381 | + if (NULL != j) { | |
| 18382 | + x = cJSON_GetSealedValue(j); | |
| 18383 | + cJSON_Delete(j); | |
| 18384 | + } | |
| 18385 | + } | |
| 18386 | + return x; | |
| 18387 | +} | |
| 18388 | + | |
| 18389 | +struct Sealed * cJSON_GetSealedValue(const cJSON * j) { | |
| 18390 | + struct Sealed * x = NULL; | |
| 18391 | + if (NULL != j) { | |
| 18392 | + if (NULL != (x = cJSON_malloc(sizeof(struct Sealed)))) { | |
| 18393 | + memset(x, 0, sizeof(struct Sealed)); | |
| 18394 | + if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteSealed(x); return NULL; } | |
| 18395 | + if (cJSON_HasObjectItem(j, "sealed")) { | |
| 18396 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteSealed(x); return NULL; } | |
| 18397 | + x->sealed = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sealed")); | |
| 18398 | + } | |
| 18399 | + } | |
| 18400 | + } | |
| 18401 | + return x; | |
| 18402 | +} | |
| 18403 | + | |
| 18404 | +cJSON * cJSON_CreateSealed(const struct Sealed * x) { | |
| 18405 | + cJSON * j = NULL; | |
| 18406 | + if (NULL != x) { | |
| 18407 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18408 | + cJSON_AddNumberToObject(j, "sealed", x->sealed); | |
| 18409 | + } | |
| 18410 | + } | |
| 18411 | + return j; | |
| 18412 | +} | |
| 18413 | + | |
| 18414 | +char * cJSON_PrintSealed(const struct Sealed * x) { | |
| 18415 | + char * s = NULL; | |
| 18416 | + if (NULL != x) { | |
| 18417 | + cJSON * j = cJSON_CreateSealed(x); | |
| 18418 | + if (NULL != j) { | |
| 18419 | + s = cJSON_Print(j); | |
| 18420 | + cJSON_Delete(j); | |
| 18421 | + } | |
| 18422 | + } | |
| 18423 | + return s; | |
| 18424 | +} | |
| 18425 | + | |
| 18426 | +void cJSON_DeleteSealed(struct Sealed * x) { | |
| 18427 | + if (NULL != x) { | |
| 18428 | + cJSON_free(x); | |
| 18429 | + } | |
| 18430 | +} | |
| 18431 | + | |
| 18432 | +struct Sel * cJSON_ParseSel(const char * s) { | |
| 18433 | + struct Sel * x = NULL; | |
| 18434 | + if (NULL != s) { | |
| 18435 | + cJSON * j = cJSON_Parse(s); | |
| 18436 | + if (NULL != j) { | |
| 18437 | + x = cJSON_GetSelValue(j); | |
| 18438 | + cJSON_Delete(j); | |
| 18439 | + } | |
| 18440 | + } | |
| 18441 | + return x; | |
| 18442 | +} | |
| 18443 | + | |
| 18444 | +struct Sel * cJSON_GetSelValue(const cJSON * j) { | |
| 18445 | + struct Sel * x = NULL; | |
| 18446 | + if (NULL != j) { | |
| 18447 | + if (NULL != (x = cJSON_malloc(sizeof(struct Sel)))) { | |
| 18448 | + memset(x, 0, sizeof(struct Sel)); | |
| 18449 | + if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteSel(x); return NULL; } | |
| 18450 | + if (cJSON_HasObjectItem(j, "SEL")) { | |
| 18451 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteSel(x); return NULL; } | |
| 18452 | + x->sel = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SEL")); | |
| 18453 | + } | |
| 18454 | + } | |
| 18455 | + } | |
| 18456 | + return x; | |
| 18457 | +} | |
| 18458 | + | |
| 18459 | +cJSON * cJSON_CreateSel(const struct Sel * x) { | |
| 18460 | + cJSON * j = NULL; | |
| 18461 | + if (NULL != x) { | |
| 18462 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18463 | + cJSON_AddNumberToObject(j, "SEL", x->sel); | |
| 18464 | + } | |
| 18465 | + } | |
| 18466 | + return j; | |
| 18467 | +} | |
| 18468 | + | |
| 18469 | +char * cJSON_PrintSel(const struct Sel * x) { | |
| 18470 | + char * s = NULL; | |
| 18471 | + if (NULL != x) { | |
| 18472 | + cJSON * j = cJSON_CreateSel(x); | |
| 18473 | + if (NULL != j) { | |
| 18474 | + s = cJSON_Print(j); | |
| 18475 | + cJSON_Delete(j); | |
| 18476 | + } | |
| 18477 | + } | |
| 18478 | + return s; | |
| 18479 | +} | |
| 18480 | + | |
| 18481 | +void cJSON_DeleteSel(struct Sel * x) { | |
| 18382 | 18482 | if (NULL != x) { |
| 18383 | 18483 | cJSON_free(x); |
| 18384 | 18484 | } |
| @@ -20364,247 +20464,27 @@ void cJSON_DeleteUndefined(struct Undefined * x) { | ||
| 20364 | 20464 | } |
| 20365 | 20465 | } |
| 20366 | 20466 | |
| 20367 | -struct UnmarshalJson * cJSON_ParseUnmarshalJson(const char * s) { | |
| 20368 | - struct UnmarshalJson * x = NULL; | |
| 20467 | +struct Obj5 * cJSON_ParseObj5(const char * s) { | |
| 20468 | + struct Obj5 * x = NULL; | |
| 20369 | 20469 | if (NULL != s) { |
| 20370 | 20470 | cJSON * j = cJSON_Parse(s); |
| 20371 | 20471 | if (NULL != j) { |
| 20372 | - x = cJSON_GetUnmarshalJsonValue(j); | |
| 20472 | + x = cJSON_GetObj5Value(j); | |
| 20373 | 20473 | cJSON_Delete(j); |
| 20374 | 20474 | } |
| 20375 | 20475 | } |
| 20376 | 20476 | return x; |
| 20377 | 20477 | } |
| 20378 | 20478 | |
| 20379 | -struct UnmarshalJson * cJSON_GetUnmarshalJsonValue(const cJSON * j) { | |
| 20380 | - struct UnmarshalJson * x = NULL; | |
| 20479 | +struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | |
| 20480 | + struct Obj5 * x = NULL; | |
| 20381 | 20481 | if (NULL != j) { |
| 20382 | - if (NULL != (x = cJSON_malloc(sizeof(struct UnmarshalJson)))) { | |
| 20383 | - memset(x, 0, sizeof(struct UnmarshalJson)); | |
| 20384 | - if (!cJSON_HasObjectItem(j, "UnmarshalJSON")) { cJSON_DeleteUnmarshalJson(x); return NULL; } | |
| 20385 | - if (cJSON_HasObjectItem(j, "UnmarshalJSON")) { | |
| 20386 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"))) { cJSON_DeleteUnmarshalJson(x); return NULL; } | |
| 20387 | - x->unmarshal_json = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON")); | |
| 20388 | - } | |
| 20389 | - } | |
| 20390 | - } | |
| 20391 | - return x; | |
| 20392 | -} | |
| 20393 | - | |
| 20394 | -cJSON * cJSON_CreateUnmarshalJson(const struct UnmarshalJson * x) { | |
| 20395 | - cJSON * j = NULL; | |
| 20396 | - if (NULL != x) { | |
| 20397 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20398 | - cJSON_AddNumberToObject(j, "UnmarshalJSON", x->unmarshal_json); | |
| 20399 | - } | |
| 20400 | - } | |
| 20401 | - return j; | |
| 20402 | -} | |
| 20403 | - | |
| 20404 | -char * cJSON_PrintUnmarshalJson(const struct UnmarshalJson * x) { | |
| 20405 | - char * s = NULL; | |
| 20406 | - if (NULL != x) { | |
| 20407 | - cJSON * j = cJSON_CreateUnmarshalJson(x); | |
| 20408 | - if (NULL != j) { | |
| 20409 | - s = cJSON_Print(j); | |
| 20410 | - cJSON_Delete(j); | |
| 20411 | - } | |
| 20412 | - } | |
| 20413 | - return s; | |
| 20414 | -} | |
| 20415 | - | |
| 20416 | -void cJSON_DeleteUnmarshalJson(struct UnmarshalJson * x) { | |
| 20417 | - if (NULL != x) { | |
| 20418 | - cJSON_free(x); | |
| 20419 | - } | |
| 20420 | -} | |
| 20421 | - | |
| 20422 | -struct Unowned * cJSON_ParseUnowned(const char * s) { | |
| 20423 | - struct Unowned * x = NULL; | |
| 20424 | - if (NULL != s) { | |
| 20425 | - cJSON * j = cJSON_Parse(s); | |
| 20426 | - if (NULL != j) { | |
| 20427 | - x = cJSON_GetUnownedValue(j); | |
| 20428 | - cJSON_Delete(j); | |
| 20429 | - } | |
| 20430 | - } | |
| 20431 | - return x; | |
| 20432 | -} | |
| 20433 | - | |
| 20434 | -struct Unowned * cJSON_GetUnownedValue(const cJSON * j) { | |
| 20435 | - struct Unowned * x = NULL; | |
| 20436 | - if (NULL != j) { | |
| 20437 | - if (NULL != (x = cJSON_malloc(sizeof(struct Unowned)))) { | |
| 20438 | - memset(x, 0, sizeof(struct Unowned)); | |
| 20439 | - if (!cJSON_HasObjectItem(j, "unowned")) { cJSON_DeleteUnowned(x); return NULL; } | |
| 20440 | - if (cJSON_HasObjectItem(j, "unowned")) { | |
| 20441 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unowned"))) { cJSON_DeleteUnowned(x); return NULL; } | |
| 20442 | - x->unowned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unowned")); | |
| 20443 | - } | |
| 20444 | - } | |
| 20445 | - } | |
| 20446 | - return x; | |
| 20447 | -} | |
| 20448 | - | |
| 20449 | -cJSON * cJSON_CreateUnowned(const struct Unowned * x) { | |
| 20450 | - cJSON * j = NULL; | |
| 20451 | - if (NULL != x) { | |
| 20452 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20453 | - cJSON_AddNumberToObject(j, "unowned", x->unowned); | |
| 20454 | - } | |
| 20455 | - } | |
| 20456 | - return j; | |
| 20457 | -} | |
| 20458 | - | |
| 20459 | -char * cJSON_PrintUnowned(const struct Unowned * x) { | |
| 20460 | - char * s = NULL; | |
| 20461 | - if (NULL != x) { | |
| 20462 | - cJSON * j = cJSON_CreateUnowned(x); | |
| 20463 | - if (NULL != j) { | |
| 20464 | - s = cJSON_Print(j); | |
| 20465 | - cJSON_Delete(j); | |
| 20466 | - } | |
| 20467 | - } | |
| 20468 | - return s; | |
| 20469 | -} | |
| 20470 | - | |
| 20471 | -void cJSON_DeleteUnowned(struct Unowned * x) { | |
| 20472 | - if (NULL != x) { | |
| 20473 | - cJSON_free(x); | |
| 20474 | - } | |
| 20475 | -} | |
| 20476 | - | |
| 20477 | -struct Unsafe * cJSON_ParseUnsafe(const char * s) { | |
| 20478 | - struct Unsafe * x = NULL; | |
| 20479 | - if (NULL != s) { | |
| 20480 | - cJSON * j = cJSON_Parse(s); | |
| 20481 | - if (NULL != j) { | |
| 20482 | - x = cJSON_GetUnsafeValue(j); | |
| 20483 | - cJSON_Delete(j); | |
| 20484 | - } | |
| 20485 | - } | |
| 20486 | - return x; | |
| 20487 | -} | |
| 20488 | - | |
| 20489 | -struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j) { | |
| 20490 | - struct Unsafe * x = NULL; | |
| 20491 | - if (NULL != j) { | |
| 20492 | - if (NULL != (x = cJSON_malloc(sizeof(struct Unsafe)))) { | |
| 20493 | - memset(x, 0, sizeof(struct Unsafe)); | |
| 20494 | - if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteUnsafe(x); return NULL; } | |
| 20495 | - if (cJSON_HasObjectItem(j, "unsafe")) { | |
| 20496 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteUnsafe(x); return NULL; } | |
| 20497 | - x->unsafe = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe")); | |
| 20498 | - } | |
| 20499 | - } | |
| 20500 | - } | |
| 20501 | - return x; | |
| 20502 | -} | |
| 20503 | - | |
| 20504 | -cJSON * cJSON_CreateUnsafe(const struct Unsafe * x) { | |
| 20505 | - cJSON * j = NULL; | |
| 20506 | - if (NULL != x) { | |
| 20507 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20508 | - cJSON_AddNumberToObject(j, "unsafe", x->unsafe); | |
| 20509 | - } | |
| 20510 | - } | |
| 20511 | - return j; | |
| 20512 | -} | |
| 20513 | - | |
| 20514 | -char * cJSON_PrintUnsafe(const struct Unsafe * x) { | |
| 20515 | - char * s = NULL; | |
| 20516 | - if (NULL != x) { | |
| 20517 | - cJSON * j = cJSON_CreateUnsafe(x); | |
| 20518 | - if (NULL != j) { | |
| 20519 | - s = cJSON_Print(j); | |
| 20520 | - cJSON_Delete(j); | |
| 20521 | - } | |
| 20522 | - } | |
| 20523 | - return s; | |
| 20524 | -} | |
| 20525 | - | |
| 20526 | -void cJSON_DeleteUnsafe(struct Unsafe * x) { | |
| 20527 | - if (NULL != x) { | |
| 20528 | - cJSON_free(x); | |
| 20529 | - } | |
| 20530 | -} | |
| 20531 | - | |
| 20532 | -struct UseSerializers * cJSON_ParseUseSerializers(const char * s) { | |
| 20533 | - struct UseSerializers * x = NULL; | |
| 20534 | - if (NULL != s) { | |
| 20535 | - cJSON * j = cJSON_Parse(s); | |
| 20536 | - if (NULL != j) { | |
| 20537 | - x = cJSON_GetUseSerializersValue(j); | |
| 20538 | - cJSON_Delete(j); | |
| 20539 | - } | |
| 20540 | - } | |
| 20541 | - return x; | |
| 20542 | -} | |
| 20543 | - | |
| 20544 | -struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j) { | |
| 20545 | - struct UseSerializers * x = NULL; | |
| 20546 | - if (NULL != j) { | |
| 20547 | - if (NULL != (x = cJSON_malloc(sizeof(struct UseSerializers)))) { | |
| 20548 | - memset(x, 0, sizeof(struct UseSerializers)); | |
| 20549 | - if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteUseSerializers(x); return NULL; } | |
| 20550 | - if (cJSON_HasObjectItem(j, "UseSerializers")) { | |
| 20551 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteUseSerializers(x); return NULL; } | |
| 20552 | - x->use_serializers = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers")); | |
| 20553 | - } | |
| 20554 | - } | |
| 20555 | - } | |
| 20556 | - return x; | |
| 20557 | -} | |
| 20558 | - | |
| 20559 | -cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x) { | |
| 20560 | - cJSON * j = NULL; | |
| 20561 | - if (NULL != x) { | |
| 20562 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20563 | - cJSON_AddNumberToObject(j, "UseSerializers", x->use_serializers); | |
| 20564 | - } | |
| 20565 | - } | |
| 20566 | - return j; | |
| 20567 | -} | |
| 20568 | - | |
| 20569 | -char * cJSON_PrintUseSerializers(const struct UseSerializers * x) { | |
| 20570 | - char * s = NULL; | |
| 20571 | - if (NULL != x) { | |
| 20572 | - cJSON * j = cJSON_CreateUseSerializers(x); | |
| 20573 | - if (NULL != j) { | |
| 20574 | - s = cJSON_Print(j); | |
| 20575 | - cJSON_Delete(j); | |
| 20576 | - } | |
| 20577 | - } | |
| 20578 | - return s; | |
| 20579 | -} | |
| 20580 | - | |
| 20581 | -void cJSON_DeleteUseSerializers(struct UseSerializers * x) { | |
| 20582 | - if (NULL != x) { | |
| 20583 | - cJSON_free(x); | |
| 20584 | - } | |
| 20585 | -} | |
| 20586 | - | |
| 20587 | -struct Obj5 * cJSON_ParseObj5(const char * s) { | |
| 20588 | - struct Obj5 * x = NULL; | |
| 20589 | - if (NULL != s) { | |
| 20590 | - cJSON * j = cJSON_Parse(s); | |
| 20591 | - if (NULL != j) { | |
| 20592 | - x = cJSON_GetObj5Value(j); | |
| 20593 | - cJSON_Delete(j); | |
| 20594 | - } | |
| 20595 | - } | |
| 20596 | - return x; | |
| 20597 | -} | |
| 20598 | - | |
| 20599 | -struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | |
| 20600 | - struct Obj5 * x = NULL; | |
| 20601 | - if (NULL != j) { | |
| 20602 | - if (NULL != (x = cJSON_malloc(sizeof(struct Obj5)))) { | |
| 20603 | - memset(x, 0, sizeof(struct Obj5)); | |
| 20604 | - if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20605 | - if (cJSON_HasObjectItem(j, "dummy")) { | |
| 20606 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20607 | - x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); | |
| 20482 | + if (NULL != (x = cJSON_malloc(sizeof(struct Obj5)))) { | |
| 20483 | + memset(x, 0, sizeof(struct Obj5)); | |
| 20484 | + if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20485 | + if (cJSON_HasObjectItem(j, "dummy")) { | |
| 20486 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20487 | + x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); | |
| 20608 | 20488 | } |
| 20609 | 20489 | if (!cJSON_HasObjectItem(j, "KSerializer")) { cJSON_DeleteObj5(x); return NULL; } |
| 20610 | 20490 | if (cJSON_HasObjectItem(j, "KSerializer")) { |
| @@ -20738,12 +20618,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 20738 | 20618 | x->obj5_typeof = cJSON_GetTypeofValue(cJSON_GetObjectItemCaseSensitive(j, "typeof")); |
| 20739 | 20619 | if (NULL == x->obj5_typeof) { cJSON_DeleteObj5(x); return NULL; } |
| 20740 | 20620 | } |
| 20741 | - if (!cJSON_HasObjectItem(j, "union")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20742 | - if (cJSON_HasObjectItem(j, "union")) { | |
| 20743 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "union"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20744 | - x->obj5_union = cJSON_GetUnionValue(cJSON_GetObjectItemCaseSensitive(j, "union")); | |
| 20745 | - if (NULL == x->obj5_union) { cJSON_DeleteObj5(x); return NULL; } | |
| 20746 | - } | |
| 20747 | 20621 | if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeleteObj5(x); return NULL; } |
| 20748 | 20622 | if (cJSON_HasObjectItem(j, "PrimitiveKind")) { |
| 20749 | 20623 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeleteObj5(x); return NULL; } |
| @@ -20756,6 +20630,30 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 20756 | 20630 | x->purple_true = cJSON_GetObj5TrueValue(cJSON_GetObjectItemCaseSensitive(j, "true")); |
| 20757 | 20631 | if (NULL == x->purple_true) { cJSON_DeleteObj5(x); return NULL; } |
| 20758 | 20632 | } |
| 20633 | + if (!cJSON_HasObjectItem(j, "s")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20634 | + if (cJSON_HasObjectItem(j, "s")) { | |
| 20635 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "s"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20636 | + x->s = cJSON_GetSValue(cJSON_GetObjectItemCaseSensitive(j, "s")); | |
| 20637 | + if (NULL == x->s) { cJSON_DeleteObj5(x); return NULL; } | |
| 20638 | + } | |
| 20639 | + if (!cJSON_HasObjectItem(j, "sbyte")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20640 | + if (cJSON_HasObjectItem(j, "sbyte")) { | |
| 20641 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sbyte"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20642 | + x->sbyte = cJSON_GetSbyteValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte")); | |
| 20643 | + if (NULL == x->sbyte) { cJSON_DeleteObj5(x); return NULL; } | |
| 20644 | + } | |
| 20645 | + if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20646 | + if (cJSON_HasObjectItem(j, "sealed")) { | |
| 20647 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20648 | + x->sealed = cJSON_GetSealedValue(cJSON_GetObjectItemCaseSensitive(j, "sealed")); | |
| 20649 | + if (NULL == x->sealed) { cJSON_DeleteObj5(x); return NULL; } | |
| 20650 | + } | |
| 20651 | + if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20652 | + if (cJSON_HasObjectItem(j, "SEL")) { | |
| 20653 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20654 | + x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL")); | |
| 20655 | + if (NULL == x->sel) { cJSON_DeleteObj5(x); return NULL; } | |
| 20656 | + } | |
| 20759 | 20657 | if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteObj5(x); return NULL; } |
| 20760 | 20658 | if (cJSON_HasObjectItem(j, "select")) { |
| 20761 | 20659 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteObj5(x); return NULL; } |
| @@ -20972,30 +20870,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 20972 | 20870 | x->undefined = cJSON_GetUndefinedValue(cJSON_GetObjectItemCaseSensitive(j, "undefined")); |
| 20973 | 20871 | if (NULL == x->undefined) { cJSON_DeleteObj5(x); return NULL; } |
| 20974 | 20872 | } |
| 20975 | - if (!cJSON_HasObjectItem(j, "UnmarshalJSON")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20976 | - if (cJSON_HasObjectItem(j, "UnmarshalJSON")) { | |
| 20977 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20978 | - x->unmarshal_json = cJSON_GetUnmarshalJsonValue(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON")); | |
| 20979 | - if (NULL == x->unmarshal_json) { cJSON_DeleteObj5(x); return NULL; } | |
| 20980 | - } | |
| 20981 | - if (!cJSON_HasObjectItem(j, "unowned")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20982 | - if (cJSON_HasObjectItem(j, "unowned")) { | |
| 20983 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unowned"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20984 | - x->unowned = cJSON_GetUnownedValue(cJSON_GetObjectItemCaseSensitive(j, "unowned")); | |
| 20985 | - if (NULL == x->unowned) { cJSON_DeleteObj5(x); return NULL; } | |
| 20986 | - } | |
| 20987 | - if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20988 | - if (cJSON_HasObjectItem(j, "unsafe")) { | |
| 20989 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20990 | - x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe")); | |
| 20991 | - if (NULL == x->unsafe) { cJSON_DeleteObj5(x); return NULL; } | |
| 20992 | - } | |
| 20993 | - if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20994 | - if (cJSON_HasObjectItem(j, "UseSerializers")) { | |
| 20995 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20996 | - x->use_serializers = cJSON_GetUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers")); | |
| 20997 | - if (NULL == x->use_serializers) { cJSON_DeleteObj5(x); return NULL; } | |
| 20998 | - } | |
| 20999 | 20873 | } |
| 21000 | 20874 | } |
| 21001 | 20875 | return x; |
| @@ -21028,9 +20902,12 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) { | ||
| 21028 | 20902 | cJSON_AddItemToObject(j, "typeid", cJSON_CreateTypeid(x->obj5_typeid)); |
| 21029 | 20903 | cJSON_AddItemToObject(j, "typename", cJSON_CreateTypename(x->obj5_typename)); |
| 21030 | 20904 | cJSON_AddItemToObject(j, "typeof", cJSON_CreateTypeof(x->obj5_typeof)); |
| 21031 | - cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union)); | |
| 21032 | 20905 | cJSON_AddItemToObject(j, "PrimitiveKind", cJSON_CreatePrimitiveKind(x->primitive_kind)); |
| 21033 | 20906 | cJSON_AddItemToObject(j, "true", cJSON_CreateObj5True(x->purple_true)); |
| 20907 | + cJSON_AddItemToObject(j, "s", cJSON_CreateS(x->s)); | |
| 20908 | + cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte)); | |
| 20909 | + cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed)); | |
| 20910 | + cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel)); | |
| 21034 | 20911 | cJSON_AddItemToObject(j, "select", cJSON_CreateSelect(x->select)); |
| 21035 | 20912 | cJSON_AddItemToObject(j, "Self", cJSON_CreateSelf(x->self)); |
| 21036 | 20913 | cJSON_AddItemToObject(j, "Sendable", cJSON_CreateSendable(x->sendable)); |
| @@ -21067,10 +20944,6 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) { | ||
| 21067 | 20944 | cJSON_AddItemToObject(j, "ulong", cJSON_CreateUlong(x->ulong)); |
| 21068 | 20945 | cJSON_AddItemToObject(j, "unchecked", cJSON_CreateUnchecked(x->unchecked)); |
| 21069 | 20946 | cJSON_AddItemToObject(j, "undefined", cJSON_CreateUndefined(x->undefined)); |
| 21070 | - cJSON_AddItemToObject(j, "UnmarshalJSON", cJSON_CreateUnmarshalJson(x->unmarshal_json)); | |
| 21071 | - cJSON_AddItemToObject(j, "unowned", cJSON_CreateUnowned(x->unowned)); | |
| 21072 | - cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe)); | |
| 21073 | - cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUseSerializers(x->use_serializers)); | |
| 21074 | 20947 | } |
| 21075 | 20948 | } |
| 21076 | 20949 | return j; |
| @@ -21156,15 +21029,24 @@ void cJSON_DeleteObj5(struct Obj5 * x) { | ||
| 21156 | 21029 | if (NULL != x->obj5_typeof) { |
| 21157 | 21030 | cJSON_DeleteTypeof(x->obj5_typeof); |
| 21158 | 21031 | } |
| 21159 | - if (NULL != x->obj5_union) { | |
| 21160 | - cJSON_DeleteUnion(x->obj5_union); | |
| 21161 | - } | |
| 21162 | 21032 | if (NULL != x->primitive_kind) { |
| 21163 | 21033 | cJSON_DeletePrimitiveKind(x->primitive_kind); |
| 21164 | 21034 | } |
| 21165 | 21035 | if (NULL != x->purple_true) { |
| 21166 | 21036 | cJSON_DeleteObj5True(x->purple_true); |
| 21167 | 21037 | } |
| 21038 | + if (NULL != x->s) { | |
| 21039 | + cJSON_DeleteS(x->s); | |
| 21040 | + } | |
| 21041 | + if (NULL != x->sbyte) { | |
| 21042 | + cJSON_DeleteSbyte(x->sbyte); | |
| 21043 | + } | |
| 21044 | + if (NULL != x->sealed) { | |
| 21045 | + cJSON_DeleteSealed(x->sealed); | |
| 21046 | + } | |
| 21047 | + if (NULL != x->sel) { | |
| 21048 | + cJSON_DeleteSel(x->sel); | |
| 21049 | + } | |
| 21168 | 21050 | if (NULL != x->select) { |
| 21169 | 21051 | cJSON_DeleteSelect(x->select); |
| 21170 | 21052 | } |
| @@ -21273,18 +21155,61 @@ void cJSON_DeleteObj5(struct Obj5 * x) { | ||
| 21273 | 21155 | if (NULL != x->undefined) { |
| 21274 | 21156 | cJSON_DeleteUndefined(x->undefined); |
| 21275 | 21157 | } |
| 21276 | - if (NULL != x->unmarshal_json) { | |
| 21277 | - cJSON_DeleteUnmarshalJson(x->unmarshal_json); | |
| 21158 | + cJSON_free(x); | |
| 21159 | + } | |
| 21160 | +} | |
| 21161 | + | |
| 21162 | +struct Union * cJSON_ParseUnion(const char * s) { | |
| 21163 | + struct Union * x = NULL; | |
| 21164 | + if (NULL != s) { | |
| 21165 | + cJSON * j = cJSON_Parse(s); | |
| 21166 | + if (NULL != j) { | |
| 21167 | + x = cJSON_GetUnionValue(j); | |
| 21168 | + cJSON_Delete(j); | |
| 21278 | 21169 | } |
| 21279 | - if (NULL != x->unowned) { | |
| 21280 | - cJSON_DeleteUnowned(x->unowned); | |
| 21170 | + } | |
| 21171 | + return x; | |
| 21172 | +} | |
| 21173 | + | |
| 21174 | +struct Union * cJSON_GetUnionValue(const cJSON * j) { | |
| 21175 | + struct Union * x = NULL; | |
| 21176 | + if (NULL != j) { | |
| 21177 | + if (NULL != (x = cJSON_malloc(sizeof(struct Union)))) { | |
| 21178 | + memset(x, 0, sizeof(struct Union)); | |
| 21179 | + if (!cJSON_HasObjectItem(j, "union")) { cJSON_DeleteUnion(x); return NULL; } | |
| 21180 | + if (cJSON_HasObjectItem(j, "union")) { | |
| 21181 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "union"))) { cJSON_DeleteUnion(x); return NULL; } | |
| 21182 | + x->union_union = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "union")); | |
| 21183 | + } | |
| 21281 | 21184 | } |
| 21282 | - if (NULL != x->unsafe) { | |
| 21283 | - cJSON_DeleteUnsafe(x->unsafe); | |
| 21185 | + } | |
| 21186 | + return x; | |
| 21187 | +} | |
| 21188 | + | |
| 21189 | +cJSON * cJSON_CreateUnion(const struct Union * x) { | |
| 21190 | + cJSON * j = NULL; | |
| 21191 | + if (NULL != x) { | |
| 21192 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21193 | + cJSON_AddNumberToObject(j, "union", x->union_union); | |
| 21284 | 21194 | } |
| 21285 | - if (NULL != x->use_serializers) { | |
| 21286 | - cJSON_DeleteUseSerializers(x->use_serializers); | |
| 21195 | + } | |
| 21196 | + return j; | |
| 21197 | +} | |
| 21198 | + | |
| 21199 | +char * cJSON_PrintUnion(const struct Union * x) { | |
| 21200 | + char * s = NULL; | |
| 21201 | + if (NULL != x) { | |
| 21202 | + cJSON * j = cJSON_CreateUnion(x); | |
| 21203 | + if (NULL != j) { | |
| 21204 | + s = cJSON_Print(j); | |
| 21205 | + cJSON_Delete(j); | |
| 21287 | 21206 | } |
| 21207 | + } | |
| 21208 | + return s; | |
| 21209 | +} | |
| 21210 | + | |
| 21211 | +void cJSON_DeleteUnion(struct Union * x) { | |
| 21212 | + if (NULL != x) { | |
| 21288 | 21213 | cJSON_free(x); |
| 21289 | 21214 | } |
| 21290 | 21215 | } |
| @@ -21784,6 +21709,226 @@ void cJSON_DeleteXorEq(struct XorEq * x) { | ||
| 21784 | 21709 | } |
| 21785 | 21710 | } |
| 21786 | 21711 | |
| 21712 | +struct UnmarshalJson * cJSON_ParseUnmarshalJson(const char * s) { | |
| 21713 | + struct UnmarshalJson * x = NULL; | |
| 21714 | + if (NULL != s) { | |
| 21715 | + cJSON * j = cJSON_Parse(s); | |
| 21716 | + if (NULL != j) { | |
| 21717 | + x = cJSON_GetUnmarshalJsonValue(j); | |
| 21718 | + cJSON_Delete(j); | |
| 21719 | + } | |
| 21720 | + } | |
| 21721 | + return x; | |
| 21722 | +} | |
| 21723 | + | |
| 21724 | +struct UnmarshalJson * cJSON_GetUnmarshalJsonValue(const cJSON * j) { | |
| 21725 | + struct UnmarshalJson * x = NULL; | |
| 21726 | + if (NULL != j) { | |
| 21727 | + if (NULL != (x = cJSON_malloc(sizeof(struct UnmarshalJson)))) { | |
| 21728 | + memset(x, 0, sizeof(struct UnmarshalJson)); | |
| 21729 | + if (!cJSON_HasObjectItem(j, "UnmarshalJSON")) { cJSON_DeleteUnmarshalJson(x); return NULL; } | |
| 21730 | + if (cJSON_HasObjectItem(j, "UnmarshalJSON")) { | |
| 21731 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"))) { cJSON_DeleteUnmarshalJson(x); return NULL; } | |
| 21732 | + x->unmarshal_json = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON")); | |
| 21733 | + } | |
| 21734 | + } | |
| 21735 | + } | |
| 21736 | + return x; | |
| 21737 | +} | |
| 21738 | + | |
| 21739 | +cJSON * cJSON_CreateUnmarshalJson(const struct UnmarshalJson * x) { | |
| 21740 | + cJSON * j = NULL; | |
| 21741 | + if (NULL != x) { | |
| 21742 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21743 | + cJSON_AddNumberToObject(j, "UnmarshalJSON", x->unmarshal_json); | |
| 21744 | + } | |
| 21745 | + } | |
| 21746 | + return j; | |
| 21747 | +} | |
| 21748 | + | |
| 21749 | +char * cJSON_PrintUnmarshalJson(const struct UnmarshalJson * x) { | |
| 21750 | + char * s = NULL; | |
| 21751 | + if (NULL != x) { | |
| 21752 | + cJSON * j = cJSON_CreateUnmarshalJson(x); | |
| 21753 | + if (NULL != j) { | |
| 21754 | + s = cJSON_Print(j); | |
| 21755 | + cJSON_Delete(j); | |
| 21756 | + } | |
| 21757 | + } | |
| 21758 | + return s; | |
| 21759 | +} | |
| 21760 | + | |
| 21761 | +void cJSON_DeleteUnmarshalJson(struct UnmarshalJson * x) { | |
| 21762 | + if (NULL != x) { | |
| 21763 | + cJSON_free(x); | |
| 21764 | + } | |
| 21765 | +} | |
| 21766 | + | |
| 21767 | +struct Unowned * cJSON_ParseUnowned(const char * s) { | |
| 21768 | + struct Unowned * x = NULL; | |
| 21769 | + if (NULL != s) { | |
| 21770 | + cJSON * j = cJSON_Parse(s); | |
| 21771 | + if (NULL != j) { | |
| 21772 | + x = cJSON_GetUnownedValue(j); | |
| 21773 | + cJSON_Delete(j); | |
| 21774 | + } | |
| 21775 | + } | |
| 21776 | + return x; | |
| 21777 | +} | |
| 21778 | + | |
| 21779 | +struct Unowned * cJSON_GetUnownedValue(const cJSON * j) { | |
| 21780 | + struct Unowned * x = NULL; | |
| 21781 | + if (NULL != j) { | |
| 21782 | + if (NULL != (x = cJSON_malloc(sizeof(struct Unowned)))) { | |
| 21783 | + memset(x, 0, sizeof(struct Unowned)); | |
| 21784 | + if (!cJSON_HasObjectItem(j, "unowned")) { cJSON_DeleteUnowned(x); return NULL; } | |
| 21785 | + if (cJSON_HasObjectItem(j, "unowned")) { | |
| 21786 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unowned"))) { cJSON_DeleteUnowned(x); return NULL; } | |
| 21787 | + x->unowned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unowned")); | |
| 21788 | + } | |
| 21789 | + } | |
| 21790 | + } | |
| 21791 | + return x; | |
| 21792 | +} | |
| 21793 | + | |
| 21794 | +cJSON * cJSON_CreateUnowned(const struct Unowned * x) { | |
| 21795 | + cJSON * j = NULL; | |
| 21796 | + if (NULL != x) { | |
| 21797 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21798 | + cJSON_AddNumberToObject(j, "unowned", x->unowned); | |
| 21799 | + } | |
| 21800 | + } | |
| 21801 | + return j; | |
| 21802 | +} | |
| 21803 | + | |
| 21804 | +char * cJSON_PrintUnowned(const struct Unowned * x) { | |
| 21805 | + char * s = NULL; | |
| 21806 | + if (NULL != x) { | |
| 21807 | + cJSON * j = cJSON_CreateUnowned(x); | |
| 21808 | + if (NULL != j) { | |
| 21809 | + s = cJSON_Print(j); | |
| 21810 | + cJSON_Delete(j); | |
| 21811 | + } | |
| 21812 | + } | |
| 21813 | + return s; | |
| 21814 | +} | |
| 21815 | + | |
| 21816 | +void cJSON_DeleteUnowned(struct Unowned * x) { | |
| 21817 | + if (NULL != x) { | |
| 21818 | + cJSON_free(x); | |
| 21819 | + } | |
| 21820 | +} | |
| 21821 | + | |
| 21822 | +struct Unsafe * cJSON_ParseUnsafe(const char * s) { | |
| 21823 | + struct Unsafe * x = NULL; | |
| 21824 | + if (NULL != s) { | |
| 21825 | + cJSON * j = cJSON_Parse(s); | |
| 21826 | + if (NULL != j) { | |
| 21827 | + x = cJSON_GetUnsafeValue(j); | |
| 21828 | + cJSON_Delete(j); | |
| 21829 | + } | |
| 21830 | + } | |
| 21831 | + return x; | |
| 21832 | +} | |
| 21833 | + | |
| 21834 | +struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j) { | |
| 21835 | + struct Unsafe * x = NULL; | |
| 21836 | + if (NULL != j) { | |
| 21837 | + if (NULL != (x = cJSON_malloc(sizeof(struct Unsafe)))) { | |
| 21838 | + memset(x, 0, sizeof(struct Unsafe)); | |
| 21839 | + if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteUnsafe(x); return NULL; } | |
| 21840 | + if (cJSON_HasObjectItem(j, "unsafe")) { | |
| 21841 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteUnsafe(x); return NULL; } | |
| 21842 | + x->unsafe = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe")); | |
| 21843 | + } | |
| 21844 | + } | |
| 21845 | + } | |
| 21846 | + return x; | |
| 21847 | +} | |
| 21848 | + | |
| 21849 | +cJSON * cJSON_CreateUnsafe(const struct Unsafe * x) { | |
| 21850 | + cJSON * j = NULL; | |
| 21851 | + if (NULL != x) { | |
| 21852 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21853 | + cJSON_AddNumberToObject(j, "unsafe", x->unsafe); | |
| 21854 | + } | |
| 21855 | + } | |
| 21856 | + return j; | |
| 21857 | +} | |
| 21858 | + | |
| 21859 | +char * cJSON_PrintUnsafe(const struct Unsafe * x) { | |
| 21860 | + char * s = NULL; | |
| 21861 | + if (NULL != x) { | |
| 21862 | + cJSON * j = cJSON_CreateUnsafe(x); | |
| 21863 | + if (NULL != j) { | |
| 21864 | + s = cJSON_Print(j); | |
| 21865 | + cJSON_Delete(j); | |
| 21866 | + } | |
| 21867 | + } | |
| 21868 | + return s; | |
| 21869 | +} | |
| 21870 | + | |
| 21871 | +void cJSON_DeleteUnsafe(struct Unsafe * x) { | |
| 21872 | + if (NULL != x) { | |
| 21873 | + cJSON_free(x); | |
| 21874 | + } | |
| 21875 | +} | |
| 21876 | + | |
| 21877 | +struct UseSerializers * cJSON_ParseUseSerializers(const char * s) { | |
| 21878 | + struct UseSerializers * x = NULL; | |
| 21879 | + if (NULL != s) { | |
| 21880 | + cJSON * j = cJSON_Parse(s); | |
| 21881 | + if (NULL != j) { | |
| 21882 | + x = cJSON_GetUseSerializersValue(j); | |
| 21883 | + cJSON_Delete(j); | |
| 21884 | + } | |
| 21885 | + } | |
| 21886 | + return x; | |
| 21887 | +} | |
| 21888 | + | |
| 21889 | +struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j) { | |
| 21890 | + struct UseSerializers * x = NULL; | |
| 21891 | + if (NULL != j) { | |
| 21892 | + if (NULL != (x = cJSON_malloc(sizeof(struct UseSerializers)))) { | |
| 21893 | + memset(x, 0, sizeof(struct UseSerializers)); | |
| 21894 | + if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteUseSerializers(x); return NULL; } | |
| 21895 | + if (cJSON_HasObjectItem(j, "UseSerializers")) { | |
| 21896 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteUseSerializers(x); return NULL; } | |
| 21897 | + x->use_serializers = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers")); | |
| 21898 | + } | |
| 21899 | + } | |
| 21900 | + } | |
| 21901 | + return x; | |
| 21902 | +} | |
| 21903 | + | |
| 21904 | +cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x) { | |
| 21905 | + cJSON * j = NULL; | |
| 21906 | + if (NULL != x) { | |
| 21907 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21908 | + cJSON_AddNumberToObject(j, "UseSerializers", x->use_serializers); | |
| 21909 | + } | |
| 21910 | + } | |
| 21911 | + return j; | |
| 21912 | +} | |
| 21913 | + | |
| 21914 | +char * cJSON_PrintUseSerializers(const struct UseSerializers * x) { | |
| 21915 | + char * s = NULL; | |
| 21916 | + if (NULL != x) { | |
| 21917 | + cJSON * j = cJSON_CreateUseSerializers(x); | |
| 21918 | + if (NULL != j) { | |
| 21919 | + s = cJSON_Print(j); | |
| 21920 | + cJSON_Delete(j); | |
| 21921 | + } | |
| 21922 | + } | |
| 21923 | + return s; | |
| 21924 | +} | |
| 21925 | + | |
| 21926 | +void cJSON_DeleteUseSerializers(struct UseSerializers * x) { | |
| 21927 | + if (NULL != x) { | |
| 21928 | + cJSON_free(x); | |
| 21929 | + } | |
| 21930 | +} | |
| 21931 | + | |
| 21787 | 21932 | struct Ushort * cJSON_ParseUshort(const char * s) { |
| 21788 | 21933 | struct Ushort * x = NULL; |
| 21789 | 21934 | if (NULL != s) { |
| @@ -22411,6 +22556,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) { | ||
| 22411 | 22556 | if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; } |
| 22412 | 22557 | x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); |
| 22413 | 22558 | } |
| 22559 | + if (!cJSON_HasObjectItem(j, "union")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22560 | + if (cJSON_HasObjectItem(j, "union")) { | |
| 22561 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "union"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22562 | + x->obj6_union = cJSON_GetUnionValue(cJSON_GetObjectItemCaseSensitive(j, "union")); | |
| 22563 | + if (NULL == x->obj6_union) { cJSON_DeleteObj6(x); return NULL; } | |
| 22564 | + } | |
| 22414 | 22565 | if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteObj6(x); return NULL; } |
| 22415 | 22566 | if (cJSON_HasObjectItem(j, "unsigned")) { |
| 22416 | 22567 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteObj6(x); return NULL; } |
| @@ -22465,6 +22616,30 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) { | ||
| 22465 | 22616 | x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq")); |
| 22466 | 22617 | if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; } |
| 22467 | 22618 | } |
| 22619 | + if (!cJSON_HasObjectItem(j, "UnmarshalJSON")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22620 | + if (cJSON_HasObjectItem(j, "UnmarshalJSON")) { | |
| 22621 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22622 | + x->unmarshal_json = cJSON_GetUnmarshalJsonValue(cJSON_GetObjectItemCaseSensitive(j, "UnmarshalJSON")); | |
| 22623 | + if (NULL == x->unmarshal_json) { cJSON_DeleteObj6(x); return NULL; } | |
| 22624 | + } | |
| 22625 | + if (!cJSON_HasObjectItem(j, "unowned")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22626 | + if (cJSON_HasObjectItem(j, "unowned")) { | |
| 22627 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unowned"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22628 | + x->unowned = cJSON_GetUnownedValue(cJSON_GetObjectItemCaseSensitive(j, "unowned")); | |
| 22629 | + if (NULL == x->unowned) { cJSON_DeleteObj6(x); return NULL; } | |
| 22630 | + } | |
| 22631 | + if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22632 | + if (cJSON_HasObjectItem(j, "unsafe")) { | |
| 22633 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22634 | + x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe")); | |
| 22635 | + if (NULL == x->unsafe) { cJSON_DeleteObj6(x); return NULL; } | |
| 22636 | + } | |
| 22637 | + if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22638 | + if (cJSON_HasObjectItem(j, "UseSerializers")) { | |
| 22639 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22640 | + x->use_serializers = cJSON_GetUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers")); | |
| 22641 | + if (NULL == x->use_serializers) { cJSON_DeleteObj6(x); return NULL; } | |
| 22642 | + } | |
| 22468 | 22643 | if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj6(x); return NULL; } |
| 22469 | 22644 | if (cJSON_HasObjectItem(j, "ushort")) { |
| 22470 | 22645 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj6(x); return NULL; } |
| @@ -22541,6 +22716,7 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) { | ||
| 22541 | 22716 | if (NULL != x) { |
| 22542 | 22717 | if (NULL != (j = cJSON_CreateObject())) { |
| 22543 | 22718 | cJSON_AddNumberToObject(j, "dummy", x->dummy); |
| 22719 | + cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj6_union)); | |
| 22544 | 22720 | cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj6_unsigned)); |
| 22545 | 22721 | cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj6_using)); |
| 22546 | 22722 | cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual)); |
| @@ -22550,6 +22726,10 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) { | ||
| 22550 | 22726 | cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while)); |
| 22551 | 22727 | cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor)); |
| 22552 | 22728 | cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq)); |
| 22729 | + cJSON_AddItemToObject(j, "UnmarshalJSON", cJSON_CreateUnmarshalJson(x->unmarshal_json)); | |
| 22730 | + cJSON_AddItemToObject(j, "unowned", cJSON_CreateUnowned(x->unowned)); | |
| 22731 | + cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe)); | |
| 22732 | + cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUseSerializers(x->use_serializers)); | |
| 22553 | 22733 | cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort)); |
| 22554 | 22734 | cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader)); |
| 22555 | 22735 | cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer)); |
| @@ -22580,6 +22760,9 @@ char * cJSON_PrintObj6(const struct Obj6 * x) { | ||
| 22580 | 22760 | |
| 22581 | 22761 | void cJSON_DeleteObj6(struct Obj6 * x) { |
| 22582 | 22762 | if (NULL != x) { |
| 22763 | + if (NULL != x->obj6_union) { | |
| 22764 | + cJSON_DeleteUnion(x->obj6_union); | |
| 22765 | + } | |
| 22583 | 22766 | if (NULL != x->obj6_unsigned) { |
| 22584 | 22767 | cJSON_DeleteUnsigned(x->obj6_unsigned); |
| 22585 | 22768 | } |
| @@ -22607,6 +22790,18 @@ void cJSON_DeleteObj6(struct Obj6 * x) { | ||
| 22607 | 22790 | if (NULL != x->obj6_xor_eq) { |
| 22608 | 22791 | cJSON_DeleteXorEq(x->obj6_xor_eq); |
| 22609 | 22792 | } |
| 22793 | + if (NULL != x->unmarshal_json) { | |
| 22794 | + cJSON_DeleteUnmarshalJson(x->unmarshal_json); | |
| 22795 | + } | |
| 22796 | + if (NULL != x->unowned) { | |
| 22797 | + cJSON_DeleteUnowned(x->unowned); | |
| 22798 | + } | |
| 22799 | + if (NULL != x->unsafe) { | |
| 22800 | + cJSON_DeleteUnsafe(x->unsafe); | |
| 22801 | + } | |
| 22802 | + if (NULL != x->use_serializers) { | |
| 22803 | + cJSON_DeleteUseSerializers(x->use_serializers); | |
| 22804 | + } | |
| 22610 | 22805 | if (NULL != x->ushort) { |
| 22611 | 22806 | cJSON_DeleteUshort(x->ushort); |
| 22612 | 22807 | } |
Mcjsondefault / TopLevel.h+154 −121
| @@ -877,6 +877,10 @@ struct List { | ||
| 877 | 877 | int64_t list; |
| 878 | 878 | }; |
| 879 | 879 | |
| 880 | +struct LocalDate { | |
| 881 | + int64_t local_date; | |
| 882 | +}; | |
| 883 | + | |
| 880 | 884 | struct Locale { |
| 881 | 885 | int64_t locale; |
| 882 | 886 | }; |
| @@ -913,14 +917,6 @@ struct Newtonsoft { | ||
| 913 | 917 | int64_t newtonsoft; |
| 914 | 918 | }; |
| 915 | 919 | |
| 916 | -struct Nil { | |
| 917 | - int64_t nil; | |
| 918 | -}; | |
| 919 | - | |
| 920 | -struct No { | |
| 921 | - int64_t no; | |
| 922 | -}; | |
| 923 | - | |
| 924 | 920 | struct Goto { |
| 925 | 921 | int64_t goto_goto; |
| 926 | 922 | }; |
| @@ -1007,6 +1003,7 @@ struct Obj3 { | ||
| 1007 | 1003 | struct Left * left; |
| 1008 | 1004 | struct Let * let; |
| 1009 | 1005 | struct List * list; |
| 1006 | + struct LocalDate * local_date; | |
| 1010 | 1007 | struct Locale * locale; |
| 1011 | 1008 | struct Lock * lock; |
| 1012 | 1009 | struct Map * map; |
| @@ -1016,8 +1013,6 @@ struct Obj3 { | ||
| 1016 | 1013 | struct Mutating * mutating; |
| 1017 | 1014 | struct Native * native; |
| 1018 | 1015 | struct Newtonsoft * newtonsoft; |
| 1019 | - struct Nil * nil; | |
| 1020 | - struct No * no; | |
| 1021 | 1016 | struct Goto * obj3_goto; |
| 1022 | 1017 | struct If * obj3_if; |
| 1023 | 1018 | struct Import * obj3_import; |
| @@ -1030,6 +1025,14 @@ struct Obj3 { | ||
| 1030 | 1025 | struct New * obj3_new; |
| 1031 | 1026 | }; |
| 1032 | 1027 | |
| 1028 | +struct Nil { | |
| 1029 | + int64_t nil; | |
| 1030 | +}; | |
| 1031 | + | |
| 1032 | +struct No { | |
| 1033 | + int64_t no; | |
| 1034 | +}; | |
| 1035 | + | |
| 1033 | 1036 | struct NoSuchMethod { |
| 1034 | 1037 | int64_t no_such_method; |
| 1035 | 1038 | }; |
| @@ -1158,6 +1161,14 @@ struct Of { | ||
| 1158 | 1161 | int64_t of; |
| 1159 | 1162 | }; |
| 1160 | 1163 | |
| 1164 | +struct OffsetDateTime { | |
| 1165 | + int64_t offset_date_time; | |
| 1166 | +}; | |
| 1167 | + | |
| 1168 | +struct OffsetTime { | |
| 1169 | + int64_t offset_time; | |
| 1170 | +}; | |
| 1171 | + | |
| 1161 | 1172 | struct Oneway { |
| 1162 | 1173 | int64_t oneway; |
| 1163 | 1174 | }; |
| @@ -1270,24 +1281,10 @@ struct RuntimeType { | ||
| 1270 | 1281 | int64_t runtime_type; |
| 1271 | 1282 | }; |
| 1272 | 1283 | |
| 1273 | -struct S { | |
| 1274 | - int64_t s; | |
| 1275 | -}; | |
| 1276 | - | |
| 1277 | -struct Sbyte { | |
| 1278 | - int64_t sbyte; | |
| 1279 | -}; | |
| 1280 | - | |
| 1281 | -struct Sealed { | |
| 1282 | - int64_t sealed; | |
| 1283 | -}; | |
| 1284 | - | |
| 1285 | -struct Sel { | |
| 1286 | - int64_t sel; | |
| 1287 | -}; | |
| 1288 | - | |
| 1289 | 1284 | struct Obj4 { |
| 1290 | 1285 | int64_t dummy; |
| 1286 | + struct Nil * nil; | |
| 1287 | + struct No * no; | |
| 1291 | 1288 | struct NoSuchMethod * no_such_method; |
| 1292 | 1289 | struct Nonatomic * nonatomic; |
| 1293 | 1290 | struct None * none; |
| @@ -1320,6 +1317,8 @@ struct Obj4 { | ||
| 1320 | 1317 | struct ObjectClass * object; |
| 1321 | 1318 | struct ObjectMapper * object_mapper; |
| 1322 | 1319 | struct Of * of; |
| 1320 | + struct OffsetDateTime * offset_date_time; | |
| 1321 | + struct OffsetTime * offset_time; | |
| 1323 | 1322 | struct Oneway * oneway; |
| 1324 | 1323 | struct Open * open; |
| 1325 | 1324 | struct Optional * optional; |
| @@ -1348,10 +1347,6 @@ struct Obj4 { | ||
| 1348 | 1347 | struct Rethrows * rethrows; |
| 1349 | 1348 | struct Right * right; |
| 1350 | 1349 | struct RuntimeType * runtime_type; |
| 1351 | - struct S * s; | |
| 1352 | - struct Sbyte * sbyte; | |
| 1353 | - struct Sealed * sealed; | |
| 1354 | - struct Sel * sel; | |
| 1355 | 1350 | }; |
| 1356 | 1351 | |
| 1357 | 1352 | struct KSerializer { |
| @@ -1442,10 +1437,6 @@ struct Typeof { | ||
| 1442 | 1437 | int64_t typeof_typeof; |
| 1443 | 1438 | }; |
| 1444 | 1439 | |
| 1445 | -struct Union { | |
| 1446 | - int64_t union_union; | |
| 1447 | -}; | |
| 1448 | - | |
| 1449 | 1440 | struct PrimitiveKind { |
| 1450 | 1441 | int64_t primitive_kind; |
| 1451 | 1442 | }; |
| @@ -1454,6 +1445,22 @@ struct Obj5True { | ||
| 1454 | 1445 | int64_t true_true; |
| 1455 | 1446 | }; |
| 1456 | 1447 | |
| 1448 | +struct S { | |
| 1449 | + int64_t s; | |
| 1450 | +}; | |
| 1451 | + | |
| 1452 | +struct Sbyte { | |
| 1453 | + int64_t sbyte; | |
| 1454 | +}; | |
| 1455 | + | |
| 1456 | +struct Sealed { | |
| 1457 | + int64_t sealed; | |
| 1458 | +}; | |
| 1459 | + | |
| 1460 | +struct Sel { | |
| 1461 | + int64_t sel; | |
| 1462 | +}; | |
| 1463 | + | |
| 1457 | 1464 | struct Select { |
| 1458 | 1465 | int64_t select; |
| 1459 | 1466 | }; |
| @@ -1598,22 +1605,6 @@ struct Undefined { | ||
| 1598 | 1605 | int64_t undefined; |
| 1599 | 1606 | }; |
| 1600 | 1607 | |
| 1601 | -struct UnmarshalJson { | |
| 1602 | - int64_t unmarshal_json; | |
| 1603 | -}; | |
| 1604 | - | |
| 1605 | -struct Unowned { | |
| 1606 | - int64_t unowned; | |
| 1607 | -}; | |
| 1608 | - | |
| 1609 | -struct Unsafe { | |
| 1610 | - int64_t unsafe; | |
| 1611 | -}; | |
| 1612 | - | |
| 1613 | -struct UseSerializers { | |
| 1614 | - int64_t use_serializers; | |
| 1615 | -}; | |
| 1616 | - | |
| 1617 | 1608 | struct Obj5 { |
| 1618 | 1609 | int64_t dummy; |
| 1619 | 1610 | struct KSerializer * k_serializer; |
| @@ -1638,9 +1629,12 @@ struct Obj5 { | ||
| 1638 | 1629 | struct Typeid * obj5_typeid; |
| 1639 | 1630 | struct Typename * obj5_typename; |
| 1640 | 1631 | struct Typeof * obj5_typeof; |
| 1641 | - struct Union * obj5_union; | |
| 1642 | 1632 | struct PrimitiveKind * primitive_kind; |
| 1643 | 1633 | struct Obj5True * purple_true; |
| 1634 | + struct S * s; | |
| 1635 | + struct Sbyte * sbyte; | |
| 1636 | + struct Sealed * sealed; | |
| 1637 | + struct Sel * sel; | |
| 1644 | 1638 | struct Select * select; |
| 1645 | 1639 | struct Self * self; |
| 1646 | 1640 | struct Sendable * sendable; |
| @@ -1677,10 +1671,10 @@ struct Obj5 { | ||
| 1677 | 1671 | struct Ulong * ulong; |
| 1678 | 1672 | struct Unchecked * unchecked; |
| 1679 | 1673 | struct Undefined * undefined; |
| 1680 | - struct UnmarshalJson * unmarshal_json; | |
| 1681 | - struct Unowned * unowned; | |
| 1682 | - struct Unsafe * unsafe; | |
| 1683 | - struct UseSerializers * use_serializers; | |
| 1674 | +}; | |
| 1675 | + | |
| 1676 | +struct Union { | |
| 1677 | + int64_t union_union; | |
| 1684 | 1678 | }; |
| 1685 | 1679 | |
| 1686 | 1680 | struct Unsigned { |
| @@ -1719,6 +1713,22 @@ struct XorEq { | ||
| 1719 | 1713 | int64_t xor_eq_xor_eq; |
| 1720 | 1714 | }; |
| 1721 | 1715 | |
| 1716 | +struct UnmarshalJson { | |
| 1717 | + int64_t unmarshal_json; | |
| 1718 | +}; | |
| 1719 | + | |
| 1720 | +struct Unowned { | |
| 1721 | + int64_t unowned; | |
| 1722 | +}; | |
| 1723 | + | |
| 1724 | +struct Unsafe { | |
| 1725 | + int64_t unsafe; | |
| 1726 | +}; | |
| 1727 | + | |
| 1728 | +struct UseSerializers { | |
| 1729 | + int64_t use_serializers; | |
| 1730 | +}; | |
| 1731 | + | |
| 1722 | 1732 | struct Ushort { |
| 1723 | 1733 | int64_t ushort; |
| 1724 | 1734 | }; |
| @@ -1765,6 +1775,7 @@ struct Yield { | ||
| 1765 | 1775 | |
| 1766 | 1776 | struct Obj6 { |
| 1767 | 1777 | int64_t dummy; |
| 1778 | + struct Union * obj6_union; | |
| 1768 | 1779 | struct Unsigned * obj6_unsigned; |
| 1769 | 1780 | struct Using * obj6_using; |
| 1770 | 1781 | struct Virtual * obj6_virtual; |
| @@ -1774,6 +1785,10 @@ struct Obj6 { | ||
| 1774 | 1785 | struct While * obj6_while; |
| 1775 | 1786 | struct Xor * obj6_xor; |
| 1776 | 1787 | struct XorEq * obj6_xor_eq; |
| 1788 | + struct UnmarshalJson * unmarshal_json; | |
| 1789 | + struct Unowned * unowned; | |
| 1790 | + struct Unsafe * unsafe; | |
| 1791 | + struct UseSerializers * use_serializers; | |
| 1777 | 1792 | struct Ushort * ushort; |
| 1778 | 1793 | struct Utf8JsonReader * utf8_json_reader; |
| 1779 | 1794 | struct Utf8JsonWriter * utf8_json_writer; |
| @@ -2844,6 +2859,12 @@ cJSON * cJSON_CreateList(const struct List * x); | ||
| 2844 | 2859 | char * cJSON_PrintList(const struct List * x); |
| 2845 | 2860 | void cJSON_DeleteList(struct List * x); |
| 2846 | 2861 | |
| 2862 | +struct LocalDate * cJSON_ParseLocalDate(const char * s); | |
| 2863 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j); | |
| 2864 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x); | |
| 2865 | +char * cJSON_PrintLocalDate(const struct LocalDate * x); | |
| 2866 | +void cJSON_DeleteLocalDate(struct LocalDate * x); | |
| 2867 | + | |
| 2847 | 2868 | struct Locale * cJSON_ParseLocale(const char * s); |
| 2848 | 2869 | struct Locale * cJSON_GetLocaleValue(const cJSON * j); |
| 2849 | 2870 | cJSON * cJSON_CreateLocale(const struct Locale * x); |
| @@ -2898,18 +2919,6 @@ cJSON * cJSON_CreateNewtonsoft(const struct Newtonsoft * x); | ||
| 2898 | 2919 | char * cJSON_PrintNewtonsoft(const struct Newtonsoft * x); |
| 2899 | 2920 | void cJSON_DeleteNewtonsoft(struct Newtonsoft * x); |
| 2900 | 2921 | |
| 2901 | -struct Nil * cJSON_ParseNil(const char * s); | |
| 2902 | -struct Nil * cJSON_GetNilValue(const cJSON * j); | |
| 2903 | -cJSON * cJSON_CreateNil(const struct Nil * x); | |
| 2904 | -char * cJSON_PrintNil(const struct Nil * x); | |
| 2905 | -void cJSON_DeleteNil(struct Nil * x); | |
| 2906 | - | |
| 2907 | -struct No * cJSON_ParseNo(const char * s); | |
| 2908 | -struct No * cJSON_GetNoValue(const cJSON * j); | |
| 2909 | -cJSON * cJSON_CreateNo(const struct No * x); | |
| 2910 | -char * cJSON_PrintNo(const struct No * x); | |
| 2911 | -void cJSON_DeleteNo(struct No * x); | |
| 2912 | - | |
| 2913 | 2922 | struct Goto * cJSON_ParseGoto(const char * s); |
| 2914 | 2923 | struct Goto * cJSON_GetGotoValue(const cJSON * j); |
| 2915 | 2924 | cJSON * cJSON_CreateGoto(const struct Goto * x); |
| @@ -2976,6 +2985,18 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x); | ||
| 2976 | 2985 | char * cJSON_PrintObj3(const struct Obj3 * x); |
| 2977 | 2986 | void cJSON_DeleteObj3(struct Obj3 * x); |
| 2978 | 2987 | |
| 2988 | +struct Nil * cJSON_ParseNil(const char * s); | |
| 2989 | +struct Nil * cJSON_GetNilValue(const cJSON * j); | |
| 2990 | +cJSON * cJSON_CreateNil(const struct Nil * x); | |
| 2991 | +char * cJSON_PrintNil(const struct Nil * x); | |
| 2992 | +void cJSON_DeleteNil(struct Nil * x); | |
| 2993 | + | |
| 2994 | +struct No * cJSON_ParseNo(const char * s); | |
| 2995 | +struct No * cJSON_GetNoValue(const cJSON * j); | |
| 2996 | +cJSON * cJSON_CreateNo(const struct No * x); | |
| 2997 | +char * cJSON_PrintNo(const struct No * x); | |
| 2998 | +void cJSON_DeleteNo(struct No * x); | |
| 2999 | + | |
| 2979 | 3000 | struct NoSuchMethod * cJSON_ParseNoSuchMethod(const char * s); |
| 2980 | 3001 | struct NoSuchMethod * cJSON_GetNoSuchMethodValue(const cJSON * j); |
| 2981 | 3002 | cJSON * cJSON_CreateNoSuchMethod(const struct NoSuchMethod * x); |
| @@ -3168,6 +3189,18 @@ cJSON * cJSON_CreateOf(const struct Of * x); | ||
| 3168 | 3189 | char * cJSON_PrintOf(const struct Of * x); |
| 3169 | 3190 | void cJSON_DeleteOf(struct Of * x); |
| 3170 | 3191 | |
| 3192 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s); | |
| 3193 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j); | |
| 3194 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x); | |
| 3195 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x); | |
| 3196 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x); | |
| 3197 | + | |
| 3198 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s); | |
| 3199 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j); | |
| 3200 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x); | |
| 3201 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x); | |
| 3202 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x); | |
| 3203 | + | |
| 3171 | 3204 | struct Oneway * cJSON_ParseOneway(const char * s); |
| 3172 | 3205 | struct Oneway * cJSON_GetOnewayValue(const cJSON * j); |
| 3173 | 3206 | cJSON * cJSON_CreateOneway(const struct Oneway * x); |
| @@ -3336,30 +3369,6 @@ cJSON * cJSON_CreateRuntimeType(const struct RuntimeType * x); | ||
| 3336 | 3369 | char * cJSON_PrintRuntimeType(const struct RuntimeType * x); |
| 3337 | 3370 | void cJSON_DeleteRuntimeType(struct RuntimeType * x); |
| 3338 | 3371 | |
| 3339 | -struct S * cJSON_ParseS(const char * s); | |
| 3340 | -struct S * cJSON_GetSValue(const cJSON * j); | |
| 3341 | -cJSON * cJSON_CreateS(const struct S * x); | |
| 3342 | -char * cJSON_PrintS(const struct S * x); | |
| 3343 | -void cJSON_DeleteS(struct S * x); | |
| 3344 | - | |
| 3345 | -struct Sbyte * cJSON_ParseSbyte(const char * s); | |
| 3346 | -struct Sbyte * cJSON_GetSbyteValue(const cJSON * j); | |
| 3347 | -cJSON * cJSON_CreateSbyte(const struct Sbyte * x); | |
| 3348 | -char * cJSON_PrintSbyte(const struct Sbyte * x); | |
| 3349 | -void cJSON_DeleteSbyte(struct Sbyte * x); | |
| 3350 | - | |
| 3351 | -struct Sealed * cJSON_ParseSealed(const char * s); | |
| 3352 | -struct Sealed * cJSON_GetSealedValue(const cJSON * j); | |
| 3353 | -cJSON * cJSON_CreateSealed(const struct Sealed * x); | |
| 3354 | -char * cJSON_PrintSealed(const struct Sealed * x); | |
| 3355 | -void cJSON_DeleteSealed(struct Sealed * x); | |
| 3356 | - | |
| 3357 | -struct Sel * cJSON_ParseSel(const char * s); | |
| 3358 | -struct Sel * cJSON_GetSelValue(const cJSON * j); | |
| 3359 | -cJSON * cJSON_CreateSel(const struct Sel * x); | |
| 3360 | -char * cJSON_PrintSel(const struct Sel * x); | |
| 3361 | -void cJSON_DeleteSel(struct Sel * x); | |
| 3362 | - | |
| 3363 | 3372 | struct Obj4 * cJSON_ParseObj4(const char * s); |
| 3364 | 3373 | struct Obj4 * cJSON_GetObj4Value(const cJSON * j); |
| 3365 | 3374 | cJSON * cJSON_CreateObj4(const struct Obj4 * x); |
| @@ -3498,12 +3507,6 @@ cJSON * cJSON_CreateTypeof(const struct Typeof * x); | ||
| 3498 | 3507 | char * cJSON_PrintTypeof(const struct Typeof * x); |
| 3499 | 3508 | void cJSON_DeleteTypeof(struct Typeof * x); |
| 3500 | 3509 | |
| 3501 | -struct Union * cJSON_ParseUnion(const char * s); | |
| 3502 | -struct Union * cJSON_GetUnionValue(const cJSON * j); | |
| 3503 | -cJSON * cJSON_CreateUnion(const struct Union * x); | |
| 3504 | -char * cJSON_PrintUnion(const struct Union * x); | |
| 3505 | -void cJSON_DeleteUnion(struct Union * x); | |
| 3506 | - | |
| 3507 | 3510 | struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s); |
| 3508 | 3511 | struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j); |
| 3509 | 3512 | cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x); |
| @@ -3516,6 +3519,30 @@ cJSON * cJSON_CreateObj5True(const struct Obj5True * x); | ||
| 3516 | 3519 | char * cJSON_PrintObj5True(const struct Obj5True * x); |
| 3517 | 3520 | void cJSON_DeleteObj5True(struct Obj5True * x); |
| 3518 | 3521 | |
| 3522 | +struct S * cJSON_ParseS(const char * s); | |
| 3523 | +struct S * cJSON_GetSValue(const cJSON * j); | |
| 3524 | +cJSON * cJSON_CreateS(const struct S * x); | |
| 3525 | +char * cJSON_PrintS(const struct S * x); | |
| 3526 | +void cJSON_DeleteS(struct S * x); | |
| 3527 | + | |
| 3528 | +struct Sbyte * cJSON_ParseSbyte(const char * s); | |
| 3529 | +struct Sbyte * cJSON_GetSbyteValue(const cJSON * j); | |
| 3530 | +cJSON * cJSON_CreateSbyte(const struct Sbyte * x); | |
| 3531 | +char * cJSON_PrintSbyte(const struct Sbyte * x); | |
| 3532 | +void cJSON_DeleteSbyte(struct Sbyte * x); | |
| 3533 | + | |
| 3534 | +struct Sealed * cJSON_ParseSealed(const char * s); | |
| 3535 | +struct Sealed * cJSON_GetSealedValue(const cJSON * j); | |
| 3536 | +cJSON * cJSON_CreateSealed(const struct Sealed * x); | |
| 3537 | +char * cJSON_PrintSealed(const struct Sealed * x); | |
| 3538 | +void cJSON_DeleteSealed(struct Sealed * x); | |
| 3539 | + | |
| 3540 | +struct Sel * cJSON_ParseSel(const char * s); | |
| 3541 | +struct Sel * cJSON_GetSelValue(const cJSON * j); | |
| 3542 | +cJSON * cJSON_CreateSel(const struct Sel * x); | |
| 3543 | +char * cJSON_PrintSel(const struct Sel * x); | |
| 3544 | +void cJSON_DeleteSel(struct Sel * x); | |
| 3545 | + | |
| 3519 | 3546 | struct Select * cJSON_ParseSelect(const char * s); |
| 3520 | 3547 | struct Select * cJSON_GetSelectValue(const cJSON * j); |
| 3521 | 3548 | cJSON * cJSON_CreateSelect(const struct Select * x); |
| @@ -3732,36 +3759,18 @@ cJSON * cJSON_CreateUndefined(const struct Undefined * x); | ||
| 3732 | 3759 | char * cJSON_PrintUndefined(const struct Undefined * x); |
| 3733 | 3760 | void cJSON_DeleteUndefined(struct Undefined * x); |
| 3734 | 3761 | |
| 3735 | -struct UnmarshalJson * cJSON_ParseUnmarshalJson(const char * s); | |
| 3736 | -struct UnmarshalJson * cJSON_GetUnmarshalJsonValue(const cJSON * j); | |
| 3737 | -cJSON * cJSON_CreateUnmarshalJson(const struct UnmarshalJson * x); | |
| 3738 | -char * cJSON_PrintUnmarshalJson(const struct UnmarshalJson * x); | |
| 3739 | -void cJSON_DeleteUnmarshalJson(struct UnmarshalJson * x); | |
| 3740 | - | |
| 3741 | -struct Unowned * cJSON_ParseUnowned(const char * s); | |
| 3742 | -struct Unowned * cJSON_GetUnownedValue(const cJSON * j); | |
| 3743 | -cJSON * cJSON_CreateUnowned(const struct Unowned * x); | |
| 3744 | -char * cJSON_PrintUnowned(const struct Unowned * x); | |
| 3745 | -void cJSON_DeleteUnowned(struct Unowned * x); | |
| 3746 | - | |
| 3747 | -struct Unsafe * cJSON_ParseUnsafe(const char * s); | |
| 3748 | -struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j); | |
| 3749 | -cJSON * cJSON_CreateUnsafe(const struct Unsafe * x); | |
| 3750 | -char * cJSON_PrintUnsafe(const struct Unsafe * x); | |
| 3751 | -void cJSON_DeleteUnsafe(struct Unsafe * x); | |
| 3752 | - | |
| 3753 | -struct UseSerializers * cJSON_ParseUseSerializers(const char * s); | |
| 3754 | -struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j); | |
| 3755 | -cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x); | |
| 3756 | -char * cJSON_PrintUseSerializers(const struct UseSerializers * x); | |
| 3757 | -void cJSON_DeleteUseSerializers(struct UseSerializers * x); | |
| 3758 | - | |
| 3759 | 3762 | struct Obj5 * cJSON_ParseObj5(const char * s); |
| 3760 | 3763 | struct Obj5 * cJSON_GetObj5Value(const cJSON * j); |
| 3761 | 3764 | cJSON * cJSON_CreateObj5(const struct Obj5 * x); |
| 3762 | 3765 | char * cJSON_PrintObj5(const struct Obj5 * x); |
| 3763 | 3766 | void cJSON_DeleteObj5(struct Obj5 * x); |
| 3764 | 3767 | |
| 3768 | +struct Union * cJSON_ParseUnion(const char * s); | |
| 3769 | +struct Union * cJSON_GetUnionValue(const cJSON * j); | |
| 3770 | +cJSON * cJSON_CreateUnion(const struct Union * x); | |
| 3771 | +char * cJSON_PrintUnion(const struct Union * x); | |
| 3772 | +void cJSON_DeleteUnion(struct Union * x); | |
| 3773 | + | |
| 3765 | 3774 | struct Unsigned * cJSON_ParseUnsigned(const char * s); |
| 3766 | 3775 | struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j); |
| 3767 | 3776 | cJSON * cJSON_CreateUnsigned(const struct Unsigned * x); |
| @@ -3816,6 +3825,30 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x); | ||
| 3816 | 3825 | char * cJSON_PrintXorEq(const struct XorEq * x); |
| 3817 | 3826 | void cJSON_DeleteXorEq(struct XorEq * x); |
| 3818 | 3827 | |
| 3828 | +struct UnmarshalJson * cJSON_ParseUnmarshalJson(const char * s); | |
| 3829 | +struct UnmarshalJson * cJSON_GetUnmarshalJsonValue(const cJSON * j); | |
| 3830 | +cJSON * cJSON_CreateUnmarshalJson(const struct UnmarshalJson * x); | |
| 3831 | +char * cJSON_PrintUnmarshalJson(const struct UnmarshalJson * x); | |
| 3832 | +void cJSON_DeleteUnmarshalJson(struct UnmarshalJson * x); | |
| 3833 | + | |
| 3834 | +struct Unowned * cJSON_ParseUnowned(const char * s); | |
| 3835 | +struct Unowned * cJSON_GetUnownedValue(const cJSON * j); | |
| 3836 | +cJSON * cJSON_CreateUnowned(const struct Unowned * x); | |
| 3837 | +char * cJSON_PrintUnowned(const struct Unowned * x); | |
| 3838 | +void cJSON_DeleteUnowned(struct Unowned * x); | |
| 3839 | + | |
| 3840 | +struct Unsafe * cJSON_ParseUnsafe(const char * s); | |
| 3841 | +struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j); | |
| 3842 | +cJSON * cJSON_CreateUnsafe(const struct Unsafe * x); | |
| 3843 | +char * cJSON_PrintUnsafe(const struct Unsafe * x); | |
| 3844 | +void cJSON_DeleteUnsafe(struct Unsafe * x); | |
| 3845 | + | |
| 3846 | +struct UseSerializers * cJSON_ParseUseSerializers(const char * s); | |
| 3847 | +struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j); | |
| 3848 | +cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x); | |
| 3849 | +char * cJSON_PrintUseSerializers(const struct UseSerializers * x); | |
| 3850 | +void cJSON_DeleteUseSerializers(struct UseSerializers * x); | |
| 3851 | + | |
| 3819 | 3852 | struct Ushort * cJSON_ParseUshort(const char * s); |
| 3820 | 3853 | struct Ushort * cJSON_GetUshortValue(const cJSON * j); |
| 3821 | 3854 | cJSON * cJSON_CreateUshort(const struct Ushort * x); |
Mcplusplusdefault / quicktype.hpp+491 −386
| @@ -3109,6 +3109,20 @@ namespace quicktype { | ||
| 3109 | 3109 | void set_list(const int64_t & value) { this->list = value; } |
| 3110 | 3110 | }; |
| 3111 | 3111 | |
| 3112 | + class LocalDate { | |
| 3113 | + public: | |
| 3114 | + LocalDate() = default; | |
| 3115 | + virtual ~LocalDate() = default; | |
| 3116 | + | |
| 3117 | + private: | |
| 3118 | + int64_t local_date; | |
| 3119 | + | |
| 3120 | + public: | |
| 3121 | + const int64_t & get_local_date() const { return local_date; } | |
| 3122 | + int64_t & get_mutable_local_date() { return local_date; } | |
| 3123 | + void set_local_date(const int64_t & value) { this->local_date = value; } | |
| 3124 | + }; | |
| 3125 | + | |
| 3112 | 3126 | class Locale { |
| 3113 | 3127 | public: |
| 3114 | 3128 | Locale() = default; |
| @@ -3235,34 +3249,6 @@ namespace quicktype { | ||
| 3235 | 3249 | void set_newtonsoft(const int64_t & value) { this->newtonsoft = value; } |
| 3236 | 3250 | }; |
| 3237 | 3251 | |
| 3238 | - class Nil { | |
| 3239 | - public: | |
| 3240 | - Nil() = default; | |
| 3241 | - virtual ~Nil() = default; | |
| 3242 | - | |
| 3243 | - private: | |
| 3244 | - int64_t nil; | |
| 3245 | - | |
| 3246 | - public: | |
| 3247 | - const int64_t & get_nil() const { return nil; } | |
| 3248 | - int64_t & get_mutable_nil() { return nil; } | |
| 3249 | - void set_nil(const int64_t & value) { this->nil = value; } | |
| 3250 | - }; | |
| 3251 | - | |
| 3252 | - class No { | |
| 3253 | - public: | |
| 3254 | - No() = default; | |
| 3255 | - virtual ~No() = default; | |
| 3256 | - | |
| 3257 | - private: | |
| 3258 | - int64_t no; | |
| 3259 | - | |
| 3260 | - public: | |
| 3261 | - const int64_t & get_no() const { return no; } | |
| 3262 | - int64_t & get_mutable_no() { return no; } | |
| 3263 | - void set_no(const int64_t & value) { this->no = value; } | |
| 3264 | - }; | |
| 3265 | - | |
| 3266 | 3252 | class Goto { |
| 3267 | 3253 | public: |
| 3268 | 3254 | Goto() = default; |
| @@ -3454,6 +3440,7 @@ namespace quicktype { | ||
| 3454 | 3440 | Left left; |
| 3455 | 3441 | Let let; |
| 3456 | 3442 | List list; |
| 3443 | + LocalDate local_date; | |
| 3457 | 3444 | Locale locale; |
| 3458 | 3445 | Lock lock; |
| 3459 | 3446 | Map map; |
| @@ -3463,8 +3450,6 @@ namespace quicktype { | ||
| 3463 | 3450 | Mutating mutating; |
| 3464 | 3451 | Native native; |
| 3465 | 3452 | Newtonsoft newtonsoft; |
| 3466 | - Nil nil; | |
| 3467 | - No no; | |
| 3468 | 3453 | Goto obj3_goto; |
| 3469 | 3454 | If obj3_if; |
| 3470 | 3455 | Import obj3_import; |
| @@ -3657,6 +3642,10 @@ namespace quicktype { | ||
| 3657 | 3642 | List & get_mutable_list() { return list; } |
| 3658 | 3643 | void set_list(const List & value) { this->list = value; } |
| 3659 | 3644 | |
| 3645 | + const LocalDate & get_local_date() const { return local_date; } | |
| 3646 | + LocalDate & get_mutable_local_date() { return local_date; } | |
| 3647 | + void set_local_date(const LocalDate & value) { this->local_date = value; } | |
| 3648 | + | |
| 3660 | 3649 | const Locale & get_locale() const { return locale; } |
| 3661 | 3650 | Locale & get_mutable_locale() { return locale; } |
| 3662 | 3651 | void set_locale(const Locale & value) { this->locale = value; } |
| @@ -3693,14 +3682,6 @@ namespace quicktype { | ||
| 3693 | 3682 | Newtonsoft & get_mutable_newtonsoft() { return newtonsoft; } |
| 3694 | 3683 | void set_newtonsoft(const Newtonsoft & value) { this->newtonsoft = value; } |
| 3695 | 3684 | |
| 3696 | - const Nil & get_nil() const { return nil; } | |
| 3697 | - Nil & get_mutable_nil() { return nil; } | |
| 3698 | - void set_nil(const Nil & value) { this->nil = value; } | |
| 3699 | - | |
| 3700 | - const No & get_no() const { return no; } | |
| 3701 | - No & get_mutable_no() { return no; } | |
| 3702 | - void set_no(const No & value) { this->no = value; } | |
| 3703 | - | |
| 3704 | 3685 | const Goto & get_obj3_goto() const { return obj3_goto; } |
| 3705 | 3686 | Goto & get_mutable_obj3_goto() { return obj3_goto; } |
| 3706 | 3687 | void set_obj3_goto(const Goto & value) { this->obj3_goto = value; } |
| @@ -3742,6 +3723,34 @@ namespace quicktype { | ||
| 3742 | 3723 | void set_obj3_new(const New & value) { this->obj3_new = value; } |
| 3743 | 3724 | }; |
| 3744 | 3725 | |
| 3726 | + class Nil { | |
| 3727 | + public: | |
| 3728 | + Nil() = default; | |
| 3729 | + virtual ~Nil() = default; | |
| 3730 | + | |
| 3731 | + private: | |
| 3732 | + int64_t nil; | |
| 3733 | + | |
| 3734 | + public: | |
| 3735 | + const int64_t & get_nil() const { return nil; } | |
| 3736 | + int64_t & get_mutable_nil() { return nil; } | |
| 3737 | + void set_nil(const int64_t & value) { this->nil = value; } | |
| 3738 | + }; | |
| 3739 | + | |
| 3740 | + class No { | |
| 3741 | + public: | |
| 3742 | + No() = default; | |
| 3743 | + virtual ~No() = default; | |
| 3744 | + | |
| 3745 | + private: | |
| 3746 | + int64_t no; | |
| 3747 | + | |
| 3748 | + public: | |
| 3749 | + const int64_t & get_no() const { return no; } | |
| 3750 | + int64_t & get_mutable_no() { return no; } | |
| 3751 | + void set_no(const int64_t & value) { this->no = value; } | |
| 3752 | + }; | |
| 3753 | + | |
| 3745 | 3754 | class NoSuchMethod { |
| 3746 | 3755 | public: |
| 3747 | 3756 | NoSuchMethod() = default; |
| @@ -4176,6 +4185,34 @@ namespace quicktype { | ||
| 4176 | 4185 | void set_of(const int64_t & value) { this->of = value; } |
| 4177 | 4186 | }; |
| 4178 | 4187 | |
| 4188 | + class OffsetDateTime { | |
| 4189 | + public: | |
| 4190 | + OffsetDateTime() = default; | |
| 4191 | + virtual ~OffsetDateTime() = default; | |
| 4192 | + | |
| 4193 | + private: | |
| 4194 | + int64_t offset_date_time; | |
| 4195 | + | |
| 4196 | + public: | |
| 4197 | + const int64_t & get_offset_date_time() const { return offset_date_time; } | |
| 4198 | + int64_t & get_mutable_offset_date_time() { return offset_date_time; } | |
| 4199 | + void set_offset_date_time(const int64_t & value) { this->offset_date_time = value; } | |
| 4200 | + }; | |
| 4201 | + | |
| 4202 | + class OffsetTime { | |
| 4203 | + public: | |
| 4204 | + OffsetTime() = default; | |
| 4205 | + virtual ~OffsetTime() = default; | |
| 4206 | + | |
| 4207 | + private: | |
| 4208 | + int64_t offset_time; | |
| 4209 | + | |
| 4210 | + public: | |
| 4211 | + const int64_t & get_offset_time() const { return offset_time; } | |
| 4212 | + int64_t & get_mutable_offset_time() { return offset_time; } | |
| 4213 | + void set_offset_time(const int64_t & value) { this->offset_time = value; } | |
| 4214 | + }; | |
| 4215 | + | |
| 4179 | 4216 | class Oneway { |
| 4180 | 4217 | public: |
| 4181 | 4218 | Oneway() = default; |
| @@ -4582,62 +4619,6 @@ namespace quicktype { | ||
| 4582 | 4619 | void set_runtime_type(const int64_t & value) { this->runtime_type = value; } |
| 4583 | 4620 | }; |
| 4584 | 4621 | |
| 4585 | - class S { | |
| 4586 | - public: | |
| 4587 | - S() = default; | |
| 4588 | - virtual ~S() = default; | |
| 4589 | - | |
| 4590 | - private: | |
| 4591 | - int64_t s; | |
| 4592 | - | |
| 4593 | - public: | |
| 4594 | - const int64_t & get_s() const { return s; } | |
| 4595 | - int64_t & get_mutable_s() { return s; } | |
| 4596 | - void set_s(const int64_t & value) { this->s = value; } | |
| 4597 | - }; | |
| 4598 | - | |
| 4599 | - class Sbyte { | |
| 4600 | - public: | |
| 4601 | - Sbyte() = default; | |
| 4602 | - virtual ~Sbyte() = default; | |
| 4603 | - | |
| 4604 | - private: | |
| 4605 | - int64_t sbyte; | |
| 4606 | - | |
| 4607 | - public: | |
| 4608 | - const int64_t & get_sbyte() const { return sbyte; } | |
| 4609 | - int64_t & get_mutable_sbyte() { return sbyte; } | |
| 4610 | - void set_sbyte(const int64_t & value) { this->sbyte = value; } | |
| 4611 | - }; | |
| 4612 | - | |
| 4613 | - class Sealed { | |
| 4614 | - public: | |
| 4615 | - Sealed() = default; | |
| 4616 | - virtual ~Sealed() = default; | |
| 4617 | - | |
| 4618 | - private: | |
| 4619 | - int64_t sealed; | |
| 4620 | - | |
| 4621 | - public: | |
| 4622 | - const int64_t & get_sealed() const { return sealed; } | |
| 4623 | - int64_t & get_mutable_sealed() { return sealed; } | |
| 4624 | - void set_sealed(const int64_t & value) { this->sealed = value; } | |
| 4625 | - }; | |
| 4626 | - | |
| 4627 | - class Sel { | |
| 4628 | - public: | |
| 4629 | - Sel() = default; | |
| 4630 | - virtual ~Sel() = default; | |
| 4631 | - | |
| 4632 | - private: | |
| 4633 | - int64_t sel; | |
| 4634 | - | |
| 4635 | - public: | |
| 4636 | - const int64_t & get_sel() const { return sel; } | |
| 4637 | - int64_t & get_mutable_sel() { return sel; } | |
| 4638 | - void set_sel(const int64_t & value) { this->sel = value; } | |
| 4639 | - }; | |
| 4640 | - | |
| 4641 | 4622 | class Obj4 { |
| 4642 | 4623 | public: |
| 4643 | 4624 | Obj4() = default; |
| @@ -4645,6 +4626,8 @@ namespace quicktype { | ||
| 4645 | 4626 | |
| 4646 | 4627 | private: |
| 4647 | 4628 | int64_t dummy; |
| 4629 | + Nil nil; | |
| 4630 | + No no; | |
| 4648 | 4631 | NoSuchMethod no_such_method; |
| 4649 | 4632 | Nonatomic nonatomic; |
| 4650 | 4633 | None none; |
| @@ -4676,6 +4659,8 @@ namespace quicktype { | ||
| 4676 | 4659 | Object object; |
| 4677 | 4660 | ObjectMapper object_mapper; |
| 4678 | 4661 | Of of; |
| 4662 | + OffsetDateTime offset_date_time; | |
| 4663 | + OffsetTime offset_time; | |
| 4679 | 4664 | Oneway oneway; |
| 4680 | 4665 | Open open; |
| 4681 | 4666 | Optional optional; |
| @@ -4705,16 +4690,20 @@ namespace quicktype { | ||
| 4705 | 4690 | Rethrows rethrows; |
| 4706 | 4691 | Right right; |
| 4707 | 4692 | RuntimeType runtime_type; |
| 4708 | - S s; | |
| 4709 | - Sbyte sbyte; | |
| 4710 | - Sealed sealed; | |
| 4711 | - Sel sel; | |
| 4712 | 4693 | |
| 4713 | 4694 | public: |
| 4714 | 4695 | const int64_t & get_dummy() const { return dummy; } |
| 4715 | 4696 | int64_t & get_mutable_dummy() { return dummy; } |
| 4716 | 4697 | void set_dummy(const int64_t & value) { this->dummy = value; } |
| 4717 | 4698 | |
| 4699 | + const Nil & get_nil() const { return nil; } | |
| 4700 | + Nil & get_mutable_nil() { return nil; } | |
| 4701 | + void set_nil(const Nil & value) { this->nil = value; } | |
| 4702 | + | |
| 4703 | + const No & get_no() const { return no; } | |
| 4704 | + No & get_mutable_no() { return no; } | |
| 4705 | + void set_no(const No & value) { this->no = value; } | |
| 4706 | + | |
| 4718 | 4707 | const NoSuchMethod & get_no_such_method() const { return no_such_method; } |
| 4719 | 4708 | NoSuchMethod & get_mutable_no_such_method() { return no_such_method; } |
| 4720 | 4709 | void set_no_such_method(const NoSuchMethod & value) { this->no_such_method = value; } |
| @@ -4839,6 +4828,14 @@ namespace quicktype { | ||
| 4839 | 4828 | Of & get_mutable_of() { return of; } |
| 4840 | 4829 | void set_of(const Of & value) { this->of = value; } |
| 4841 | 4830 | |
| 4831 | + const OffsetDateTime & get_offset_date_time() const { return offset_date_time; } | |
| 4832 | + OffsetDateTime & get_mutable_offset_date_time() { return offset_date_time; } | |
| 4833 | + void set_offset_date_time(const OffsetDateTime & value) { this->offset_date_time = value; } | |
| 4834 | + | |
| 4835 | + const OffsetTime & get_offset_time() const { return offset_time; } | |
| 4836 | + OffsetTime & get_mutable_offset_time() { return offset_time; } | |
| 4837 | + void set_offset_time(const OffsetTime & value) { this->offset_time = value; } | |
| 4838 | + | |
| 4842 | 4839 | const Oneway & get_oneway() const { return oneway; } |
| 4843 | 4840 | Oneway & get_mutable_oneway() { return oneway; } |
| 4844 | 4841 | void set_oneway(const Oneway & value) { this->oneway = value; } |
| @@ -4954,22 +4951,6 @@ namespace quicktype { | ||
| 4954 | 4951 | const RuntimeType & get_runtime_type() const { return runtime_type; } |
| 4955 | 4952 | RuntimeType & get_mutable_runtime_type() { return runtime_type; } |
| 4956 | 4953 | void set_runtime_type(const RuntimeType & value) { this->runtime_type = value; } |
| 4957 | - | |
| 4958 | - const S & get_s() const { return s; } | |
| 4959 | - S & get_mutable_s() { return s; } | |
| 4960 | - void set_s(const S & value) { this->s = value; } | |
| 4961 | - | |
| 4962 | - const Sbyte & get_sbyte() const { return sbyte; } | |
| 4963 | - Sbyte & get_mutable_sbyte() { return sbyte; } | |
| 4964 | - void set_sbyte(const Sbyte & value) { this->sbyte = value; } | |
| 4965 | - | |
| 4966 | - const Sealed & get_sealed() const { return sealed; } | |
| 4967 | - Sealed & get_mutable_sealed() { return sealed; } | |
| 4968 | - void set_sealed(const Sealed & value) { this->sealed = value; } | |
| 4969 | - | |
| 4970 | - const Sel & get_sel() const { return sel; } | |
| 4971 | - Sel & get_mutable_sel() { return sel; } | |
| 4972 | - void set_sel(const Sel & value) { this->sel = value; } | |
| 4973 | 4954 | }; |
| 4974 | 4955 | |
| 4975 | 4956 | class KSerializer { |
| @@ -5266,20 +5247,6 @@ namespace quicktype { | ||
| 5266 | 5247 | void set_typename_typename(const int64_t & value) { this->typename_typename = value; } |
| 5267 | 5248 | }; |
| 5268 | 5249 | |
| 5269 | - class Union { | |
| 5270 | - public: | |
| 5271 | - Union() = default; | |
| 5272 | - virtual ~Union() = default; | |
| 5273 | - | |
| 5274 | - private: | |
| 5275 | - int64_t union_union; | |
| 5276 | - | |
| 5277 | - public: | |
| 5278 | - const int64_t & get_union_union() const { return union_union; } | |
| 5279 | - int64_t & get_mutable_union_union() { return union_union; } | |
| 5280 | - void set_union_union(const int64_t & value) { this->union_union = value; } | |
| 5281 | - }; | |
| 5282 | - | |
| 5283 | 5250 | class PrimitiveKind { |
| 5284 | 5251 | public: |
| 5285 | 5252 | PrimitiveKind() = default; |
| @@ -5308,6 +5275,62 @@ namespace quicktype { | ||
| 5308 | 5275 | void set_true_true(const int64_t & value) { this->true_true = value; } |
| 5309 | 5276 | }; |
| 5310 | 5277 | |
| 5278 | + class S { | |
| 5279 | + public: | |
| 5280 | + S() = default; | |
| 5281 | + virtual ~S() = default; | |
| 5282 | + | |
| 5283 | + private: | |
| 5284 | + int64_t s; | |
| 5285 | + | |
| 5286 | + public: | |
| 5287 | + const int64_t & get_s() const { return s; } | |
| 5288 | + int64_t & get_mutable_s() { return s; } | |
| 5289 | + void set_s(const int64_t & value) { this->s = value; } | |
| 5290 | + }; | |
| 5291 | + | |
| 5292 | + class Sbyte { | |
| 5293 | + public: | |
| 5294 | + Sbyte() = default; | |
| 5295 | + virtual ~Sbyte() = default; | |
| 5296 | + | |
| 5297 | + private: | |
| 5298 | + int64_t sbyte; | |
| 5299 | + | |
| 5300 | + public: | |
| 5301 | + const int64_t & get_sbyte() const { return sbyte; } | |
| 5302 | + int64_t & get_mutable_sbyte() { return sbyte; } | |
| 5303 | + void set_sbyte(const int64_t & value) { this->sbyte = value; } | |
| 5304 | + }; | |
| 5305 | + | |
| 5306 | + class Sealed { | |
| 5307 | + public: | |
| 5308 | + Sealed() = default; | |
| 5309 | + virtual ~Sealed() = default; | |
| 5310 | + | |
| 5311 | + private: | |
| 5312 | + int64_t sealed; | |
| 5313 | + | |
| 5314 | + public: | |
| 5315 | + const int64_t & get_sealed() const { return sealed; } | |
| 5316 | + int64_t & get_mutable_sealed() { return sealed; } | |
| 5317 | + void set_sealed(const int64_t & value) { this->sealed = value; } | |
| 5318 | + }; | |
| 5319 | + | |
| 5320 | + class Sel { | |
| 5321 | + public: | |
| 5322 | + Sel() = default; | |
| 5323 | + virtual ~Sel() = default; | |
| 5324 | + | |
| 5325 | + private: | |
| 5326 | + int64_t sel; | |
| 5327 | + | |
| 5328 | + public: | |
| 5329 | + const int64_t & get_sel() const { return sel; } | |
| 5330 | + int64_t & get_mutable_sel() { return sel; } | |
| 5331 | + void set_sel(const int64_t & value) { this->sel = value; } | |
| 5332 | + }; | |
| 5333 | + | |
| 5311 | 5334 | class Select { |
| 5312 | 5335 | public: |
| 5313 | 5336 | Select() = default; |
| @@ -5826,66 +5849,10 @@ namespace quicktype { | ||
| 5826 | 5849 | void set_undefined(const int64_t & value) { this->undefined = value; } |
| 5827 | 5850 | }; |
| 5828 | 5851 | |
| 5829 | - class UnmarshalJson { | |
| 5852 | + class Obj5 { | |
| 5830 | 5853 | public: |
| 5831 | - UnmarshalJson() = default; | |
| 5832 | - virtual ~UnmarshalJson() = default; | |
| 5833 | - | |
| 5834 | - private: | |
| 5835 | - int64_t unmarshal_json; | |
| 5836 | - | |
| 5837 | - public: | |
| 5838 | - const int64_t & get_unmarshal_json() const { return unmarshal_json; } | |
| 5839 | - int64_t & get_mutable_unmarshal_json() { return unmarshal_json; } | |
| 5840 | - void set_unmarshal_json(const int64_t & value) { this->unmarshal_json = value; } | |
| 5841 | - }; | |
| 5842 | - | |
| 5843 | - class Unowned { | |
| 5844 | - public: | |
| 5845 | - Unowned() = default; | |
| 5846 | - virtual ~Unowned() = default; | |
| 5847 | - | |
| 5848 | - private: | |
| 5849 | - int64_t unowned; | |
| 5850 | - | |
| 5851 | - public: | |
| 5852 | - const int64_t & get_unowned() const { return unowned; } | |
| 5853 | - int64_t & get_mutable_unowned() { return unowned; } | |
| 5854 | - void set_unowned(const int64_t & value) { this->unowned = value; } | |
| 5855 | - }; | |
| 5856 | - | |
| 5857 | - class Unsafe { | |
| 5858 | - public: | |
| 5859 | - Unsafe() = default; | |
| 5860 | - virtual ~Unsafe() = default; | |
| 5861 | - | |
| 5862 | - private: | |
| 5863 | - int64_t unsafe; | |
| 5864 | - | |
| 5865 | - public: | |
| 5866 | - const int64_t & get_unsafe() const { return unsafe; } | |
| 5867 | - int64_t & get_mutable_unsafe() { return unsafe; } | |
| 5868 | - void set_unsafe(const int64_t & value) { this->unsafe = value; } | |
| 5869 | - }; | |
| 5870 | - | |
| 5871 | - class UseSerializers { | |
| 5872 | - public: | |
| 5873 | - UseSerializers() = default; | |
| 5874 | - virtual ~UseSerializers() = default; | |
| 5875 | - | |
| 5876 | - private: | |
| 5877 | - int64_t use_serializers; | |
| 5878 | - | |
| 5879 | - public: | |
| 5880 | - const int64_t & get_use_serializers() const { return use_serializers; } | |
| 5881 | - int64_t & get_mutable_use_serializers() { return use_serializers; } | |
| 5882 | - void set_use_serializers(const int64_t & value) { this->use_serializers = value; } | |
| 5883 | - }; | |
| 5884 | - | |
| 5885 | - class Obj5 { | |
| 5886 | - public: | |
| 5887 | - Obj5() = default; | |
| 5888 | - virtual ~Obj5() = default; | |
| 5854 | + Obj5() = default; | |
| 5855 | + virtual ~Obj5() = default; | |
| 5889 | 5856 | |
| 5890 | 5857 | private: |
| 5891 | 5858 | int64_t dummy; |
| @@ -5910,9 +5877,12 @@ namespace quicktype { | ||
| 5910 | 5877 | Typedef obj5_typedef; |
| 5911 | 5878 | Typeid obj5_typeid; |
| 5912 | 5879 | Typename obj5_typename; |
| 5913 | - Union obj5_union; | |
| 5914 | 5880 | PrimitiveKind primitive_kind; |
| 5915 | 5881 | TrueClass purple_true; |
| 5882 | + S s; | |
| 5883 | + Sbyte sbyte; | |
| 5884 | + Sealed sealed; | |
| 5885 | + Sel sel; | |
| 5916 | 5886 | Select select; |
| 5917 | 5887 | Self self; |
| 5918 | 5888 | Sendable sendable; |
| @@ -5950,10 +5920,6 @@ namespace quicktype { | ||
| 5950 | 5920 | Ulong ulong; |
| 5951 | 5921 | Unchecked unchecked; |
| 5952 | 5922 | Undefined undefined; |
| 5953 | - UnmarshalJson unmarshal_json; | |
| 5954 | - Unowned unowned; | |
| 5955 | - Unsafe unsafe; | |
| 5956 | - UseSerializers use_serializers; | |
| 5957 | 5923 | |
| 5958 | 5924 | public: |
| 5959 | 5925 | const int64_t & get_dummy() const { return dummy; } |
| @@ -6044,10 +6010,6 @@ namespace quicktype { | ||
| 6044 | 6010 | Typename & get_mutable_obj5_typename() { return obj5_typename; } |
| 6045 | 6011 | void set_obj5_typename(const Typename & value) { this->obj5_typename = value; } |
| 6046 | 6012 | |
| 6047 | - const Union & get_obj5_union() const { return obj5_union; } | |
| 6048 | - Union & get_mutable_obj5_union() { return obj5_union; } | |
| 6049 | - void set_obj5_union(const Union & value) { this->obj5_union = value; } | |
| 6050 | - | |
| 6051 | 6013 | const PrimitiveKind & get_primitive_kind() const { return primitive_kind; } |
| 6052 | 6014 | PrimitiveKind & get_mutable_primitive_kind() { return primitive_kind; } |
| 6053 | 6015 | void set_primitive_kind(const PrimitiveKind & value) { this->primitive_kind = value; } |
| @@ -6056,6 +6018,22 @@ namespace quicktype { | ||
| 6056 | 6018 | TrueClass & get_mutable_purple_true() { return purple_true; } |
| 6057 | 6019 | void set_purple_true(const TrueClass & value) { this->purple_true = value; } |
| 6058 | 6020 | |
| 6021 | + const S & get_s() const { return s; } | |
| 6022 | + S & get_mutable_s() { return s; } | |
| 6023 | + void set_s(const S & value) { this->s = value; } | |
| 6024 | + | |
| 6025 | + const Sbyte & get_sbyte() const { return sbyte; } | |
| 6026 | + Sbyte & get_mutable_sbyte() { return sbyte; } | |
| 6027 | + void set_sbyte(const Sbyte & value) { this->sbyte = value; } | |
| 6028 | + | |
| 6029 | + const Sealed & get_sealed() const { return sealed; } | |
| 6030 | + Sealed & get_mutable_sealed() { return sealed; } | |
| 6031 | + void set_sealed(const Sealed & value) { this->sealed = value; } | |
| 6032 | + | |
| 6033 | + const Sel & get_sel() const { return sel; } | |
| 6034 | + Sel & get_mutable_sel() { return sel; } | |
| 6035 | + void set_sel(const Sel & value) { this->sel = value; } | |
| 6036 | + | |
| 6059 | 6037 | const Select & get_select() const { return select; } |
| 6060 | 6038 | Select & get_mutable_select() { return select; } |
| 6061 | 6039 | void set_select(const Select & value) { this->select = value; } |
| @@ -6203,22 +6181,20 @@ namespace quicktype { | ||
| 6203 | 6181 | const Undefined & get_undefined() const { return undefined; } |
| 6204 | 6182 | Undefined & get_mutable_undefined() { return undefined; } |
| 6205 | 6183 | void set_undefined(const Undefined & value) { this->undefined = value; } |
| 6184 | + }; | |
| 6206 | 6185 | |
| 6207 | - const UnmarshalJson & get_unmarshal_json() const { return unmarshal_json; } | |
| 6208 | - UnmarshalJson & get_mutable_unmarshal_json() { return unmarshal_json; } | |
| 6209 | - void set_unmarshal_json(const UnmarshalJson & value) { this->unmarshal_json = value; } | |
| 6210 | - | |
| 6211 | - const Unowned & get_unowned() const { return unowned; } | |
| 6212 | - Unowned & get_mutable_unowned() { return unowned; } | |
| 6213 | - void set_unowned(const Unowned & value) { this->unowned = value; } | |
| 6186 | + class Union { | |
| 6187 | + public: | |
| 6188 | + Union() = default; | |
| 6189 | + virtual ~Union() = default; | |
| 6214 | 6190 | |
| 6215 | - const Unsafe & get_unsafe() const { return unsafe; } | |
| 6216 | - Unsafe & get_mutable_unsafe() { return unsafe; } | |
| 6217 | - void set_unsafe(const Unsafe & value) { this->unsafe = value; } | |
| 6191 | + private: | |
| 6192 | + int64_t union_union; | |
| 6218 | 6193 | |
| 6219 | - const UseSerializers & get_use_serializers() const { return use_serializers; } | |
| 6220 | - UseSerializers & get_mutable_use_serializers() { return use_serializers; } | |
| 6221 | - void set_use_serializers(const UseSerializers & value) { this->use_serializers = value; } | |
| 6194 | + public: | |
| 6195 | + const int64_t & get_union_union() const { return union_union; } | |
| 6196 | + int64_t & get_mutable_union_union() { return union_union; } | |
| 6197 | + void set_union_union(const int64_t & value) { this->union_union = value; } | |
| 6222 | 6198 | }; |
| 6223 | 6199 | |
| 6224 | 6200 | class Unsigned { |
| @@ -6347,6 +6323,62 @@ namespace quicktype { | ||
| 6347 | 6323 | void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; } |
| 6348 | 6324 | }; |
| 6349 | 6325 | |
| 6326 | + class UnmarshalJson { | |
| 6327 | + public: | |
| 6328 | + UnmarshalJson() = default; | |
| 6329 | + virtual ~UnmarshalJson() = default; | |
| 6330 | + | |
| 6331 | + private: | |
| 6332 | + int64_t unmarshal_json; | |
| 6333 | + | |
| 6334 | + public: | |
| 6335 | + const int64_t & get_unmarshal_json() const { return unmarshal_json; } | |
| 6336 | + int64_t & get_mutable_unmarshal_json() { return unmarshal_json; } | |
| 6337 | + void set_unmarshal_json(const int64_t & value) { this->unmarshal_json = value; } | |
| 6338 | + }; | |
| 6339 | + | |
| 6340 | + class Unowned { | |
| 6341 | + public: | |
| 6342 | + Unowned() = default; | |
| 6343 | + virtual ~Unowned() = default; | |
| 6344 | + | |
| 6345 | + private: | |
| 6346 | + int64_t unowned; | |
| 6347 | + | |
| 6348 | + public: | |
| 6349 | + const int64_t & get_unowned() const { return unowned; } | |
| 6350 | + int64_t & get_mutable_unowned() { return unowned; } | |
| 6351 | + void set_unowned(const int64_t & value) { this->unowned = value; } | |
| 6352 | + }; | |
| 6353 | + | |
| 6354 | + class Unsafe { | |
| 6355 | + public: | |
| 6356 | + Unsafe() = default; | |
| 6357 | + virtual ~Unsafe() = default; | |
| 6358 | + | |
| 6359 | + private: | |
| 6360 | + int64_t unsafe; | |
| 6361 | + | |
| 6362 | + public: | |
| 6363 | + const int64_t & get_unsafe() const { return unsafe; } | |
| 6364 | + int64_t & get_mutable_unsafe() { return unsafe; } | |
| 6365 | + void set_unsafe(const int64_t & value) { this->unsafe = value; } | |
| 6366 | + }; | |
| 6367 | + | |
| 6368 | + class UseSerializers { | |
| 6369 | + public: | |
| 6370 | + UseSerializers() = default; | |
| 6371 | + virtual ~UseSerializers() = default; | |
| 6372 | + | |
| 6373 | + private: | |
| 6374 | + int64_t use_serializers; | |
| 6375 | + | |
| 6376 | + public: | |
| 6377 | + const int64_t & get_use_serializers() const { return use_serializers; } | |
| 6378 | + int64_t & get_mutable_use_serializers() { return use_serializers; } | |
| 6379 | + void set_use_serializers(const int64_t & value) { this->use_serializers = value; } | |
| 6380 | + }; | |
| 6381 | + | |
| 6350 | 6382 | class Ushort { |
| 6351 | 6383 | public: |
| 6352 | 6384 | Ushort() = default; |
| @@ -6508,6 +6540,7 @@ namespace quicktype { | ||
| 6508 | 6540 | |
| 6509 | 6541 | private: |
| 6510 | 6542 | int64_t dummy; |
| 6543 | + Union obj6_union; | |
| 6511 | 6544 | Unsigned obj6_unsigned; |
| 6512 | 6545 | Using obj6_using; |
| 6513 | 6546 | Virtual obj6_virtual; |
| @@ -6517,6 +6550,10 @@ namespace quicktype { | ||
| 6517 | 6550 | While obj6_while; |
| 6518 | 6551 | Xor obj6_xor; |
| 6519 | 6552 | XorEq obj6_xor_eq; |
| 6553 | + UnmarshalJson unmarshal_json; | |
| 6554 | + Unowned unowned; | |
| 6555 | + Unsafe unsafe; | |
| 6556 | + UseSerializers use_serializers; | |
| 6520 | 6557 | Ushort ushort; |
| 6521 | 6558 | Utf8JsonReader utf8_json_reader; |
| 6522 | 6559 | Utf8JsonWriter utf8_json_writer; |
| @@ -6534,6 +6571,10 @@ namespace quicktype { | ||
| 6534 | 6571 | int64_t & get_mutable_dummy() { return dummy; } |
| 6535 | 6572 | void set_dummy(const int64_t & value) { this->dummy = value; } |
| 6536 | 6573 | |
| 6574 | + const Union & get_obj6_union() const { return obj6_union; } | |
| 6575 | + Union & get_mutable_obj6_union() { return obj6_union; } | |
| 6576 | + void set_obj6_union(const Union & value) { this->obj6_union = value; } | |
| 6577 | + | |
| 6537 | 6578 | const Unsigned & get_obj6_unsigned() const { return obj6_unsigned; } |
| 6538 | 6579 | Unsigned & get_mutable_obj6_unsigned() { return obj6_unsigned; } |
| 6539 | 6580 | void set_obj6_unsigned(const Unsigned & value) { this->obj6_unsigned = value; } |
| @@ -6570,6 +6611,22 @@ namespace quicktype { | ||
| 6570 | 6611 | XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; } |
| 6571 | 6612 | void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; } |
| 6572 | 6613 | |
| 6614 | + const UnmarshalJson & get_unmarshal_json() const { return unmarshal_json; } | |
| 6615 | + UnmarshalJson & get_mutable_unmarshal_json() { return unmarshal_json; } | |
| 6616 | + void set_unmarshal_json(const UnmarshalJson & value) { this->unmarshal_json = value; } | |
| 6617 | + | |
| 6618 | + const Unowned & get_unowned() const { return unowned; } | |
| 6619 | + Unowned & get_mutable_unowned() { return unowned; } | |
| 6620 | + void set_unowned(const Unowned & value) { this->unowned = value; } | |
| 6621 | + | |
| 6622 | + const Unsafe & get_unsafe() const { return unsafe; } | |
| 6623 | + Unsafe & get_mutable_unsafe() { return unsafe; } | |
| 6624 | + void set_unsafe(const Unsafe & value) { this->unsafe = value; } | |
| 6625 | + | |
| 6626 | + const UseSerializers & get_use_serializers() const { return use_serializers; } | |
| 6627 | + UseSerializers & get_mutable_use_serializers() { return use_serializers; } | |
| 6628 | + void set_use_serializers(const UseSerializers & value) { this->use_serializers = value; } | |
| 6629 | + | |
| 6573 | 6630 | const Ushort & get_ushort() const { return ushort; } |
| 6574 | 6631 | Ushort & get_mutable_ushort() { return ushort; } |
| 6575 | 6632 | void set_ushort(const Ushort & value) { this->ushort = value; } |
| @@ -7183,6 +7240,9 @@ namespace quicktype { | ||
| 7183 | 7240 | void from_json(const json & j, List & x); |
| 7184 | 7241 | void to_json(json & j, const List & x); |
| 7185 | 7242 | |
| 7243 | + void from_json(const json & j, LocalDate & x); | |
| 7244 | + void to_json(json & j, const LocalDate & x); | |
| 7245 | + | |
| 7186 | 7246 | void from_json(const json & j, Locale & x); |
| 7187 | 7247 | void to_json(json & j, const Locale & x); |
| 7188 | 7248 | |
| @@ -7210,12 +7270,6 @@ namespace quicktype { | ||
| 7210 | 7270 | void from_json(const json & j, Newtonsoft & x); |
| 7211 | 7271 | void to_json(json & j, const Newtonsoft & x); |
| 7212 | 7272 | |
| 7213 | - void from_json(const json & j, Nil & x); | |
| 7214 | - void to_json(json & j, const Nil & x); | |
| 7215 | - | |
| 7216 | - void from_json(const json & j, No & x); | |
| 7217 | - void to_json(json & j, const No & x); | |
| 7218 | - | |
| 7219 | 7273 | void from_json(const json & j, Goto & x); |
| 7220 | 7274 | void to_json(json & j, const Goto & x); |
| 7221 | 7275 | |
| @@ -7249,6 +7303,12 @@ namespace quicktype { | ||
| 7249 | 7303 | void from_json(const json & j, Obj3 & x); |
| 7250 | 7304 | void to_json(json & j, const Obj3 & x); |
| 7251 | 7305 | |
| 7306 | + void from_json(const json & j, Nil & x); | |
| 7307 | + void to_json(json & j, const Nil & x); | |
| 7308 | + | |
| 7309 | + void from_json(const json & j, No & x); | |
| 7310 | + void to_json(json & j, const No & x); | |
| 7311 | + | |
| 7252 | 7312 | void from_json(const json & j, NoSuchMethod & x); |
| 7253 | 7313 | void to_json(json & j, const NoSuchMethod & x); |
| 7254 | 7314 | |
| @@ -7342,6 +7402,12 @@ namespace quicktype { | ||
| 7342 | 7402 | void from_json(const json & j, Of & x); |
| 7343 | 7403 | void to_json(json & j, const Of & x); |
| 7344 | 7404 | |
| 7405 | + void from_json(const json & j, OffsetDateTime & x); | |
| 7406 | + void to_json(json & j, const OffsetDateTime & x); | |
| 7407 | + | |
| 7408 | + void from_json(const json & j, OffsetTime & x); | |
| 7409 | + void to_json(json & j, const OffsetTime & x); | |
| 7410 | + | |
| 7345 | 7411 | void from_json(const json & j, Oneway & x); |
| 7346 | 7412 | void to_json(json & j, const Oneway & x); |
| 7347 | 7413 | |
| @@ -7429,18 +7495,6 @@ namespace quicktype { | ||
| 7429 | 7495 | void from_json(const json & j, RuntimeType & x); |
| 7430 | 7496 | void to_json(json & j, const RuntimeType & x); |
| 7431 | 7497 | |
| 7432 | - void from_json(const json & j, S & x); | |
| 7433 | - void to_json(json & j, const S & x); | |
| 7434 | - | |
| 7435 | - void from_json(const json & j, Sbyte & x); | |
| 7436 | - void to_json(json & j, const Sbyte & x); | |
| 7437 | - | |
| 7438 | - void from_json(const json & j, Sealed & x); | |
| 7439 | - void to_json(json & j, const Sealed & x); | |
| 7440 | - | |
| 7441 | - void from_json(const json & j, Sel & x); | |
| 7442 | - void to_json(json & j, const Sel & x); | |
| 7443 | - | |
| 7444 | 7498 | void from_json(const json & j, Obj4 & x); |
| 7445 | 7499 | void to_json(json & j, const Obj4 & x); |
| 7446 | 7500 | |
| @@ -7507,15 +7561,24 @@ namespace quicktype { | ||
| 7507 | 7561 | void from_json(const json & j, Typename & x); |
| 7508 | 7562 | void to_json(json & j, const Typename & x); |
| 7509 | 7563 | |
| 7510 | - void from_json(const json & j, Union & x); | |
| 7511 | - void to_json(json & j, const Union & x); | |
| 7512 | - | |
| 7513 | 7564 | void from_json(const json & j, PrimitiveKind & x); |
| 7514 | 7565 | void to_json(json & j, const PrimitiveKind & x); |
| 7515 | 7566 | |
| 7516 | 7567 | void from_json(const json & j, TrueClass & x); |
| 7517 | 7568 | void to_json(json & j, const TrueClass & x); |
| 7518 | 7569 | |
| 7570 | + void from_json(const json & j, S & x); | |
| 7571 | + void to_json(json & j, const S & x); | |
| 7572 | + | |
| 7573 | + void from_json(const json & j, Sbyte & x); | |
| 7574 | + void to_json(json & j, const Sbyte & x); | |
| 7575 | + | |
| 7576 | + void from_json(const json & j, Sealed & x); | |
| 7577 | + void to_json(json & j, const Sealed & x); | |
| 7578 | + | |
| 7579 | + void from_json(const json & j, Sel & x); | |
| 7580 | + void to_json(json & j, const Sel & x); | |
| 7581 | + | |
| 7519 | 7582 | void from_json(const json & j, Select & x); |
| 7520 | 7583 | void to_json(json & j, const Select & x); |
| 7521 | 7584 | |
| @@ -7627,21 +7690,12 @@ namespace quicktype { | ||
| 7627 | 7690 | void from_json(const json & j, Undefined & x); |
| 7628 | 7691 | void to_json(json & j, const Undefined & x); |
| 7629 | 7692 | |
| 7630 | - void from_json(const json & j, UnmarshalJson & x); | |
| 7631 | - void to_json(json & j, const UnmarshalJson & x); | |
| 7632 | - | |
| 7633 | - void from_json(const json & j, Unowned & x); | |
| 7634 | - void to_json(json & j, const Unowned & x); | |
| 7635 | - | |
| 7636 | - void from_json(const json & j, Unsafe & x); | |
| 7637 | - void to_json(json & j, const Unsafe & x); | |
| 7638 | - | |
| 7639 | - void from_json(const json & j, UseSerializers & x); | |
| 7640 | - void to_json(json & j, const UseSerializers & x); | |
| 7641 | - | |
| 7642 | 7693 | void from_json(const json & j, Obj5 & x); |
| 7643 | 7694 | void to_json(json & j, const Obj5 & x); |
| 7644 | 7695 | |
| 7696 | + void from_json(const json & j, Union & x); | |
| 7697 | + void to_json(json & j, const Union & x); | |
| 7698 | + | |
| 7645 | 7699 | void from_json(const json & j, Unsigned & x); |
| 7646 | 7700 | void to_json(json & j, const Unsigned & x); |
| 7647 | 7701 | |
| @@ -7669,6 +7723,18 @@ namespace quicktype { | ||
| 7669 | 7723 | void from_json(const json & j, XorEq & x); |
| 7670 | 7724 | void to_json(json & j, const XorEq & x); |
| 7671 | 7725 | |
| 7726 | + void from_json(const json & j, UnmarshalJson & x); | |
| 7727 | + void to_json(json & j, const UnmarshalJson & x); | |
| 7728 | + | |
| 7729 | + void from_json(const json & j, Unowned & x); | |
| 7730 | + void to_json(json & j, const Unowned & x); | |
| 7731 | + | |
| 7732 | + void from_json(const json & j, Unsafe & x); | |
| 7733 | + void to_json(json & j, const Unsafe & x); | |
| 7734 | + | |
| 7735 | + void from_json(const json & j, UseSerializers & x); | |
| 7736 | + void to_json(json & j, const UseSerializers & x); | |
| 7737 | + | |
| 7672 | 7738 | void from_json(const json & j, Ushort & x); |
| 7673 | 7739 | void to_json(json & j, const Ushort & x); |
| 7674 | 7740 | |
| @@ -9879,6 +9945,17 @@ namespace quicktype { | ||
| 9879 | 9945 | j["list"] = x.get_list(); |
| 9880 | 9946 | } |
| 9881 | 9947 | |
| 9948 | + inline void from_json(const json & j, LocalDate& x) { | |
| 9949 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9950 | + if (j.find("LocalDate") != j.end() && !j.at("LocalDate").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 9951 | + x.set_local_date(j.at("LocalDate").get<int64_t>()); | |
| 9952 | + } | |
| 9953 | + | |
| 9954 | + inline void to_json(json & j, const LocalDate & x) { | |
| 9955 | + j = json::object(); | |
| 9956 | + j["LocalDate"] = x.get_local_date(); | |
| 9957 | + } | |
| 9958 | + | |
| 9882 | 9959 | inline void from_json(const json & j, Locale& x) { |
| 9883 | 9960 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 9884 | 9961 | if (j.find("Locale") != j.end() && !j.at("Locale").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -9978,29 +10055,7 @@ namespace quicktype { | ||
| 9978 | 10055 | j["newtonsoft"] = x.get_newtonsoft(); |
| 9979 | 10056 | } |
| 9980 | 10057 | |
| 9981 | - inline void from_json(const json & j, Nil& x) { | |
| 9982 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9983 | - if (j.find("nil") != j.end() && !j.at("nil").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 9984 | - x.set_nil(j.at("nil").get<int64_t>()); | |
| 9985 | - } | |
| 9986 | - | |
| 9987 | - inline void to_json(json & j, const Nil & x) { | |
| 9988 | - j = json::object(); | |
| 9989 | - j["nil"] = x.get_nil(); | |
| 9990 | - } | |
| 9991 | - | |
| 9992 | - inline void from_json(const json & j, No& x) { | |
| 9993 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9994 | - if (j.find("NO") != j.end() && !j.at("NO").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 9995 | - x.set_no(j.at("NO").get<int64_t>()); | |
| 9996 | - } | |
| 9997 | - | |
| 9998 | - inline void to_json(json & j, const No & x) { | |
| 9999 | - j = json::object(); | |
| 10000 | - j["NO"] = x.get_no(); | |
| 10001 | - } | |
| 10002 | - | |
| 10003 | - inline void from_json(const json & j, Goto& x) { | |
| 10058 | + inline void from_json(const json & j, Goto& x) { | |
| 10004 | 10059 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10005 | 10060 | if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer"); |
| 10006 | 10061 | x.set_goto_goto(j.at("goto").get<int64_t>()); |
| @@ -10158,6 +10213,7 @@ namespace quicktype { | ||
| 10158 | 10213 | x.set_left(j.at("left").get<Left>()); |
| 10159 | 10214 | x.set_let(j.at("let").get<Let>()); |
| 10160 | 10215 | x.set_list(j.at("list").get<List>()); |
| 10216 | + x.set_local_date(j.at("LocalDate").get<LocalDate>()); | |
| 10161 | 10217 | x.set_locale(j.at("Locale").get<Locale>()); |
| 10162 | 10218 | x.set_lock(j.at("lock").get<Lock>()); |
| 10163 | 10219 | x.set_map(j.at("map").get<Map>()); |
| @@ -10167,8 +10223,6 @@ namespace quicktype { | ||
| 10167 | 10223 | x.set_mutating(j.at("mutating").get<Mutating>()); |
| 10168 | 10224 | x.set_native(j.at("native").get<Native>()); |
| 10169 | 10225 | x.set_newtonsoft(j.at("newtonsoft").get<Newtonsoft>()); |
| 10170 | - x.set_nil(j.at("nil").get<Nil>()); | |
| 10171 | - x.set_no(j.at("NO").get<No>()); | |
| 10172 | 10226 | x.set_obj3_goto(j.at("goto").get<Goto>()); |
| 10173 | 10227 | x.set_obj3_if(j.at("if").get<If>()); |
| 10174 | 10228 | x.set_obj3_import(j.at("import").get<Import>()); |
| @@ -10228,6 +10282,7 @@ namespace quicktype { | ||
| 10228 | 10282 | j["left"] = x.get_left(); |
| 10229 | 10283 | j["let"] = x.get_let(); |
| 10230 | 10284 | j["list"] = x.get_list(); |
| 10285 | + j["LocalDate"] = x.get_local_date(); | |
| 10231 | 10286 | j["Locale"] = x.get_locale(); |
| 10232 | 10287 | j["lock"] = x.get_lock(); |
| 10233 | 10288 | j["map"] = x.get_map(); |
| @@ -10237,8 +10292,6 @@ namespace quicktype { | ||
| 10237 | 10292 | j["mutating"] = x.get_mutating(); |
| 10238 | 10293 | j["native"] = x.get_native(); |
| 10239 | 10294 | j["newtonsoft"] = x.get_newtonsoft(); |
| 10240 | - j["nil"] = x.get_nil(); | |
| 10241 | - j["NO"] = x.get_no(); | |
| 10242 | 10295 | j["goto"] = x.get_obj3_goto(); |
| 10243 | 10296 | j["if"] = x.get_obj3_if(); |
| 10244 | 10297 | j["import"] = x.get_obj3_import(); |
| @@ -10251,6 +10304,28 @@ namespace quicktype { | ||
| 10251 | 10304 | j["new"] = x.get_obj3_new(); |
| 10252 | 10305 | } |
| 10253 | 10306 | |
| 10307 | + inline void from_json(const json & j, Nil& x) { | |
| 10308 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10309 | + if (j.find("nil") != j.end() && !j.at("nil").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10310 | + x.set_nil(j.at("nil").get<int64_t>()); | |
| 10311 | + } | |
| 10312 | + | |
| 10313 | + inline void to_json(json & j, const Nil & x) { | |
| 10314 | + j = json::object(); | |
| 10315 | + j["nil"] = x.get_nil(); | |
| 10316 | + } | |
| 10317 | + | |
| 10318 | + inline void from_json(const json & j, No& x) { | |
| 10319 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10320 | + if (j.find("NO") != j.end() && !j.at("NO").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10321 | + x.set_no(j.at("NO").get<int64_t>()); | |
| 10322 | + } | |
| 10323 | + | |
| 10324 | + inline void to_json(json & j, const No & x) { | |
| 10325 | + j = json::object(); | |
| 10326 | + j["NO"] = x.get_no(); | |
| 10327 | + } | |
| 10328 | + | |
| 10254 | 10329 | inline void from_json(const json & j, NoSuchMethod& x) { |
| 10255 | 10330 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10256 | 10331 | if (j.find("noSuchMethod") != j.end() && !j.at("noSuchMethod").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10592,6 +10667,28 @@ namespace quicktype { | ||
| 10592 | 10667 | j["of"] = x.get_of(); |
| 10593 | 10668 | } |
| 10594 | 10669 | |
| 10670 | + inline void from_json(const json & j, OffsetDateTime& x) { | |
| 10671 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10672 | + if (j.find("OffsetDateTime") != j.end() && !j.at("OffsetDateTime").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10673 | + x.set_offset_date_time(j.at("OffsetDateTime").get<int64_t>()); | |
| 10674 | + } | |
| 10675 | + | |
| 10676 | + inline void to_json(json & j, const OffsetDateTime & x) { | |
| 10677 | + j = json::object(); | |
| 10678 | + j["OffsetDateTime"] = x.get_offset_date_time(); | |
| 10679 | + } | |
| 10680 | + | |
| 10681 | + inline void from_json(const json & j, OffsetTime& x) { | |
| 10682 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10683 | + if (j.find("OffsetTime") != j.end() && !j.at("OffsetTime").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10684 | + x.set_offset_time(j.at("OffsetTime").get<int64_t>()); | |
| 10685 | + } | |
| 10686 | + | |
| 10687 | + inline void to_json(json & j, const OffsetTime & x) { | |
| 10688 | + j = json::object(); | |
| 10689 | + j["OffsetTime"] = x.get_offset_time(); | |
| 10690 | + } | |
| 10691 | + | |
| 10595 | 10692 | inline void from_json(const json & j, Oneway& x) { |
| 10596 | 10693 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10597 | 10694 | if (j.find("oneway") != j.end() && !j.at("oneway").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10911,54 +11008,12 @@ namespace quicktype { | ||
| 10911 | 11008 | j["runtimeType"] = x.get_runtime_type(); |
| 10912 | 11009 | } |
| 10913 | 11010 | |
| 10914 | - inline void from_json(const json & j, S& x) { | |
| 10915 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10916 | - if (j.find("s") != j.end() && !j.at("s").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10917 | - x.set_s(j.at("s").get<int64_t>()); | |
| 10918 | - } | |
| 10919 | - | |
| 10920 | - inline void to_json(json & j, const S & x) { | |
| 10921 | - j = json::object(); | |
| 10922 | - j["s"] = x.get_s(); | |
| 10923 | - } | |
| 10924 | - | |
| 10925 | - inline void from_json(const json & j, Sbyte& x) { | |
| 10926 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10927 | - if (j.find("sbyte") != j.end() && !j.at("sbyte").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10928 | - x.set_sbyte(j.at("sbyte").get<int64_t>()); | |
| 10929 | - } | |
| 10930 | - | |
| 10931 | - inline void to_json(json & j, const Sbyte & x) { | |
| 10932 | - j = json::object(); | |
| 10933 | - j["sbyte"] = x.get_sbyte(); | |
| 10934 | - } | |
| 10935 | - | |
| 10936 | - inline void from_json(const json & j, Sealed& x) { | |
| 10937 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10938 | - if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10939 | - x.set_sealed(j.at("sealed").get<int64_t>()); | |
| 10940 | - } | |
| 10941 | - | |
| 10942 | - inline void to_json(json & j, const Sealed & x) { | |
| 10943 | - j = json::object(); | |
| 10944 | - j["sealed"] = x.get_sealed(); | |
| 10945 | - } | |
| 10946 | - | |
| 10947 | - inline void from_json(const json & j, Sel& x) { | |
| 10948 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10949 | - if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10950 | - x.set_sel(j.at("SEL").get<int64_t>()); | |
| 10951 | - } | |
| 10952 | - | |
| 10953 | - inline void to_json(json & j, const Sel & x) { | |
| 10954 | - j = json::object(); | |
| 10955 | - j["SEL"] = x.get_sel(); | |
| 10956 | - } | |
| 10957 | - | |
| 10958 | 11011 | inline void from_json(const json & j, Obj4& x) { |
| 10959 | 11012 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10960 | 11013 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| 10961 | 11014 | x.set_dummy(j.at("dummy").get<int64_t>()); |
| 11015 | + x.set_nil(j.at("nil").get<Nil>()); | |
| 11016 | + x.set_no(j.at("NO").get<No>()); | |
| 10962 | 11017 | x.set_no_such_method(j.at("noSuchMethod").get<NoSuchMethod>()); |
| 10963 | 11018 | x.set_nonatomic(j.at("nonatomic").get<Nonatomic>()); |
| 10964 | 11019 | x.set_none(j.at("None").get<None>()); |
| @@ -10990,6 +11045,8 @@ namespace quicktype { | ||
| 10990 | 11045 | x.set_object(j.at("object").get<Object>()); |
| 10991 | 11046 | x.set_object_mapper(j.at("ObjectMapper").get<ObjectMapper>()); |
| 10992 | 11047 | x.set_of(j.at("of").get<Of>()); |
| 11048 | + x.set_offset_date_time(j.at("OffsetDateTime").get<OffsetDateTime>()); | |
| 11049 | + x.set_offset_time(j.at("OffsetTime").get<OffsetTime>()); | |
| 10993 | 11050 | x.set_oneway(j.at("oneway").get<Oneway>()); |
| 10994 | 11051 | x.set_open(j.at("open").get<Open>()); |
| 10995 | 11052 | x.set_optional(j.at("optional").get<Optional>()); |
| @@ -11019,15 +11076,13 @@ namespace quicktype { | ||
| 11019 | 11076 | x.set_rethrows(j.at("rethrows").get<Rethrows>()); |
| 11020 | 11077 | x.set_right(j.at("right").get<Right>()); |
| 11021 | 11078 | x.set_runtime_type(j.at("runtimeType").get<RuntimeType>()); |
| 11022 | - x.set_s(j.at("s").get<S>()); | |
| 11023 | - x.set_sbyte(j.at("sbyte").get<Sbyte>()); | |
| 11024 | - x.set_sealed(j.at("sealed").get<Sealed>()); | |
| 11025 | - x.set_sel(j.at("SEL").get<Sel>()); | |
| 11026 | 11079 | } |
| 11027 | 11080 | |
| 11028 | 11081 | inline void to_json(json & j, const Obj4 & x) { |
| 11029 | 11082 | j = json::object(); |
| 11030 | 11083 | j["dummy"] = x.get_dummy(); |
| 11084 | + j["nil"] = x.get_nil(); | |
| 11085 | + j["NO"] = x.get_no(); | |
| 11031 | 11086 | j["noSuchMethod"] = x.get_no_such_method(); |
| 11032 | 11087 | j["nonatomic"] = x.get_nonatomic(); |
| 11033 | 11088 | j["None"] = x.get_none(); |
| @@ -11059,6 +11114,8 @@ namespace quicktype { | ||
| 11059 | 11114 | j["object"] = x.get_object(); |
| 11060 | 11115 | j["ObjectMapper"] = x.get_object_mapper(); |
| 11061 | 11116 | j["of"] = x.get_of(); |
| 11117 | + j["OffsetDateTime"] = x.get_offset_date_time(); | |
| 11118 | + j["OffsetTime"] = x.get_offset_time(); | |
| 11062 | 11119 | j["oneway"] = x.get_oneway(); |
| 11063 | 11120 | j["open"] = x.get_open(); |
| 11064 | 11121 | j["optional"] = x.get_optional(); |
| @@ -11088,10 +11145,6 @@ namespace quicktype { | ||
| 11088 | 11145 | j["rethrows"] = x.get_rethrows(); |
| 11089 | 11146 | j["right"] = x.get_right(); |
| 11090 | 11147 | j["runtimeType"] = x.get_runtime_type(); |
| 11091 | - j["s"] = x.get_s(); | |
| 11092 | - j["sbyte"] = x.get_sbyte(); | |
| 11093 | - j["sealed"] = x.get_sealed(); | |
| 11094 | - j["SEL"] = x.get_sel(); | |
| 11095 | 11148 | } |
| 11096 | 11149 | |
| 11097 | 11150 | inline void from_json(const json & j, KSerializer& x) { |
| @@ -11325,17 +11378,6 @@ namespace quicktype { | ||
| 11325 | 11378 | j["typename"] = x.get_typename_typename(); |
| 11326 | 11379 | } |
| 11327 | 11380 | |
| 11328 | - inline void from_json(const json & j, Union& x) { | |
| 11329 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11330 | - if (j.find("union") != j.end() && !j.at("union").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11331 | - x.set_union_union(j.at("union").get<int64_t>()); | |
| 11332 | - } | |
| 11333 | - | |
| 11334 | - inline void to_json(json & j, const Union & x) { | |
| 11335 | - j = json::object(); | |
| 11336 | - j["union"] = x.get_union_union(); | |
| 11337 | - } | |
| 11338 | - | |
| 11339 | 11381 | inline void from_json(const json & j, PrimitiveKind& x) { |
| 11340 | 11382 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11341 | 11383 | if (j.find("PrimitiveKind") != j.end() && !j.at("PrimitiveKind").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11358,6 +11400,50 @@ namespace quicktype { | ||
| 11358 | 11400 | j["true"] = x.get_true_true(); |
| 11359 | 11401 | } |
| 11360 | 11402 | |
| 11403 | + inline void from_json(const json & j, S& x) { | |
| 11404 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11405 | + if (j.find("s") != j.end() && !j.at("s").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11406 | + x.set_s(j.at("s").get<int64_t>()); | |
| 11407 | + } | |
| 11408 | + | |
| 11409 | + inline void to_json(json & j, const S & x) { | |
| 11410 | + j = json::object(); | |
| 11411 | + j["s"] = x.get_s(); | |
| 11412 | + } | |
| 11413 | + | |
| 11414 | + inline void from_json(const json & j, Sbyte& x) { | |
| 11415 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11416 | + if (j.find("sbyte") != j.end() && !j.at("sbyte").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11417 | + x.set_sbyte(j.at("sbyte").get<int64_t>()); | |
| 11418 | + } | |
| 11419 | + | |
| 11420 | + inline void to_json(json & j, const Sbyte & x) { | |
| 11421 | + j = json::object(); | |
| 11422 | + j["sbyte"] = x.get_sbyte(); | |
| 11423 | + } | |
| 11424 | + | |
| 11425 | + inline void from_json(const json & j, Sealed& x) { | |
| 11426 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11427 | + if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11428 | + x.set_sealed(j.at("sealed").get<int64_t>()); | |
| 11429 | + } | |
| 11430 | + | |
| 11431 | + inline void to_json(json & j, const Sealed & x) { | |
| 11432 | + j = json::object(); | |
| 11433 | + j["sealed"] = x.get_sealed(); | |
| 11434 | + } | |
| 11435 | + | |
| 11436 | + inline void from_json(const json & j, Sel& x) { | |
| 11437 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11438 | + if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11439 | + x.set_sel(j.at("SEL").get<int64_t>()); | |
| 11440 | + } | |
| 11441 | + | |
| 11442 | + inline void to_json(json & j, const Sel & x) { | |
| 11443 | + j = json::object(); | |
| 11444 | + j["SEL"] = x.get_sel(); | |
| 11445 | + } | |
| 11446 | + | |
| 11361 | 11447 | inline void from_json(const json & j, Select& x) { |
| 11362 | 11448 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11363 | 11449 | if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11765,50 +11851,6 @@ namespace quicktype { | ||
| 11765 | 11851 | j["undefined"] = x.get_undefined(); |
| 11766 | 11852 | } |
| 11767 | 11853 | |
| 11768 | - inline void from_json(const json & j, UnmarshalJson& x) { | |
| 11769 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11770 | - if (j.find("UnmarshalJSON") != j.end() && !j.at("UnmarshalJSON").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11771 | - x.set_unmarshal_json(j.at("UnmarshalJSON").get<int64_t>()); | |
| 11772 | - } | |
| 11773 | - | |
| 11774 | - inline void to_json(json & j, const UnmarshalJson & x) { | |
| 11775 | - j = json::object(); | |
| 11776 | - j["UnmarshalJSON"] = x.get_unmarshal_json(); | |
| 11777 | - } | |
| 11778 | - | |
| 11779 | - inline void from_json(const json & j, Unowned& x) { | |
| 11780 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11781 | - if (j.find("unowned") != j.end() && !j.at("unowned").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11782 | - x.set_unowned(j.at("unowned").get<int64_t>()); | |
| 11783 | - } | |
| 11784 | - | |
| 11785 | - inline void to_json(json & j, const Unowned & x) { | |
| 11786 | - j = json::object(); | |
| 11787 | - j["unowned"] = x.get_unowned(); | |
| 11788 | - } | |
| 11789 | - | |
| 11790 | - inline void from_json(const json & j, Unsafe& x) { | |
| 11791 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11792 | - if (j.find("unsafe") != j.end() && !j.at("unsafe").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11793 | - x.set_unsafe(j.at("unsafe").get<int64_t>()); | |
| 11794 | - } | |
| 11795 | - | |
| 11796 | - inline void to_json(json & j, const Unsafe & x) { | |
| 11797 | - j = json::object(); | |
| 11798 | - j["unsafe"] = x.get_unsafe(); | |
| 11799 | - } | |
| 11800 | - | |
| 11801 | - inline void from_json(const json & j, UseSerializers& x) { | |
| 11802 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11803 | - if (j.find("UseSerializers") != j.end() && !j.at("UseSerializers").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11804 | - x.set_use_serializers(j.at("UseSerializers").get<int64_t>()); | |
| 11805 | - } | |
| 11806 | - | |
| 11807 | - inline void to_json(json & j, const UseSerializers & x) { | |
| 11808 | - j = json::object(); | |
| 11809 | - j["UseSerializers"] = x.get_use_serializers(); | |
| 11810 | - } | |
| 11811 | - | |
| 11812 | 11854 | inline void from_json(const json & j, Obj5& x) { |
| 11813 | 11855 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11814 | 11856 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11834,9 +11876,12 @@ namespace quicktype { | ||
| 11834 | 11876 | x.set_obj5_typedef(j.at("typedef").get<Typedef>()); |
| 11835 | 11877 | x.set_obj5_typeid(j.at("typeid").get<Typeid>()); |
| 11836 | 11878 | x.set_obj5_typename(j.at("typename").get<Typename>()); |
| 11837 | - x.set_obj5_union(j.at("union").get<Union>()); | |
| 11838 | 11879 | x.set_primitive_kind(j.at("PrimitiveKind").get<PrimitiveKind>()); |
| 11839 | 11880 | x.set_purple_true(j.at("true").get<TrueClass>()); |
| 11881 | + x.set_s(j.at("s").get<S>()); | |
| 11882 | + x.set_sbyte(j.at("sbyte").get<Sbyte>()); | |
| 11883 | + x.set_sealed(j.at("sealed").get<Sealed>()); | |
| 11884 | + x.set_sel(j.at("SEL").get<Sel>()); | |
| 11840 | 11885 | x.set_select(j.at("select").get<Select>()); |
| 11841 | 11886 | x.set_self(j.at("Self").get<Self>()); |
| 11842 | 11887 | x.set_sendable(j.at("Sendable").get<Sendable>()); |
| @@ -11874,10 +11919,6 @@ namespace quicktype { | ||
| 11874 | 11919 | x.set_ulong(j.at("ulong").get<Ulong>()); |
| 11875 | 11920 | x.set_unchecked(j.at("unchecked").get<Unchecked>()); |
| 11876 | 11921 | x.set_undefined(j.at("undefined").get<Undefined>()); |
| 11877 | - x.set_unmarshal_json(j.at("UnmarshalJSON").get<UnmarshalJson>()); | |
| 11878 | - x.set_unowned(j.at("unowned").get<Unowned>()); | |
| 11879 | - x.set_unsafe(j.at("unsafe").get<Unsafe>()); | |
| 11880 | - x.set_use_serializers(j.at("UseSerializers").get<UseSerializers>()); | |
| 11881 | 11922 | } |
| 11882 | 11923 | |
| 11883 | 11924 | inline void to_json(json & j, const Obj5 & x) { |
| @@ -11904,9 +11945,12 @@ namespace quicktype { | ||
| 11904 | 11945 | j["typedef"] = x.get_obj5_typedef(); |
| 11905 | 11946 | j["typeid"] = x.get_obj5_typeid(); |
| 11906 | 11947 | j["typename"] = x.get_obj5_typename(); |
| 11907 | - j["union"] = x.get_obj5_union(); | |
| 11908 | 11948 | j["PrimitiveKind"] = x.get_primitive_kind(); |
| 11909 | 11949 | j["true"] = x.get_purple_true(); |
| 11950 | + j["s"] = x.get_s(); | |
| 11951 | + j["sbyte"] = x.get_sbyte(); | |
| 11952 | + j["sealed"] = x.get_sealed(); | |
| 11953 | + j["SEL"] = x.get_sel(); | |
| 11910 | 11954 | j["select"] = x.get_select(); |
| 11911 | 11955 | j["Self"] = x.get_self(); |
| 11912 | 11956 | j["Sendable"] = x.get_sendable(); |
| @@ -11944,10 +11988,17 @@ namespace quicktype { | ||
| 11944 | 11988 | j["ulong"] = x.get_ulong(); |
| 11945 | 11989 | j["unchecked"] = x.get_unchecked(); |
| 11946 | 11990 | j["undefined"] = x.get_undefined(); |
| 11947 | - j["UnmarshalJSON"] = x.get_unmarshal_json(); | |
| 11948 | - j["unowned"] = x.get_unowned(); | |
| 11949 | - j["unsafe"] = x.get_unsafe(); | |
| 11950 | - j["UseSerializers"] = x.get_use_serializers(); | |
| 11991 | + } | |
| 11992 | + | |
| 11993 | + inline void from_json(const json & j, Union& x) { | |
| 11994 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11995 | + if (j.find("union") != j.end() && !j.at("union").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11996 | + x.set_union_union(j.at("union").get<int64_t>()); | |
| 11997 | + } | |
| 11998 | + | |
| 11999 | + inline void to_json(json & j, const Union & x) { | |
| 12000 | + j = json::object(); | |
| 12001 | + j["union"] = x.get_union_union(); | |
| 11951 | 12002 | } |
| 11952 | 12003 | |
| 11953 | 12004 | inline void from_json(const json & j, Unsigned& x) { |
| @@ -12049,6 +12100,50 @@ namespace quicktype { | ||
| 12049 | 12100 | j["xor_eq"] = x.get_xor_eq_xor_eq(); |
| 12050 | 12101 | } |
| 12051 | 12102 | |
| 12103 | + inline void from_json(const json & j, UnmarshalJson& x) { | |
| 12104 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 12105 | + if (j.find("UnmarshalJSON") != j.end() && !j.at("UnmarshalJSON").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 12106 | + x.set_unmarshal_json(j.at("UnmarshalJSON").get<int64_t>()); | |
| 12107 | + } | |
| 12108 | + | |
| 12109 | + inline void to_json(json & j, const UnmarshalJson & x) { | |
| 12110 | + j = json::object(); | |
| 12111 | + j["UnmarshalJSON"] = x.get_unmarshal_json(); | |
| 12112 | + } | |
| 12113 | + | |
| 12114 | + inline void from_json(const json & j, Unowned& x) { | |
| 12115 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 12116 | + if (j.find("unowned") != j.end() && !j.at("unowned").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 12117 | + x.set_unowned(j.at("unowned").get<int64_t>()); | |
| 12118 | + } | |
| 12119 | + | |
| 12120 | + inline void to_json(json & j, const Unowned & x) { | |
| 12121 | + j = json::object(); | |
| 12122 | + j["unowned"] = x.get_unowned(); | |
| 12123 | + } | |
| 12124 | + | |
| 12125 | + inline void from_json(const json & j, Unsafe& x) { | |
| 12126 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 12127 | + if (j.find("unsafe") != j.end() && !j.at("unsafe").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 12128 | + x.set_unsafe(j.at("unsafe").get<int64_t>()); | |
| 12129 | + } | |
| 12130 | + | |
| 12131 | + inline void to_json(json & j, const Unsafe & x) { | |
| 12132 | + j = json::object(); | |
| 12133 | + j["unsafe"] = x.get_unsafe(); | |
| 12134 | + } | |
| 12135 | + | |
| 12136 | + inline void from_json(const json & j, UseSerializers& x) { | |
| 12137 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 12138 | + if (j.find("UseSerializers") != j.end() && !j.at("UseSerializers").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 12139 | + x.set_use_serializers(j.at("UseSerializers").get<int64_t>()); | |
| 12140 | + } | |
| 12141 | + | |
| 12142 | + inline void to_json(json & j, const UseSerializers & x) { | |
| 12143 | + j = json::object(); | |
| 12144 | + j["UseSerializers"] = x.get_use_serializers(); | |
| 12145 | + } | |
| 12146 | + | |
| 12052 | 12147 | inline void from_json(const json & j, Ushort& x) { |
| 12053 | 12148 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 12054 | 12149 | if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -12174,6 +12269,7 @@ namespace quicktype { | ||
| 12174 | 12269 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 12175 | 12270 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| 12176 | 12271 | x.set_dummy(j.at("dummy").get<int64_t>()); |
| 12272 | + x.set_obj6_union(j.at("union").get<Union>()); | |
| 12177 | 12273 | x.set_obj6_unsigned(j.at("unsigned").get<Unsigned>()); |
| 12178 | 12274 | x.set_obj6_using(j.at("using").get<Using>()); |
| 12179 | 12275 | x.set_obj6_virtual(j.at("virtual").get<Virtual>()); |
| @@ -12183,6 +12279,10 @@ namespace quicktype { | ||
| 12183 | 12279 | x.set_obj6_while(j.at("while").get<While>()); |
| 12184 | 12280 | x.set_obj6_xor(j.at("xor").get<Xor>()); |
| 12185 | 12281 | x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>()); |
| 12282 | + x.set_unmarshal_json(j.at("UnmarshalJSON").get<UnmarshalJson>()); | |
| 12283 | + x.set_unowned(j.at("unowned").get<Unowned>()); | |
| 12284 | + x.set_unsafe(j.at("unsafe").get<Unsafe>()); | |
| 12285 | + x.set_use_serializers(j.at("UseSerializers").get<UseSerializers>()); | |
| 12186 | 12286 | x.set_ushort(j.at("ushort").get<Ushort>()); |
| 12187 | 12287 | x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>()); |
| 12188 | 12288 | x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>()); |
| @@ -12199,6 +12299,7 @@ namespace quicktype { | ||
| 12199 | 12299 | inline void to_json(json & j, const Obj6 & x) { |
| 12200 | 12300 | j = json::object(); |
| 12201 | 12301 | j["dummy"] = x.get_dummy(); |
| 12302 | + j["union"] = x.get_obj6_union(); | |
| 12202 | 12303 | j["unsigned"] = x.get_obj6_unsigned(); |
| 12203 | 12304 | j["using"] = x.get_obj6_using(); |
| 12204 | 12305 | j["virtual"] = x.get_obj6_virtual(); |
| @@ -12208,6 +12309,10 @@ namespace quicktype { | ||
| 12208 | 12309 | j["while"] = x.get_obj6_while(); |
| 12209 | 12310 | j["xor"] = x.get_obj6_xor(); |
| 12210 | 12311 | j["xor_eq"] = x.get_obj6_xor_eq(); |
| 12312 | + j["UnmarshalJSON"] = x.get_unmarshal_json(); | |
| 12313 | + j["unowned"] = x.get_unowned(); | |
| 12314 | + j["unsafe"] = x.get_unsafe(); | |
| 12315 | + j["UseSerializers"] = x.get_use_serializers(); | |
| 12211 | 12316 | j["ushort"] = x.get_ushort(); |
| 12212 | 12317 | j["Utf8JsonReader"] = x.get_utf8_json_reader(); |
| 12213 | 12318 | j["Utf8JsonWriter"] = x.get_utf8_json_writer(); |
Mcrystaldefault / TopLevel.cr+128 −98
| @@ -1248,6 +1248,9 @@ class Obj3 | ||
| 1248 | 1248 | |
| 1249 | 1249 | property list : List |
| 1250 | 1250 | |
| 1251 | + @[JSON::Field(key: "LocalDate")] | |
| 1252 | + property local_date : LocalDate | |
| 1253 | + | |
| 1251 | 1254 | @[JSON::Field(key: "Locale")] |
| 1252 | 1255 | property locale : Locale |
| 1253 | 1256 | |
| @@ -1277,9 +1280,6 @@ class Obj3 | ||
| 1277 | 1280 | |
| 1278 | 1281 | property newtonsoft : Newtonsoft |
| 1279 | 1282 | |
| 1280 | - @[JSON::Field(key: "NO")] | |
| 1281 | - property no : No | |
| 1282 | - | |
| 1283 | 1283 | @[JSON::Field(key: "if")] |
| 1284 | 1284 | property obj3_if : If |
| 1285 | 1285 | |
| @@ -1288,9 +1288,6 @@ class Obj3 | ||
| 1288 | 1288 | |
| 1289 | 1289 | @[JSON::Field(key: "module")] |
| 1290 | 1290 | property obj3_module : Module |
| 1291 | - | |
| 1292 | - @[JSON::Field(key: "nil")] | |
| 1293 | - property obj3_nil : NilClass | |
| 1294 | 1291 | end |
| 1295 | 1292 | |
| 1296 | 1293 | class Goto |
| @@ -1592,6 +1589,13 @@ class List | ||
| 1592 | 1589 | property list : Int64 |
| 1593 | 1590 | end |
| 1594 | 1591 | |
| 1592 | +class LocalDate | |
| 1593 | + include JSON::Serializable | |
| 1594 | + | |
| 1595 | + @[JSON::Field(key: "LocalDate")] | |
| 1596 | + property local_date : Int64 | |
| 1597 | +end | |
| 1598 | + | |
| 1595 | 1599 | class Locale |
| 1596 | 1600 | include JSON::Serializable |
| 1597 | 1601 | |
| @@ -1673,13 +1677,6 @@ class Newtonsoft | ||
| 1673 | 1677 | property newtonsoft : Int64 |
| 1674 | 1678 | end |
| 1675 | 1679 | |
| 1676 | -class No | |
| 1677 | - include JSON::Serializable | |
| 1678 | - | |
| 1679 | - @[JSON::Field(key: "NO")] | |
| 1680 | - property no : Int64 | |
| 1681 | -end | |
| 1682 | - | |
| 1683 | 1680 | class If |
| 1684 | 1681 | include JSON::Serializable |
| 1685 | 1682 | |
| @@ -1701,18 +1698,14 @@ class Module | ||
| 1701 | 1698 | property module_module : Int64 |
| 1702 | 1699 | end |
| 1703 | 1700 | |
| 1704 | -class NilClass | |
| 1705 | - include JSON::Serializable | |
| 1706 | - | |
| 1707 | - @[JSON::Field(key: "nil")] | |
| 1708 | - property nil_nil : Int64 | |
| 1709 | -end | |
| 1710 | - | |
| 1711 | 1701 | class Obj4 |
| 1712 | 1702 | include JSON::Serializable |
| 1713 | 1703 | |
| 1714 | 1704 | property dummy : Int64 |
| 1715 | 1705 | |
| 1706 | + @[JSON::Field(key: "NO")] | |
| 1707 | + property no : No | |
| 1708 | + | |
| 1716 | 1709 | @[JSON::Field(key: "noSuchMethod")] |
| 1717 | 1710 | property no_such_method : NoSuchMethod |
| 1718 | 1711 | |
| @@ -1747,6 +1740,9 @@ class Obj4 | ||
| 1747 | 1740 | |
| 1748 | 1741 | property number : NumberClass |
| 1749 | 1742 | |
| 1743 | + @[JSON::Field(key: "nil")] | |
| 1744 | + property obj4_nil : NilClass | |
| 1745 | + | |
| 1750 | 1746 | @[JSON::Field(key: "none")] |
| 1751 | 1747 | property obj4_none : NoneClass |
| 1752 | 1748 | |
| @@ -1779,6 +1775,12 @@ class Obj4 | ||
| 1779 | 1775 | @[JSON::Field(key: "ObjectMapper")] |
| 1780 | 1776 | property object_mapper : ObjectMapper |
| 1781 | 1777 | |
| 1778 | + @[JSON::Field(key: "OffsetDateTime")] | |
| 1779 | + property offset_date_time : OffsetDateTime | |
| 1780 | + | |
| 1781 | + @[JSON::Field(key: "OffsetTime")] | |
| 1782 | + property offset_time : OffsetTime | |
| 1783 | + | |
| 1782 | 1784 | property oneway : Oneway |
| 1783 | 1785 | |
| 1784 | 1786 | property open : Open |
| @@ -1852,15 +1854,13 @@ class Obj4 | ||
| 1852 | 1854 | |
| 1853 | 1855 | @[JSON::Field(key: "runtimeType")] |
| 1854 | 1856 | property runtime_type : RuntimeType |
| 1857 | +end | |
| 1855 | 1858 | |
| 1856 | - property s : S | |
| 1857 | - | |
| 1858 | - property sbyte : Sbyte | |
| 1859 | - | |
| 1860 | - property sealed : Sealed | |
| 1859 | +class No | |
| 1860 | + include JSON::Serializable | |
| 1861 | 1861 | |
| 1862 | - @[JSON::Field(key: "SEL")] | |
| 1863 | - property sel : Sel | |
| 1862 | + @[JSON::Field(key: "NO")] | |
| 1863 | + property no : Int64 | |
| 1864 | 1864 | end |
| 1865 | 1865 | |
| 1866 | 1866 | class NoSuchMethod |
| @@ -1953,6 +1953,13 @@ class NumberClass | ||
| 1953 | 1953 | property number : Int64 |
| 1954 | 1954 | end |
| 1955 | 1955 | |
| 1956 | +class NilClass | |
| 1957 | + include JSON::Serializable | |
| 1958 | + | |
| 1959 | + @[JSON::Field(key: "nil")] | |
| 1960 | + property nil_nil : Int64 | |
| 1961 | +end | |
| 1962 | + | |
| 1956 | 1963 | class NoneClass |
| 1957 | 1964 | include JSON::Serializable |
| 1958 | 1965 | |
| @@ -2026,6 +2033,20 @@ class ObjectMapper | ||
| 2026 | 2033 | property object_mapper : Int64 |
| 2027 | 2034 | end |
| 2028 | 2035 | |
| 2036 | +class OffsetDateTime | |
| 2037 | + include JSON::Serializable | |
| 2038 | + | |
| 2039 | + @[JSON::Field(key: "OffsetDateTime")] | |
| 2040 | + property offset_date_time : Int64 | |
| 2041 | +end | |
| 2042 | + | |
| 2043 | +class OffsetTime | |
| 2044 | + include JSON::Serializable | |
| 2045 | + | |
| 2046 | + @[JSON::Field(key: "OffsetTime")] | |
| 2047 | + property offset_time : Int64 | |
| 2048 | +end | |
| 2049 | + | |
| 2029 | 2050 | class Oneway |
| 2030 | 2051 | include JSON::Serializable |
| 2031 | 2052 | |
| @@ -2240,31 +2261,6 @@ class RuntimeType | ||
| 2240 | 2261 | property runtime_type : Int64 |
| 2241 | 2262 | end |
| 2242 | 2263 | |
| 2243 | -class S | |
| 2244 | - include JSON::Serializable | |
| 2245 | - | |
| 2246 | - property s : Int64 | |
| 2247 | -end | |
| 2248 | - | |
| 2249 | -class Sbyte | |
| 2250 | - include JSON::Serializable | |
| 2251 | - | |
| 2252 | - property sbyte : Int64 | |
| 2253 | -end | |
| 2254 | - | |
| 2255 | -class Sealed | |
| 2256 | - include JSON::Serializable | |
| 2257 | - | |
| 2258 | - property sealed : Int64 | |
| 2259 | -end | |
| 2260 | - | |
| 2261 | -class Sel | |
| 2262 | - include JSON::Serializable | |
| 2263 | - | |
| 2264 | - @[JSON::Field(key: "SEL")] | |
| 2265 | - property sel : Int64 | |
| 2266 | -end | |
| 2267 | - | |
| 2268 | 2264 | class Obj5 |
| 2269 | 2265 | include JSON::Serializable |
| 2270 | 2266 | |
| @@ -2303,9 +2299,6 @@ class Obj5 | ||
| 2303 | 2299 | @[JSON::Field(key: "typeof")] |
| 2304 | 2300 | property obj5_typeof : Typeof |
| 2305 | 2301 | |
| 2306 | - @[JSON::Field(key: "union")] | |
| 2307 | - property obj5_union : UnionClass | |
| 2308 | - | |
| 2309 | 2302 | @[JSON::Field(key: "PrimitiveKind")] |
| 2310 | 2303 | property primitive_kind : PrimitiveKind |
| 2311 | 2304 | |
| @@ -2318,6 +2311,15 @@ class Obj5 | ||
| 2318 | 2311 | @[JSON::Field(key: "type")] |
| 2319 | 2312 | property purple_type : TypeClass |
| 2320 | 2313 | |
| 2314 | + property s : S | |
| 2315 | + | |
| 2316 | + property sbyte : Sbyte | |
| 2317 | + | |
| 2318 | + property sealed : Sealed | |
| 2319 | + | |
| 2320 | + @[JSON::Field(key: "SEL")] | |
| 2321 | + property sel : Sel | |
| 2322 | + | |
| 2321 | 2323 | @[JSON::Field(key: "Sendable")] |
| 2322 | 2324 | property sendable : Sendable |
| 2323 | 2325 | |
| @@ -2420,16 +2422,6 @@ class Obj5 | ||
| 2420 | 2422 | property unchecked : Unchecked |
| 2421 | 2423 | |
| 2422 | 2424 | property undefined : Undefined |
| 2423 | - | |
| 2424 | - @[JSON::Field(key: "UnmarshalJSON")] | |
| 2425 | - property unmarshal_json : UnmarshalJson | |
| 2426 | - | |
| 2427 | - property unowned : Unowned | |
| 2428 | - | |
| 2429 | - property unsafe : Unsafe | |
| 2430 | - | |
| 2431 | - @[JSON::Field(key: "UseSerializers")] | |
| 2432 | - property use_serializers : UseSerializers | |
| 2433 | 2425 | end |
| 2434 | 2426 | |
| 2435 | 2427 | class KSerializer |
| @@ -2509,13 +2501,6 @@ class Typeof | ||
| 2509 | 2501 | property typeof_typeof : Int64 |
| 2510 | 2502 | end |
| 2511 | 2503 | |
| 2512 | -class UnionClass | |
| 2513 | - include JSON::Serializable | |
| 2514 | - | |
| 2515 | - @[JSON::Field(key: "union")] | |
| 2516 | - property union_union : Int64 | |
| 2517 | -end | |
| 2518 | - | |
| 2519 | 2504 | class PrimitiveKind |
| 2520 | 2505 | include JSON::Serializable |
| 2521 | 2506 | |
| @@ -2544,6 +2529,31 @@ class TypeClass | ||
| 2544 | 2529 | property type_type : Int64 |
| 2545 | 2530 | end |
| 2546 | 2531 | |
| 2532 | +class S | |
| 2533 | + include JSON::Serializable | |
| 2534 | + | |
| 2535 | + property s : Int64 | |
| 2536 | +end | |
| 2537 | + | |
| 2538 | +class Sbyte | |
| 2539 | + include JSON::Serializable | |
| 2540 | + | |
| 2541 | + property sbyte : Int64 | |
| 2542 | +end | |
| 2543 | + | |
| 2544 | +class Sealed | |
| 2545 | + include JSON::Serializable | |
| 2546 | + | |
| 2547 | + property sealed : Int64 | |
| 2548 | +end | |
| 2549 | + | |
| 2550 | +class Sel | |
| 2551 | + include JSON::Serializable | |
| 2552 | + | |
| 2553 | + @[JSON::Field(key: "SEL")] | |
| 2554 | + property sel : Int64 | |
| 2555 | +end | |
| 2556 | + | |
| 2547 | 2557 | class Sendable |
| 2548 | 2558 | include JSON::Serializable |
| 2549 | 2559 | |
| @@ -2827,37 +2837,14 @@ class Undefined | ||
| 2827 | 2837 | property undefined : Int64 |
| 2828 | 2838 | end |
| 2829 | 2839 | |
| 2830 | -class UnmarshalJson | |
| 2831 | - include JSON::Serializable | |
| 2832 | - | |
| 2833 | - @[JSON::Field(key: "UnmarshalJSON")] | |
| 2834 | - property unmarshal_json : Int64 | |
| 2835 | -end | |
| 2836 | - | |
| 2837 | -class Unowned | |
| 2838 | - include JSON::Serializable | |
| 2839 | - | |
| 2840 | - property unowned : Int64 | |
| 2841 | -end | |
| 2842 | - | |
| 2843 | -class Unsafe | |
| 2844 | - include JSON::Serializable | |
| 2845 | - | |
| 2846 | - property unsafe : Int64 | |
| 2847 | -end | |
| 2848 | - | |
| 2849 | -class UseSerializers | |
| 2850 | - include JSON::Serializable | |
| 2851 | - | |
| 2852 | - @[JSON::Field(key: "UseSerializers")] | |
| 2853 | - property use_serializers : Int64 | |
| 2854 | -end | |
| 2855 | - | |
| 2856 | 2840 | class Obj6 |
| 2857 | 2841 | include JSON::Serializable |
| 2858 | 2842 | |
| 2859 | 2843 | property dummy : Int64 |
| 2860 | 2844 | |
| 2845 | + @[JSON::Field(key: "union")] | |
| 2846 | + property obj6_union : UnionClass | |
| 2847 | + | |
| 2861 | 2848 | @[JSON::Field(key: "while")] |
| 2862 | 2849 | property obj6_while : While |
| 2863 | 2850 | |
| @@ -2867,8 +2854,18 @@ class Obj6 | ||
| 2867 | 2854 | @[JSON::Field(key: "yield")] |
| 2868 | 2855 | property obj6_yield : Yield |
| 2869 | 2856 | |
| 2857 | + @[JSON::Field(key: "UnmarshalJSON")] | |
| 2858 | + property unmarshal_json : UnmarshalJson | |
| 2859 | + | |
| 2860 | + property unowned : Unowned | |
| 2861 | + | |
| 2862 | + property unsafe : Unsafe | |
| 2863 | + | |
| 2870 | 2864 | property unsigned : Unsigned |
| 2871 | 2865 | |
| 2866 | + @[JSON::Field(key: "UseSerializers")] | |
| 2867 | + property use_serializers : UseSerializers | |
| 2868 | + | |
| 2872 | 2869 | property ushort : Ushort |
| 2873 | 2870 | |
| 2874 | 2871 | property using : Using |
| @@ -2907,6 +2904,13 @@ class Obj6 | ||
| 2907 | 2904 | property yes : Yes |
| 2908 | 2905 | end |
| 2909 | 2906 | |
| 2907 | +class UnionClass | |
| 2908 | + include JSON::Serializable | |
| 2909 | + | |
| 2910 | + @[JSON::Field(key: "union")] | |
| 2911 | + property union_union : Int64 | |
| 2912 | +end | |
| 2913 | + | |
| 2910 | 2914 | class While |
| 2911 | 2915 | include JSON::Serializable |
| 2912 | 2916 | |
| @@ -2928,12 +2932,38 @@ class Yield | ||
| 2928 | 2932 | property yield_yield : Int64 |
| 2929 | 2933 | end |
| 2930 | 2934 | |
| 2935 | +class UnmarshalJson | |
| 2936 | + include JSON::Serializable | |
| 2937 | + | |
| 2938 | + @[JSON::Field(key: "UnmarshalJSON")] | |
| 2939 | + property unmarshal_json : Int64 | |
| 2940 | +end | |
| 2941 | + | |
| 2942 | +class Unowned | |
| 2943 | + include JSON::Serializable | |
| 2944 | + | |
| 2945 | + property unowned : Int64 | |
| 2946 | +end | |
| 2947 | + | |
| 2948 | +class Unsafe | |
| 2949 | + include JSON::Serializable | |
| 2950 | + | |
| 2951 | + property unsafe : Int64 | |
| 2952 | +end | |
| 2953 | + | |
| 2931 | 2954 | class Unsigned |
| 2932 | 2955 | include JSON::Serializable |
| 2933 | 2956 | |
| 2934 | 2957 | property unsigned : Int64 |
| 2935 | 2958 | end |
| 2936 | 2959 | |
| 2960 | +class UseSerializers | |
| 2961 | + include JSON::Serializable | |
| 2962 | + | |
| 2963 | + @[JSON::Field(key: "UseSerializers")] | |
| 2964 | + property use_serializers : Int64 | |
| 2965 | +end | |
| 2966 | + | |
| 2937 | 2967 | class Ushort |
| 2938 | 2968 | include JSON::Serializable |
Mcsharp-recordsdefault / QuickType.cs+120 −93
| @@ -1363,6 +1363,9 @@ namespace QuickType | ||
| 1363 | 1363 | [JsonProperty("list", Required = Required.Always)] |
| 1364 | 1364 | public List List { get; set; } |
| 1365 | 1365 | |
| 1366 | + [JsonProperty("LocalDate", Required = Required.Always)] | |
| 1367 | + public LocalDate LocalDate { get; set; } | |
| 1368 | + | |
| 1366 | 1369 | [JsonProperty("Locale", Required = Required.Always)] |
| 1367 | 1370 | public Locale Locale { get; set; } |
| 1368 | 1371 | |
| @@ -1404,12 +1407,6 @@ namespace QuickType | ||
| 1404 | 1407 | |
| 1405 | 1408 | [JsonProperty("newtonsoft", Required = Required.Always)] |
| 1406 | 1409 | public NewtonsoftClass Newtonsoft { get; set; } |
| 1407 | - | |
| 1408 | - [JsonProperty("nil", Required = Required.Always)] | |
| 1409 | - public Nil Nil { get; set; } | |
| 1410 | - | |
| 1411 | - [JsonProperty("NO", Required = Required.Always)] | |
| 1412 | - public No No { get; set; } | |
| 1413 | 1410 | } |
| 1414 | 1411 | |
| 1415 | 1412 | public partial record Goto |
| @@ -1706,6 +1703,12 @@ namespace QuickType | ||
| 1706 | 1703 | public long ListList { get; set; } |
| 1707 | 1704 | } |
| 1708 | 1705 | |
| 1706 | + public partial record LocalDate | |
| 1707 | + { | |
| 1708 | + [JsonProperty("LocalDate", Required = Required.Always)] | |
| 1709 | + public long LocalDateLocalDate { get; set; } | |
| 1710 | + } | |
| 1711 | + | |
| 1709 | 1712 | public partial record Locale |
| 1710 | 1713 | { |
| 1711 | 1714 | [JsonProperty("Locale", Required = Required.Always)] |
| @@ -1790,23 +1793,17 @@ namespace QuickType | ||
| 1790 | 1793 | public long Newtonsoft { get; set; } |
| 1791 | 1794 | } |
| 1792 | 1795 | |
| 1793 | - public partial record Nil | |
| 1794 | - { | |
| 1795 | - [JsonProperty("nil", Required = Required.Always)] | |
| 1796 | - public long NilNil { get; set; } | |
| 1797 | - } | |
| 1798 | - | |
| 1799 | - public partial record No | |
| 1800 | - { | |
| 1801 | - [JsonProperty("NO", Required = Required.Always)] | |
| 1802 | - public long NoNo { get; set; } | |
| 1803 | - } | |
| 1804 | - | |
| 1805 | 1796 | public partial record Obj4 |
| 1806 | 1797 | { |
| 1807 | 1798 | [JsonProperty("dummy", Required = Required.Always)] |
| 1808 | 1799 | public long Dummy { get; set; } |
| 1809 | 1800 | |
| 1801 | + [JsonProperty("nil", Required = Required.Always)] | |
| 1802 | + public Nil Nil { get; set; } | |
| 1803 | + | |
| 1804 | + [JsonProperty("NO", Required = Required.Always)] | |
| 1805 | + public No No { get; set; } | |
| 1806 | + | |
| 1810 | 1807 | [JsonProperty("noSuchMethod", Required = Required.Always)] |
| 1811 | 1808 | public NoSuchMethod NoSuchMethod { get; set; } |
| 1812 | 1809 | |
| @@ -1873,6 +1870,12 @@ namespace QuickType | ||
| 1873 | 1870 | [JsonProperty("of", Required = Required.Always)] |
| 1874 | 1871 | public Of Of { get; set; } |
| 1875 | 1872 | |
| 1873 | + [JsonProperty("OffsetDateTime", Required = Required.Always)] | |
| 1874 | + public OffsetDateTime OffsetDateTime { get; set; } | |
| 1875 | + | |
| 1876 | + [JsonProperty("OffsetTime", Required = Required.Always)] | |
| 1877 | + public OffsetTime OffsetTime { get; set; } | |
| 1878 | + | |
| 1876 | 1879 | [JsonProperty("oneway", Required = Required.Always)] |
| 1877 | 1880 | public Oneway Oneway { get; set; } |
| 1878 | 1881 | |
| @@ -1986,18 +1989,18 @@ namespace QuickType | ||
| 1986 | 1989 | |
| 1987 | 1990 | [JsonProperty("runtimeType", Required = Required.Always)] |
| 1988 | 1991 | public RuntimeType RuntimeType { get; set; } |
| 1992 | + } | |
| 1989 | 1993 | |
| 1990 | - [JsonProperty("s", Required = Required.Always)] | |
| 1991 | - public S S { get; set; } | |
| 1992 | - | |
| 1993 | - [JsonProperty("sbyte", Required = Required.Always)] | |
| 1994 | - public Sbyte Sbyte { get; set; } | |
| 1995 | - | |
| 1996 | - [JsonProperty("sealed", Required = Required.Always)] | |
| 1997 | - public Sealed Sealed { get; set; } | |
| 1994 | + public partial record Nil | |
| 1995 | + { | |
| 1996 | + [JsonProperty("nil", Required = Required.Always)] | |
| 1997 | + public long NilNil { get; set; } | |
| 1998 | + } | |
| 1998 | 1999 | |
| 1999 | - [JsonProperty("SEL", Required = Required.Always)] | |
| 2000 | - public Sel Sel { get; set; } | |
| 2000 | + public partial record No | |
| 2001 | + { | |
| 2002 | + [JsonProperty("NO", Required = Required.Always)] | |
| 2003 | + public long NoNo { get; set; } | |
| 2001 | 2004 | } |
| 2002 | 2005 | |
| 2003 | 2006 | public partial record NoSuchMethod |
| @@ -2132,6 +2135,18 @@ namespace QuickType | ||
| 2132 | 2135 | public long OfOf { get; set; } |
| 2133 | 2136 | } |
| 2134 | 2137 | |
| 2138 | + public partial record OffsetDateTime | |
| 2139 | + { | |
| 2140 | + [JsonProperty("OffsetDateTime", Required = Required.Always)] | |
| 2141 | + public long OffsetDateTimeOffsetDateTime { get; set; } | |
| 2142 | + } | |
| 2143 | + | |
| 2144 | + public partial record OffsetTime | |
| 2145 | + { | |
| 2146 | + [JsonProperty("OffsetTime", Required = Required.Always)] | |
| 2147 | + public long OffsetTimeOffsetTime { get; set; } | |
| 2148 | + } | |
| 2149 | + | |
| 2135 | 2150 | public partial record Oneway |
| 2136 | 2151 | { |
| 2137 | 2152 | [JsonProperty("oneway", Required = Required.Always)] |
| @@ -2360,30 +2375,6 @@ namespace QuickType | ||
| 2360 | 2375 | public long RuntimeTypeRuntimeType { get; set; } |
| 2361 | 2376 | } |
| 2362 | 2377 | |
| 2363 | - public partial record S | |
| 2364 | - { | |
| 2365 | - [JsonProperty("s", Required = Required.Always)] | |
| 2366 | - public long SS { get; set; } | |
| 2367 | - } | |
| 2368 | - | |
| 2369 | - public partial record Sbyte | |
| 2370 | - { | |
| 2371 | - [JsonProperty("sbyte", Required = Required.Always)] | |
| 2372 | - public long SbyteSbyte { get; set; } | |
| 2373 | - } | |
| 2374 | - | |
| 2375 | - public partial record Sealed | |
| 2376 | - { | |
| 2377 | - [JsonProperty("sealed", Required = Required.Always)] | |
| 2378 | - public long SealedSealed { get; set; } | |
| 2379 | - } | |
| 2380 | - | |
| 2381 | - public partial record Sel | |
| 2382 | - { | |
| 2383 | - [JsonProperty("SEL", Required = Required.Always)] | |
| 2384 | - public long SelSel { get; set; } | |
| 2385 | - } | |
| 2386 | - | |
| 2387 | 2378 | public partial record Obj5 |
| 2388 | 2379 | { |
| 2389 | 2380 | [JsonProperty("dummy", Required = Required.Always)] |
| @@ -2410,6 +2401,18 @@ namespace QuickType | ||
| 2410 | 2401 | [JsonProperty("PrimitiveKind", Required = Required.Always)] |
| 2411 | 2402 | public PrimitiveKind PrimitiveKind { get; set; } |
| 2412 | 2403 | |
| 2404 | + [JsonProperty("s", Required = Required.Always)] | |
| 2405 | + public S S { get; set; } | |
| 2406 | + | |
| 2407 | + [JsonProperty("sbyte", Required = Required.Always)] | |
| 2408 | + public Sbyte Sbyte { get; set; } | |
| 2409 | + | |
| 2410 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2411 | + public Sealed Sealed { get; set; } | |
| 2412 | + | |
| 2413 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2414 | + public Sel Sel { get; set; } | |
| 2415 | + | |
| 2413 | 2416 | [JsonProperty("select", Required = Required.Always)] |
| 2414 | 2417 | public Select Select { get; set; } |
| 2415 | 2418 | |
| @@ -2568,21 +2571,6 @@ namespace QuickType | ||
| 2568 | 2571 | |
| 2569 | 2572 | [JsonProperty("undefined", Required = Required.Always)] |
| 2570 | 2573 | public Undefined Undefined { get; set; } |
| 2571 | - | |
| 2572 | - [JsonProperty("union", Required = Required.Always)] | |
| 2573 | - public Union Union { get; set; } | |
| 2574 | - | |
| 2575 | - [JsonProperty("UnmarshalJSON", Required = Required.Always)] | |
| 2576 | - public UnmarshalJson UnmarshalJson { get; set; } | |
| 2577 | - | |
| 2578 | - [JsonProperty("unowned", Required = Required.Always)] | |
| 2579 | - public Unowned Unowned { get; set; } | |
| 2580 | - | |
| 2581 | - [JsonProperty("unsafe", Required = Required.Always)] | |
| 2582 | - public Unsafe Unsafe { get; set; } | |
| 2583 | - | |
| 2584 | - [JsonProperty("UseSerializers", Required = Required.Always)] | |
| 2585 | - public UseSerializers UseSerializers { get; set; } | |
| 2586 | 2574 | } |
| 2587 | 2575 | |
| 2588 | 2576 | public partial record KSerializer |
| @@ -2627,6 +2615,30 @@ namespace QuickType | ||
| 2627 | 2615 | public long PrimitiveKindPrimitiveKind { get; set; } |
| 2628 | 2616 | } |
| 2629 | 2617 | |
| 2618 | + public partial record S | |
| 2619 | + { | |
| 2620 | + [JsonProperty("s", Required = Required.Always)] | |
| 2621 | + public long SS { get; set; } | |
| 2622 | + } | |
| 2623 | + | |
| 2624 | + public partial record Sbyte | |
| 2625 | + { | |
| 2626 | + [JsonProperty("sbyte", Required = Required.Always)] | |
| 2627 | + public long SbyteSbyte { get; set; } | |
| 2628 | + } | |
| 2629 | + | |
| 2630 | + public partial record Sealed | |
| 2631 | + { | |
| 2632 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2633 | + public long SealedSealed { get; set; } | |
| 2634 | + } | |
| 2635 | + | |
| 2636 | + public partial record Sel | |
| 2637 | + { | |
| 2638 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2639 | + public long SelSel { get; set; } | |
| 2640 | + } | |
| 2641 | + | |
| 2630 | 2642 | public partial record Select |
| 2631 | 2643 | { |
| 2632 | 2644 | [JsonProperty("select", Required = Required.Always)] |
| @@ -2945,44 +2957,29 @@ namespace QuickType | ||
| 2945 | 2957 | public long UndefinedUndefined { get; set; } |
| 2946 | 2958 | } |
| 2947 | 2959 | |
| 2948 | - public partial record Union | |
| 2960 | + public partial record Obj6 | |
| 2949 | 2961 | { |
| 2962 | + [JsonProperty("dummy", Required = Required.Always)] | |
| 2963 | + public long Dummy { get; set; } | |
| 2964 | + | |
| 2950 | 2965 | [JsonProperty("union", Required = Required.Always)] |
| 2951 | - public long UnionUnion { get; set; } | |
| 2952 | - } | |
| 2966 | + public Union Union { get; set; } | |
| 2953 | 2967 | |
| 2954 | - public partial record UnmarshalJson | |
| 2955 | - { | |
| 2956 | 2968 | [JsonProperty("UnmarshalJSON", Required = Required.Always)] |
| 2957 | - public long UnmarshalJsonUnmarshalJson { get; set; } | |
| 2958 | - } | |
| 2969 | + public UnmarshalJson UnmarshalJson { get; set; } | |
| 2959 | 2970 | |
| 2960 | - public partial record Unowned | |
| 2961 | - { | |
| 2962 | 2971 | [JsonProperty("unowned", Required = Required.Always)] |
| 2963 | - public long UnownedUnowned { get; set; } | |
| 2964 | - } | |
| 2972 | + public Unowned Unowned { get; set; } | |
| 2965 | 2973 | |
| 2966 | - public partial record Unsafe | |
| 2967 | - { | |
| 2968 | 2974 | [JsonProperty("unsafe", Required = Required.Always)] |
| 2969 | - public long UnsafeUnsafe { get; set; } | |
| 2970 | - } | |
| 2971 | - | |
| 2972 | - public partial record UseSerializers | |
| 2973 | - { | |
| 2974 | - [JsonProperty("UseSerializers", Required = Required.Always)] | |
| 2975 | - public long UseSerializersUseSerializers { get; set; } | |
| 2976 | - } | |
| 2977 | - | |
| 2978 | - public partial record Obj6 | |
| 2979 | - { | |
| 2980 | - [JsonProperty("dummy", Required = Required.Always)] | |
| 2981 | - public long Dummy { get; set; } | |
| 2975 | + public Unsafe Unsafe { get; set; } | |
| 2982 | 2976 | |
| 2983 | 2977 | [JsonProperty("unsigned", Required = Required.Always)] |
| 2984 | 2978 | public Unsigned Unsigned { get; set; } |
| 2985 | 2979 | |
| 2980 | + [JsonProperty("UseSerializers", Required = Required.Always)] | |
| 2981 | + public UseSerializers UseSerializers { get; set; } | |
| 2982 | + | |
| 2986 | 2983 | [JsonProperty("ushort", Required = Required.Always)] |
| 2987 | 2984 | public Ushort Ushort { get; set; } |
| 2988 | 2985 | |
| @@ -3041,12 +3038,42 @@ namespace QuickType | ||
| 3041 | 3038 | public Yield Yield { get; set; } |
| 3042 | 3039 | } |
| 3043 | 3040 | |
| 3041 | + public partial record Union | |
| 3042 | + { | |
| 3043 | + [JsonProperty("union", Required = Required.Always)] | |
| 3044 | + public long UnionUnion { get; set; } | |
| 3045 | + } | |
| 3046 | + | |
| 3047 | + public partial record UnmarshalJson | |
| 3048 | + { | |
| 3049 | + [JsonProperty("UnmarshalJSON", Required = Required.Always)] | |
| 3050 | + public long UnmarshalJsonUnmarshalJson { get; set; } | |
| 3051 | + } | |
| 3052 | + | |
| 3053 | + public partial record Unowned | |
| 3054 | + { | |
| 3055 | + [JsonProperty("unowned", Required = Required.Always)] | |
| 3056 | + public long UnownedUnowned { get; set; } | |
| 3057 | + } | |
| 3058 | + | |
| 3059 | + public partial record Unsafe | |
| 3060 | + { | |
| 3061 | + [JsonProperty("unsafe", Required = Required.Always)] | |
| 3062 | + public long UnsafeUnsafe { get; set; } | |
| 3063 | + } | |
| 3064 | + | |
| 3044 | 3065 | public partial record Unsigned |
| 3045 | 3066 | { |
| 3046 | 3067 | [JsonProperty("unsigned", Required = Required.Always)] |
| 3047 | 3068 | public long UnsignedUnsigned { get; set; } |
| 3048 | 3069 | } |
| 3049 | 3070 | |
| 3071 | + public partial record UseSerializers | |
| 3072 | + { | |
| 3073 | + [JsonProperty("UseSerializers", Required = Required.Always)] | |
| 3074 | + public long UseSerializersUseSerializers { get; set; } | |
| 3075 | + } | |
| 3076 | + | |
| 3050 | 3077 | public partial record Ushort |
| 3051 | 3078 | { |
| 3052 | 3079 | [JsonProperty("ushort", Required = Required.Always)] |
Mcsharp-SystemTextJsondefault / QuickType.cs+142 −109
| @@ -1675,6 +1675,10 @@ namespace QuickType | ||
| 1675 | 1675 | [JsonPropertyName("list")] |
| 1676 | 1676 | public List List { get; set; } |
| 1677 | 1677 | |
| 1678 | + [JsonRequired] | |
| 1679 | + [JsonPropertyName("LocalDate")] | |
| 1680 | + public LocalDate LocalDate { get; set; } | |
| 1681 | + | |
| 1678 | 1682 | [JsonRequired] |
| 1679 | 1683 | [JsonPropertyName("Locale")] |
| 1680 | 1684 | public Locale Locale { get; set; } |
| @@ -1730,14 +1734,6 @@ namespace QuickType | ||
| 1730 | 1734 | [JsonRequired] |
| 1731 | 1735 | [JsonPropertyName("newtonsoft")] |
| 1732 | 1736 | public Newtonsoft Newtonsoft { get; set; } |
| 1733 | - | |
| 1734 | - [JsonRequired] | |
| 1735 | - [JsonPropertyName("nil")] | |
| 1736 | - public Nil Nil { get; set; } | |
| 1737 | - | |
| 1738 | - [JsonRequired] | |
| 1739 | - [JsonPropertyName("NO")] | |
| 1740 | - public No No { get; set; } | |
| 1741 | 1737 | } |
| 1742 | 1738 | |
| 1743 | 1739 | public partial class Goto |
| @@ -2083,6 +2079,13 @@ namespace QuickType | ||
| 2083 | 2079 | public long ListList { get; set; } |
| 2084 | 2080 | } |
| 2085 | 2081 | |
| 2082 | + public partial class LocalDate | |
| 2083 | + { | |
| 2084 | + [JsonRequired] | |
| 2085 | + [JsonPropertyName("LocalDate")] | |
| 2086 | + public long LocalDateLocalDate { get; set; } | |
| 2087 | + } | |
| 2088 | + | |
| 2086 | 2089 | public partial class Locale |
| 2087 | 2090 | { |
| 2088 | 2091 | [JsonRequired] |
| @@ -2181,25 +2184,19 @@ namespace QuickType | ||
| 2181 | 2184 | public long NewtonsoftNewtonsoft { get; set; } |
| 2182 | 2185 | } |
| 2183 | 2186 | |
| 2184 | - public partial class Nil | |
| 2187 | + public partial class Obj4 | |
| 2185 | 2188 | { |
| 2186 | 2189 | [JsonRequired] |
| 2187 | - [JsonPropertyName("nil")] | |
| 2188 | - public long NilNil { get; set; } | |
| 2189 | - } | |
| 2190 | + [JsonPropertyName("dummy")] | |
| 2191 | + public long Dummy { get; set; } | |
| 2190 | 2192 | |
| 2191 | - public partial class No | |
| 2192 | - { | |
| 2193 | 2193 | [JsonRequired] |
| 2194 | - [JsonPropertyName("NO")] | |
| 2195 | - public long NoNo { get; set; } | |
| 2196 | - } | |
| 2194 | + [JsonPropertyName("nil")] | |
| 2195 | + public Nil Nil { get; set; } | |
| 2197 | 2196 | |
| 2198 | - public partial class Obj4 | |
| 2199 | - { | |
| 2200 | 2197 | [JsonRequired] |
| 2201 | - [JsonPropertyName("dummy")] | |
| 2202 | - public long Dummy { get; set; } | |
| 2198 | + [JsonPropertyName("NO")] | |
| 2199 | + public No No { get; set; } | |
| 2203 | 2200 | |
| 2204 | 2201 | [JsonRequired] |
| 2205 | 2202 | [JsonPropertyName("noSuchMethod")] |
| @@ -2285,6 +2282,14 @@ namespace QuickType | ||
| 2285 | 2282 | [JsonPropertyName("of")] |
| 2286 | 2283 | public Of Of { get; set; } |
| 2287 | 2284 | |
| 2285 | + [JsonRequired] | |
| 2286 | + [JsonPropertyName("OffsetDateTime")] | |
| 2287 | + public OffsetDateTime OffsetDateTime { get; set; } | |
| 2288 | + | |
| 2289 | + [JsonRequired] | |
| 2290 | + [JsonPropertyName("OffsetTime")] | |
| 2291 | + public OffsetTime OffsetTime { get; set; } | |
| 2292 | + | |
| 2288 | 2293 | [JsonRequired] |
| 2289 | 2294 | [JsonPropertyName("oneway")] |
| 2290 | 2295 | public Oneway Oneway { get; set; } |
| @@ -2440,22 +2445,20 @@ namespace QuickType | ||
| 2440 | 2445 | [JsonRequired] |
| 2441 | 2446 | [JsonPropertyName("runtimeType")] |
| 2442 | 2447 | public RuntimeType RuntimeType { get; set; } |
| 2448 | + } | |
| 2443 | 2449 | |
| 2450 | + public partial class Nil | |
| 2451 | + { | |
| 2444 | 2452 | [JsonRequired] |
| 2445 | - [JsonPropertyName("s")] | |
| 2446 | - public S S { get; set; } | |
| 2447 | - | |
| 2448 | - [JsonRequired] | |
| 2449 | - [JsonPropertyName("sbyte")] | |
| 2450 | - public Sbyte Sbyte { get; set; } | |
| 2451 | - | |
| 2452 | - [JsonRequired] | |
| 2453 | - [JsonPropertyName("sealed")] | |
| 2454 | - public Sealed Sealed { get; set; } | |
| 2453 | + [JsonPropertyName("nil")] | |
| 2454 | + public long NilNil { get; set; } | |
| 2455 | + } | |
| 2455 | 2456 | |
| 2457 | + public partial class No | |
| 2458 | + { | |
| 2456 | 2459 | [JsonRequired] |
| 2457 | - [JsonPropertyName("SEL")] | |
| 2458 | - public Sel Sel { get; set; } | |
| 2460 | + [JsonPropertyName("NO")] | |
| 2461 | + public long NoNo { get; set; } | |
| 2459 | 2462 | } |
| 2460 | 2463 | |
| 2461 | 2464 | public partial class NoSuchMethod |
| @@ -2605,6 +2608,20 @@ namespace QuickType | ||
| 2605 | 2608 | public long OfOf { get; set; } |
| 2606 | 2609 | } |
| 2607 | 2610 | |
| 2611 | + public partial class OffsetDateTime | |
| 2612 | + { | |
| 2613 | + [JsonRequired] | |
| 2614 | + [JsonPropertyName("OffsetDateTime")] | |
| 2615 | + public long OffsetDateTimeOffsetDateTime { get; set; } | |
| 2616 | + } | |
| 2617 | + | |
| 2618 | + public partial class OffsetTime | |
| 2619 | + { | |
| 2620 | + [JsonRequired] | |
| 2621 | + [JsonPropertyName("OffsetTime")] | |
| 2622 | + public long OffsetTimeOffsetTime { get; set; } | |
| 2623 | + } | |
| 2624 | + | |
| 2608 | 2625 | public partial class Oneway |
| 2609 | 2626 | { |
| 2610 | 2627 | [JsonRequired] |
| @@ -2878,34 +2895,6 @@ namespace QuickType | ||
| 2878 | 2895 | public long RuntimeTypeRuntimeType { get; set; } |
| 2879 | 2896 | } |
| 2880 | 2897 | |
| 2881 | - public partial class S | |
| 2882 | - { | |
| 2883 | - [JsonRequired] | |
| 2884 | - [JsonPropertyName("s")] | |
| 2885 | - public long SS { get; set; } | |
| 2886 | - } | |
| 2887 | - | |
| 2888 | - public partial class Sbyte | |
| 2889 | - { | |
| 2890 | - [JsonRequired] | |
| 2891 | - [JsonPropertyName("sbyte")] | |
| 2892 | - public long SbyteSbyte { get; set; } | |
| 2893 | - } | |
| 2894 | - | |
| 2895 | - public partial class Sealed | |
| 2896 | - { | |
| 2897 | - [JsonRequired] | |
| 2898 | - [JsonPropertyName("sealed")] | |
| 2899 | - public long SealedSealed { get; set; } | |
| 2900 | - } | |
| 2901 | - | |
| 2902 | - public partial class Sel | |
| 2903 | - { | |
| 2904 | - [JsonRequired] | |
| 2905 | - [JsonPropertyName("SEL")] | |
| 2906 | - public long SelSel { get; set; } | |
| 2907 | - } | |
| 2908 | - | |
| 2909 | 2898 | public partial class Obj5 |
| 2910 | 2899 | { |
| 2911 | 2900 | [JsonRequired] |
| @@ -2940,6 +2929,22 @@ namespace QuickType | ||
| 2940 | 2929 | [JsonPropertyName("PrimitiveKind")] |
| 2941 | 2930 | public PrimitiveKind PrimitiveKind { get; set; } |
| 2942 | 2931 | |
| 2932 | + [JsonRequired] | |
| 2933 | + [JsonPropertyName("s")] | |
| 2934 | + public S S { get; set; } | |
| 2935 | + | |
| 2936 | + [JsonRequired] | |
| 2937 | + [JsonPropertyName("sbyte")] | |
| 2938 | + public Sbyte Sbyte { get; set; } | |
| 2939 | + | |
| 2940 | + [JsonRequired] | |
| 2941 | + [JsonPropertyName("sealed")] | |
| 2942 | + public Sealed Sealed { get; set; } | |
| 2943 | + | |
| 2944 | + [JsonRequired] | |
| 2945 | + [JsonPropertyName("SEL")] | |
| 2946 | + public Sel Sel { get; set; } | |
| 2947 | + | |
| 2943 | 2948 | [JsonRequired] |
| 2944 | 2949 | [JsonPropertyName("select")] |
| 2945 | 2950 | public Select Select { get; set; } |
| @@ -3151,26 +3156,6 @@ namespace QuickType | ||
| 3151 | 3156 | [JsonRequired] |
| 3152 | 3157 | [JsonPropertyName("undefined")] |
| 3153 | 3158 | public Undefined Undefined { get; set; } |
| 3154 | - | |
| 3155 | - [JsonRequired] | |
| 3156 | - [JsonPropertyName("union")] | |
| 3157 | - public Union Union { get; set; } | |
| 3158 | - | |
| 3159 | - [JsonRequired] | |
| 3160 | - [JsonPropertyName("UnmarshalJSON")] | |
| 3161 | - public UnmarshalJson UnmarshalJson { get; set; } | |
| 3162 | - | |
| 3163 | - [JsonRequired] | |
| 3164 | - [JsonPropertyName("unowned")] | |
| 3165 | - public Unowned Unowned { get; set; } | |
| 3166 | - | |
| 3167 | - [JsonRequired] | |
| 3168 | - [JsonPropertyName("unsafe")] | |
| 3169 | - public Unsafe Unsafe { get; set; } | |
| 3170 | - | |
| 3171 | - [JsonRequired] | |
| 3172 | - [JsonPropertyName("UseSerializers")] | |
| 3173 | - public UseSerializers UseSerializers { get; set; } | |
| 3174 | 3159 | } |
| 3175 | 3160 | |
| 3176 | 3161 | public partial class KSerializer |
| @@ -3222,6 +3207,34 @@ namespace QuickType | ||
| 3222 | 3207 | public long PrimitiveKindPrimitiveKind { get; set; } |
| 3223 | 3208 | } |
| 3224 | 3209 | |
| 3210 | + public partial class S | |
| 3211 | + { | |
| 3212 | + [JsonRequired] | |
| 3213 | + [JsonPropertyName("s")] | |
| 3214 | + public long SS { get; set; } | |
| 3215 | + } | |
| 3216 | + | |
| 3217 | + public partial class Sbyte | |
| 3218 | + { | |
| 3219 | + [JsonRequired] | |
| 3220 | + [JsonPropertyName("sbyte")] | |
| 3221 | + public long SbyteSbyte { get; set; } | |
| 3222 | + } | |
| 3223 | + | |
| 3224 | + public partial class Sealed | |
| 3225 | + { | |
| 3226 | + [JsonRequired] | |
| 3227 | + [JsonPropertyName("sealed")] | |
| 3228 | + public long SealedSealed { get; set; } | |
| 3229 | + } | |
| 3230 | + | |
| 3231 | + public partial class Sel | |
| 3232 | + { | |
| 3233 | + [JsonRequired] | |
| 3234 | + [JsonPropertyName("SEL")] | |
| 3235 | + public long SelSel { get; set; } | |
| 3236 | + } | |
| 3237 | + | |
| 3225 | 3238 | public partial class Select |
| 3226 | 3239 | { |
| 3227 | 3240 | [JsonRequired] |
| @@ -3593,51 +3606,36 @@ namespace QuickType | ||
| 3593 | 3606 | public long UndefinedUndefined { get; set; } |
| 3594 | 3607 | } |
| 3595 | 3608 | |
| 3596 | - public partial class Union | |
| 3609 | + public partial class Obj6 | |
| 3597 | 3610 | { |
| 3611 | + [JsonRequired] | |
| 3612 | + [JsonPropertyName("dummy")] | |
| 3613 | + public long Dummy { get; set; } | |
| 3614 | + | |
| 3598 | 3615 | [JsonRequired] |
| 3599 | 3616 | [JsonPropertyName("union")] |
| 3600 | - public long UnionUnion { get; set; } | |
| 3601 | - } | |
| 3617 | + public Union Union { get; set; } | |
| 3602 | 3618 | |
| 3603 | - public partial class UnmarshalJson | |
| 3604 | - { | |
| 3605 | 3619 | [JsonRequired] |
| 3606 | 3620 | [JsonPropertyName("UnmarshalJSON")] |
| 3607 | - public long UnmarshalJsonUnmarshalJson { get; set; } | |
| 3608 | - } | |
| 3621 | + public UnmarshalJson UnmarshalJson { get; set; } | |
| 3609 | 3622 | |
| 3610 | - public partial class Unowned | |
| 3611 | - { | |
| 3612 | 3623 | [JsonRequired] |
| 3613 | 3624 | [JsonPropertyName("unowned")] |
| 3614 | - public long UnownedUnowned { get; set; } | |
| 3615 | - } | |
| 3625 | + public Unowned Unowned { get; set; } | |
| 3616 | 3626 | |
| 3617 | - public partial class Unsafe | |
| 3618 | - { | |
| 3619 | 3627 | [JsonRequired] |
| 3620 | 3628 | [JsonPropertyName("unsafe")] |
| 3621 | - public long UnsafeUnsafe { get; set; } | |
| 3622 | - } | |
| 3623 | - | |
| 3624 | - public partial class UseSerializers | |
| 3625 | - { | |
| 3626 | - [JsonRequired] | |
| 3627 | - [JsonPropertyName("UseSerializers")] | |
| 3628 | - public long UseSerializersUseSerializers { get; set; } | |
| 3629 | - } | |
| 3630 | - | |
| 3631 | - public partial class Obj6 | |
| 3632 | - { | |
| 3633 | - [JsonRequired] | |
| 3634 | - [JsonPropertyName("dummy")] | |
| 3635 | - public long Dummy { get; set; } | |
| 3629 | + public Unsafe Unsafe { get; set; } | |
| 3636 | 3630 | |
| 3637 | 3631 | [JsonRequired] |
| 3638 | 3632 | [JsonPropertyName("unsigned")] |
| 3639 | 3633 | public Unsigned Unsigned { get; set; } |
| 3640 | 3634 | |
| 3635 | + [JsonRequired] | |
| 3636 | + [JsonPropertyName("UseSerializers")] | |
| 3637 | + public UseSerializers UseSerializers { get; set; } | |
| 3638 | + | |
| 3641 | 3639 | [JsonRequired] |
| 3642 | 3640 | [JsonPropertyName("ushort")] |
| 3643 | 3641 | public Ushort Ushort { get; set; } |
| @@ -3715,6 +3713,34 @@ namespace QuickType | ||
| 3715 | 3713 | public Yield Yield { get; set; } |
| 3716 | 3714 | } |
| 3717 | 3715 | |
| 3716 | + public partial class Union | |
| 3717 | + { | |
| 3718 | + [JsonRequired] | |
| 3719 | + [JsonPropertyName("union")] | |
| 3720 | + public long UnionUnion { get; set; } | |
| 3721 | + } | |
| 3722 | + | |
| 3723 | + public partial class UnmarshalJson | |
| 3724 | + { | |
| 3725 | + [JsonRequired] | |
| 3726 | + [JsonPropertyName("UnmarshalJSON")] | |
| 3727 | + public long UnmarshalJsonUnmarshalJson { get; set; } | |
| 3728 | + } | |
| 3729 | + | |
| 3730 | + public partial class Unowned | |
| 3731 | + { | |
| 3732 | + [JsonRequired] | |
| 3733 | + [JsonPropertyName("unowned")] | |
| 3734 | + public long UnownedUnowned { get; set; } | |
| 3735 | + } | |
| 3736 | + | |
| 3737 | + public partial class Unsafe | |
| 3738 | + { | |
| 3739 | + [JsonRequired] | |
| 3740 | + [JsonPropertyName("unsafe")] | |
| 3741 | + public long UnsafeUnsafe { get; set; } | |
| 3742 | + } | |
| 3743 | + | |
| 3718 | 3744 | public partial class Unsigned |
| 3719 | 3745 | { |
| 3720 | 3746 | [JsonRequired] |
| @@ -3722,6 +3748,13 @@ namespace QuickType | ||
| 3722 | 3748 | public long UnsignedUnsigned { get; set; } |
| 3723 | 3749 | } |
| 3724 | 3750 | |
| 3751 | + public partial class UseSerializers | |
| 3752 | + { | |
| 3753 | + [JsonRequired] | |
| 3754 | + [JsonPropertyName("UseSerializers")] | |
| 3755 | + public long UseSerializersUseSerializers { get; set; } | |
| 3756 | + } | |
| 3757 | + | |
| 3725 | 3758 | public partial class Ushort |
| 3726 | 3759 | { |
| 3727 | 3760 | [JsonRequired] |
Mcsharpdefault / QuickType.cs+120 −93
| @@ -1363,6 +1363,9 @@ namespace QuickType | ||
| 1363 | 1363 | [JsonProperty("list", Required = Required.Always)] |
| 1364 | 1364 | public List List { get; set; } |
| 1365 | 1365 | |
| 1366 | + [JsonProperty("LocalDate", Required = Required.Always)] | |
| 1367 | + public LocalDate LocalDate { get; set; } | |
| 1368 | + | |
| 1366 | 1369 | [JsonProperty("Locale", Required = Required.Always)] |
| 1367 | 1370 | public Locale Locale { get; set; } |
| 1368 | 1371 | |
| @@ -1404,12 +1407,6 @@ namespace QuickType | ||
| 1404 | 1407 | |
| 1405 | 1408 | [JsonProperty("newtonsoft", Required = Required.Always)] |
| 1406 | 1409 | public NewtonsoftClass Newtonsoft { get; set; } |
| 1407 | - | |
| 1408 | - [JsonProperty("nil", Required = Required.Always)] | |
| 1409 | - public Nil Nil { get; set; } | |
| 1410 | - | |
| 1411 | - [JsonProperty("NO", Required = Required.Always)] | |
| 1412 | - public No No { get; set; } | |
| 1413 | 1410 | } |
| 1414 | 1411 | |
| 1415 | 1412 | public partial class Goto |
| @@ -1706,6 +1703,12 @@ namespace QuickType | ||
| 1706 | 1703 | public long ListList { get; set; } |
| 1707 | 1704 | } |
| 1708 | 1705 | |
| 1706 | + public partial class LocalDate | |
| 1707 | + { | |
| 1708 | + [JsonProperty("LocalDate", Required = Required.Always)] | |
| 1709 | + public long LocalDateLocalDate { get; set; } | |
| 1710 | + } | |
| 1711 | + | |
| 1709 | 1712 | public partial class Locale |
| 1710 | 1713 | { |
| 1711 | 1714 | [JsonProperty("Locale", Required = Required.Always)] |
| @@ -1790,23 +1793,17 @@ namespace QuickType | ||
| 1790 | 1793 | public long Newtonsoft { get; set; } |
| 1791 | 1794 | } |
| 1792 | 1795 | |
| 1793 | - public partial class Nil | |
| 1794 | - { | |
| 1795 | - [JsonProperty("nil", Required = Required.Always)] | |
| 1796 | - public long NilNil { get; set; } | |
| 1797 | - } | |
| 1798 | - | |
| 1799 | - public partial class No | |
| 1800 | - { | |
| 1801 | - [JsonProperty("NO", Required = Required.Always)] | |
| 1802 | - public long NoNo { get; set; } | |
| 1803 | - } | |
| 1804 | - | |
| 1805 | 1796 | public partial class Obj4 |
| 1806 | 1797 | { |
| 1807 | 1798 | [JsonProperty("dummy", Required = Required.Always)] |
| 1808 | 1799 | public long Dummy { get; set; } |
| 1809 | 1800 | |
| 1801 | + [JsonProperty("nil", Required = Required.Always)] | |
| 1802 | + public Nil Nil { get; set; } | |
| 1803 | + | |
| 1804 | + [JsonProperty("NO", Required = Required.Always)] | |
| 1805 | + public No No { get; set; } | |
| 1806 | + | |
| 1810 | 1807 | [JsonProperty("noSuchMethod", Required = Required.Always)] |
| 1811 | 1808 | public NoSuchMethod NoSuchMethod { get; set; } |
| 1812 | 1809 | |
| @@ -1870,6 +1867,12 @@ namespace QuickType | ||
| 1870 | 1867 | [JsonProperty("of", Required = Required.Always)] |
| 1871 | 1868 | public Of Of { get; set; } |
| 1872 | 1869 | |
| 1870 | + [JsonProperty("OffsetDateTime", Required = Required.Always)] | |
| 1871 | + public OffsetDateTime OffsetDateTime { get; set; } | |
| 1872 | + | |
| 1873 | + [JsonProperty("OffsetTime", Required = Required.Always)] | |
| 1874 | + public OffsetTime OffsetTime { get; set; } | |
| 1875 | + | |
| 1873 | 1876 | [JsonProperty("oneway", Required = Required.Always)] |
| 1874 | 1877 | public Oneway Oneway { get; set; } |
| 1875 | 1878 | |
| @@ -1986,18 +1989,18 @@ namespace QuickType | ||
| 1986 | 1989 | |
| 1987 | 1990 | [JsonProperty("runtimeType", Required = Required.Always)] |
| 1988 | 1991 | public RuntimeType RuntimeType { get; set; } |
| 1992 | + } | |
| 1989 | 1993 | |
| 1990 | - [JsonProperty("s", Required = Required.Always)] | |
| 1991 | - public S S { get; set; } | |
| 1992 | - | |
| 1993 | - [JsonProperty("sbyte", Required = Required.Always)] | |
| 1994 | - public Sbyte Sbyte { get; set; } | |
| 1995 | - | |
| 1996 | - [JsonProperty("sealed", Required = Required.Always)] | |
| 1997 | - public Sealed Sealed { get; set; } | |
| 1994 | + public partial class Nil | |
| 1995 | + { | |
| 1996 | + [JsonProperty("nil", Required = Required.Always)] | |
| 1997 | + public long NilNil { get; set; } | |
| 1998 | + } | |
| 1998 | 1999 | |
| 1999 | - [JsonProperty("SEL", Required = Required.Always)] | |
| 2000 | - public Sel Sel { get; set; } | |
| 2000 | + public partial class No | |
| 2001 | + { | |
| 2002 | + [JsonProperty("NO", Required = Required.Always)] | |
| 2003 | + public long NoNo { get; set; } | |
| 2001 | 2004 | } |
| 2002 | 2005 | |
| 2003 | 2006 | public partial class NoSuchMethod |
| @@ -2126,6 +2129,18 @@ namespace QuickType | ||
| 2126 | 2129 | public long OfOf { get; set; } |
| 2127 | 2130 | } |
| 2128 | 2131 | |
| 2132 | + public partial class OffsetDateTime | |
| 2133 | + { | |
| 2134 | + [JsonProperty("OffsetDateTime", Required = Required.Always)] | |
| 2135 | + public long OffsetDateTimeOffsetDateTime { get; set; } | |
| 2136 | + } | |
| 2137 | + | |
| 2138 | + public partial class OffsetTime | |
| 2139 | + { | |
| 2140 | + [JsonProperty("OffsetTime", Required = Required.Always)] | |
| 2141 | + public long OffsetTimeOffsetTime { get; set; } | |
| 2142 | + } | |
| 2143 | + | |
| 2129 | 2144 | public partial class Oneway |
| 2130 | 2145 | { |
| 2131 | 2146 | [JsonProperty("oneway", Required = Required.Always)] |
| @@ -2360,30 +2375,6 @@ namespace QuickType | ||
| 2360 | 2375 | public long RuntimeTypeRuntimeType { get; set; } |
| 2361 | 2376 | } |
| 2362 | 2377 | |
| 2363 | - public partial class S | |
| 2364 | - { | |
| 2365 | - [JsonProperty("s", Required = Required.Always)] | |
| 2366 | - public long SS { get; set; } | |
| 2367 | - } | |
| 2368 | - | |
| 2369 | - public partial class Sbyte | |
| 2370 | - { | |
| 2371 | - [JsonProperty("sbyte", Required = Required.Always)] | |
| 2372 | - public long SbyteSbyte { get; set; } | |
| 2373 | - } | |
| 2374 | - | |
| 2375 | - public partial class Sealed | |
| 2376 | - { | |
| 2377 | - [JsonProperty("sealed", Required = Required.Always)] | |
| 2378 | - public long SealedSealed { get; set; } | |
| 2379 | - } | |
| 2380 | - | |
| 2381 | - public partial class Sel | |
| 2382 | - { | |
| 2383 | - [JsonProperty("SEL", Required = Required.Always)] | |
| 2384 | - public long SelSel { get; set; } | |
| 2385 | - } | |
| 2386 | - | |
| 2387 | 2378 | public partial class Obj5 |
| 2388 | 2379 | { |
| 2389 | 2380 | [JsonProperty("dummy", Required = Required.Always)] |
| @@ -2410,6 +2401,18 @@ namespace QuickType | ||
| 2410 | 2401 | [JsonProperty("PrimitiveKind", Required = Required.Always)] |
| 2411 | 2402 | public PrimitiveKind PrimitiveKind { get; set; } |
| 2412 | 2403 | |
| 2404 | + [JsonProperty("s", Required = Required.Always)] | |
| 2405 | + public S S { get; set; } | |
| 2406 | + | |
| 2407 | + [JsonProperty("sbyte", Required = Required.Always)] | |
| 2408 | + public Sbyte Sbyte { get; set; } | |
| 2409 | + | |
| 2410 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2411 | + public Sealed Sealed { get; set; } | |
| 2412 | + | |
| 2413 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2414 | + public Sel Sel { get; set; } | |
| 2415 | + | |
| 2413 | 2416 | [JsonProperty("select", Required = Required.Always)] |
| 2414 | 2417 | public Select Select { get; set; } |
| 2415 | 2418 | |
| @@ -2568,21 +2571,6 @@ namespace QuickType | ||
| 2568 | 2571 | |
| 2569 | 2572 | [JsonProperty("undefined", Required = Required.Always)] |
| 2570 | 2573 | public Undefined Undefined { get; set; } |
| 2571 | - | |
| 2572 | - [JsonProperty("union", Required = Required.Always)] | |
| 2573 | - public Union Union { get; set; } | |
| 2574 | - | |
| 2575 | - [JsonProperty("UnmarshalJSON", Required = Required.Always)] | |
| 2576 | - public UnmarshalJson UnmarshalJson { get; set; } | |
| 2577 | - | |
| 2578 | - [JsonProperty("unowned", Required = Required.Always)] | |
| 2579 | - public Unowned Unowned { get; set; } | |
| 2580 | - | |
| 2581 | - [JsonProperty("unsafe", Required = Required.Always)] | |
| 2582 | - public Unsafe Unsafe { get; set; } | |
| 2583 | - | |
| 2584 | - [JsonProperty("UseSerializers", Required = Required.Always)] | |
| 2585 | - public UseSerializers UseSerializers { get; set; } | |
| 2586 | 2574 | } |
| 2587 | 2575 | |
| 2588 | 2576 | public partial class KSerializer |
| @@ -2627,6 +2615,30 @@ namespace QuickType | ||
| 2627 | 2615 | public long PrimitiveKindPrimitiveKind { get; set; } |
| 2628 | 2616 | } |
| 2629 | 2617 | |
| 2618 | + public partial class S | |
| 2619 | + { | |
| 2620 | + [JsonProperty("s", Required = Required.Always)] | |
| 2621 | + public long SS { get; set; } | |
| 2622 | + } | |
| 2623 | + | |
| 2624 | + public partial class Sbyte | |
| 2625 | + { | |
| 2626 | + [JsonProperty("sbyte", Required = Required.Always)] | |
| 2627 | + public long SbyteSbyte { get; set; } | |
| 2628 | + } | |
| 2629 | + | |
| 2630 | + public partial class Sealed | |
| 2631 | + { | |
| 2632 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2633 | + public long SealedSealed { get; set; } | |
| 2634 | + } | |
| 2635 | + | |
| 2636 | + public partial class Sel | |
| 2637 | + { | |
| 2638 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2639 | + public long SelSel { get; set; } | |
| 2640 | + } | |
| 2641 | + | |
| 2630 | 2642 | public partial class Select |
| 2631 | 2643 | { |
| 2632 | 2644 | [JsonProperty("select", Required = Required.Always)] |
| @@ -2945,44 +2957,29 @@ namespace QuickType | ||
| 2945 | 2957 | public long UndefinedUndefined { get; set; } |
| 2946 | 2958 | } |
| 2947 | 2959 | |
| 2948 | - public partial class Union | |
| 2960 | + public partial class Obj6 | |
| 2949 | 2961 | { |
| 2962 | + [JsonProperty("dummy", Required = Required.Always)] | |
| 2963 | + public long Dummy { get; set; } | |
| 2964 | + | |
| 2950 | 2965 | [JsonProperty("union", Required = Required.Always)] |
| 2951 | - public long UnionUnion { get; set; } | |
| 2952 | - } | |
| 2966 | + public Union Union { get; set; } | |
| 2953 | 2967 | |
| 2954 | - public partial class UnmarshalJson | |
| 2955 | - { | |
| 2956 | 2968 | [JsonProperty("UnmarshalJSON", Required = Required.Always)] |
| 2957 | - public long UnmarshalJsonUnmarshalJson { get; set; } | |
| 2958 | - } | |
| 2969 | + public UnmarshalJson UnmarshalJson { get; set; } | |
| 2959 | 2970 | |
| 2960 | - public partial class Unowned | |
| 2961 | - { | |
| 2962 | 2971 | [JsonProperty("unowned", Required = Required.Always)] |
| 2963 | - public long UnownedUnowned { get; set; } | |
| 2964 | - } | |
| 2972 | + public Unowned Unowned { get; set; } | |
| 2965 | 2973 | |
| 2966 | - public partial class Unsafe | |
| 2967 | - { | |
| 2968 | 2974 | [JsonProperty("unsafe", Required = Required.Always)] |
| 2969 | - public long UnsafeUnsafe { get; set; } | |
| 2970 | - } | |
| 2971 | - | |
| 2972 | - public partial class UseSerializers | |
| 2973 | - { | |
| 2974 | - [JsonProperty("UseSerializers", Required = Required.Always)] | |
| 2975 | - public long UseSerializersUseSerializers { get; set; } | |
| 2976 | - } | |
| 2977 | - | |
| 2978 | - public partial class Obj6 | |
| 2979 | - { | |
| 2980 | - [JsonProperty("dummy", Required = Required.Always)] | |
| 2981 | - public long Dummy { get; set; } | |
| 2975 | + public Unsafe Unsafe { get; set; } | |
| 2982 | 2976 | |
| 2983 | 2977 | [JsonProperty("unsigned", Required = Required.Always)] |
| 2984 | 2978 | public Unsigned Unsigned { get; set; } |
| 2985 | 2979 | |
| 2980 | + [JsonProperty("UseSerializers", Required = Required.Always)] | |
| 2981 | + public UseSerializers UseSerializers { get; set; } | |
| 2982 | + | |
| 2986 | 2983 | [JsonProperty("ushort", Required = Required.Always)] |
| 2987 | 2984 | public Ushort Ushort { get; set; } |
| 2988 | 2985 | |
| @@ -3041,12 +3038,42 @@ namespace QuickType | ||
| 3041 | 3038 | public Yield Yield { get; set; } |
| 3042 | 3039 | } |
| 3043 | 3040 | |
| 3041 | + public partial class Union | |
| 3042 | + { | |
| 3043 | + [JsonProperty("union", Required = Required.Always)] | |
| 3044 | + public long UnionUnion { get; set; } | |
| 3045 | + } | |
| 3046 | + | |
| 3047 | + public partial class UnmarshalJson | |
| 3048 | + { | |
| 3049 | + [JsonProperty("UnmarshalJSON", Required = Required.Always)] | |
| 3050 | + public long UnmarshalJsonUnmarshalJson { get; set; } | |
| 3051 | + } | |
| 3052 | + | |
| 3053 | + public partial class Unowned | |
| 3054 | + { | |
| 3055 | + [JsonProperty("unowned", Required = Required.Always)] | |
| 3056 | + public long UnownedUnowned { get; set; } | |
| 3057 | + } | |
| 3058 | + | |
| 3059 | + public partial class Unsafe | |
| 3060 | + { | |
| 3061 | + [JsonProperty("unsafe", Required = Required.Always)] | |
| 3062 | + public long UnsafeUnsafe { get; set; } | |
| 3063 | + } | |
| 3064 | + | |
| 3044 | 3065 | public partial class Unsigned |
| 3045 | 3066 | { |
| 3046 | 3067 | [JsonProperty("unsigned", Required = Required.Always)] |
| 3047 | 3068 | public long UnsignedUnsigned { get; set; } |
| 3048 | 3069 | } |
| 3049 | 3070 | |
| 3071 | + public partial class UseSerializers | |
| 3072 | + { | |
| 3073 | + [JsonProperty("UseSerializers", Required = Required.Always)] | |
| 3074 | + public long UseSerializersUseSerializers { get; set; } | |
| 3075 | + } | |
| 3076 | + | |
| 3050 | 3077 | public partial class Ushort |
| 3051 | 3078 | { |
| 3052 | 3079 | [JsonProperty("ushort", Required = Required.Always)] |
Mdartdefault / TopLevel.dart+280 −220
| @@ -2693,6 +2693,7 @@ class Obj3 { | ||
| 2693 | 2693 | final Left left; |
| 2694 | 2694 | final Let let; |
| 2695 | 2695 | final ListClass list; |
| 2696 | + final LocalDate localDate; | |
| 2696 | 2697 | final Locale locale; |
| 2697 | 2698 | final Lock lock; |
| 2698 | 2699 | final Long long; |
| @@ -2706,8 +2707,6 @@ class Obj3 { | ||
| 2706 | 2707 | final Namespace namespace; |
| 2707 | 2708 | final Native native; |
| 2708 | 2709 | final Newtonsoft newtonsoft; |
| 2709 | - final Nil nil; | |
| 2710 | - final No no; | |
| 2711 | 2710 | final HashCode obj3HashCode; |
| 2712 | 2711 | final If obj3If; |
| 2713 | 2712 | final Implements obj3Implements; |
| @@ -2761,6 +2760,7 @@ class Obj3 { | ||
| 2761 | 2760 | required this.left, |
| 2762 | 2761 | required this.let, |
| 2763 | 2762 | required this.list, |
| 2763 | + required this.localDate, | |
| 2764 | 2764 | required this.locale, |
| 2765 | 2765 | required this.lock, |
| 2766 | 2766 | required this.long, |
| @@ -2774,8 +2774,6 @@ class Obj3 { | ||
| 2774 | 2774 | required this.namespace, |
| 2775 | 2775 | required this.native, |
| 2776 | 2776 | required this.newtonsoft, |
| 2777 | - required this.nil, | |
| 2778 | - required this.no, | |
| 2779 | 2777 | required this.obj3HashCode, |
| 2780 | 2778 | required this.obj3If, |
| 2781 | 2779 | required this.obj3Implements, |
| @@ -2830,6 +2828,7 @@ class Obj3 { | ||
| 2830 | 2828 | left: Left.fromJson(json["left"]), |
| 2831 | 2829 | let: Let.fromJson(json["let"]), |
| 2832 | 2830 | list: ListClass.fromJson(json["list"]), |
| 2831 | + localDate: LocalDate.fromJson(json["LocalDate"]), | |
| 2833 | 2832 | locale: Locale.fromJson(json["Locale"]), |
| 2834 | 2833 | lock: Lock.fromJson(json["lock"]), |
| 2835 | 2834 | long: Long.fromJson(json["long"]), |
| @@ -2843,8 +2842,6 @@ class Obj3 { | ||
| 2843 | 2842 | namespace: Namespace.fromJson(json["namespace"]), |
| 2844 | 2843 | native: Native.fromJson(json["native"]), |
| 2845 | 2844 | newtonsoft: Newtonsoft.fromJson(json["newtonsoft"]), |
| 2846 | - nil: Nil.fromJson(json["nil"]), | |
| 2847 | - no: No.fromJson(json["NO"]), | |
| 2848 | 2845 | obj3HashCode: HashCode.fromJson(json["hashCode"]), |
| 2849 | 2846 | obj3If: If.fromJson(json["if"]), |
| 2850 | 2847 | obj3Implements: Implements.fromJson(json["implements"]), |
| @@ -2899,6 +2896,7 @@ class Obj3 { | ||
| 2899 | 2896 | "left": left.toJson(), |
| 2900 | 2897 | "let": let.toJson(), |
| 2901 | 2898 | "list": list.toJson(), |
| 2899 | + "LocalDate": localDate.toJson(), | |
| 2902 | 2900 | "Locale": locale.toJson(), |
| 2903 | 2901 | "lock": lock.toJson(), |
| 2904 | 2902 | "long": long.toJson(), |
| @@ -2912,8 +2910,6 @@ class Obj3 { | ||
| 2912 | 2910 | "namespace": namespace.toJson(), |
| 2913 | 2911 | "native": native.toJson(), |
| 2914 | 2912 | "newtonsoft": newtonsoft.toJson(), |
| 2915 | - "nil": nil.toJson(), | |
| 2916 | - "NO": no.toJson(), | |
| 2917 | 2913 | "hashCode": obj3HashCode.toJson(), |
| 2918 | 2914 | "if": obj3If.toJson(), |
| 2919 | 2915 | "implements": obj3Implements.toJson(), |
| @@ -3582,6 +3578,22 @@ class ListClass { | ||
| 3582 | 3578 | }; |
| 3583 | 3579 | } |
| 3584 | 3580 | |
| 3581 | +class LocalDate { | |
| 3582 | + final int localDate; | |
| 3583 | + | |
| 3584 | + LocalDate({ | |
| 3585 | + required this.localDate, | |
| 3586 | + }); | |
| 3587 | + | |
| 3588 | + factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate( | |
| 3589 | + localDate: json["LocalDate"], | |
| 3590 | + ); | |
| 3591 | + | |
| 3592 | + Map<String, dynamic> toJson() => { | |
| 3593 | + "LocalDate": localDate, | |
| 3594 | + }; | |
| 3595 | +} | |
| 3596 | + | |
| 3585 | 3597 | class Locale { |
| 3586 | 3598 | final int locale; |
| 3587 | 3599 | |
| @@ -3790,38 +3802,6 @@ class Newtonsoft { | ||
| 3790 | 3802 | }; |
| 3791 | 3803 | } |
| 3792 | 3804 | |
| 3793 | -class Nil { | |
| 3794 | - final int nil; | |
| 3795 | - | |
| 3796 | - Nil({ | |
| 3797 | - required this.nil, | |
| 3798 | - }); | |
| 3799 | - | |
| 3800 | - factory Nil.fromJson(Map<String, dynamic> json) => Nil( | |
| 3801 | - nil: json["nil"], | |
| 3802 | - ); | |
| 3803 | - | |
| 3804 | - Map<String, dynamic> toJson() => { | |
| 3805 | - "nil": nil, | |
| 3806 | - }; | |
| 3807 | -} | |
| 3808 | - | |
| 3809 | -class No { | |
| 3810 | - final int no; | |
| 3811 | - | |
| 3812 | - No({ | |
| 3813 | - required this.no, | |
| 3814 | - }); | |
| 3815 | - | |
| 3816 | - factory No.fromJson(Map<String, dynamic> json) => No( | |
| 3817 | - no: json["NO"], | |
| 3818 | - ); | |
| 3819 | - | |
| 3820 | - Map<String, dynamic> toJson() => { | |
| 3821 | - "NO": no, | |
| 3822 | - }; | |
| 3823 | -} | |
| 3824 | - | |
| 3825 | 3805 | class HashCode { |
| 3826 | 3806 | final int hashCodeHashCode; |
| 3827 | 3807 | |
| @@ -3968,6 +3948,8 @@ class New { | ||
| 3968 | 3948 | |
| 3969 | 3949 | class Obj4 { |
| 3970 | 3950 | final int dummy; |
| 3951 | + final Nil nil; | |
| 3952 | + final No no; | |
| 3971 | 3953 | final Noexcept noexcept; |
| 3972 | 3954 | final Nonatomic nonatomic; |
| 3973 | 3955 | final None none; |
| @@ -3990,6 +3972,8 @@ class Obj4 { | ||
| 3990 | 3972 | final Object object; |
| 3991 | 3973 | final ObjectMapper objectMapper; |
| 3992 | 3974 | final Of of; |
| 3975 | + final OffsetDateTime offsetDateTime; | |
| 3976 | + final OffsetTime offsetTime; | |
| 3993 | 3977 | final Oneway oneway; |
| 3994 | 3978 | final Open open; |
| 3995 | 3979 | final Optional optional; |
| @@ -4028,13 +4012,11 @@ class Obj4 { | ||
| 4028 | 4012 | final Retain retain; |
| 4029 | 4013 | final Rethrows rethrows; |
| 4030 | 4014 | final Right right; |
| 4031 | - final S s; | |
| 4032 | - final Sbyte sbyte; | |
| 4033 | - final Sealed sealed; | |
| 4034 | - final Sel sel; | |
| 4035 | 4015 | |
| 4036 | 4016 | Obj4({ |
| 4037 | 4017 | required this.dummy, |
| 4018 | + required this.nil, | |
| 4019 | + required this.no, | |
| 4038 | 4020 | required this.noexcept, |
| 4039 | 4021 | required this.nonatomic, |
| 4040 | 4022 | required this.none, |
| @@ -4057,6 +4039,8 @@ class Obj4 { | ||
| 4057 | 4039 | required this.object, |
| 4058 | 4040 | required this.objectMapper, |
| 4059 | 4041 | required this.of, |
| 4042 | + required this.offsetDateTime, | |
| 4043 | + required this.offsetTime, | |
| 4060 | 4044 | required this.oneway, |
| 4061 | 4045 | required this.open, |
| 4062 | 4046 | required this.optional, |
| @@ -4095,14 +4079,12 @@ class Obj4 { | ||
| 4095 | 4079 | required this.retain, |
| 4096 | 4080 | required this.rethrows, |
| 4097 | 4081 | required this.right, |
| 4098 | - required this.s, | |
| 4099 | - required this.sbyte, | |
| 4100 | - required this.sealed, | |
| 4101 | - required this.sel, | |
| 4102 | 4082 | }); |
| 4103 | 4083 | |
| 4104 | 4084 | factory Obj4.fromJson(Map<String, dynamic> json) => Obj4( |
| 4105 | 4085 | dummy: json["dummy"], |
| 4086 | + nil: Nil.fromJson(json["nil"]), | |
| 4087 | + no: No.fromJson(json["NO"]), | |
| 4106 | 4088 | noexcept: Noexcept.fromJson(json["noexcept"]), |
| 4107 | 4089 | nonatomic: Nonatomic.fromJson(json["nonatomic"]), |
| 4108 | 4090 | none: None.fromJson(json["None"]), |
| @@ -4125,6 +4107,8 @@ class Obj4 { | ||
| 4125 | 4107 | object: Object.fromJson(json["object"]), |
| 4126 | 4108 | objectMapper: ObjectMapper.fromJson(json["ObjectMapper"]), |
| 4127 | 4109 | of: Of.fromJson(json["of"]), |
| 4110 | + offsetDateTime: OffsetDateTime.fromJson(json["OffsetDateTime"]), | |
| 4111 | + offsetTime: OffsetTime.fromJson(json["OffsetTime"]), | |
| 4128 | 4112 | oneway: Oneway.fromJson(json["oneway"]), |
| 4129 | 4113 | open: Open.fromJson(json["open"]), |
| 4130 | 4114 | optional: Optional.fromJson(json["optional"]), |
| @@ -4163,14 +4147,12 @@ class Obj4 { | ||
| 4163 | 4147 | retain: Retain.fromJson(json["retain"]), |
| 4164 | 4148 | rethrows: Rethrows.fromJson(json["rethrows"]), |
| 4165 | 4149 | right: Right.fromJson(json["right"]), |
| 4166 | - s: S.fromJson(json["s"]), | |
| 4167 | - sbyte: Sbyte.fromJson(json["sbyte"]), | |
| 4168 | - sealed: Sealed.fromJson(json["sealed"]), | |
| 4169 | - sel: Sel.fromJson(json["SEL"]), | |
| 4170 | 4150 | ); |
| 4171 | 4151 | |
| 4172 | 4152 | Map<String, dynamic> toJson() => { |
| 4173 | 4153 | "dummy": dummy, |
| 4154 | + "nil": nil.toJson(), | |
| 4155 | + "NO": no.toJson(), | |
| 4174 | 4156 | "noexcept": noexcept.toJson(), |
| 4175 | 4157 | "nonatomic": nonatomic.toJson(), |
| 4176 | 4158 | "None": none.toJson(), |
| @@ -4193,6 +4175,8 @@ class Obj4 { | ||
| 4193 | 4175 | "object": object.toJson(), |
| 4194 | 4176 | "ObjectMapper": objectMapper.toJson(), |
| 4195 | 4177 | "of": of.toJson(), |
| 4178 | + "OffsetDateTime": offsetDateTime.toJson(), | |
| 4179 | + "OffsetTime": offsetTime.toJson(), | |
| 4196 | 4180 | "oneway": oneway.toJson(), |
| 4197 | 4181 | "open": open.toJson(), |
| 4198 | 4182 | "optional": optional.toJson(), |
| @@ -4231,10 +4215,38 @@ class Obj4 { | ||
| 4231 | 4215 | "retain": retain.toJson(), |
| 4232 | 4216 | "rethrows": rethrows.toJson(), |
| 4233 | 4217 | "right": right.toJson(), |
| 4234 | - "s": s.toJson(), | |
| 4235 | - "sbyte": sbyte.toJson(), | |
| 4236 | - "sealed": sealed.toJson(), | |
| 4237 | - "SEL": sel.toJson(), | |
| 4218 | + }; | |
| 4219 | +} | |
| 4220 | + | |
| 4221 | +class Nil { | |
| 4222 | + final int nil; | |
| 4223 | + | |
| 4224 | + Nil({ | |
| 4225 | + required this.nil, | |
| 4226 | + }); | |
| 4227 | + | |
| 4228 | + factory Nil.fromJson(Map<String, dynamic> json) => Nil( | |
| 4229 | + nil: json["nil"], | |
| 4230 | + ); | |
| 4231 | + | |
| 4232 | + Map<String, dynamic> toJson() => { | |
| 4233 | + "nil": nil, | |
| 4234 | + }; | |
| 4235 | +} | |
| 4236 | + | |
| 4237 | +class No { | |
| 4238 | + final int no; | |
| 4239 | + | |
| 4240 | + No({ | |
| 4241 | + required this.no, | |
| 4242 | + }); | |
| 4243 | + | |
| 4244 | + factory No.fromJson(Map<String, dynamic> json) => No( | |
| 4245 | + no: json["NO"], | |
| 4246 | + ); | |
| 4247 | + | |
| 4248 | + Map<String, dynamic> toJson() => { | |
| 4249 | + "NO": no, | |
| 4238 | 4250 | }; |
| 4239 | 4251 | } |
| 4240 | 4252 | |
| @@ -4590,6 +4602,38 @@ class Of { | ||
| 4590 | 4602 | }; |
| 4591 | 4603 | } |
| 4592 | 4604 | |
| 4605 | +class OffsetDateTime { | |
| 4606 | + final int offsetDateTime; | |
| 4607 | + | |
| 4608 | + OffsetDateTime({ | |
| 4609 | + required this.offsetDateTime, | |
| 4610 | + }); | |
| 4611 | + | |
| 4612 | + factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime( | |
| 4613 | + offsetDateTime: json["OffsetDateTime"], | |
| 4614 | + ); | |
| 4615 | + | |
| 4616 | + Map<String, dynamic> toJson() => { | |
| 4617 | + "OffsetDateTime": offsetDateTime, | |
| 4618 | + }; | |
| 4619 | +} | |
| 4620 | + | |
| 4621 | +class OffsetTime { | |
| 4622 | + final int offsetTime; | |
| 4623 | + | |
| 4624 | + OffsetTime({ | |
| 4625 | + required this.offsetTime, | |
| 4626 | + }); | |
| 4627 | + | |
| 4628 | + factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime( | |
| 4629 | + offsetTime: json["OffsetTime"], | |
| 4630 | + ); | |
| 4631 | + | |
| 4632 | + Map<String, dynamic> toJson() => { | |
| 4633 | + "OffsetTime": offsetTime, | |
| 4634 | + }; | |
| 4635 | +} | |
| 4636 | + | |
| 4593 | 4637 | class Oneway { |
| 4594 | 4638 | final int oneway; |
| 4595 | 4639 | |
| @@ -5198,70 +5242,6 @@ class Right { | ||
| 5198 | 5242 | }; |
| 5199 | 5243 | } |
| 5200 | 5244 | |
| 5201 | -class S { | |
| 5202 | - final int s; | |
| 5203 | - | |
| 5204 | - S({ | |
| 5205 | - required this.s, | |
| 5206 | - }); | |
| 5207 | - | |
| 5208 | - factory S.fromJson(Map<String, dynamic> json) => S( | |
| 5209 | - s: json["s"], | |
| 5210 | - ); | |
| 5211 | - | |
| 5212 | - Map<String, dynamic> toJson() => { | |
| 5213 | - "s": s, | |
| 5214 | - }; | |
| 5215 | -} | |
| 5216 | - | |
| 5217 | -class Sbyte { | |
| 5218 | - final int sbyte; | |
| 5219 | - | |
| 5220 | - Sbyte({ | |
| 5221 | - required this.sbyte, | |
| 5222 | - }); | |
| 5223 | - | |
| 5224 | - factory Sbyte.fromJson(Map<String, dynamic> json) => Sbyte( | |
| 5225 | - sbyte: json["sbyte"], | |
| 5226 | - ); | |
| 5227 | - | |
| 5228 | - Map<String, dynamic> toJson() => { | |
| 5229 | - "sbyte": sbyte, | |
| 5230 | - }; | |
| 5231 | -} | |
| 5232 | - | |
| 5233 | -class Sealed { | |
| 5234 | - final int sealed; | |
| 5235 | - | |
| 5236 | - Sealed({ | |
| 5237 | - required this.sealed, | |
| 5238 | - }); | |
| 5239 | - | |
| 5240 | - factory Sealed.fromJson(Map<String, dynamic> json) => Sealed( | |
| 5241 | - sealed: json["sealed"], | |
| 5242 | - ); | |
| 5243 | - | |
| 5244 | - Map<String, dynamic> toJson() => { | |
| 5245 | - "sealed": sealed, | |
| 5246 | - }; | |
| 5247 | -} | |
| 5248 | - | |
| 5249 | -class Sel { | |
| 5250 | - final int sel; | |
| 5251 | - | |
| 5252 | - Sel({ | |
| 5253 | - required this.sel, | |
| 5254 | - }); | |
| 5255 | - | |
| 5256 | - factory Sel.fromJson(Map<String, dynamic> json) => Sel( | |
| 5257 | - sel: json["SEL"], | |
| 5258 | - ); | |
| 5259 | - | |
| 5260 | - Map<String, dynamic> toJson() => { | |
| 5261 | - "SEL": sel, | |
| 5262 | - }; | |
| 5263 | -} | |
| 5264 | - | |
| 5265 | 5245 | class Obj5 { |
| 5266 | 5246 | final int dummy; |
| 5267 | 5247 | final KSerializer kSerializer; |
| @@ -5280,6 +5260,10 @@ class Obj5 { | ||
| 5280 | 5260 | final Typedef obj5Typedef; |
| 5281 | 5261 | final PrimitiveKind primitiveKind; |
| 5282 | 5262 | final TrueClass purpleTrue; |
| 5263 | + final S s; | |
| 5264 | + final Sbyte sbyte; | |
| 5265 | + final Sealed sealed; | |
| 5266 | + final Sel sel; | |
| 5283 | 5267 | final Select select; |
| 5284 | 5268 | final Self self; |
| 5285 | 5269 | final Sendable sendable; |
| @@ -5324,11 +5308,6 @@ class Obj5 { | ||
| 5324 | 5308 | final Ulong ulong; |
| 5325 | 5309 | final Unchecked unchecked; |
| 5326 | 5310 | final Undefined undefined; |
| 5327 | - final Union union; | |
| 5328 | - final UnmarshalJson unmarshalJson; | |
| 5329 | - final Unowned unowned; | |
| 5330 | - final Unsafe unsafe; | |
| 5331 | - final UseSerializers useSerializers; | |
| 5332 | 5311 | |
| 5333 | 5312 | Obj5({ |
| 5334 | 5313 | required this.dummy, |
| @@ -5348,6 +5327,10 @@ class Obj5 { | ||
| 5348 | 5327 | required this.obj5Typedef, |
| 5349 | 5328 | required this.primitiveKind, |
| 5350 | 5329 | required this.purpleTrue, |
| 5330 | + required this.s, | |
| 5331 | + required this.sbyte, | |
| 5332 | + required this.sealed, | |
| 5333 | + required this.sel, | |
| 5351 | 5334 | required this.select, |
| 5352 | 5335 | required this.self, |
| 5353 | 5336 | required this.sendable, |
| @@ -5392,11 +5375,6 @@ class Obj5 { | ||
| 5392 | 5375 | required this.ulong, |
| 5393 | 5376 | required this.unchecked, |
| 5394 | 5377 | required this.undefined, |
| 5395 | - required this.union, | |
| 5396 | - required this.unmarshalJson, | |
| 5397 | - required this.unowned, | |
| 5398 | - required this.unsafe, | |
| 5399 | - required this.useSerializers, | |
| 5400 | 5378 | }); |
| 5401 | 5379 | |
| 5402 | 5380 | factory Obj5.fromJson(Map<String, dynamic> json) => Obj5( |
| @@ -5417,6 +5395,10 @@ class Obj5 { | ||
| 5417 | 5395 | obj5Typedef: Typedef.fromJson(json["typedef"]), |
| 5418 | 5396 | primitiveKind: PrimitiveKind.fromJson(json["PrimitiveKind"]), |
| 5419 | 5397 | purpleTrue: TrueClass.fromJson(json["true"]), |
| 5398 | + s: S.fromJson(json["s"]), | |
| 5399 | + sbyte: Sbyte.fromJson(json["sbyte"]), | |
| 5400 | + sealed: Sealed.fromJson(json["sealed"]), | |
| 5401 | + sel: Sel.fromJson(json["SEL"]), | |
| 5420 | 5402 | select: Select.fromJson(json["select"]), |
| 5421 | 5403 | self: Self.fromJson(json["Self"]), |
| 5422 | 5404 | sendable: Sendable.fromJson(json["Sendable"]), |
| @@ -5461,11 +5443,6 @@ class Obj5 { | ||
| 5461 | 5443 | ulong: Ulong.fromJson(json["ulong"]), |
| 5462 | 5444 | unchecked: Unchecked.fromJson(json["unchecked"]), |
| 5463 | 5445 | undefined: Undefined.fromJson(json["undefined"]), |
| 5464 | - union: Union.fromJson(json["union"]), | |
| 5465 | - unmarshalJson: UnmarshalJson.fromJson(json["UnmarshalJSON"]), | |
| 5466 | - unowned: Unowned.fromJson(json["unowned"]), | |
| 5467 | - unsafe: Unsafe.fromJson(json["unsafe"]), | |
| 5468 | - useSerializers: UseSerializers.fromJson(json["UseSerializers"]), | |
| 5469 | 5446 | ); |
| 5470 | 5447 | |
| 5471 | 5448 | Map<String, dynamic> toJson() => { |
| @@ -5486,6 +5463,10 @@ class Obj5 { | ||
| 5486 | 5463 | "typedef": obj5Typedef.toJson(), |
| 5487 | 5464 | "PrimitiveKind": primitiveKind.toJson(), |
| 5488 | 5465 | "true": purpleTrue.toJson(), |
| 5466 | + "s": s.toJson(), | |
| 5467 | + "sbyte": sbyte.toJson(), | |
| 5468 | + "sealed": sealed.toJson(), | |
| 5469 | + "SEL": sel.toJson(), | |
| 5489 | 5470 | "select": select.toJson(), |
| 5490 | 5471 | "Self": self.toJson(), |
| 5491 | 5472 | "Sendable": sendable.toJson(), |
| @@ -5530,11 +5511,6 @@ class Obj5 { | ||
| 5530 | 5511 | "ulong": ulong.toJson(), |
| 5531 | 5512 | "unchecked": unchecked.toJson(), |
| 5532 | 5513 | "undefined": undefined.toJson(), |
| 5533 | - "union": union.toJson(), | |
| 5534 | - "UnmarshalJSON": unmarshalJson.toJson(), | |
| 5535 | - "unowned": unowned.toJson(), | |
| 5536 | - "unsafe": unsafe.toJson(), | |
| 5537 | - "UseSerializers": useSerializers.toJson(), | |
| 5538 | 5514 | }; |
| 5539 | 5515 | } |
| 5540 | 5516 | |
| @@ -5794,6 +5770,70 @@ class TrueClass { | ||
| 5794 | 5770 | }; |
| 5795 | 5771 | } |
| 5796 | 5772 | |
| 5773 | +class S { | |
| 5774 | + final int s; | |
| 5775 | + | |
| 5776 | + S({ | |
| 5777 | + required this.s, | |
| 5778 | + }); | |
| 5779 | + | |
| 5780 | + factory S.fromJson(Map<String, dynamic> json) => S( | |
| 5781 | + s: json["s"], | |
| 5782 | + ); | |
| 5783 | + | |
| 5784 | + Map<String, dynamic> toJson() => { | |
| 5785 | + "s": s, | |
| 5786 | + }; | |
| 5787 | +} | |
| 5788 | + | |
| 5789 | +class Sbyte { | |
| 5790 | + final int sbyte; | |
| 5791 | + | |
| 5792 | + Sbyte({ | |
| 5793 | + required this.sbyte, | |
| 5794 | + }); | |
| 5795 | + | |
| 5796 | + factory Sbyte.fromJson(Map<String, dynamic> json) => Sbyte( | |
| 5797 | + sbyte: json["sbyte"], | |
| 5798 | + ); | |
| 5799 | + | |
| 5800 | + Map<String, dynamic> toJson() => { | |
| 5801 | + "sbyte": sbyte, | |
| 5802 | + }; | |
| 5803 | +} | |
| 5804 | + | |
| 5805 | +class Sealed { | |
| 5806 | + final int sealed; | |
| 5807 | + | |
| 5808 | + Sealed({ | |
| 5809 | + required this.sealed, | |
| 5810 | + }); | |
| 5811 | + | |
| 5812 | + factory Sealed.fromJson(Map<String, dynamic> json) => Sealed( | |
| 5813 | + sealed: json["sealed"], | |
| 5814 | + ); | |
| 5815 | + | |
| 5816 | + Map<String, dynamic> toJson() => { | |
| 5817 | + "sealed": sealed, | |
| 5818 | + }; | |
| 5819 | +} | |
| 5820 | + | |
| 5821 | +class Sel { | |
| 5822 | + final int sel; | |
| 5823 | + | |
| 5824 | + Sel({ | |
| 5825 | + required this.sel, | |
| 5826 | + }); | |
| 5827 | + | |
| 5828 | + factory Sel.fromJson(Map<String, dynamic> json) => Sel( | |
| 5829 | + sel: json["SEL"], | |
| 5830 | + ); | |
| 5831 | + | |
| 5832 | + Map<String, dynamic> toJson() => { | |
| 5833 | + "SEL": sel, | |
| 5834 | + }; | |
| 5835 | +} | |
| 5836 | + | |
| 5797 | 5837 | class Select { |
| 5798 | 5838 | final int select; |
| 5799 | 5839 | |
| @@ -6498,86 +6538,6 @@ class Undefined { | ||
| 6498 | 6538 | }; |
| 6499 | 6539 | } |
| 6500 | 6540 | |
| 6501 | -class Union { | |
| 6502 | - final int union; | |
| 6503 | - | |
| 6504 | - Union({ | |
| 6505 | - required this.union, | |
| 6506 | - }); | |
| 6507 | - | |
| 6508 | - factory Union.fromJson(Map<String, dynamic> json) => Union( | |
| 6509 | - union: json["union"], | |
| 6510 | - ); | |
| 6511 | - | |
| 6512 | - Map<String, dynamic> toJson() => { | |
| 6513 | - "union": union, | |
| 6514 | - }; | |
| 6515 | -} | |
| 6516 | - | |
| 6517 | -class UnmarshalJson { | |
| 6518 | - final int unmarshalJson; | |
| 6519 | - | |
| 6520 | - UnmarshalJson({ | |
| 6521 | - required this.unmarshalJson, | |
| 6522 | - }); | |
| 6523 | - | |
| 6524 | - factory UnmarshalJson.fromJson(Map<String, dynamic> json) => UnmarshalJson( | |
| 6525 | - unmarshalJson: json["UnmarshalJSON"], | |
| 6526 | - ); | |
| 6527 | - | |
| 6528 | - Map<String, dynamic> toJson() => { | |
| 6529 | - "UnmarshalJSON": unmarshalJson, | |
| 6530 | - }; | |
| 6531 | -} | |
| 6532 | - | |
| 6533 | -class Unowned { | |
| 6534 | - final int unowned; | |
| 6535 | - | |
| 6536 | - Unowned({ | |
| 6537 | - required this.unowned, | |
| 6538 | - }); | |
| 6539 | - | |
| 6540 | - factory Unowned.fromJson(Map<String, dynamic> json) => Unowned( | |
| 6541 | - unowned: json["unowned"], | |
| 6542 | - ); | |
| 6543 | - | |
| 6544 | - Map<String, dynamic> toJson() => { | |
| 6545 | - "unowned": unowned, | |
| 6546 | - }; | |
| 6547 | -} | |
| 6548 | - | |
| 6549 | -class Unsafe { | |
| 6550 | - final int unsafe; | |
| 6551 | - | |
| 6552 | - Unsafe({ | |
| 6553 | - required this.unsafe, | |
| 6554 | - }); | |
| 6555 | - | |
| 6556 | - factory Unsafe.fromJson(Map<String, dynamic> json) => Unsafe( | |
| 6557 | - unsafe: json["unsafe"], | |
| 6558 | - ); | |
| 6559 | - | |
| 6560 | - Map<String, dynamic> toJson() => { | |
| 6561 | - "unsafe": unsafe, | |
| 6562 | - }; | |
| 6563 | -} | |
| 6564 | - | |
| 6565 | -class UseSerializers { | |
| 6566 | - final int useSerializers; | |
| 6567 | - | |
| 6568 | - UseSerializers({ | |
| 6569 | - required this.useSerializers, | |
| 6570 | - }); | |
| 6571 | - | |
| 6572 | - factory UseSerializers.fromJson(Map<String, dynamic> json) => UseSerializers( | |
| 6573 | - useSerializers: json["UseSerializers"], | |
| 6574 | - ); | |
| 6575 | - | |
| 6576 | - Map<String, dynamic> toJson() => { | |
| 6577 | - "UseSerializers": useSerializers, | |
| 6578 | - }; | |
| 6579 | -} | |
| 6580 | - | |
| 6581 | 6541 | class Obj6 { |
| 6582 | 6542 | final int dummy; |
| 6583 | 6543 | final Var obj6Var; |
| @@ -6585,7 +6545,12 @@ class Obj6 { | ||
| 6585 | 6545 | final While obj6While; |
| 6586 | 6546 | final With obj6With; |
| 6587 | 6547 | final Yield obj6Yield; |
| 6548 | + final Union union; | |
| 6549 | + final UnmarshalJson unmarshalJson; | |
| 6550 | + final Unowned unowned; | |
| 6551 | + final Unsafe unsafe; | |
| 6588 | 6552 | final Unsigned unsigned; |
| 6553 | + final UseSerializers useSerializers; | |
| 6589 | 6554 | final Ushort ushort; |
| 6590 | 6555 | final Using using; |
| 6591 | 6556 | final Utf8JsonReader utf8JsonReader; |
| @@ -6608,7 +6573,12 @@ class Obj6 { | ||
| 6608 | 6573 | required this.obj6While, |
| 6609 | 6574 | required this.obj6With, |
| 6610 | 6575 | required this.obj6Yield, |
| 6576 | + required this.union, | |
| 6577 | + required this.unmarshalJson, | |
| 6578 | + required this.unowned, | |
| 6579 | + required this.unsafe, | |
| 6611 | 6580 | required this.unsigned, |
| 6581 | + required this.useSerializers, | |
| 6612 | 6582 | required this.ushort, |
| 6613 | 6583 | required this.using, |
| 6614 | 6584 | required this.utf8JsonReader, |
| @@ -6632,7 +6602,12 @@ class Obj6 { | ||
| 6632 | 6602 | obj6While: While.fromJson(json["while"]), |
| 6633 | 6603 | obj6With: With.fromJson(json["with"]), |
| 6634 | 6604 | obj6Yield: Yield.fromJson(json["yield"]), |
| 6605 | + union: Union.fromJson(json["union"]), | |
| 6606 | + unmarshalJson: UnmarshalJson.fromJson(json["UnmarshalJSON"]), | |
| 6607 | + unowned: Unowned.fromJson(json["unowned"]), | |
| 6608 | + unsafe: Unsafe.fromJson(json["unsafe"]), | |
| 6635 | 6609 | unsigned: Unsigned.fromJson(json["unsigned"]), |
| 6610 | + useSerializers: UseSerializers.fromJson(json["UseSerializers"]), | |
| 6636 | 6611 | ushort: Ushort.fromJson(json["ushort"]), |
| 6637 | 6612 | using: Using.fromJson(json["using"]), |
| 6638 | 6613 | utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]), |
| @@ -6656,7 +6631,12 @@ class Obj6 { | ||
| 6656 | 6631 | "while": obj6While.toJson(), |
| 6657 | 6632 | "with": obj6With.toJson(), |
| 6658 | 6633 | "yield": obj6Yield.toJson(), |
| 6634 | + "union": union.toJson(), | |
| 6635 | + "UnmarshalJSON": unmarshalJson.toJson(), | |
| 6636 | + "unowned": unowned.toJson(), | |
| 6637 | + "unsafe": unsafe.toJson(), | |
| 6659 | 6638 | "unsigned": unsigned.toJson(), |
| 6639 | + "UseSerializers": useSerializers.toJson(), | |
| 6660 | 6640 | "ushort": ushort.toJson(), |
| 6661 | 6641 | "using": using.toJson(), |
| 6662 | 6642 | "Utf8JsonReader": utf8JsonReader.toJson(), |
| @@ -6754,6 +6734,70 @@ class Yield { | ||
| 6754 | 6734 | }; |
| 6755 | 6735 | } |
| 6756 | 6736 | |
| 6737 | +class Union { | |
| 6738 | + final int union; | |
| 6739 | + | |
| 6740 | + Union({ | |
| 6741 | + required this.union, | |
| 6742 | + }); | |
| 6743 | + | |
| 6744 | + factory Union.fromJson(Map<String, dynamic> json) => Union( | |
| 6745 | + union: json["union"], | |
| 6746 | + ); | |
| 6747 | + | |
| 6748 | + Map<String, dynamic> toJson() => { | |
| 6749 | + "union": union, | |
| 6750 | + }; | |
| 6751 | +} | |
| 6752 | + | |
| 6753 | +class UnmarshalJson { | |
| 6754 | + final int unmarshalJson; | |
| 6755 | + | |
| 6756 | + UnmarshalJson({ | |
| 6757 | + required this.unmarshalJson, | |
| 6758 | + }); | |
| 6759 | + | |
| 6760 | + factory UnmarshalJson.fromJson(Map<String, dynamic> json) => UnmarshalJson( | |
| 6761 | + unmarshalJson: json["UnmarshalJSON"], | |
| 6762 | + ); | |
| 6763 | + | |
| 6764 | + Map<String, dynamic> toJson() => { | |
| 6765 | + "UnmarshalJSON": unmarshalJson, | |
| 6766 | + }; | |
| 6767 | +} | |
| 6768 | + | |
| 6769 | +class Unowned { | |
| 6770 | + final int unowned; | |
| 6771 | + | |
| 6772 | + Unowned({ | |
| 6773 | + required this.unowned, | |
| 6774 | + }); | |
| 6775 | + | |
| 6776 | + factory Unowned.fromJson(Map<String, dynamic> json) => Unowned( | |
| 6777 | + unowned: json["unowned"], | |
| 6778 | + ); | |
| 6779 | + | |
| 6780 | + Map<String, dynamic> toJson() => { | |
| 6781 | + "unowned": unowned, | |
| 6782 | + }; | |
| 6783 | +} | |
| 6784 | + | |
| 6785 | +class Unsafe { | |
| 6786 | + final int unsafe; | |
| 6787 | + | |
| 6788 | + Unsafe({ | |
| 6789 | + required this.unsafe, | |
| 6790 | + }); | |
| 6791 | + | |
| 6792 | + factory Unsafe.fromJson(Map<String, dynamic> json) => Unsafe( | |
| 6793 | + unsafe: json["unsafe"], | |
| 6794 | + ); | |
| 6795 | + | |
| 6796 | + Map<String, dynamic> toJson() => { | |
| 6797 | + "unsafe": unsafe, | |
| 6798 | + }; | |
| 6799 | +} | |
| 6800 | + | |
| 6757 | 6801 | class Unsigned { |
| 6758 | 6802 | final int unsigned; |
| 6759 | 6803 | |
| @@ -6770,6 +6814,22 @@ class Unsigned { | ||
| 6770 | 6814 | }; |
| 6771 | 6815 | } |
| 6772 | 6816 | |
| 6817 | +class UseSerializers { | |
| 6818 | + final int useSerializers; | |
| 6819 | + | |
| 6820 | + UseSerializers({ | |
| 6821 | + required this.useSerializers, | |
| 6822 | + }); | |
| 6823 | + | |
| 6824 | + factory UseSerializers.fromJson(Map<String, dynamic> json) => UseSerializers( | |
| 6825 | + useSerializers: json["UseSerializers"], | |
| 6826 | + ); | |
| 6827 | + | |
| 6828 | + Map<String, dynamic> toJson() => { | |
| 6829 | + "UseSerializers": useSerializers, | |
| 6830 | + }; | |
| 6831 | +} | |
| 6832 | + | |
| 6773 | 6833 | class Ushort { |
| 6774 | 6834 | final int ushort; |
Melixirdefault / QuickType.ex+611 −485
| @@ -7338,6 +7338,45 @@ defmodule ListClass do | ||
| 7338 | 7338 | end |
| 7339 | 7339 | end |
| 7340 | 7340 | |
| 7341 | +defmodule LocalDate do | |
| 7342 | + @enforce_keys [:local_date] | |
| 7343 | + defstruct [:local_date] | |
| 7344 | + | |
| 7345 | + @type t :: %__MODULE__{ | |
| 7346 | + local_date: integer() | |
| 7347 | + } | |
| 7348 | + | |
| 7349 | + def decode_local_date(value) when is_integer(value), do: value | |
| 7350 | + def decode_local_date(_), do: {:error, "Unexpected type when decoding LocalDate.local_date"} | |
| 7351 | + | |
| 7352 | + def encode_local_date(value) when is_integer(value), do: value | |
| 7353 | + def encode_local_date(_), do: {:error, "Unexpected type when encoding LocalDate.local_date"} | |
| 7354 | + | |
| 7355 | + def from_map(m) do | |
| 7356 | + %LocalDate{ | |
| 7357 | + local_date: decode_local_date(m["LocalDate"]), | |
| 7358 | + } | |
| 7359 | + end | |
| 7360 | + | |
| 7361 | + def from_json(json) do | |
| 7362 | + json | |
| 7363 | + |> Jason.decode!() | |
| 7364 | + |> from_map() | |
| 7365 | + end | |
| 7366 | + | |
| 7367 | + def to_map(struct) do | |
| 7368 | + %{ | |
| 7369 | + "LocalDate" => struct.local_date, | |
| 7370 | + } | |
| 7371 | + end | |
| 7372 | + | |
| 7373 | + def to_json(struct) do | |
| 7374 | + struct | |
| 7375 | + |> to_map() | |
| 7376 | + |> Jason.encode!() | |
| 7377 | + end | |
| 7378 | +end | |
| 7379 | + | |
| 7341 | 7380 | defmodule Locale do |
| 7342 | 7381 | @enforce_keys [:locale] |
| 7343 | 7382 | defstruct [:locale] |
| @@ -7884,45 +7923,6 @@ defmodule Newtonsoft do | ||
| 7884 | 7923 | end |
| 7885 | 7924 | end |
| 7886 | 7925 | |
| 7887 | -defmodule No do | |
| 7888 | - @enforce_keys [:no] | |
| 7889 | - defstruct [:no] | |
| 7890 | - | |
| 7891 | - @type t :: %__MODULE__{ | |
| 7892 | - no: integer() | |
| 7893 | - } | |
| 7894 | - | |
| 7895 | - def decode_no(value) when is_integer(value), do: value | |
| 7896 | - def decode_no(_), do: {:error, "Unexpected type when decoding No.no"} | |
| 7897 | - | |
| 7898 | - def encode_no(value) when is_integer(value), do: value | |
| 7899 | - def encode_no(_), do: {:error, "Unexpected type when encoding No.no"} | |
| 7900 | - | |
| 7901 | - def from_map(m) do | |
| 7902 | - %No{ | |
| 7903 | - no: decode_no(m["NO"]), | |
| 7904 | - } | |
| 7905 | - end | |
| 7906 | - | |
| 7907 | - def from_json(json) do | |
| 7908 | - json | |
| 7909 | - |> Jason.decode!() | |
| 7910 | - |> from_map() | |
| 7911 | - end | |
| 7912 | - | |
| 7913 | - def to_map(struct) do | |
| 7914 | - %{ | |
| 7915 | - "NO" => struct.no, | |
| 7916 | - } | |
| 7917 | - end | |
| 7918 | - | |
| 7919 | - def to_json(struct) do | |
| 7920 | - struct | |
| 7921 | - |> to_map() | |
| 7922 | - |> Jason.encode!() | |
| 7923 | - end | |
| 7924 | -end | |
| 7925 | - | |
| 7926 | 7926 | defmodule ImportClass do |
| 7927 | 7927 | @enforce_keys [:import_import] |
| 7928 | 7928 | defstruct [:import_import] |
| @@ -8001,48 +8001,9 @@ defmodule InClass do | ||
| 8001 | 8001 | end |
| 8002 | 8002 | end |
| 8003 | 8003 | |
| 8004 | -defmodule NilClass do | |
| 8005 | - @enforce_keys [:nil_nil] | |
| 8006 | - defstruct [:nil_nil] | |
| 8007 | - | |
| 8008 | - @type t :: %__MODULE__{ | |
| 8009 | - nil_nil: integer() | |
| 8010 | - } | |
| 8011 | - | |
| 8012 | - def decode_nil_nil(value) when is_integer(value), do: value | |
| 8013 | - def decode_nil_nil(_), do: {:error, "Unexpected type when decoding NilClass.nil_nil"} | |
| 8014 | - | |
| 8015 | - def encode_nil_nil(value) when is_integer(value), do: value | |
| 8016 | - def encode_nil_nil(_), do: {:error, "Unexpected type when encoding NilClass.nil_nil"} | |
| 8017 | - | |
| 8018 | - def from_map(m) do | |
| 8019 | - %NilClass{ | |
| 8020 | - nil_nil: decode_nil_nil(m["nil"]), | |
| 8021 | - } | |
| 8022 | - end | |
| 8023 | - | |
| 8024 | - def from_json(json) do | |
| 8025 | - json | |
| 8026 | - |> Jason.decode!() | |
| 8027 | - |> from_map() | |
| 8028 | - end | |
| 8029 | - | |
| 8030 | - def to_map(struct) do | |
| 8031 | - %{ | |
| 8032 | - "nil" => struct.nil_nil, | |
| 8033 | - } | |
| 8034 | - end | |
| 8035 | - | |
| 8036 | - def to_json(struct) do | |
| 8037 | - struct | |
| 8038 | - |> to_map() | |
| 8039 | - |> Jason.encode!() | |
| 8040 | - end | |
| 8041 | -end | |
| 8042 | - | |
| 8043 | 8004 | defmodule Obj3 do |
| 8044 | - @enforce_keys [:dummy, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil] | |
| 8045 | - defstruct [:dummy, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil] | |
| 8005 | + @enforce_keys [:dummy, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :local_date, :locale, :lock, :long, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :obj3_import, :obj3_in] | |
| 8006 | + defstruct [:dummy, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :local_date, :locale, :lock, :long, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :obj3_import, :obj3_in] | |
| 8046 | 8007 | |
| 8047 | 8008 | @type t :: %__MODULE__{ |
| 8048 | 8009 | dummy: integer(), |
| @@ -8093,6 +8054,7 @@ defmodule Obj3 do | ||
| 8093 | 8054 | left: Left.t(), |
| 8094 | 8055 | let: Let.t(), |
| 8095 | 8056 | list: ListClass.t(), |
| 8057 | + local_date: LocalDate.t(), | |
| 8096 | 8058 | locale: Locale.t(), |
| 8097 | 8059 | lock: Lock.t(), |
| 8098 | 8060 | long: Long.t(), |
| @@ -8107,10 +8069,8 @@ defmodule Obj3 do | ||
| 8107 | 8069 | native: Native.t(), |
| 8108 | 8070 | new: New.t(), |
| 8109 | 8071 | newtonsoft: Newtonsoft.t(), |
| 8110 | - no: No.t(), | |
| 8111 | 8072 | obj3_import: ImportClass.t(), |
| 8112 | - obj3_in: InClass.t(), | |
| 8113 | - obj3_nil: NilClass.t() | |
| 8073 | + obj3_in: InClass.t() | |
| 8114 | 8074 | } |
| 8115 | 8075 | |
| 8116 | 8076 | def decode_dummy(value) when is_integer(value), do: value |
| @@ -8169,6 +8129,7 @@ defmodule Obj3 do | ||
| 8169 | 8129 | left: Left.from_map(m["left"]), |
| 8170 | 8130 | let: Let.from_map(m["let"]), |
| 8171 | 8131 | list: ListClass.from_map(m["list"]), |
| 8132 | + local_date: LocalDate.from_map(m["LocalDate"]), | |
| 8172 | 8133 | locale: Locale.from_map(m["Locale"]), |
| 8173 | 8134 | lock: Lock.from_map(m["lock"]), |
| 8174 | 8135 | long: Long.from_map(m["long"]), |
| @@ -8183,10 +8144,8 @@ defmodule Obj3 do | ||
| 8183 | 8144 | native: Native.from_map(m["native"]), |
| 8184 | 8145 | new: New.from_map(m["new"]), |
| 8185 | 8146 | newtonsoft: Newtonsoft.from_map(m["newtonsoft"]), |
| 8186 | - no: No.from_map(m["NO"]), | |
| 8187 | 8147 | obj3_import: ImportClass.from_map(m["import"]), |
| 8188 | 8148 | obj3_in: InClass.from_map(m["in"]), |
| 8189 | - obj3_nil: NilClass.from_map(m["nil"]), | |
| 8190 | 8149 | } |
| 8191 | 8150 | end |
| 8192 | 8151 | |
| @@ -8246,6 +8205,7 @@ defmodule Obj3 do | ||
| 8246 | 8205 | "left" => Left.to_map(struct.left), |
| 8247 | 8206 | "let" => Let.to_map(struct.let), |
| 8248 | 8207 | "list" => ListClass.to_map(struct.list), |
| 8208 | + "LocalDate" => LocalDate.to_map(struct.local_date), | |
| 8249 | 8209 | "Locale" => Locale.to_map(struct.locale), |
| 8250 | 8210 | "lock" => Lock.to_map(struct.lock), |
| 8251 | 8211 | "long" => Long.to_map(struct.long), |
| @@ -8260,10 +8220,47 @@ defmodule Obj3 do | ||
| 8260 | 8220 | "native" => Native.to_map(struct.native), |
| 8261 | 8221 | "new" => New.to_map(struct.new), |
| 8262 | 8222 | "newtonsoft" => Newtonsoft.to_map(struct.newtonsoft), |
| 8263 | - "NO" => No.to_map(struct.no), | |
| 8264 | 8223 | "import" => ImportClass.to_map(struct.obj3_import), |
| 8265 | 8224 | "in" => InClass.to_map(struct.obj3_in), |
| 8266 | - "nil" => NilClass.to_map(struct.obj3_nil), | |
| 8225 | + } | |
| 8226 | + end | |
| 8227 | + | |
| 8228 | + def to_json(struct) do | |
| 8229 | + struct | |
| 8230 | + |> to_map() | |
| 8231 | + |> Jason.encode!() | |
| 8232 | + end | |
| 8233 | +end | |
| 8234 | + | |
| 8235 | +defmodule No do | |
| 8236 | + @enforce_keys [:no] | |
| 8237 | + defstruct [:no] | |
| 8238 | + | |
| 8239 | + @type t :: %__MODULE__{ | |
| 8240 | + no: integer() | |
| 8241 | + } | |
| 8242 | + | |
| 8243 | + def decode_no(value) when is_integer(value), do: value | |
| 8244 | + def decode_no(_), do: {:error, "Unexpected type when decoding No.no"} | |
| 8245 | + | |
| 8246 | + def encode_no(value) when is_integer(value), do: value | |
| 8247 | + def encode_no(_), do: {:error, "Unexpected type when encoding No.no"} | |
| 8248 | + | |
| 8249 | + def from_map(m) do | |
| 8250 | + %No{ | |
| 8251 | + no: decode_no(m["NO"]), | |
| 8252 | + } | |
| 8253 | + end | |
| 8254 | + | |
| 8255 | + def from_json(json) do | |
| 8256 | + json | |
| 8257 | + |> Jason.decode!() | |
| 8258 | + |> from_map() | |
| 8259 | + end | |
| 8260 | + | |
| 8261 | + def to_map(struct) do | |
| 8262 | + %{ | |
| 8263 | + "NO" => struct.no, | |
| 8267 | 8264 | } |
| 8268 | 8265 | end |
| 8269 | 8266 | |
| @@ -8781,6 +8778,45 @@ defmodule Number do | ||
| 8781 | 8778 | end |
| 8782 | 8779 | end |
| 8783 | 8780 | |
| 8781 | +defmodule NilClass do | |
| 8782 | + @enforce_keys [:nil_nil] | |
| 8783 | + defstruct [:nil_nil] | |
| 8784 | + | |
| 8785 | + @type t :: %__MODULE__{ | |
| 8786 | + nil_nil: integer() | |
| 8787 | + } | |
| 8788 | + | |
| 8789 | + def decode_nil_nil(value) when is_integer(value), do: value | |
| 8790 | + def decode_nil_nil(_), do: {:error, "Unexpected type when decoding NilClass.nil_nil"} | |
| 8791 | + | |
| 8792 | + def encode_nil_nil(value) when is_integer(value), do: value | |
| 8793 | + def encode_nil_nil(_), do: {:error, "Unexpected type when encoding NilClass.nil_nil"} | |
| 8794 | + | |
| 8795 | + def from_map(m) do | |
| 8796 | + %NilClass{ | |
| 8797 | + nil_nil: decode_nil_nil(m["nil"]), | |
| 8798 | + } | |
| 8799 | + end | |
| 8800 | + | |
| 8801 | + def from_json(json) do | |
| 8802 | + json | |
| 8803 | + |> Jason.decode!() | |
| 8804 | + |> from_map() | |
| 8805 | + end | |
| 8806 | + | |
| 8807 | + def to_map(struct) do | |
| 8808 | + %{ | |
| 8809 | + "nil" => struct.nil_nil, | |
| 8810 | + } | |
| 8811 | + end | |
| 8812 | + | |
| 8813 | + def to_json(struct) do | |
| 8814 | + struct | |
| 8815 | + |> to_map() | |
| 8816 | + |> Jason.encode!() | |
| 8817 | + end | |
| 8818 | +end | |
| 8819 | + | |
| 8784 | 8820 | defmodule NoneClass do |
| 8785 | 8821 | @enforce_keys [:none] |
| 8786 | 8822 | defstruct [:none] |
| @@ -9093,6 +9129,84 @@ defmodule Of do | ||
| 9093 | 9129 | end |
| 9094 | 9130 | end |
| 9095 | 9131 | |
| 9132 | +defmodule OffsetDateTime do | |
| 9133 | + @enforce_keys [:offset_date_time] | |
| 9134 | + defstruct [:offset_date_time] | |
| 9135 | + | |
| 9136 | + @type t :: %__MODULE__{ | |
| 9137 | + offset_date_time: integer() | |
| 9138 | + } | |
| 9139 | + | |
| 9140 | + def decode_offset_date_time(value) when is_integer(value), do: value | |
| 9141 | + def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding OffsetDateTime.offset_date_time"} | |
| 9142 | + | |
| 9143 | + def encode_offset_date_time(value) when is_integer(value), do: value | |
| 9144 | + def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding OffsetDateTime.offset_date_time"} | |
| 9145 | + | |
| 9146 | + def from_map(m) do | |
| 9147 | + %OffsetDateTime{ | |
| 9148 | + offset_date_time: decode_offset_date_time(m["OffsetDateTime"]), | |
| 9149 | + } | |
| 9150 | + end | |
| 9151 | + | |
| 9152 | + def from_json(json) do | |
| 9153 | + json | |
| 9154 | + |> Jason.decode!() | |
| 9155 | + |> from_map() | |
| 9156 | + end | |
| 9157 | + | |
| 9158 | + def to_map(struct) do | |
| 9159 | + %{ | |
| 9160 | + "OffsetDateTime" => struct.offset_date_time, | |
| 9161 | + } | |
| 9162 | + end | |
| 9163 | + | |
| 9164 | + def to_json(struct) do | |
| 9165 | + struct | |
| 9166 | + |> to_map() | |
| 9167 | + |> Jason.encode!() | |
| 9168 | + end | |
| 9169 | +end | |
| 9170 | + | |
| 9171 | +defmodule OffsetTime do | |
| 9172 | + @enforce_keys [:offset_time] | |
| 9173 | + defstruct [:offset_time] | |
| 9174 | + | |
| 9175 | + @type t :: %__MODULE__{ | |
| 9176 | + offset_time: integer() | |
| 9177 | + } | |
| 9178 | + | |
| 9179 | + def decode_offset_time(value) when is_integer(value), do: value | |
| 9180 | + def decode_offset_time(_), do: {:error, "Unexpected type when decoding OffsetTime.offset_time"} | |
| 9181 | + | |
| 9182 | + def encode_offset_time(value) when is_integer(value), do: value | |
| 9183 | + def encode_offset_time(_), do: {:error, "Unexpected type when encoding OffsetTime.offset_time"} | |
| 9184 | + | |
| 9185 | + def from_map(m) do | |
| 9186 | + %OffsetTime{ | |
| 9187 | + offset_time: decode_offset_time(m["OffsetTime"]), | |
| 9188 | + } | |
| 9189 | + end | |
| 9190 | + | |
| 9191 | + def from_json(json) do | |
| 9192 | + json | |
| 9193 | + |> Jason.decode!() | |
| 9194 | + |> from_map() | |
| 9195 | + end | |
| 9196 | + | |
| 9197 | + def to_map(struct) do | |
| 9198 | + %{ | |
| 9199 | + "OffsetTime" => struct.offset_time, | |
| 9200 | + } | |
| 9201 | + end | |
| 9202 | + | |
| 9203 | + def to_json(struct) do | |
| 9204 | + struct | |
| 9205 | + |> to_map() | |
| 9206 | + |> Jason.encode!() | |
| 9207 | + end | |
| 9208 | +end | |
| 9209 | + | |
| 9096 | 9210 | defmodule Oneway do |
| 9097 | 9211 | @enforce_keys [:oneway] |
| 9098 | 9212 | defstruct [:oneway] |
| @@ -10614,168 +10728,13 @@ defmodule RuntimeType do | ||
| 10614 | 10728 | end |
| 10615 | 10729 | end |
| 10616 | 10730 | |
| 10617 | -defmodule S do | |
| 10618 | - @enforce_keys [:s] | |
| 10619 | - defstruct [:s] | |
| 10620 | - | |
| 10621 | - @type t :: %__MODULE__{ | |
| 10622 | - s: integer() | |
| 10623 | - } | |
| 10624 | - | |
| 10625 | - def decode_s(value) when is_integer(value), do: value | |
| 10626 | - def decode_s(_), do: {:error, "Unexpected type when decoding S.s"} | |
| 10627 | - | |
| 10628 | - def encode_s(value) when is_integer(value), do: value | |
| 10629 | - def encode_s(_), do: {:error, "Unexpected type when encoding S.s"} | |
| 10630 | - | |
| 10631 | - def from_map(m) do | |
| 10632 | - %S{ | |
| 10633 | - s: decode_s(m["s"]), | |
| 10634 | - } | |
| 10635 | - end | |
| 10636 | - | |
| 10637 | - def from_json(json) do | |
| 10638 | - json | |
| 10639 | - |> Jason.decode!() | |
| 10640 | - |> from_map() | |
| 10641 | - end | |
| 10642 | - | |
| 10643 | - def to_map(struct) do | |
| 10644 | - %{ | |
| 10645 | - "s" => struct.s, | |
| 10646 | - } | |
| 10647 | - end | |
| 10648 | - | |
| 10649 | - def to_json(struct) do | |
| 10650 | - struct | |
| 10651 | - |> to_map() | |
| 10652 | - |> Jason.encode!() | |
| 10653 | - end | |
| 10654 | -end | |
| 10655 | - | |
| 10656 | -defmodule Sbyte do | |
| 10657 | - @enforce_keys [:sbyte] | |
| 10658 | - defstruct [:sbyte] | |
| 10659 | - | |
| 10660 | - @type t :: %__MODULE__{ | |
| 10661 | - sbyte: integer() | |
| 10662 | - } | |
| 10663 | - | |
| 10664 | - def decode_sbyte(value) when is_integer(value), do: value | |
| 10665 | - def decode_sbyte(_), do: {:error, "Unexpected type when decoding Sbyte.sbyte"} | |
| 10666 | - | |
| 10667 | - def encode_sbyte(value) when is_integer(value), do: value | |
| 10668 | - def encode_sbyte(_), do: {:error, "Unexpected type when encoding Sbyte.sbyte"} | |
| 10669 | - | |
| 10670 | - def from_map(m) do | |
| 10671 | - %Sbyte{ | |
| 10672 | - sbyte: decode_sbyte(m["sbyte"]), | |
| 10673 | - } | |
| 10674 | - end | |
| 10675 | - | |
| 10676 | - def from_json(json) do | |
| 10677 | - json | |
| 10678 | - |> Jason.decode!() | |
| 10679 | - |> from_map() | |
| 10680 | - end | |
| 10681 | - | |
| 10682 | - def to_map(struct) do | |
| 10683 | - %{ | |
| 10684 | - "sbyte" => struct.sbyte, | |
| 10685 | - } | |
| 10686 | - end | |
| 10687 | - | |
| 10688 | - def to_json(struct) do | |
| 10689 | - struct | |
| 10690 | - |> to_map() | |
| 10691 | - |> Jason.encode!() | |
| 10692 | - end | |
| 10693 | -end | |
| 10694 | - | |
| 10695 | -defmodule Sealed do | |
| 10696 | - @enforce_keys [:sealed] | |
| 10697 | - defstruct [:sealed] | |
| 10698 | - | |
| 10699 | - @type t :: %__MODULE__{ | |
| 10700 | - sealed: integer() | |
| 10701 | - } | |
| 10702 | - | |
| 10703 | - def decode_sealed(value) when is_integer(value), do: value | |
| 10704 | - def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"} | |
| 10705 | - | |
| 10706 | - def encode_sealed(value) when is_integer(value), do: value | |
| 10707 | - def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"} | |
| 10708 | - | |
| 10709 | - def from_map(m) do | |
| 10710 | - %Sealed{ | |
| 10711 | - sealed: decode_sealed(m["sealed"]), | |
| 10712 | - } | |
| 10713 | - end | |
| 10714 | - | |
| 10715 | - def from_json(json) do | |
| 10716 | - json | |
| 10717 | - |> Jason.decode!() | |
| 10718 | - |> from_map() | |
| 10719 | - end | |
| 10720 | - | |
| 10721 | - def to_map(struct) do | |
| 10722 | - %{ | |
| 10723 | - "sealed" => struct.sealed, | |
| 10724 | - } | |
| 10725 | - end | |
| 10726 | - | |
| 10727 | - def to_json(struct) do | |
| 10728 | - struct | |
| 10729 | - |> to_map() | |
| 10730 | - |> Jason.encode!() | |
| 10731 | - end | |
| 10732 | -end | |
| 10733 | - | |
| 10734 | -defmodule Sel do | |
| 10735 | - @enforce_keys [:sel] | |
| 10736 | - defstruct [:sel] | |
| 10737 | - | |
| 10738 | - @type t :: %__MODULE__{ | |
| 10739 | - sel: integer() | |
| 10740 | - } | |
| 10741 | - | |
| 10742 | - def decode_sel(value) when is_integer(value), do: value | |
| 10743 | - def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"} | |
| 10744 | - | |
| 10745 | - def encode_sel(value) when is_integer(value), do: value | |
| 10746 | - def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"} | |
| 10747 | - | |
| 10748 | - def from_map(m) do | |
| 10749 | - %Sel{ | |
| 10750 | - sel: decode_sel(m["SEL"]), | |
| 10751 | - } | |
| 10752 | - end | |
| 10753 | - | |
| 10754 | - def from_json(json) do | |
| 10755 | - json | |
| 10756 | - |> Jason.decode!() | |
| 10757 | - |> from_map() | |
| 10758 | - end | |
| 10759 | - | |
| 10760 | - def to_map(struct) do | |
| 10761 | - %{ | |
| 10762 | - "SEL" => struct.sel, | |
| 10763 | - } | |
| 10764 | - end | |
| 10765 | - | |
| 10766 | - def to_json(struct) do | |
| 10767 | - struct | |
| 10768 | - |> to_map() | |
| 10769 | - |> Jason.encode!() | |
| 10770 | - end | |
| 10771 | -end | |
| 10772 | - | |
| 10773 | -defmodule Obj4 do | |
| 10774 | - @enforce_keys [:dummy, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel] | |
| 10775 | - defstruct [:dummy, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel] | |
| 10731 | +defmodule Obj4 do | |
| 10732 | + @enforce_keys [:dummy, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_nil, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :offset_date_time, :offset_time, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type] | |
| 10733 | + defstruct [:dummy, :no, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_nil, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :offset_date_time, :offset_time, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type] | |
| 10776 | 10734 | |
| 10777 | 10735 | @type t :: %__MODULE__{ |
| 10778 | 10736 | dummy: integer(), |
| 10737 | + no: No.t(), | |
| 10779 | 10738 | no_such_method: NoSuchMethod.t(), |
| 10780 | 10739 | noexcept: Noexcept.t(), |
| 10781 | 10740 | nonatomic: Nonatomic.t(), |
| @@ -10789,6 +10748,7 @@ defmodule Obj4 do | ||
| 10789 | 10748 | null: Null.t(), |
| 10790 | 10749 | nullptr: Nullptr.t(), |
| 10791 | 10750 | number: Number.t(), |
| 10751 | + obj4_nil: NilClass.t(), | |
| 10792 | 10752 | obj4_none: NoneClass.t(), |
| 10793 | 10753 | obj4_not: NotClass.t(), |
| 10794 | 10754 | obj4_null: NullClass.t(), |
| @@ -10797,6 +10757,8 @@ defmodule Obj4 do | ||
| 10797 | 10757 | object: Object.t(), |
| 10798 | 10758 | object_mapper: ObjectMapper.t(), |
| 10799 | 10759 | of: Of.t(), |
| 10760 | + offset_date_time: OffsetDateTime.t(), | |
| 10761 | + offset_time: OffsetTime.t(), | |
| 10800 | 10762 | oneway: Oneway.t(), |
| 10801 | 10763 | open: Open.t(), |
| 10802 | 10764 | operator: Operator.t(), |
| @@ -10835,11 +10797,7 @@ defmodule Obj4 do | ||
| 10835 | 10797 | rethrows: Rethrows.t(), |
| 10836 | 10798 | return: Return.t(), |
| 10837 | 10799 | right: Right.t(), |
| 10838 | - runtime_type: RuntimeType.t(), | |
| 10839 | - s: S.t(), | |
| 10840 | - sbyte: Sbyte.t(), | |
| 10841 | - sealed: Sealed.t(), | |
| 10842 | - sel: Sel.t() | |
| 10800 | + runtime_type: RuntimeType.t() | |
| 10843 | 10801 | } |
| 10844 | 10802 | |
| 10845 | 10803 | def decode_dummy(value) when is_integer(value), do: value |
| @@ -10851,6 +10809,7 @@ defmodule Obj4 do | ||
| 10851 | 10809 | def from_map(m) do |
| 10852 | 10810 | %Obj4{ |
| 10853 | 10811 | dummy: decode_dummy(m["dummy"]), |
| 10812 | + no: No.from_map(m["NO"]), | |
| 10854 | 10813 | no_such_method: NoSuchMethod.from_map(m["noSuchMethod"]), |
| 10855 | 10814 | noexcept: Noexcept.from_map(m["noexcept"]), |
| 10856 | 10815 | nonatomic: Nonatomic.from_map(m["nonatomic"]), |
| @@ -10864,6 +10823,7 @@ defmodule Obj4 do | ||
| 10864 | 10823 | null: Null.from_map(m["NULL"]), |
| 10865 | 10824 | nullptr: Nullptr.from_map(m["nullptr"]), |
| 10866 | 10825 | number: Number.from_map(m["number"]), |
| 10826 | + obj4_nil: NilClass.from_map(m["nil"]), | |
| 10867 | 10827 | obj4_none: NoneClass.from_map(m["none"]), |
| 10868 | 10828 | obj4_not: NotClass.from_map(m["not"]), |
| 10869 | 10829 | obj4_null: NullClass.from_map(m["null"]), |
| @@ -10872,6 +10832,8 @@ defmodule Obj4 do | ||
| 10872 | 10832 | object: Object.from_map(m["object"]), |
| 10873 | 10833 | object_mapper: ObjectMapper.from_map(m["ObjectMapper"]), |
| 10874 | 10834 | of: Of.from_map(m["of"]), |
| 10835 | + offset_date_time: OffsetDateTime.from_map(m["OffsetDateTime"]), | |
| 10836 | + offset_time: OffsetTime.from_map(m["OffsetTime"]), | |
| 10875 | 10837 | oneway: Oneway.from_map(m["oneway"]), |
| 10876 | 10838 | open: Open.from_map(m["open"]), |
| 10877 | 10839 | operator: Operator.from_map(m["operator"]), |
| @@ -10911,10 +10873,6 @@ defmodule Obj4 do | ||
| 10911 | 10873 | return: Return.from_map(m["return"]), |
| 10912 | 10874 | right: Right.from_map(m["right"]), |
| 10913 | 10875 | runtime_type: RuntimeType.from_map(m["runtimeType"]), |
| 10914 | - s: S.from_map(m["s"]), | |
| 10915 | - sbyte: Sbyte.from_map(m["sbyte"]), | |
| 10916 | - sealed: Sealed.from_map(m["sealed"]), | |
| 10917 | - sel: Sel.from_map(m["SEL"]), | |
| 10918 | 10876 | } |
| 10919 | 10877 | end |
| 10920 | 10878 | |
| @@ -10927,6 +10885,7 @@ defmodule Obj4 do | ||
| 10927 | 10885 | def to_map(struct) do |
| 10928 | 10886 | %{ |
| 10929 | 10887 | "dummy" => struct.dummy, |
| 10888 | + "NO" => No.to_map(struct.no), | |
| 10930 | 10889 | "noSuchMethod" => NoSuchMethod.to_map(struct.no_such_method), |
| 10931 | 10890 | "noexcept" => Noexcept.to_map(struct.noexcept), |
| 10932 | 10891 | "nonatomic" => Nonatomic.to_map(struct.nonatomic), |
| @@ -10940,6 +10899,7 @@ defmodule Obj4 do | ||
| 10940 | 10899 | "NULL" => Null.to_map(struct.null), |
| 10941 | 10900 | "nullptr" => Nullptr.to_map(struct.nullptr), |
| 10942 | 10901 | "number" => Number.to_map(struct.number), |
| 10902 | + "nil" => NilClass.to_map(struct.obj4_nil), | |
| 10943 | 10903 | "none" => NoneClass.to_map(struct.obj4_none), |
| 10944 | 10904 | "not" => NotClass.to_map(struct.obj4_not), |
| 10945 | 10905 | "null" => NullClass.to_map(struct.obj4_null), |
| @@ -10948,6 +10908,8 @@ defmodule Obj4 do | ||
| 10948 | 10908 | "object" => Object.to_map(struct.object), |
| 10949 | 10909 | "ObjectMapper" => ObjectMapper.to_map(struct.object_mapper), |
| 10950 | 10910 | "of" => Of.to_map(struct.of), |
| 10911 | + "OffsetDateTime" => OffsetDateTime.to_map(struct.offset_date_time), | |
| 10912 | + "OffsetTime" => OffsetTime.to_map(struct.offset_time), | |
| 10951 | 10913 | "oneway" => Oneway.to_map(struct.oneway), |
| 10952 | 10914 | "open" => Open.to_map(struct.open), |
| 10953 | 10915 | "operator" => Operator.to_map(struct.operator), |
| @@ -10987,10 +10949,6 @@ defmodule Obj4 do | ||
| 10987 | 10949 | "return" => Return.to_map(struct.return), |
| 10988 | 10950 | "right" => Right.to_map(struct.right), |
| 10989 | 10951 | "runtimeType" => RuntimeType.to_map(struct.runtime_type), |
| 10990 | - "s" => S.to_map(struct.s), | |
| 10991 | - "sbyte" => Sbyte.to_map(struct.sbyte), | |
| 10992 | - "sealed" => Sealed.to_map(struct.sealed), | |
| 10993 | - "SEL" => Sel.to_map(struct.sel), | |
| 10994 | 10952 | } |
| 10995 | 10953 | end |
| 10996 | 10954 | |
| @@ -11196,6 +11154,162 @@ defmodule PrimitiveKind do | ||
| 11196 | 11154 | end |
| 11197 | 11155 | end |
| 11198 | 11156 | |
| 11157 | +defmodule S do | |
| 11158 | + @enforce_keys [:s] | |
| 11159 | + defstruct [:s] | |
| 11160 | + | |
| 11161 | + @type t :: %__MODULE__{ | |
| 11162 | + s: integer() | |
| 11163 | + } | |
| 11164 | + | |
| 11165 | + def decode_s(value) when is_integer(value), do: value | |
| 11166 | + def decode_s(_), do: {:error, "Unexpected type when decoding S.s"} | |
| 11167 | + | |
| 11168 | + def encode_s(value) when is_integer(value), do: value | |
| 11169 | + def encode_s(_), do: {:error, "Unexpected type when encoding S.s"} | |
| 11170 | + | |
| 11171 | + def from_map(m) do | |
| 11172 | + %S{ | |
| 11173 | + s: decode_s(m["s"]), | |
| 11174 | + } | |
| 11175 | + end | |
| 11176 | + | |
| 11177 | + def from_json(json) do | |
| 11178 | + json | |
| 11179 | + |> Jason.decode!() | |
| 11180 | + |> from_map() | |
| 11181 | + end | |
| 11182 | + | |
| 11183 | + def to_map(struct) do | |
| 11184 | + %{ | |
| 11185 | + "s" => struct.s, | |
| 11186 | + } | |
| 11187 | + end | |
| 11188 | + | |
| 11189 | + def to_json(struct) do | |
| 11190 | + struct | |
| 11191 | + |> to_map() | |
| 11192 | + |> Jason.encode!() | |
| 11193 | + end | |
| 11194 | +end | |
| 11195 | + | |
| 11196 | +defmodule Sbyte do | |
| 11197 | + @enforce_keys [:sbyte] | |
| 11198 | + defstruct [:sbyte] | |
| 11199 | + | |
| 11200 | + @type t :: %__MODULE__{ | |
| 11201 | + sbyte: integer() | |
| 11202 | + } | |
| 11203 | + | |
| 11204 | + def decode_sbyte(value) when is_integer(value), do: value | |
| 11205 | + def decode_sbyte(_), do: {:error, "Unexpected type when decoding Sbyte.sbyte"} | |
| 11206 | + | |
| 11207 | + def encode_sbyte(value) when is_integer(value), do: value | |
| 11208 | + def encode_sbyte(_), do: {:error, "Unexpected type when encoding Sbyte.sbyte"} | |
| 11209 | + | |
| 11210 | + def from_map(m) do | |
| 11211 | + %Sbyte{ | |
| 11212 | + sbyte: decode_sbyte(m["sbyte"]), | |
| 11213 | + } | |
| 11214 | + end | |
| 11215 | + | |
| 11216 | + def from_json(json) do | |
| 11217 | + json | |
| 11218 | + |> Jason.decode!() | |
| 11219 | + |> from_map() | |
| 11220 | + end | |
| 11221 | + | |
| 11222 | + def to_map(struct) do | |
| 11223 | + %{ | |
| 11224 | + "sbyte" => struct.sbyte, | |
| 11225 | + } | |
| 11226 | + end | |
| 11227 | + | |
| 11228 | + def to_json(struct) do | |
| 11229 | + struct | |
| 11230 | + |> to_map() | |
| 11231 | + |> Jason.encode!() | |
| 11232 | + end | |
| 11233 | +end | |
| 11234 | + | |
| 11235 | +defmodule Sealed do | |
| 11236 | + @enforce_keys [:sealed] | |
| 11237 | + defstruct [:sealed] | |
| 11238 | + | |
| 11239 | + @type t :: %__MODULE__{ | |
| 11240 | + sealed: integer() | |
| 11241 | + } | |
| 11242 | + | |
| 11243 | + def decode_sealed(value) when is_integer(value), do: value | |
| 11244 | + def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"} | |
| 11245 | + | |
| 11246 | + def encode_sealed(value) when is_integer(value), do: value | |
| 11247 | + def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"} | |
| 11248 | + | |
| 11249 | + def from_map(m) do | |
| 11250 | + %Sealed{ | |
| 11251 | + sealed: decode_sealed(m["sealed"]), | |
| 11252 | + } | |
| 11253 | + end | |
| 11254 | + | |
| 11255 | + def from_json(json) do | |
| 11256 | + json | |
| 11257 | + |> Jason.decode!() | |
| 11258 | + |> from_map() | |
| 11259 | + end | |
| 11260 | + | |
| 11261 | + def to_map(struct) do | |
| 11262 | + %{ | |
| 11263 | + "sealed" => struct.sealed, | |
| 11264 | + } | |
| 11265 | + end | |
| 11266 | + | |
| 11267 | + def to_json(struct) do | |
| 11268 | + struct | |
| 11269 | + |> to_map() | |
| 11270 | + |> Jason.encode!() | |
| 11271 | + end | |
| 11272 | +end | |
| 11273 | + | |
| 11274 | +defmodule Sel do | |
| 11275 | + @enforce_keys [:sel] | |
| 11276 | + defstruct [:sel] | |
| 11277 | + | |
| 11278 | + @type t :: %__MODULE__{ | |
| 11279 | + sel: integer() | |
| 11280 | + } | |
| 11281 | + | |
| 11282 | + def decode_sel(value) when is_integer(value), do: value | |
| 11283 | + def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"} | |
| 11284 | + | |
| 11285 | + def encode_sel(value) when is_integer(value), do: value | |
| 11286 | + def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"} | |
| 11287 | + | |
| 11288 | + def from_map(m) do | |
| 11289 | + %Sel{ | |
| 11290 | + sel: decode_sel(m["SEL"]), | |
| 11291 | + } | |
| 11292 | + end | |
| 11293 | + | |
| 11294 | + def from_json(json) do | |
| 11295 | + json | |
| 11296 | + |> Jason.decode!() | |
| 11297 | + |> from_map() | |
| 11298 | + end | |
| 11299 | + | |
| 11300 | + def to_map(struct) do | |
| 11301 | + %{ | |
| 11302 | + "SEL" => struct.sel, | |
| 11303 | + } | |
| 11304 | + end | |
| 11305 | + | |
| 11306 | + def to_json(struct) do | |
| 11307 | + struct | |
| 11308 | + |> to_map() | |
| 11309 | + |> Jason.encode!() | |
| 11310 | + end | |
| 11311 | +end | |
| 11312 | + | |
| 11199 | 11313 | defmodule Select do |
| 11200 | 11314 | @enforce_keys [:select] |
| 11201 | 11315 | defstruct [:select] |
| @@ -13302,218 +13416,23 @@ defmodule Unchecked do | ||
| 13302 | 13416 | end |
| 13303 | 13417 | end |
| 13304 | 13418 | |
| 13305 | -defmodule Undefined do | |
| 13306 | - @enforce_keys [:undefined] | |
| 13307 | - defstruct [:undefined] | |
| 13308 | - | |
| 13309 | - @type t :: %__MODULE__{ | |
| 13310 | - undefined: integer() | |
| 13311 | - } | |
| 13312 | - | |
| 13313 | - def decode_undefined(value) when is_integer(value), do: value | |
| 13314 | - def decode_undefined(_), do: {:error, "Unexpected type when decoding Undefined.undefined"} | |
| 13315 | - | |
| 13316 | - def encode_undefined(value) when is_integer(value), do: value | |
| 13317 | - def encode_undefined(_), do: {:error, "Unexpected type when encoding Undefined.undefined"} | |
| 13318 | - | |
| 13319 | - def from_map(m) do | |
| 13320 | - %Undefined{ | |
| 13321 | - undefined: decode_undefined(m["undefined"]), | |
| 13322 | - } | |
| 13323 | - end | |
| 13324 | - | |
| 13325 | - def from_json(json) do | |
| 13326 | - json | |
| 13327 | - |> Jason.decode!() | |
| 13328 | - |> from_map() | |
| 13329 | - end | |
| 13330 | - | |
| 13331 | - def to_map(struct) do | |
| 13332 | - %{ | |
| 13333 | - "undefined" => struct.undefined, | |
| 13334 | - } | |
| 13335 | - end | |
| 13336 | - | |
| 13337 | - def to_json(struct) do | |
| 13338 | - struct | |
| 13339 | - |> to_map() | |
| 13340 | - |> Jason.encode!() | |
| 13341 | - end | |
| 13342 | -end | |
| 13343 | - | |
| 13344 | -defmodule Union do | |
| 13345 | - @enforce_keys [:union] | |
| 13346 | - defstruct [:union] | |
| 13347 | - | |
| 13348 | - @type t :: %__MODULE__{ | |
| 13349 | - union: integer() | |
| 13350 | - } | |
| 13351 | - | |
| 13352 | - def decode_union(value) when is_integer(value), do: value | |
| 13353 | - def decode_union(_), do: {:error, "Unexpected type when decoding Union.union"} | |
| 13354 | - | |
| 13355 | - def encode_union(value) when is_integer(value), do: value | |
| 13356 | - def encode_union(_), do: {:error, "Unexpected type when encoding Union.union"} | |
| 13357 | - | |
| 13358 | - def from_map(m) do | |
| 13359 | - %Union{ | |
| 13360 | - union: decode_union(m["union"]), | |
| 13361 | - } | |
| 13362 | - end | |
| 13363 | - | |
| 13364 | - def from_json(json) do | |
| 13365 | - json | |
| 13366 | - |> Jason.decode!() | |
| 13367 | - |> from_map() | |
| 13368 | - end | |
| 13369 | - | |
| 13370 | - def to_map(struct) do | |
| 13371 | - %{ | |
| 13372 | - "union" => struct.union, | |
| 13373 | - } | |
| 13374 | - end | |
| 13375 | - | |
| 13376 | - def to_json(struct) do | |
| 13377 | - struct | |
| 13378 | - |> to_map() | |
| 13379 | - |> Jason.encode!() | |
| 13380 | - end | |
| 13381 | -end | |
| 13382 | - | |
| 13383 | -defmodule UnmarshalJSON do | |
| 13384 | - @enforce_keys [:unmarshal_json] | |
| 13385 | - defstruct [:unmarshal_json] | |
| 13386 | - | |
| 13387 | - @type t :: %__MODULE__{ | |
| 13388 | - unmarshal_json: integer() | |
| 13389 | - } | |
| 13390 | - | |
| 13391 | - def decode_unmarshal_json(value) when is_integer(value), do: value | |
| 13392 | - def decode_unmarshal_json(_), do: {:error, "Unexpected type when decoding UnmarshalJSON.unmarshal_json"} | |
| 13393 | - | |
| 13394 | - def encode_unmarshal_json(value) when is_integer(value), do: value | |
| 13395 | - def encode_unmarshal_json(_), do: {:error, "Unexpected type when encoding UnmarshalJSON.unmarshal_json"} | |
| 13396 | - | |
| 13397 | - def from_map(m) do | |
| 13398 | - %UnmarshalJSON{ | |
| 13399 | - unmarshal_json: decode_unmarshal_json(m["UnmarshalJSON"]), | |
| 13400 | - } | |
| 13401 | - end | |
| 13402 | - | |
| 13403 | - def from_json(json) do | |
| 13404 | - json | |
| 13405 | - |> Jason.decode!() | |
| 13406 | - |> from_map() | |
| 13407 | - end | |
| 13408 | - | |
| 13409 | - def to_map(struct) do | |
| 13410 | - %{ | |
| 13411 | - "UnmarshalJSON" => struct.unmarshal_json, | |
| 13412 | - } | |
| 13413 | - end | |
| 13414 | - | |
| 13415 | - def to_json(struct) do | |
| 13416 | - struct | |
| 13417 | - |> to_map() | |
| 13418 | - |> Jason.encode!() | |
| 13419 | - end | |
| 13420 | -end | |
| 13421 | - | |
| 13422 | -defmodule Unowned do | |
| 13423 | - @enforce_keys [:unowned] | |
| 13424 | - defstruct [:unowned] | |
| 13425 | - | |
| 13426 | - @type t :: %__MODULE__{ | |
| 13427 | - unowned: integer() | |
| 13428 | - } | |
| 13429 | - | |
| 13430 | - def decode_unowned(value) when is_integer(value), do: value | |
| 13431 | - def decode_unowned(_), do: {:error, "Unexpected type when decoding Unowned.unowned"} | |
| 13432 | - | |
| 13433 | - def encode_unowned(value) when is_integer(value), do: value | |
| 13434 | - def encode_unowned(_), do: {:error, "Unexpected type when encoding Unowned.unowned"} | |
| 13435 | - | |
| 13436 | - def from_map(m) do | |
| 13437 | - %Unowned{ | |
| 13438 | - unowned: decode_unowned(m["unowned"]), | |
| 13439 | - } | |
| 13440 | - end | |
| 13441 | - | |
| 13442 | - def from_json(json) do | |
| 13443 | - json | |
| 13444 | - |> Jason.decode!() | |
| 13445 | - |> from_map() | |
| 13446 | - end | |
| 13447 | - | |
| 13448 | - def to_map(struct) do | |
| 13449 | - %{ | |
| 13450 | - "unowned" => struct.unowned, | |
| 13451 | - } | |
| 13452 | - end | |
| 13453 | - | |
| 13454 | - def to_json(struct) do | |
| 13455 | - struct | |
| 13456 | - |> to_map() | |
| 13457 | - |> Jason.encode!() | |
| 13458 | - end | |
| 13459 | -end | |
| 13460 | - | |
| 13461 | -defmodule Unsafe do | |
| 13462 | - @enforce_keys [:unsafe] | |
| 13463 | - defstruct [:unsafe] | |
| 13464 | - | |
| 13465 | - @type t :: %__MODULE__{ | |
| 13466 | - unsafe: integer() | |
| 13467 | - } | |
| 13468 | - | |
| 13469 | - def decode_unsafe(value) when is_integer(value), do: value | |
| 13470 | - def decode_unsafe(_), do: {:error, "Unexpected type when decoding Unsafe.unsafe"} | |
| 13471 | - | |
| 13472 | - def encode_unsafe(value) when is_integer(value), do: value | |
| 13473 | - def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"} | |
| 13474 | - | |
| 13475 | - def from_map(m) do | |
| 13476 | - %Unsafe{ | |
| 13477 | - unsafe: decode_unsafe(m["unsafe"]), | |
| 13478 | - } | |
| 13479 | - end | |
| 13480 | - | |
| 13481 | - def from_json(json) do | |
| 13482 | - json | |
| 13483 | - |> Jason.decode!() | |
| 13484 | - |> from_map() | |
| 13485 | - end | |
| 13486 | - | |
| 13487 | - def to_map(struct) do | |
| 13488 | - %{ | |
| 13489 | - "unsafe" => struct.unsafe, | |
| 13490 | - } | |
| 13491 | - end | |
| 13492 | - | |
| 13493 | - def to_json(struct) do | |
| 13494 | - struct | |
| 13495 | - |> to_map() | |
| 13496 | - |> Jason.encode!() | |
| 13497 | - end | |
| 13498 | -end | |
| 13499 | - | |
| 13500 | -defmodule UseSerializers do | |
| 13501 | - @enforce_keys [:use_serializers] | |
| 13502 | - defstruct [:use_serializers] | |
| 13419 | +defmodule Undefined do | |
| 13420 | + @enforce_keys [:undefined] | |
| 13421 | + defstruct [:undefined] | |
| 13503 | 13422 | |
| 13504 | 13423 | @type t :: %__MODULE__{ |
| 13505 | - use_serializers: integer() | |
| 13424 | + undefined: integer() | |
| 13506 | 13425 | } |
| 13507 | 13426 | |
| 13508 | - def decode_use_serializers(value) when is_integer(value), do: value | |
| 13509 | - def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"} | |
| 13427 | + def decode_undefined(value) when is_integer(value), do: value | |
| 13428 | + def decode_undefined(_), do: {:error, "Unexpected type when decoding Undefined.undefined"} | |
| 13510 | 13429 | |
| 13511 | - def encode_use_serializers(value) when is_integer(value), do: value | |
| 13512 | - def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"} | |
| 13430 | + def encode_undefined(value) when is_integer(value), do: value | |
| 13431 | + def encode_undefined(_), do: {:error, "Unexpected type when encoding Undefined.undefined"} | |
| 13513 | 13432 | |
| 13514 | 13433 | def from_map(m) do |
| 13515 | - %UseSerializers{ | |
| 13516 | - use_serializers: decode_use_serializers(m["UseSerializers"]), | |
| 13434 | + %Undefined{ | |
| 13435 | + undefined: decode_undefined(m["undefined"]), | |
| 13517 | 13436 | } |
| 13518 | 13437 | end |
| 13519 | 13438 | |
| @@ -13525,7 +13444,7 @@ defmodule UseSerializers do | ||
| 13525 | 13444 | |
| 13526 | 13445 | def to_map(struct) do |
| 13527 | 13446 | %{ |
| 13528 | - "UseSerializers" => struct.use_serializers, | |
| 13447 | + "undefined" => struct.undefined, | |
| 13529 | 13448 | } |
| 13530 | 13449 | end |
| 13531 | 13450 | |
| @@ -13537,8 +13456,8 @@ defmodule UseSerializers do | ||
| 13537 | 13456 | end |
| 13538 | 13457 | |
| 13539 | 13458 | defmodule Obj5 do |
| 13540 | - @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :use_serializers] | |
| 13541 | - defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :use_serializers] | |
| 13459 | + @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :s, :sbyte, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined] | |
| 13460 | + defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :s, :sbyte, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined] | |
| 13542 | 13461 | |
| 13543 | 13462 | @type t :: %__MODULE__{ |
| 13544 | 13463 | dummy: integer(), |
| @@ -13547,6 +13466,10 @@ defmodule Obj5 do | ||
| 13547 | 13466 | obj5_true: TrueClass.t(), |
| 13548 | 13467 | obj5_type: TypeClass.t(), |
| 13549 | 13468 | primitive_kind: PrimitiveKind.t(), |
| 13469 | + s: S.t(), | |
| 13470 | + sbyte: Sbyte.t(), | |
| 13471 | + sealed: Sealed.t(), | |
| 13472 | + sel: Sel.t(), | |
| 13550 | 13473 | select: Select.t(), |
| 13551 | 13474 | self: Self.t(), |
| 13552 | 13475 | sendable: Sendable.t(), |
| @@ -13601,12 +13524,7 @@ defmodule Obj5 do | ||
| 13601 | 13524 | uint: Uint.t(), |
| 13602 | 13525 | ulong: Ulong.t(), |
| 13603 | 13526 | unchecked: Unchecked.t(), |
| 13604 | - undefined: Undefined.t(), | |
| 13605 | - union: Union.t(), | |
| 13606 | - unmarshal_json: UnmarshalJSON.t(), | |
| 13607 | - unowned: Unowned.t(), | |
| 13608 | - unsafe: Unsafe.t(), | |
| 13609 | - use_serializers: UseSerializers.t() | |
| 13527 | + undefined: Undefined.t() | |
| 13610 | 13528 | } |
| 13611 | 13529 | |
| 13612 | 13530 | def decode_dummy(value) when is_integer(value), do: value |
| @@ -13623,6 +13541,10 @@ defmodule Obj5 do | ||
| 13623 | 13541 | obj5_true: TrueClass.from_map(m["True"]), |
| 13624 | 13542 | obj5_type: TypeClass.from_map(m["type"]), |
| 13625 | 13543 | primitive_kind: PrimitiveKind.from_map(m["PrimitiveKind"]), |
| 13544 | + s: S.from_map(m["s"]), | |
| 13545 | + sbyte: Sbyte.from_map(m["sbyte"]), | |
| 13546 | + sealed: Sealed.from_map(m["sealed"]), | |
| 13547 | + sel: Sel.from_map(m["SEL"]), | |
| 13626 | 13548 | select: Select.from_map(m["select"]), |
| 13627 | 13549 | self: Self.from_map(m["Self"]), |
| 13628 | 13550 | sendable: Sendable.from_map(m["Sendable"]), |
| @@ -13678,11 +13600,6 @@ defmodule Obj5 do | ||
| 13678 | 13600 | ulong: Ulong.from_map(m["ulong"]), |
| 13679 | 13601 | unchecked: Unchecked.from_map(m["unchecked"]), |
| 13680 | 13602 | undefined: Undefined.from_map(m["undefined"]), |
| 13681 | - union: Union.from_map(m["union"]), | |
| 13682 | - unmarshal_json: UnmarshalJSON.from_map(m["UnmarshalJSON"]), | |
| 13683 | - unowned: Unowned.from_map(m["unowned"]), | |
| 13684 | - unsafe: Unsafe.from_map(m["unsafe"]), | |
| 13685 | - use_serializers: UseSerializers.from_map(m["UseSerializers"]), | |
| 13686 | 13603 | } |
| 13687 | 13604 | end |
| 13688 | 13605 | |
| @@ -13700,6 +13617,10 @@ defmodule Obj5 do | ||
| 13700 | 13617 | "True" => TrueClass.to_map(struct.obj5_true), |
| 13701 | 13618 | "type" => TypeClass.to_map(struct.obj5_type), |
| 13702 | 13619 | "PrimitiveKind" => PrimitiveKind.to_map(struct.primitive_kind), |
| 13620 | + "s" => S.to_map(struct.s), | |
| 13621 | + "sbyte" => Sbyte.to_map(struct.sbyte), | |
| 13622 | + "sealed" => Sealed.to_map(struct.sealed), | |
| 13623 | + "SEL" => Sel.to_map(struct.sel), | |
| 13703 | 13624 | "select" => Select.to_map(struct.select), |
| 13704 | 13625 | "Self" => Self.to_map(struct.self), |
| 13705 | 13626 | "Sendable" => Sendable.to_map(struct.sendable), |
| @@ -13755,11 +13676,162 @@ defmodule Obj5 do | ||
| 13755 | 13676 | "ulong" => Ulong.to_map(struct.ulong), |
| 13756 | 13677 | "unchecked" => Unchecked.to_map(struct.unchecked), |
| 13757 | 13678 | "undefined" => Undefined.to_map(struct.undefined), |
| 13758 | - "union" => Union.to_map(struct.union), | |
| 13759 | - "UnmarshalJSON" => UnmarshalJSON.to_map(struct.unmarshal_json), | |
| 13760 | - "unowned" => Unowned.to_map(struct.unowned), | |
| 13761 | - "unsafe" => Unsafe.to_map(struct.unsafe), | |
| 13762 | - "UseSerializers" => UseSerializers.to_map(struct.use_serializers), | |
| 13679 | + } | |
| 13680 | + end | |
| 13681 | + | |
| 13682 | + def to_json(struct) do | |
| 13683 | + struct | |
| 13684 | + |> to_map() | |
| 13685 | + |> Jason.encode!() | |
| 13686 | + end | |
| 13687 | +end | |
| 13688 | + | |
| 13689 | +defmodule Union do | |
| 13690 | + @enforce_keys [:union] | |
| 13691 | + defstruct [:union] | |
| 13692 | + | |
| 13693 | + @type t :: %__MODULE__{ | |
| 13694 | + union: integer() | |
| 13695 | + } | |
| 13696 | + | |
| 13697 | + def decode_union(value) when is_integer(value), do: value | |
| 13698 | + def decode_union(_), do: {:error, "Unexpected type when decoding Union.union"} | |
| 13699 | + | |
| 13700 | + def encode_union(value) when is_integer(value), do: value | |
| 13701 | + def encode_union(_), do: {:error, "Unexpected type when encoding Union.union"} | |
| 13702 | + | |
| 13703 | + def from_map(m) do | |
| 13704 | + %Union{ | |
| 13705 | + union: decode_union(m["union"]), | |
| 13706 | + } | |
| 13707 | + end | |
| 13708 | + | |
| 13709 | + def from_json(json) do | |
| 13710 | + json | |
| 13711 | + |> Jason.decode!() | |
| 13712 | + |> from_map() | |
| 13713 | + end | |
| 13714 | + | |
| 13715 | + def to_map(struct) do | |
| 13716 | + %{ | |
| 13717 | + "union" => struct.union, | |
| 13718 | + } | |
| 13719 | + end | |
| 13720 | + | |
| 13721 | + def to_json(struct) do | |
| 13722 | + struct | |
| 13723 | + |> to_map() | |
| 13724 | + |> Jason.encode!() | |
| 13725 | + end | |
| 13726 | +end | |
| 13727 | + | |
| 13728 | +defmodule UnmarshalJSON do | |
| 13729 | + @enforce_keys [:unmarshal_json] | |
| 13730 | + defstruct [:unmarshal_json] | |
| 13731 | + | |
| 13732 | + @type t :: %__MODULE__{ | |
| 13733 | + unmarshal_json: integer() | |
| 13734 | + } | |
| 13735 | + | |
| 13736 | + def decode_unmarshal_json(value) when is_integer(value), do: value | |
| 13737 | + def decode_unmarshal_json(_), do: {:error, "Unexpected type when decoding UnmarshalJSON.unmarshal_json"} | |
| 13738 | + | |
| 13739 | + def encode_unmarshal_json(value) when is_integer(value), do: value | |
| 13740 | + def encode_unmarshal_json(_), do: {:error, "Unexpected type when encoding UnmarshalJSON.unmarshal_json"} | |
| 13741 | + | |
| 13742 | + def from_map(m) do | |
| 13743 | + %UnmarshalJSON{ | |
| 13744 | + unmarshal_json: decode_unmarshal_json(m["UnmarshalJSON"]), | |
| 13745 | + } | |
| 13746 | + end | |
| 13747 | + | |
| 13748 | + def from_json(json) do | |
| 13749 | + json | |
| 13750 | + |> Jason.decode!() | |
| 13751 | + |> from_map() | |
| 13752 | + end | |
| 13753 | + | |
| 13754 | + def to_map(struct) do | |
| 13755 | + %{ | |
| 13756 | + "UnmarshalJSON" => struct.unmarshal_json, | |
| 13757 | + } | |
| 13758 | + end | |
| 13759 | + | |
| 13760 | + def to_json(struct) do | |
| 13761 | + struct | |
| 13762 | + |> to_map() | |
| 13763 | + |> Jason.encode!() | |
| 13764 | + end | |
| 13765 | +end | |
| 13766 | + | |
| 13767 | +defmodule Unowned do | |
| 13768 | + @enforce_keys [:unowned] | |
| 13769 | + defstruct [:unowned] | |
| 13770 | + | |
| 13771 | + @type t :: %__MODULE__{ | |
| 13772 | + unowned: integer() | |
| 13773 | + } | |
| 13774 | + | |
| 13775 | + def decode_unowned(value) when is_integer(value), do: value | |
| 13776 | + def decode_unowned(_), do: {:error, "Unexpected type when decoding Unowned.unowned"} | |
| 13777 | + | |
| 13778 | + def encode_unowned(value) when is_integer(value), do: value | |
| 13779 | + def encode_unowned(_), do: {:error, "Unexpected type when encoding Unowned.unowned"} | |
| 13780 | + | |
| 13781 | + def from_map(m) do | |
| 13782 | + %Unowned{ | |
| 13783 | + unowned: decode_unowned(m["unowned"]), | |
| 13784 | + } | |
| 13785 | + end | |
| 13786 | + | |
| 13787 | + def from_json(json) do | |
| 13788 | + json | |
| 13789 | + |> Jason.decode!() | |
| 13790 | + |> from_map() | |
| 13791 | + end | |
| 13792 | + | |
| 13793 | + def to_map(struct) do | |
| 13794 | + %{ | |
| 13795 | + "unowned" => struct.unowned, | |
| 13796 | + } | |
| 13797 | + end | |
| 13798 | + | |
| 13799 | + def to_json(struct) do | |
| 13800 | + struct | |
| 13801 | + |> to_map() | |
| 13802 | + |> Jason.encode!() | |
| 13803 | + end | |
| 13804 | +end | |
| 13805 | + | |
| 13806 | +defmodule Unsafe do | |
| 13807 | + @enforce_keys [:unsafe] | |
| 13808 | + defstruct [:unsafe] | |
| 13809 | + | |
| 13810 | + @type t :: %__MODULE__{ | |
| 13811 | + unsafe: integer() | |
| 13812 | + } | |
| 13813 | + | |
| 13814 | + def decode_unsafe(value) when is_integer(value), do: value | |
| 13815 | + def decode_unsafe(_), do: {:error, "Unexpected type when decoding Unsafe.unsafe"} | |
| 13816 | + | |
| 13817 | + def encode_unsafe(value) when is_integer(value), do: value | |
| 13818 | + def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"} | |
| 13819 | + | |
| 13820 | + def from_map(m) do | |
| 13821 | + %Unsafe{ | |
| 13822 | + unsafe: decode_unsafe(m["unsafe"]), | |
| 13823 | + } | |
| 13824 | + end | |
| 13825 | + | |
| 13826 | + def from_json(json) do | |
| 13827 | + json | |
| 13828 | + |> Jason.decode!() | |
| 13829 | + |> from_map() | |
| 13830 | + end | |
| 13831 | + | |
| 13832 | + def to_map(struct) do | |
| 13833 | + %{ | |
| 13834 | + "unsafe" => struct.unsafe, | |
| 13763 | 13835 | } |
| 13764 | 13836 | end |
| 13765 | 13837 | |
| @@ -13809,6 +13881,45 @@ defmodule Unsigned do | ||
| 13809 | 13881 | end |
| 13810 | 13882 | end |
| 13811 | 13883 | |
| 13884 | +defmodule UseSerializers do | |
| 13885 | + @enforce_keys [:use_serializers] | |
| 13886 | + defstruct [:use_serializers] | |
| 13887 | + | |
| 13888 | + @type t :: %__MODULE__{ | |
| 13889 | + use_serializers: integer() | |
| 13890 | + } | |
| 13891 | + | |
| 13892 | + def decode_use_serializers(value) when is_integer(value), do: value | |
| 13893 | + def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"} | |
| 13894 | + | |
| 13895 | + def encode_use_serializers(value) when is_integer(value), do: value | |
| 13896 | + def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"} | |
| 13897 | + | |
| 13898 | + def from_map(m) do | |
| 13899 | + %UseSerializers{ | |
| 13900 | + use_serializers: decode_use_serializers(m["UseSerializers"]), | |
| 13901 | + } | |
| 13902 | + end | |
| 13903 | + | |
| 13904 | + def from_json(json) do | |
| 13905 | + json | |
| 13906 | + |> Jason.decode!() | |
| 13907 | + |> from_map() | |
| 13908 | + end | |
| 13909 | + | |
| 13910 | + def to_map(struct) do | |
| 13911 | + %{ | |
| 13912 | + "UseSerializers" => struct.use_serializers, | |
| 13913 | + } | |
| 13914 | + end | |
| 13915 | + | |
| 13916 | + def to_json(struct) do | |
| 13917 | + struct | |
| 13918 | + |> to_map() | |
| 13919 | + |> Jason.encode!() | |
| 13920 | + end | |
| 13921 | +end | |
| 13922 | + | |
| 13812 | 13923 | defmodule Ushort do |
| 13813 | 13924 | @enforce_keys [:ushort] |
| 13814 | 13925 | defstruct [:ushort] |
| @@ -14551,12 +14662,17 @@ defmodule Yield do | ||
| 14551 | 14662 | end |
| 14552 | 14663 | |
| 14553 | 14664 | defmodule Obj6 do |
| 14554 | - @enforce_keys [:dummy, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 14555 | - defstruct [:dummy, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 14665 | + @enforce_keys [:dummy, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 14666 | + defstruct [:dummy, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 14556 | 14667 | |
| 14557 | 14668 | @type t :: %__MODULE__{ |
| 14558 | 14669 | dummy: integer(), |
| 14670 | + union: Union.t(), | |
| 14671 | + unmarshal_json: UnmarshalJSON.t(), | |
| 14672 | + unowned: Unowned.t(), | |
| 14673 | + unsafe: Unsafe.t(), | |
| 14559 | 14674 | unsigned: Unsigned.t(), |
| 14675 | + use_serializers: UseSerializers.t(), | |
| 14560 | 14676 | ushort: Ushort.t(), |
| 14561 | 14677 | using: Using.t(), |
| 14562 | 14678 | utf8_json_reader: Utf8JSONReader.t(), |
| @@ -14587,7 +14703,12 @@ defmodule Obj6 do | ||
| 14587 | 14703 | def from_map(m) do |
| 14588 | 14704 | %Obj6{ |
| 14589 | 14705 | dummy: decode_dummy(m["dummy"]), |
| 14706 | + union: Union.from_map(m["union"]), | |
| 14707 | + unmarshal_json: UnmarshalJSON.from_map(m["UnmarshalJSON"]), | |
| 14708 | + unowned: Unowned.from_map(m["unowned"]), | |
| 14709 | + unsafe: Unsafe.from_map(m["unsafe"]), | |
| 14590 | 14710 | unsigned: Unsigned.from_map(m["unsigned"]), |
| 14711 | + use_serializers: UseSerializers.from_map(m["UseSerializers"]), | |
| 14591 | 14712 | ushort: Ushort.from_map(m["ushort"]), |
| 14592 | 14713 | using: Using.from_map(m["using"]), |
| 14593 | 14714 | utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]), |
| @@ -14619,7 +14740,12 @@ defmodule Obj6 do | ||
| 14619 | 14740 | def to_map(struct) do |
| 14620 | 14741 | %{ |
| 14621 | 14742 | "dummy" => struct.dummy, |
| 14743 | + "union" => Union.to_map(struct.union), | |
| 14744 | + "UnmarshalJSON" => UnmarshalJSON.to_map(struct.unmarshal_json), | |
| 14745 | + "unowned" => Unowned.to_map(struct.unowned), | |
| 14746 | + "unsafe" => Unsafe.to_map(struct.unsafe), | |
| 14622 | 14747 | "unsigned" => Unsigned.to_map(struct.unsigned), |
| 14748 | + "UseSerializers" => UseSerializers.to_map(struct.use_serializers), | |
| 14623 | 14749 | "ushort" => Ushort.to_map(struct.ushort), |
| 14624 | 14750 | "using" => Using.to_map(struct.using), |
| 14625 | 14751 | "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader), |
Melmdefault / QuickType.elm+264 −207
| @@ -189,6 +189,7 @@ module QuickType exposing | ||
| 189 | 189 | , Lazy |
| 190 | 190 | , Left |
| 191 | 191 | , ListClass |
| 192 | + , LocalDate | |
| 192 | 193 | , Locale |
| 193 | 194 | , Lock |
| 194 | 195 | , Long |
| @@ -202,8 +203,6 @@ module QuickType exposing | ||
| 202 | 203 | , Native |
| 203 | 204 | , New |
| 204 | 205 | , Newtonsoft |
| 205 | - , Nil | |
| 206 | - , No | |
| 207 | 206 | , If |
| 208 | 207 | , Import |
| 209 | 208 | , In |
| @@ -212,6 +211,8 @@ module QuickType exposing | ||
| 212 | 211 | , Let |
| 213 | 212 | , Module |
| 214 | 213 | , Obj4 |
| 214 | + , Nil | |
| 215 | + , No | |
| 215 | 216 | , NoSuchMethod |
| 216 | 217 | , Noexcept |
| 217 | 218 | , Nonatomic |
| @@ -233,6 +234,8 @@ module QuickType exposing | ||
| 233 | 234 | , ProtocolClass |
| 234 | 235 | , Object |
| 235 | 236 | , ObjectMapper |
| 237 | + , OffsetDateTime | |
| 238 | + , OffsetTime | |
| 236 | 239 | , Oneway |
| 237 | 240 | , Open |
| 238 | 241 | , Operator |
| @@ -272,10 +275,6 @@ module QuickType exposing | ||
| 272 | 275 | , Return |
| 273 | 276 | , Right |
| 274 | 277 | , RuntimeType |
| 275 | - , S | |
| 276 | - , Sbyte | |
| 277 | - , Sealed | |
| 278 | - , Sel | |
| 279 | 278 | , Obj5 |
| 280 | 279 | , KSerializer |
| 281 | 280 | , SelfClass |
| @@ -285,6 +284,10 @@ module QuickType exposing | ||
| 285 | 284 | , Type |
| 286 | 285 | , PrimitiveKind |
| 287 | 286 | , TypeClass |
| 287 | + , S | |
| 288 | + , Sbyte | |
| 289 | + , Sealed | |
| 290 | + , Sel | |
| 288 | 291 | , Select |
| 289 | 292 | , Self |
| 290 | 293 | , Sendable |
| @@ -337,14 +340,14 @@ module QuickType exposing | ||
| 337 | 340 | , Ulong |
| 338 | 341 | , Unchecked |
| 339 | 342 | , Undefined |
| 343 | + , Obj6 | |
| 344 | + , Where | |
| 340 | 345 | , Union |
| 341 | 346 | , UnmarshalJSON |
| 342 | 347 | , Unowned |
| 343 | 348 | , Unsafe |
| 344 | - , UseSerializers | |
| 345 | - , Obj6 | |
| 346 | - , Where | |
| 347 | 349 | , Unsigned |
| 350 | + , UseSerializers | |
| 348 | 351 | , Ushort |
| 349 | 352 | , Using |
| 350 | 353 | , Utf8JSONReader |
| @@ -1078,6 +1081,7 @@ type alias Obj3 = | ||
| 1078 | 1081 | , lazy : Lazy |
| 1079 | 1082 | , left : Left |
| 1080 | 1083 | , list : ListClass |
| 1084 | + , localDate : LocalDate | |
| 1081 | 1085 | , locale : Locale |
| 1082 | 1086 | , lock : Lock |
| 1083 | 1087 | , long : Long |
| @@ -1091,8 +1095,6 @@ type alias Obj3 = | ||
| 1091 | 1095 | , native : Native |
| 1092 | 1096 | , new : New |
| 1093 | 1097 | , newtonsoft : Newtonsoft |
| 1094 | - , nil : Nil | |
| 1095 | - , no : No | |
| 1096 | 1098 | , obj3If : If |
| 1097 | 1099 | , obj3Import : Import |
| 1098 | 1100 | , obj3In : In |
| @@ -1274,6 +1276,10 @@ type alias ListClass = | ||
| 1274 | 1276 | { list : Int |
| 1275 | 1277 | } |
| 1276 | 1278 | |
| 1279 | +type alias LocalDate = | |
| 1280 | + { localDate : Int | |
| 1281 | + } | |
| 1282 | + | |
| 1277 | 1283 | type alias Locale = |
| 1278 | 1284 | { locale : Int |
| 1279 | 1285 | } |
| @@ -1326,14 +1332,6 @@ type alias Newtonsoft = | ||
| 1326 | 1332 | { newtonsoft : Int |
| 1327 | 1333 | } |
| 1328 | 1334 | |
| 1329 | -type alias Nil = | |
| 1330 | - { nil : Int | |
| 1331 | - } | |
| 1332 | - | |
| 1333 | -type alias No = | |
| 1334 | - { no : Int | |
| 1335 | - } | |
| 1336 | - | |
| 1337 | 1335 | type alias If = |
| 1338 | 1336 | { ifIf : Int |
| 1339 | 1337 | } |
| @@ -1364,6 +1362,8 @@ type alias Module = | ||
| 1364 | 1362 | |
| 1365 | 1363 | type alias Obj4 = |
| 1366 | 1364 | { dummy : Int |
| 1365 | + , nil : Nil | |
| 1366 | + , no : No | |
| 1367 | 1367 | , noSuchMethod : NoSuchMethod |
| 1368 | 1368 | , noexcept : Noexcept |
| 1369 | 1369 | , nonatomic : Nonatomic |
| @@ -1385,6 +1385,8 @@ type alias Obj4 = | ||
| 1385 | 1385 | , obj4Protocol : ProtocolClass |
| 1386 | 1386 | , object : Object |
| 1387 | 1387 | , objectMapper : ObjectMapper |
| 1388 | + , offsetDateTime : OffsetDateTime | |
| 1389 | + , offsetTime : OffsetTime | |
| 1388 | 1390 | , oneway : Oneway |
| 1389 | 1391 | , open : Open |
| 1390 | 1392 | , operator : Operator |
| @@ -1424,10 +1426,14 @@ type alias Obj4 = | ||
| 1424 | 1426 | , return : Return |
| 1425 | 1427 | , right : Right |
| 1426 | 1428 | , runtimeType : RuntimeType |
| 1427 | - , s : S | |
| 1428 | - , sbyte : Sbyte | |
| 1429 | - , sealed : Sealed | |
| 1430 | - , sel : Sel | |
| 1429 | + } | |
| 1430 | + | |
| 1431 | +type alias Nil = | |
| 1432 | + { nil : Int | |
| 1433 | + } | |
| 1434 | + | |
| 1435 | +type alias No = | |
| 1436 | + { no : Int | |
| 1431 | 1437 | } |
| 1432 | 1438 | |
| 1433 | 1439 | type alias NoSuchMethod = |
| @@ -1514,6 +1520,14 @@ type alias ObjectMapper = | ||
| 1514 | 1520 | { objectMapper : Int |
| 1515 | 1521 | } |
| 1516 | 1522 | |
| 1523 | +type alias OffsetDateTime = | |
| 1524 | + { offsetDateTime : Int | |
| 1525 | + } | |
| 1526 | + | |
| 1527 | +type alias OffsetTime = | |
| 1528 | + { offsetTime : Int | |
| 1529 | + } | |
| 1530 | + | |
| 1517 | 1531 | type alias Oneway = |
| 1518 | 1532 | { oneway : Int |
| 1519 | 1533 | } |
| @@ -1670,22 +1684,6 @@ type alias RuntimeType = | ||
| 1670 | 1684 | { runtimeType : Int |
| 1671 | 1685 | } |
| 1672 | 1686 | |
| 1673 | -type alias S = | |
| 1674 | - { s : Int | |
| 1675 | - } | |
| 1676 | - | |
| 1677 | -type alias Sbyte = | |
| 1678 | - { sbyte : Int | |
| 1679 | - } | |
| 1680 | - | |
| 1681 | -type alias Sealed = | |
| 1682 | - { sealed : Int | |
| 1683 | - } | |
| 1684 | - | |
| 1685 | -type alias Sel = | |
| 1686 | - { sel : Int | |
| 1687 | - } | |
| 1688 | - | |
| 1689 | 1687 | type alias Obj5 = |
| 1690 | 1688 | { dummy : Int |
| 1691 | 1689 | , kSerializer : KSerializer |
| @@ -1696,6 +1694,10 @@ type alias Obj5 = | ||
| 1696 | 1694 | , obj5Type : Type |
| 1697 | 1695 | , primitiveKind : PrimitiveKind |
| 1698 | 1696 | , purpleType : TypeClass |
| 1697 | + , s : S | |
| 1698 | + , sbyte : Sbyte | |
| 1699 | + , sealed : Sealed | |
| 1700 | + , sel : Sel | |
| 1699 | 1701 | , select : Select |
| 1700 | 1702 | , self : Self |
| 1701 | 1703 | , sendable : Sendable |
| @@ -1748,11 +1750,6 @@ type alias Obj5 = | ||
| 1748 | 1750 | , ulong : Ulong |
| 1749 | 1751 | , unchecked : Unchecked |
| 1750 | 1752 | , undefined : Undefined |
| 1751 | - , union : Union | |
| 1752 | - , unmarshalJSON : UnmarshalJSON | |
| 1753 | - , unowned : Unowned | |
| 1754 | - , unsafe : Unsafe | |
| 1755 | - , useSerializers : UseSerializers | |
| 1756 | 1753 | } |
| 1757 | 1754 | |
| 1758 | 1755 | type alias KSerializer = |
| @@ -1787,6 +1784,22 @@ type alias TypeClass = | ||
| 1787 | 1784 | { typeType : Int |
| 1788 | 1785 | } |
| 1789 | 1786 | |
| 1787 | +type alias S = | |
| 1788 | + { s : Int | |
| 1789 | + } | |
| 1790 | + | |
| 1791 | +type alias Sbyte = | |
| 1792 | + { sbyte : Int | |
| 1793 | + } | |
| 1794 | + | |
| 1795 | +type alias Sealed = | |
| 1796 | + { sealed : Int | |
| 1797 | + } | |
| 1798 | + | |
| 1799 | +type alias Sel = | |
| 1800 | + { sel : Int | |
| 1801 | + } | |
| 1802 | + | |
| 1790 | 1803 | type alias Select = |
| 1791 | 1804 | { select : Int |
| 1792 | 1805 | } |
| @@ -1995,30 +2008,15 @@ type alias Undefined = | ||
| 1995 | 2008 | { undefined : Int |
| 1996 | 2009 | } |
| 1997 | 2010 | |
| 1998 | -type alias Union = | |
| 1999 | - { union : Int | |
| 2000 | - } | |
| 2001 | - | |
| 2002 | -type alias UnmarshalJSON = | |
| 2003 | - { unmarshalJSON : Int | |
| 2004 | - } | |
| 2005 | - | |
| 2006 | -type alias Unowned = | |
| 2007 | - { unowned : Int | |
| 2008 | - } | |
| 2009 | - | |
| 2010 | -type alias Unsafe = | |
| 2011 | - { unsafe : Int | |
| 2012 | - } | |
| 2013 | - | |
| 2014 | -type alias UseSerializers = | |
| 2015 | - { useSerializers : Int | |
| 2016 | - } | |
| 2017 | - | |
| 2018 | 2011 | type alias Obj6 = |
| 2019 | 2012 | { dummy : Int |
| 2020 | 2013 | , obj6Where : Where |
| 2014 | + , union : Union | |
| 2015 | + , unmarshalJSON : UnmarshalJSON | |
| 2016 | + , unowned : Unowned | |
| 2017 | + , unsafe : Unsafe | |
| 2021 | 2018 | , unsigned : Unsigned |
| 2019 | + , useSerializers : UseSerializers | |
| 2022 | 2020 | , ushort : Ushort |
| 2023 | 2021 | , using : Using |
| 2024 | 2022 | , utf8JSONReader : Utf8JSONReader |
| @@ -2043,10 +2041,30 @@ type alias Where = | ||
| 2043 | 2041 | { whereWhere : Int |
| 2044 | 2042 | } |
| 2045 | 2043 | |
| 2044 | +type alias Union = | |
| 2045 | + { union : Int | |
| 2046 | + } | |
| 2047 | + | |
| 2048 | +type alias UnmarshalJSON = | |
| 2049 | + { unmarshalJSON : Int | |
| 2050 | + } | |
| 2051 | + | |
| 2052 | +type alias Unowned = | |
| 2053 | + { unowned : Int | |
| 2054 | + } | |
| 2055 | + | |
| 2056 | +type alias Unsafe = | |
| 2057 | + { unsafe : Int | |
| 2058 | + } | |
| 2059 | + | |
| 2046 | 2060 | type alias Unsigned = |
| 2047 | 2061 | { unsigned : Int |
| 2048 | 2062 | } |
| 2049 | 2063 | |
| 2064 | +type alias UseSerializers = | |
| 2065 | + { useSerializers : Int | |
| 2066 | + } | |
| 2067 | + | |
| 2050 | 2068 | type alias Ushort = |
| 2051 | 2069 | { ushort : Int |
| 2052 | 2070 | } |
| @@ -3901,6 +3919,7 @@ obj3 = | ||
| 3901 | 3919 | |> Jpipe.required "lazy" lazy |
| 3902 | 3920 | |> Jpipe.required "left" left |
| 3903 | 3921 | |> Jpipe.required "list" listClass |
| 3922 | + |> Jpipe.required "LocalDate" localDate | |
| 3904 | 3923 | |> Jpipe.required "Locale" locale |
| 3905 | 3924 | |> Jpipe.required "lock" lock |
| 3906 | 3925 | |> Jpipe.required "long" long |
| @@ -3914,8 +3933,6 @@ obj3 = | ||
| 3914 | 3933 | |> Jpipe.required "native" native |
| 3915 | 3934 | |> Jpipe.required "new" new |
| 3916 | 3935 | |> Jpipe.required "newtonsoft" newtonsoft |
| 3917 | - |> Jpipe.required "nil" nil | |
| 3918 | - |> Jpipe.required "NO" no | |
| 3919 | 3936 | |> Jpipe.required "if" purpleIf |
| 3920 | 3937 | |> Jpipe.required "import" purpleImport |
| 3921 | 3938 | |> Jpipe.required "in" purpleIn |
| @@ -3971,6 +3988,7 @@ encodeObj3 x = | ||
| 3971 | 3988 | , ("lazy", encodeLazy x.lazy) |
| 3972 | 3989 | , ("left", encodeLeft x.left) |
| 3973 | 3990 | , ("list", encodeListClass x.list) |
| 3991 | + , ("LocalDate", encodeLocalDate x.localDate) | |
| 3974 | 3992 | , ("Locale", encodeLocale x.locale) |
| 3975 | 3993 | , ("lock", encodeLock x.lock) |
| 3976 | 3994 | , ("long", encodeLong x.long) |
| @@ -3984,8 +4002,6 @@ encodeObj3 x = | ||
| 3984 | 4002 | , ("native", encodeNative x.native) |
| 3985 | 4003 | , ("new", encodeNew x.new) |
| 3986 | 4004 | , ("newtonsoft", encodeNewtonsoft x.newtonsoft) |
| 3987 | - , ("nil", encodeNil x.nil) | |
| 3988 | - , ("NO", encodeNo x.no) | |
| 3989 | 4005 | , ("if", encodeIf x.obj3If) |
| 3990 | 4006 | , ("import", encodeImport x.obj3Import) |
| 3991 | 4007 | , ("in", encodeIn x.obj3In) |
| @@ -4468,6 +4484,17 @@ encodeListClass x = | ||
| 4468 | 4484 | [ ("list", Jenc.int x.list) |
| 4469 | 4485 | ] |
| 4470 | 4486 | |
| 4487 | +localDate : Jdec.Decoder LocalDate | |
| 4488 | +localDate = | |
| 4489 | + Jdec.succeed LocalDate | |
| 4490 | + |> Jpipe.required "LocalDate" Jdec.int | |
| 4491 | + | |
| 4492 | +encodeLocalDate : LocalDate -> Jenc.Value | |
| 4493 | +encodeLocalDate x = | |
| 4494 | + Jenc.object | |
| 4495 | + [ ("LocalDate", Jenc.int x.localDate) | |
| 4496 | + ] | |
| 4497 | + | |
| 4471 | 4498 | locale : Jdec.Decoder Locale |
| 4472 | 4499 | locale = |
| 4473 | 4500 | Jdec.succeed Locale |
| @@ -4611,28 +4638,6 @@ encodeNewtonsoft x = | ||
| 4611 | 4638 | [ ("newtonsoft", Jenc.int x.newtonsoft) |
| 4612 | 4639 | ] |
| 4613 | 4640 | |
| 4614 | -nil : Jdec.Decoder Nil | |
| 4615 | -nil = | |
| 4616 | - Jdec.succeed Nil | |
| 4617 | - |> Jpipe.required "nil" Jdec.int | |
| 4618 | - | |
| 4619 | -encodeNil : Nil -> Jenc.Value | |
| 4620 | -encodeNil x = | |
| 4621 | - Jenc.object | |
| 4622 | - [ ("nil", Jenc.int x.nil) | |
| 4623 | - ] | |
| 4624 | - | |
| 4625 | -no : Jdec.Decoder No | |
| 4626 | -no = | |
| 4627 | - Jdec.succeed No | |
| 4628 | - |> Jpipe.required "NO" Jdec.int | |
| 4629 | - | |
| 4630 | -encodeNo : No -> Jenc.Value | |
| 4631 | -encodeNo x = | |
| 4632 | - Jenc.object | |
| 4633 | - [ ("NO", Jenc.int x.no) | |
| 4634 | - ] | |
| 4635 | - | |
| 4636 | 4641 | purpleIf : Jdec.Decoder If |
| 4637 | 4642 | purpleIf = |
| 4638 | 4643 | Jdec.succeed If |
| @@ -4714,6 +4719,8 @@ obj4 : Jdec.Decoder Obj4 | ||
| 4714 | 4719 | obj4 = |
| 4715 | 4720 | Jdec.succeed Obj4 |
| 4716 | 4721 | |> Jpipe.required "dummy" Jdec.int |
| 4722 | + |> Jpipe.required "nil" nil | |
| 4723 | + |> Jpipe.required "NO" no | |
| 4717 | 4724 | |> Jpipe.required "noSuchMethod" noSuchMethod |
| 4718 | 4725 | |> Jpipe.required "noexcept" noexcept |
| 4719 | 4726 | |> Jpipe.required "nonatomic" nonatomic |
| @@ -4735,6 +4742,8 @@ obj4 = | ||
| 4735 | 4742 | |> Jpipe.required "protocol" protocolClass |
| 4736 | 4743 | |> Jpipe.required "object" object |
| 4737 | 4744 | |> Jpipe.required "ObjectMapper" objectMapper |
| 4745 | + |> Jpipe.required "OffsetDateTime" offsetDateTime | |
| 4746 | + |> Jpipe.required "OffsetTime" offsetTime | |
| 4738 | 4747 | |> Jpipe.required "oneway" oneway |
| 4739 | 4748 | |> Jpipe.required "open" open |
| 4740 | 4749 | |> Jpipe.required "operator" operator |
| @@ -4774,15 +4783,13 @@ obj4 = | ||
| 4774 | 4783 | |> Jpipe.required "return" return |
| 4775 | 4784 | |> Jpipe.required "right" right |
| 4776 | 4785 | |> Jpipe.required "runtimeType" runtimeType |
| 4777 | - |> Jpipe.required "s" s | |
| 4778 | - |> Jpipe.required "sbyte" sbyte | |
| 4779 | - |> Jpipe.required "sealed" sealed | |
| 4780 | - |> Jpipe.required "SEL" sel | |
| 4781 | 4786 | |
| 4782 | 4787 | encodeObj4 : Obj4 -> Jenc.Value |
| 4783 | 4788 | encodeObj4 x = |
| 4784 | 4789 | Jenc.object |
| 4785 | 4790 | [ ("dummy", Jenc.int x.dummy) |
| 4791 | + , ("nil", encodeNil x.nil) | |
| 4792 | + , ("NO", encodeNo x.no) | |
| 4786 | 4793 | , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod) |
| 4787 | 4794 | , ("noexcept", encodeNoexcept x.noexcept) |
| 4788 | 4795 | , ("nonatomic", encodeNonatomic x.nonatomic) |
| @@ -4804,6 +4811,8 @@ encodeObj4 x = | ||
| 4804 | 4811 | , ("protocol", encodeProtocolClass x.obj4Protocol) |
| 4805 | 4812 | , ("object", encodeObject x.object) |
| 4806 | 4813 | , ("ObjectMapper", encodeObjectMapper x.objectMapper) |
| 4814 | + , ("OffsetDateTime", encodeOffsetDateTime x.offsetDateTime) | |
| 4815 | + , ("OffsetTime", encodeOffsetTime x.offsetTime) | |
| 4807 | 4816 | , ("oneway", encodeOneway x.oneway) |
| 4808 | 4817 | , ("open", encodeOpen x.open) |
| 4809 | 4818 | , ("operator", encodeOperator x.operator) |
| @@ -4843,10 +4852,28 @@ encodeObj4 x = | ||
| 4843 | 4852 | , ("return", encodeReturn x.return) |
| 4844 | 4853 | , ("right", encodeRight x.right) |
| 4845 | 4854 | , ("runtimeType", encodeRuntimeType x.runtimeType) |
| 4846 | - , ("s", encodeS x.s) | |
| 4847 | - , ("sbyte", encodeSbyte x.sbyte) | |
| 4848 | - , ("sealed", encodeSealed x.sealed) | |
| 4849 | - , ("SEL", encodeSel x.sel) | |
| 4855 | + ] | |
| 4856 | + | |
| 4857 | +nil : Jdec.Decoder Nil | |
| 4858 | +nil = | |
| 4859 | + Jdec.succeed Nil | |
| 4860 | + |> Jpipe.required "nil" Jdec.int | |
| 4861 | + | |
| 4862 | +encodeNil : Nil -> Jenc.Value | |
| 4863 | +encodeNil x = | |
| 4864 | + Jenc.object | |
| 4865 | + [ ("nil", Jenc.int x.nil) | |
| 4866 | + ] | |
| 4867 | + | |
| 4868 | +no : Jdec.Decoder No | |
| 4869 | +no = | |
| 4870 | + Jdec.succeed No | |
| 4871 | + |> Jpipe.required "NO" Jdec.int | |
| 4872 | + | |
| 4873 | +encodeNo : No -> Jenc.Value | |
| 4874 | +encodeNo x = | |
| 4875 | + Jenc.object | |
| 4876 | + [ ("NO", Jenc.int x.no) | |
| 4850 | 4877 | ] |
| 4851 | 4878 | |
| 4852 | 4879 | noSuchMethod : Jdec.Decoder NoSuchMethod |
| @@ -5080,6 +5107,28 @@ encodeObjectMapper x = | ||
| 5080 | 5107 | [ ("ObjectMapper", Jenc.int x.objectMapper) |
| 5081 | 5108 | ] |
| 5082 | 5109 | |
| 5110 | +offsetDateTime : Jdec.Decoder OffsetDateTime | |
| 5111 | +offsetDateTime = | |
| 5112 | + Jdec.succeed OffsetDateTime | |
| 5113 | + |> Jpipe.required "OffsetDateTime" Jdec.int | |
| 5114 | + | |
| 5115 | +encodeOffsetDateTime : OffsetDateTime -> Jenc.Value | |
| 5116 | +encodeOffsetDateTime x = | |
| 5117 | + Jenc.object | |
| 5118 | + [ ("OffsetDateTime", Jenc.int x.offsetDateTime) | |
| 5119 | + ] | |
| 5120 | + | |
| 5121 | +offsetTime : Jdec.Decoder OffsetTime | |
| 5122 | +offsetTime = | |
| 5123 | + Jdec.succeed OffsetTime | |
| 5124 | + |> Jpipe.required "OffsetTime" Jdec.int | |
| 5125 | + | |
| 5126 | +encodeOffsetTime : OffsetTime -> Jenc.Value | |
| 5127 | +encodeOffsetTime x = | |
| 5128 | + Jenc.object | |
| 5129 | + [ ("OffsetTime", Jenc.int x.offsetTime) | |
| 5130 | + ] | |
| 5131 | + | |
| 5083 | 5132 | oneway : Jdec.Decoder Oneway |
| 5084 | 5133 | oneway = |
| 5085 | 5134 | Jdec.succeed Oneway |
| @@ -5509,50 +5558,6 @@ encodeRuntimeType x = | ||
| 5509 | 5558 | [ ("runtimeType", Jenc.int x.runtimeType) |
| 5510 | 5559 | ] |
| 5511 | 5560 | |
| 5512 | -s : Jdec.Decoder S | |
| 5513 | -s = | |
| 5514 | - Jdec.succeed S | |
| 5515 | - |> Jpipe.required "s" Jdec.int | |
| 5516 | - | |
| 5517 | -encodeS : S -> Jenc.Value | |
| 5518 | -encodeS x = | |
| 5519 | - Jenc.object | |
| 5520 | - [ ("s", Jenc.int x.s) | |
| 5521 | - ] | |
| 5522 | - | |
| 5523 | -sbyte : Jdec.Decoder Sbyte | |
| 5524 | -sbyte = | |
| 5525 | - Jdec.succeed Sbyte | |
| 5526 | - |> Jpipe.required "sbyte" Jdec.int | |
| 5527 | - | |
| 5528 | -encodeSbyte : Sbyte -> Jenc.Value | |
| 5529 | -encodeSbyte x = | |
| 5530 | - Jenc.object | |
| 5531 | - [ ("sbyte", Jenc.int x.sbyte) | |
| 5532 | - ] | |
| 5533 | - | |
| 5534 | -sealed : Jdec.Decoder Sealed | |
| 5535 | -sealed = | |
| 5536 | - Jdec.succeed Sealed | |
| 5537 | - |> Jpipe.required "sealed" Jdec.int | |
| 5538 | - | |
| 5539 | -encodeSealed : Sealed -> Jenc.Value | |
| 5540 | -encodeSealed x = | |
| 5541 | - Jenc.object | |
| 5542 | - [ ("sealed", Jenc.int x.sealed) | |
| 5543 | - ] | |
| 5544 | - | |
| 5545 | -sel : Jdec.Decoder Sel | |
| 5546 | -sel = | |
| 5547 | - Jdec.succeed Sel | |
| 5548 | - |> Jpipe.required "SEL" Jdec.int | |
| 5549 | - | |
| 5550 | -encodeSel : Sel -> Jenc.Value | |
| 5551 | -encodeSel x = | |
| 5552 | - Jenc.object | |
| 5553 | - [ ("SEL", Jenc.int x.sel) | |
| 5554 | - ] | |
| 5555 | - | |
| 5556 | 5561 | obj5 : Jdec.Decoder Obj5 |
| 5557 | 5562 | obj5 = |
| 5558 | 5563 | Jdec.succeed Obj5 |
| @@ -5565,6 +5570,10 @@ obj5 = | ||
| 5565 | 5570 | |> Jpipe.required "Type" purpleType |
| 5566 | 5571 | |> Jpipe.required "PrimitiveKind" primitiveKind |
| 5567 | 5572 | |> Jpipe.required "type" typeClass |
| 5573 | + |> Jpipe.required "s" s | |
| 5574 | + |> Jpipe.required "sbyte" sbyte | |
| 5575 | + |> Jpipe.required "sealed" sealed | |
| 5576 | + |> Jpipe.required "SEL" sel | |
| 5568 | 5577 | |> Jpipe.required "select" select |
| 5569 | 5578 | |> Jpipe.required "Self" self |
| 5570 | 5579 | |> Jpipe.required "Sendable" sendable |
| @@ -5617,11 +5626,6 @@ obj5 = | ||
| 5617 | 5626 | |> Jpipe.required "ulong" ulong |
| 5618 | 5627 | |> Jpipe.required "unchecked" unchecked |
| 5619 | 5628 | |> Jpipe.required "undefined" undefined |
| 5620 | - |> Jpipe.required "union" union | |
| 5621 | - |> Jpipe.required "UnmarshalJSON" unmarshalJSON | |
| 5622 | - |> Jpipe.required "unowned" unowned | |
| 5623 | - |> Jpipe.required "unsafe" unsafe | |
| 5624 | - |> Jpipe.required "UseSerializers" useSerializers | |
| 5625 | 5629 | |
| 5626 | 5630 | encodeObj5 : Obj5 -> Jenc.Value |
| 5627 | 5631 | encodeObj5 x = |
| @@ -5635,6 +5639,10 @@ encodeObj5 x = | ||
| 5635 | 5639 | , ("Type", encodeType x.obj5Type) |
| 5636 | 5640 | , ("PrimitiveKind", encodePrimitiveKind x.primitiveKind) |
| 5637 | 5641 | , ("type", encodeTypeClass x.purpleType) |
| 5642 | + , ("s", encodeS x.s) | |
| 5643 | + , ("sbyte", encodeSbyte x.sbyte) | |
| 5644 | + , ("sealed", encodeSealed x.sealed) | |
| 5645 | + , ("SEL", encodeSel x.sel) | |
| 5638 | 5646 | , ("select", encodeSelect x.select) |
| 5639 | 5647 | , ("Self", encodeSelf x.self) |
| 5640 | 5648 | , ("Sendable", encodeSendable x.sendable) |
| @@ -5687,11 +5695,6 @@ encodeObj5 x = | ||
| 5687 | 5695 | , ("ulong", encodeUlong x.ulong) |
| 5688 | 5696 | , ("unchecked", encodeUnchecked x.unchecked) |
| 5689 | 5697 | , ("undefined", encodeUndefined x.undefined) |
| 5690 | - , ("union", encodeUnion x.union) | |
| 5691 | - , ("UnmarshalJSON", encodeUnmarshalJSON x.unmarshalJSON) | |
| 5692 | - , ("unowned", encodeUnowned x.unowned) | |
| 5693 | - , ("unsafe", encodeUnsafe x.unsafe) | |
| 5694 | - , ("UseSerializers", encodeUseSerializers x.useSerializers) | |
| 5695 | 5698 | ] |
| 5696 | 5699 | |
| 5697 | 5700 | kSerializer : Jdec.Decoder KSerializer |
| @@ -5782,6 +5785,50 @@ encodeTypeClass x = | ||
| 5782 | 5785 | [ ("type", Jenc.int x.typeType) |
| 5783 | 5786 | ] |
| 5784 | 5787 | |
| 5788 | +s : Jdec.Decoder S | |
| 5789 | +s = | |
| 5790 | + Jdec.succeed S | |
| 5791 | + |> Jpipe.required "s" Jdec.int | |
| 5792 | + | |
| 5793 | +encodeS : S -> Jenc.Value | |
| 5794 | +encodeS x = | |
| 5795 | + Jenc.object | |
| 5796 | + [ ("s", Jenc.int x.s) | |
| 5797 | + ] | |
| 5798 | + | |
| 5799 | +sbyte : Jdec.Decoder Sbyte | |
| 5800 | +sbyte = | |
| 5801 | + Jdec.succeed Sbyte | |
| 5802 | + |> Jpipe.required "sbyte" Jdec.int | |
| 5803 | + | |
| 5804 | +encodeSbyte : Sbyte -> Jenc.Value | |
| 5805 | +encodeSbyte x = | |
| 5806 | + Jenc.object | |
| 5807 | + [ ("sbyte", Jenc.int x.sbyte) | |
| 5808 | + ] | |
| 5809 | + | |
| 5810 | +sealed : Jdec.Decoder Sealed | |
| 5811 | +sealed = | |
| 5812 | + Jdec.succeed Sealed | |
| 5813 | + |> Jpipe.required "sealed" Jdec.int | |
| 5814 | + | |
| 5815 | +encodeSealed : Sealed -> Jenc.Value | |
| 5816 | +encodeSealed x = | |
| 5817 | + Jenc.object | |
| 5818 | + [ ("sealed", Jenc.int x.sealed) | |
| 5819 | + ] | |
| 5820 | + | |
| 5821 | +sel : Jdec.Decoder Sel | |
| 5822 | +sel = | |
| 5823 | + Jdec.succeed Sel | |
| 5824 | + |> Jpipe.required "SEL" Jdec.int | |
| 5825 | + | |
| 5826 | +encodeSel : Sel -> Jenc.Value | |
| 5827 | +encodeSel x = | |
| 5828 | + Jenc.object | |
| 5829 | + [ ("SEL", Jenc.int x.sel) | |
| 5830 | + ] | |
| 5831 | + | |
| 5785 | 5832 | select : Jdec.Decoder Select |
| 5786 | 5833 | select = |
| 5787 | 5834 | Jdec.succeed Select |
| @@ -6354,67 +6401,17 @@ encodeUndefined x = | ||
| 6354 | 6401 | [ ("undefined", Jenc.int x.undefined) |
| 6355 | 6402 | ] |
| 6356 | 6403 | |
| 6357 | -union : Jdec.Decoder Union | |
| 6358 | -union = | |
| 6359 | - Jdec.succeed Union | |
| 6360 | - |> Jpipe.required "union" Jdec.int | |
| 6361 | - | |
| 6362 | -encodeUnion : Union -> Jenc.Value | |
| 6363 | -encodeUnion x = | |
| 6364 | - Jenc.object | |
| 6365 | - [ ("union", Jenc.int x.union) | |
| 6366 | - ] | |
| 6367 | - | |
| 6368 | -unmarshalJSON : Jdec.Decoder UnmarshalJSON | |
| 6369 | -unmarshalJSON = | |
| 6370 | - Jdec.succeed UnmarshalJSON | |
| 6371 | - |> Jpipe.required "UnmarshalJSON" Jdec.int | |
| 6372 | - | |
| 6373 | -encodeUnmarshalJSON : UnmarshalJSON -> Jenc.Value | |
| 6374 | -encodeUnmarshalJSON x = | |
| 6375 | - Jenc.object | |
| 6376 | - [ ("UnmarshalJSON", Jenc.int x.unmarshalJSON) | |
| 6377 | - ] | |
| 6378 | - | |
| 6379 | -unowned : Jdec.Decoder Unowned | |
| 6380 | -unowned = | |
| 6381 | - Jdec.succeed Unowned | |
| 6382 | - |> Jpipe.required "unowned" Jdec.int | |
| 6383 | - | |
| 6384 | -encodeUnowned : Unowned -> Jenc.Value | |
| 6385 | -encodeUnowned x = | |
| 6386 | - Jenc.object | |
| 6387 | - [ ("unowned", Jenc.int x.unowned) | |
| 6388 | - ] | |
| 6389 | - | |
| 6390 | -unsafe : Jdec.Decoder Unsafe | |
| 6391 | -unsafe = | |
| 6392 | - Jdec.succeed Unsafe | |
| 6393 | - |> Jpipe.required "unsafe" Jdec.int | |
| 6394 | - | |
| 6395 | -encodeUnsafe : Unsafe -> Jenc.Value | |
| 6396 | -encodeUnsafe x = | |
| 6397 | - Jenc.object | |
| 6398 | - [ ("unsafe", Jenc.int x.unsafe) | |
| 6399 | - ] | |
| 6400 | - | |
| 6401 | -useSerializers : Jdec.Decoder UseSerializers | |
| 6402 | -useSerializers = | |
| 6403 | - Jdec.succeed UseSerializers | |
| 6404 | - |> Jpipe.required "UseSerializers" Jdec.int | |
| 6405 | - | |
| 6406 | -encodeUseSerializers : UseSerializers -> Jenc.Value | |
| 6407 | -encodeUseSerializers x = | |
| 6408 | - Jenc.object | |
| 6409 | - [ ("UseSerializers", Jenc.int x.useSerializers) | |
| 6410 | - ] | |
| 6411 | - | |
| 6412 | 6404 | obj6 : Jdec.Decoder Obj6 |
| 6413 | 6405 | obj6 = |
| 6414 | 6406 | Jdec.succeed Obj6 |
| 6415 | 6407 | |> Jpipe.required "dummy" Jdec.int |
| 6416 | 6408 | |> Jpipe.required "where" purpleWhere |
| 6409 | + |> Jpipe.required "union" union | |
| 6410 | + |> Jpipe.required "UnmarshalJSON" unmarshalJSON | |
| 6411 | + |> Jpipe.required "unowned" unowned | |
| 6412 | + |> Jpipe.required "unsafe" unsafe | |
| 6417 | 6413 | |> Jpipe.required "unsigned" unsigned |
| 6414 | + |> Jpipe.required "UseSerializers" useSerializers | |
| 6418 | 6415 | |> Jpipe.required "ushort" ushort |
| 6419 | 6416 | |> Jpipe.required "using" using |
| 6420 | 6417 | |> Jpipe.required "Utf8JsonReader" utf8JSONReader |
| @@ -6439,7 +6436,12 @@ encodeObj6 x = | ||
| 6439 | 6436 | Jenc.object |
| 6440 | 6437 | [ ("dummy", Jenc.int x.dummy) |
| 6441 | 6438 | , ("where", encodeWhere x.obj6Where) |
| 6439 | + , ("union", encodeUnion x.union) | |
| 6440 | + , ("UnmarshalJSON", encodeUnmarshalJSON x.unmarshalJSON) | |
| 6441 | + , ("unowned", encodeUnowned x.unowned) | |
| 6442 | + , ("unsafe", encodeUnsafe x.unsafe) | |
| 6442 | 6443 | , ("unsigned", encodeUnsigned x.unsigned) |
| 6444 | + , ("UseSerializers", encodeUseSerializers x.useSerializers) | |
| 6443 | 6445 | , ("ushort", encodeUshort x.ushort) |
| 6444 | 6446 | , ("using", encodeUsing x.using) |
| 6445 | 6447 | , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader) |
| @@ -6471,6 +6473,50 @@ encodeWhere x = | ||
| 6471 | 6473 | [ ("where", Jenc.int x.whereWhere) |
| 6472 | 6474 | ] |
| 6473 | 6475 | |
| 6476 | +union : Jdec.Decoder Union | |
| 6477 | +union = | |
| 6478 | + Jdec.succeed Union | |
| 6479 | + |> Jpipe.required "union" Jdec.int | |
| 6480 | + | |
| 6481 | +encodeUnion : Union -> Jenc.Value | |
| 6482 | +encodeUnion x = | |
| 6483 | + Jenc.object | |
| 6484 | + [ ("union", Jenc.int x.union) | |
| 6485 | + ] | |
| 6486 | + | |
| 6487 | +unmarshalJSON : Jdec.Decoder UnmarshalJSON | |
| 6488 | +unmarshalJSON = | |
| 6489 | + Jdec.succeed UnmarshalJSON | |
| 6490 | + |> Jpipe.required "UnmarshalJSON" Jdec.int | |
| 6491 | + | |
| 6492 | +encodeUnmarshalJSON : UnmarshalJSON -> Jenc.Value | |
| 6493 | +encodeUnmarshalJSON x = | |
| 6494 | + Jenc.object | |
| 6495 | + [ ("UnmarshalJSON", Jenc.int x.unmarshalJSON) | |
| 6496 | + ] | |
| 6497 | + | |
| 6498 | +unowned : Jdec.Decoder Unowned | |
| 6499 | +unowned = | |
| 6500 | + Jdec.succeed Unowned | |
| 6501 | + |> Jpipe.required "unowned" Jdec.int | |
| 6502 | + | |
| 6503 | +encodeUnowned : Unowned -> Jenc.Value | |
| 6504 | +encodeUnowned x = | |
| 6505 | + Jenc.object | |
| 6506 | + [ ("unowned", Jenc.int x.unowned) | |
| 6507 | + ] | |
| 6508 | + | |
| 6509 | +unsafe : Jdec.Decoder Unsafe | |
| 6510 | +unsafe = | |
| 6511 | + Jdec.succeed Unsafe | |
| 6512 | + |> Jpipe.required "unsafe" Jdec.int | |
| 6513 | + | |
| 6514 | +encodeUnsafe : Unsafe -> Jenc.Value | |
| 6515 | +encodeUnsafe x = | |
| 6516 | + Jenc.object | |
| 6517 | + [ ("unsafe", Jenc.int x.unsafe) | |
| 6518 | + ] | |
| 6519 | + | |
| 6474 | 6520 | unsigned : Jdec.Decoder Unsigned |
| 6475 | 6521 | unsigned = |
| 6476 | 6522 | Jdec.succeed Unsigned |
| @@ -6482,6 +6528,17 @@ encodeUnsigned x = | ||
| 6482 | 6528 | [ ("unsigned", Jenc.int x.unsigned) |
| 6483 | 6529 | ] |
| 6484 | 6530 | |
| 6531 | +useSerializers : Jdec.Decoder UseSerializers | |
| 6532 | +useSerializers = | |
| 6533 | + Jdec.succeed UseSerializers | |
| 6534 | + |> Jpipe.required "UseSerializers" Jdec.int | |
| 6535 | + | |
| 6536 | +encodeUseSerializers : UseSerializers -> Jenc.Value | |
| 6537 | +encodeUseSerializers x = | |
| 6538 | + Jenc.object | |
| 6539 | + [ ("UseSerializers", Jenc.int x.useSerializers) | |
| 6540 | + ] | |
| 6541 | + | |
| 6485 | 6542 | ushort : Jdec.Decoder Ushort |
| 6486 | 6543 | ushort = |
| 6487 | 6544 | Jdec.succeed Ushort |
Mflowdefault / TopLevel.js+117 −90
| @@ -687,10 +687,10 @@ export type Obj3 = { | ||
| 687 | 687 | JsonParser: JSONParser; |
| 688 | 688 | JsonReader: JSONReader; |
| 689 | 689 | JsonTokenType: JSONTokenType; |
| 690 | + LocalDate: LocalDate; | |
| 690 | 691 | Locale: Locale; |
| 691 | 692 | MapEntry: MapEntry; |
| 692 | 693 | MarshalJSON: MarshalJSON; |
| 693 | - NO: No; | |
| 694 | 694 | dummy: number; |
| 695 | 695 | goto: Goto; |
| 696 | 696 | guard: Guard; |
| @@ -737,7 +737,6 @@ export type Obj3 = { | ||
| 737 | 737 | native: Native; |
| 738 | 738 | new: New; |
| 739 | 739 | newtonsoft: Newtonsoft; |
| 740 | - nil: Nil; | |
| 741 | 740 | }; |
| 742 | 741 | |
| 743 | 742 | export type Hashable = { |
| @@ -800,6 +799,10 @@ export type JSONTokenType = { | ||
| 800 | 799 | JsonTokenType: number; |
| 801 | 800 | }; |
| 802 | 801 | |
| 802 | +export type LocalDate = { | |
| 803 | + LocalDate: number; | |
| 804 | +}; | |
| 805 | + | |
| 803 | 806 | export type Locale = { |
| 804 | 807 | Locale: number; |
| 805 | 808 | }; |
| @@ -812,10 +815,6 @@ export type MarshalJSON = { | ||
| 812 | 815 | MarshalJSON: number; |
| 813 | 816 | }; |
| 814 | 817 | |
| 815 | -export type No = { | |
| 816 | - NO: number; | |
| 817 | -}; | |
| 818 | - | |
| 819 | 818 | export type Goto = { |
| 820 | 819 | goto: number; |
| 821 | 820 | }; |
| @@ -996,21 +995,20 @@ export type Newtonsoft = { | ||
| 996 | 995 | newtonsoft: number; |
| 997 | 996 | }; |
| 998 | 997 | |
| 999 | -export type Nil = { | |
| 1000 | - nil: number; | |
| 1001 | -}; | |
| 1002 | - | |
| 1003 | 998 | export type Obj4 = { |
| 999 | + NO: No; | |
| 1004 | 1000 | NSError: NSError; |
| 1005 | 1001 | NSObject: NSObject; |
| 1006 | 1002 | NSString: NSString; |
| 1007 | 1003 | NULL: Null; |
| 1008 | 1004 | None: None; |
| 1009 | 1005 | ObjectMapper: ObjectMapper; |
| 1006 | + OffsetDateTime: OffsetDateTime; | |
| 1007 | + OffsetTime: OffsetTime; | |
| 1010 | 1008 | Protocol: Protocol; |
| 1011 | 1009 | RegExp: RegExpClass; |
| 1012 | - SEL: Sel; | |
| 1013 | 1010 | dummy: number; |
| 1011 | + nil: Nil; | |
| 1014 | 1012 | noSuchMethod: NoSuchMethod; |
| 1015 | 1013 | noexcept: Noexcept; |
| 1016 | 1014 | nonatomic: Nonatomic; |
| @@ -1063,9 +1061,10 @@ export type Obj4 = { | ||
| 1063 | 1061 | return: Return; |
| 1064 | 1062 | right: Right; |
| 1065 | 1063 | runtimeType: RuntimeType; |
| 1066 | - s: S; | |
| 1067 | - sbyte: Sbyte; | |
| 1068 | - sealed: Sealed; | |
| 1064 | +}; | |
| 1065 | + | |
| 1066 | +export type No = { | |
| 1067 | + NO: number; | |
| 1069 | 1068 | }; |
| 1070 | 1069 | |
| 1071 | 1070 | export type NSError = { |
| @@ -1092,6 +1091,14 @@ export type ObjectMapper = { | ||
| 1092 | 1091 | ObjectMapper: number; |
| 1093 | 1092 | }; |
| 1094 | 1093 | |
| 1094 | +export type OffsetDateTime = { | |
| 1095 | + OffsetDateTime: number; | |
| 1096 | +}; | |
| 1097 | + | |
| 1098 | +export type OffsetTime = { | |
| 1099 | + OffsetTime: number; | |
| 1100 | +}; | |
| 1101 | + | |
| 1095 | 1102 | export type Protocol = { |
| 1096 | 1103 | Protocol: number; |
| 1097 | 1104 | }; |
| @@ -1100,8 +1107,8 @@ export type RegExpClass = { | ||
| 1100 | 1107 | RegExp: string; |
| 1101 | 1108 | }; |
| 1102 | 1109 | |
| 1103 | -export type Sel = { | |
| 1104 | - SEL: number; | |
| 1110 | +export type Nil = { | |
| 1111 | + nil: number; | |
| 1105 | 1112 | }; |
| 1106 | 1113 | |
| 1107 | 1114 | export type NoSuchMethod = { |
| @@ -1312,21 +1319,10 @@ export type RuntimeType = { | ||
| 1312 | 1319 | runtimeType: number; |
| 1313 | 1320 | }; |
| 1314 | 1321 | |
| 1315 | -export type S = { | |
| 1316 | - s: number; | |
| 1317 | -}; | |
| 1318 | - | |
| 1319 | -export type Sbyte = { | |
| 1320 | - sbyte: number; | |
| 1321 | -}; | |
| 1322 | - | |
| 1323 | -export type Sealed = { | |
| 1324 | - sealed: number; | |
| 1325 | -}; | |
| 1326 | - | |
| 1327 | 1322 | export type Obj5 = { |
| 1328 | 1323 | KSerializer: KSerializer; |
| 1329 | 1324 | PrimitiveKind: PrimitiveKind; |
| 1325 | + SEL: Sel; | |
| 1330 | 1326 | Self: Self; |
| 1331 | 1327 | Sendable: Sendable; |
| 1332 | 1328 | SerialDescriptor: SerialDescriptor; |
| @@ -1342,9 +1338,10 @@ export type Obj5 = { | ||
| 1342 | 1338 | TimeZone: TimeZone; |
| 1343 | 1339 | True: True; |
| 1344 | 1340 | Type: Type; |
| 1345 | - UnmarshalJSON: UnmarshalJSON; | |
| 1346 | - UseSerializers: UseSerializers; | |
| 1347 | 1341 | dummy: number; |
| 1342 | + s: S; | |
| 1343 | + sbyte: Sbyte; | |
| 1344 | + sealed: Sealed; | |
| 1348 | 1345 | select: Select; |
| 1349 | 1346 | self: SelfClass; |
| 1350 | 1347 | serialize: Serialize; |
| @@ -1388,9 +1385,6 @@ export type Obj5 = { | ||
| 1388 | 1385 | ulong: Ulong; |
| 1389 | 1386 | unchecked: Unchecked; |
| 1390 | 1387 | undefined: Undefined; |
| 1391 | - union: Union; | |
| 1392 | - unowned: Unowned; | |
| 1393 | - unsafe: Unsafe; | |
| 1394 | 1388 | }; |
| 1395 | 1389 | |
| 1396 | 1390 | export type KSerializer = { |
| @@ -1401,6 +1395,10 @@ export type PrimitiveKind = { | ||
| 1401 | 1395 | PrimitiveKind: number; |
| 1402 | 1396 | }; |
| 1403 | 1397 | |
| 1398 | +export type Sel = { | |
| 1399 | + SEL: number; | |
| 1400 | +}; | |
| 1401 | + | |
| 1404 | 1402 | export type Self = { |
| 1405 | 1403 | Self: number; |
| 1406 | 1404 | }; |
| @@ -1461,12 +1459,16 @@ export type Type = { | ||
| 1461 | 1459 | Type: number; |
| 1462 | 1460 | }; |
| 1463 | 1461 | |
| 1464 | -export type UnmarshalJSON = { | |
| 1465 | - UnmarshalJSON: number; | |
| 1462 | +export type S = { | |
| 1463 | + s: number; | |
| 1466 | 1464 | }; |
| 1467 | 1465 | |
| 1468 | -export type UseSerializers = { | |
| 1469 | - UseSerializers: number; | |
| 1466 | +export type Sbyte = { | |
| 1467 | + sbyte: number; | |
| 1468 | +}; | |
| 1469 | + | |
| 1470 | +export type Sealed = { | |
| 1471 | + sealed: number; | |
| 1470 | 1472 | }; |
| 1471 | 1473 | |
| 1472 | 1474 | export type Select = { |
| @@ -1641,24 +1643,17 @@ export type Undefined = { | ||
| 1641 | 1643 | undefined: number; |
| 1642 | 1644 | }; |
| 1643 | 1645 | |
| 1644 | -export type Union = { | |
| 1645 | - union: number; | |
| 1646 | -}; | |
| 1647 | - | |
| 1648 | -export type Unowned = { | |
| 1649 | - unowned: number; | |
| 1650 | -}; | |
| 1651 | - | |
| 1652 | -export type Unsafe = { | |
| 1653 | - unsafe: number; | |
| 1654 | -}; | |
| 1655 | - | |
| 1656 | 1646 | export type Obj6 = { |
| 1657 | 1647 | UUID: UUID; |
| 1648 | + UnmarshalJSON: UnmarshalJSON; | |
| 1649 | + UseSerializers: UseSerializers; | |
| 1658 | 1650 | Utf8JsonReader: Utf8JSONReader; |
| 1659 | 1651 | Utf8JsonWriter: Utf8JSONWriter; |
| 1660 | 1652 | YES: Yes; |
| 1661 | 1653 | dummy: number; |
| 1654 | + union: Union; | |
| 1655 | + unowned: Unowned; | |
| 1656 | + unsafe: Unsafe; | |
| 1662 | 1657 | unsigned: Unsigned; |
| 1663 | 1658 | ushort: Ushort; |
| 1664 | 1659 | using: Using; |
| @@ -1681,6 +1676,14 @@ export type UUID = { | ||
| 1681 | 1676 | UUID: number; |
| 1682 | 1677 | }; |
| 1683 | 1678 | |
| 1679 | +export type UnmarshalJSON = { | |
| 1680 | + UnmarshalJSON: number; | |
| 1681 | +}; | |
| 1682 | + | |
| 1683 | +export type UseSerializers = { | |
| 1684 | + UseSerializers: number; | |
| 1685 | +}; | |
| 1686 | + | |
| 1684 | 1687 | export type Utf8JSONReader = { |
| 1685 | 1688 | Utf8JsonReader: number; |
| 1686 | 1689 | }; |
| @@ -1693,6 +1696,18 @@ export type Yes = { | ||
| 1693 | 1696 | YES: number; |
| 1694 | 1697 | }; |
| 1695 | 1698 | |
| 1699 | +export type Union = { | |
| 1700 | + union: number; | |
| 1701 | +}; | |
| 1702 | + | |
| 1703 | +export type Unowned = { | |
| 1704 | + unowned: number; | |
| 1705 | +}; | |
| 1706 | + | |
| 1707 | +export type Unsafe = { | |
| 1708 | + unsafe: number; | |
| 1709 | +}; | |
| 1710 | + | |
| 1696 | 1711 | export type Unsigned = { |
| 1697 | 1712 | unsigned: number; |
| 1698 | 1713 | }; |
| @@ -2486,10 +2501,10 @@ const typeMap: any = { | ||
| 2486 | 2501 | { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") }, |
| 2487 | 2502 | { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") }, |
| 2488 | 2503 | { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") }, |
| 2504 | + { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") }, | |
| 2489 | 2505 | { json: "Locale", js: "Locale", typ: r("Locale") }, |
| 2490 | 2506 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2491 | 2507 | { json: "MarshalJSON", js: "MarshalJSON", typ: r("MarshalJSON") }, |
| 2492 | - { json: "NO", js: "NO", typ: r("No") }, | |
| 2493 | 2508 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2494 | 2509 | { json: "goto", js: "goto", typ: r("Goto") }, |
| 2495 | 2510 | { json: "guard", js: "guard", typ: r("Guard") }, |
| @@ -2536,7 +2551,6 @@ const typeMap: any = { | ||
| 2536 | 2551 | { json: "native", js: "native", typ: r("Native") }, |
| 2537 | 2552 | { json: "new", js: "new", typ: r("New") }, |
| 2538 | 2553 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2539 | - { json: "nil", js: "nil", typ: r("Nil") }, | |
| 2540 | 2554 | ], false), |
| 2541 | 2555 | "Hashable": o([ |
| 2542 | 2556 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2583,6 +2597,9 @@ const typeMap: any = { | ||
| 2583 | 2597 | "JSONTokenType": o([ |
| 2584 | 2598 | { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) }, |
| 2585 | 2599 | ], false), |
| 2600 | + "LocalDate": o([ | |
| 2601 | + { json: "LocalDate", js: "LocalDate", typ: i(0) }, | |
| 2602 | + ], false), | |
| 2586 | 2603 | "Locale": o([ |
| 2587 | 2604 | { json: "Locale", js: "Locale", typ: i(0) }, |
| 2588 | 2605 | ], false), |
| @@ -2592,9 +2609,6 @@ const typeMap: any = { | ||
| 2592 | 2609 | "MarshalJSON": o([ |
| 2593 | 2610 | { json: "MarshalJSON", js: "MarshalJSON", typ: i(0) }, |
| 2594 | 2611 | ], false), |
| 2595 | - "No": o([ | |
| 2596 | - { json: "NO", js: "NO", typ: i(0) }, | |
| 2597 | - ], false), | |
| 2598 | 2612 | "Goto": o([ |
| 2599 | 2613 | { json: "goto", js: "goto", typ: i(0) }, |
| 2600 | 2614 | ], false), |
| @@ -2730,20 +2744,20 @@ const typeMap: any = { | ||
| 2730 | 2744 | "Newtonsoft": o([ |
| 2731 | 2745 | { json: "newtonsoft", js: "newtonsoft", typ: i(0) }, |
| 2732 | 2746 | ], false), |
| 2733 | - "Nil": o([ | |
| 2734 | - { json: "nil", js: "nil", typ: i(0) }, | |
| 2735 | - ], false), | |
| 2736 | 2747 | "Obj4": o([ |
| 2748 | + { json: "NO", js: "NO", typ: r("No") }, | |
| 2737 | 2749 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2738 | 2750 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| 2739 | 2751 | { json: "NSString", js: "NSString", typ: r("NSString") }, |
| 2740 | 2752 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2741 | 2753 | { json: "None", js: "None", typ: r("None") }, |
| 2742 | 2754 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2755 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") }, | |
| 2756 | + { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") }, | |
| 2743 | 2757 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2744 | 2758 | { json: "RegExp", js: "RegExp", typ: r("RegExpClass") }, |
| 2745 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2746 | 2759 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2760 | + { json: "nil", js: "nil", typ: r("Nil") }, | |
| 2747 | 2761 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2748 | 2762 | { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, |
| 2749 | 2763 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| @@ -2796,9 +2810,9 @@ const typeMap: any = { | ||
| 2796 | 2810 | { json: "return", js: "return", typ: r("Return") }, |
| 2797 | 2811 | { json: "right", js: "right", typ: r("Right") }, |
| 2798 | 2812 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2799 | - { json: "s", js: "s", typ: r("S") }, | |
| 2800 | - { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 2801 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2813 | + ], false), | |
| 2814 | + "No": o([ | |
| 2815 | + { json: "NO", js: "NO", typ: i(0) }, | |
| 2802 | 2816 | ], false), |
| 2803 | 2817 | "NSError": o([ |
| 2804 | 2818 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2818,14 +2832,20 @@ const typeMap: any = { | ||
| 2818 | 2832 | "ObjectMapper": o([ |
| 2819 | 2833 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2820 | 2834 | ], false), |
| 2835 | + "OffsetDateTime": o([ | |
| 2836 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) }, | |
| 2837 | + ], false), | |
| 2838 | + "OffsetTime": o([ | |
| 2839 | + { json: "OffsetTime", js: "OffsetTime", typ: i(0) }, | |
| 2840 | + ], false), | |
| 2821 | 2841 | "Protocol": o([ |
| 2822 | 2842 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2823 | 2843 | ], false), |
| 2824 | 2844 | "RegExpClass": o([ |
| 2825 | 2845 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2826 | 2846 | ], false), |
| 2827 | - "Sel": o([ | |
| 2828 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2847 | + "Nil": o([ | |
| 2848 | + { json: "nil", js: "nil", typ: i(0) }, | |
| 2829 | 2849 | ], false), |
| 2830 | 2850 | "NoSuchMethod": o([ |
| 2831 | 2851 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| @@ -2983,18 +3003,10 @@ const typeMap: any = { | ||
| 2983 | 3003 | "RuntimeType": o([ |
| 2984 | 3004 | { json: "runtimeType", js: "runtimeType", typ: i(0) }, |
| 2985 | 3005 | ], false), |
| 2986 | - "S": o([ | |
| 2987 | - { json: "s", js: "s", typ: i(0) }, | |
| 2988 | - ], false), | |
| 2989 | - "Sbyte": o([ | |
| 2990 | - { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 2991 | - ], false), | |
| 2992 | - "Sealed": o([ | |
| 2993 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2994 | - ], false), | |
| 2995 | 3006 | "Obj5": o([ |
| 2996 | 3007 | { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") }, |
| 2997 | 3008 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") }, |
| 3009 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2998 | 3010 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2999 | 3011 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 3000 | 3012 | { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") }, |
| @@ -3010,9 +3022,10 @@ const typeMap: any = { | ||
| 3010 | 3022 | { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") }, |
| 3011 | 3023 | { json: "True", js: "True", typ: r("True") }, |
| 3012 | 3024 | { json: "Type", js: "Type", typ: r("Type") }, |
| 3013 | - { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") }, | |
| 3014 | - { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, | |
| 3015 | 3025 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3026 | + { json: "s", js: "s", typ: r("S") }, | |
| 3027 | + { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 3028 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 3016 | 3029 | { json: "select", js: "select", typ: r("Select") }, |
| 3017 | 3030 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 3018 | 3031 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| @@ -3056,9 +3069,6 @@ const typeMap: any = { | ||
| 3056 | 3069 | { json: "ulong", js: "ulong", typ: r("Ulong") }, |
| 3057 | 3070 | { json: "unchecked", js: "unchecked", typ: r("Unchecked") }, |
| 3058 | 3071 | { json: "undefined", js: "undefined", typ: r("Undefined") }, |
| 3059 | - { json: "union", js: "union", typ: r("Union") }, | |
| 3060 | - { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 3061 | - { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3062 | 3072 | ], false), |
| 3063 | 3073 | "KSerializer": o([ |
| 3064 | 3074 | { json: "KSerializer", js: "KSerializer", typ: i(0) }, |
| @@ -3066,6 +3076,9 @@ const typeMap: any = { | ||
| 3066 | 3076 | "PrimitiveKind": o([ |
| 3067 | 3077 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) }, |
| 3068 | 3078 | ], false), |
| 3079 | + "Sel": o([ | |
| 3080 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3081 | + ], false), | |
| 3069 | 3082 | "Self": o([ |
| 3070 | 3083 | { json: "Self", js: "Self", typ: i(0) }, |
| 3071 | 3084 | ], false), |
| @@ -3111,11 +3124,14 @@ const typeMap: any = { | ||
| 3111 | 3124 | "Type": o([ |
| 3112 | 3125 | { json: "Type", js: "Type", typ: i(0) }, |
| 3113 | 3126 | ], false), |
| 3114 | - "UnmarshalJSON": o([ | |
| 3115 | - { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) }, | |
| 3127 | + "S": o([ | |
| 3128 | + { json: "s", js: "s", typ: i(0) }, | |
| 3116 | 3129 | ], false), |
| 3117 | - "UseSerializers": o([ | |
| 3118 | - { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, | |
| 3130 | + "Sbyte": o([ | |
| 3131 | + { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 3132 | + ], false), | |
| 3133 | + "Sealed": o([ | |
| 3134 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3119 | 3135 | ], false), |
| 3120 | 3136 | "Select": o([ |
| 3121 | 3137 | { json: "select", js: "select", typ: i(0) }, |
| @@ -3246,21 +3262,17 @@ const typeMap: any = { | ||
| 3246 | 3262 | "Undefined": o([ |
| 3247 | 3263 | { json: "undefined", js: "undefined", typ: i(0) }, |
| 3248 | 3264 | ], false), |
| 3249 | - "Union": o([ | |
| 3250 | - { json: "union", js: "union", typ: i(0) }, | |
| 3251 | - ], false), | |
| 3252 | - "Unowned": o([ | |
| 3253 | - { json: "unowned", js: "unowned", typ: i(0) }, | |
| 3254 | - ], false), | |
| 3255 | - "Unsafe": o([ | |
| 3256 | - { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3257 | - ], false), | |
| 3258 | 3265 | "Obj6": o([ |
| 3259 | 3266 | { json: "UUID", js: "UUID", typ: r("UUID") }, |
| 3267 | + { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") }, | |
| 3268 | + { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, | |
| 3260 | 3269 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 3261 | 3270 | { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, |
| 3262 | 3271 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3263 | 3272 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3273 | + { json: "union", js: "union", typ: r("Union") }, | |
| 3274 | + { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 3275 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3264 | 3276 | { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, |
| 3265 | 3277 | { json: "ushort", js: "ushort", typ: r("Ushort") }, |
| 3266 | 3278 | { json: "using", js: "using", typ: r("Using") }, |
| @@ -3281,6 +3293,12 @@ const typeMap: any = { | ||
| 3281 | 3293 | "UUID": o([ |
| 3282 | 3294 | { json: "UUID", js: "UUID", typ: i(0) }, |
| 3283 | 3295 | ], false), |
| 3296 | + "UnmarshalJSON": o([ | |
| 3297 | + { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) }, | |
| 3298 | + ], false), | |
| 3299 | + "UseSerializers": o([ | |
| 3300 | + { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, | |
| 3301 | + ], false), | |
| 3284 | 3302 | "Utf8JSONReader": o([ |
| 3285 | 3303 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) }, |
| 3286 | 3304 | ], false), |
| @@ -3290,6 +3308,15 @@ const typeMap: any = { | ||
| 3290 | 3308 | "Yes": o([ |
| 3291 | 3309 | { json: "YES", js: "YES", typ: i(0) }, |
| 3292 | 3310 | ], false), |
| 3311 | + "Union": o([ | |
| 3312 | + { json: "union", js: "union", typ: i(0) }, | |
| 3313 | + ], false), | |
| 3314 | + "Unowned": o([ | |
| 3315 | + { json: "unowned", js: "unowned", typ: i(0) }, | |
| 3316 | + ], false), | |
| 3317 | + "Unsafe": o([ | |
| 3318 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3319 | + ], false), | |
| 3293 | 3320 | "Unsigned": o([ |
| 3294 | 3321 | { json: "unsigned", js: "unsigned", typ: i(0) }, |
| 3295 | 3322 | ], false), |
Mgolangdefault / quicktype.go+70 −55
| @@ -729,6 +729,7 @@ type Obj3 struct { | ||
| 729 | 729 | Left Left `json:"left"` |
| 730 | 730 | Let Let `json:"let"` |
| 731 | 731 | List List `json:"list"` |
| 732 | + LocalDate LocalDate `json:"LocalDate"` | |
| 732 | 733 | Locale Locale `json:"Locale"` |
| 733 | 734 | Lock Lock `json:"lock"` |
| 734 | 735 | Long Long `json:"long"` |
| @@ -743,8 +744,6 @@ type Obj3 struct { | ||
| 743 | 744 | Native Native `json:"native"` |
| 744 | 745 | New New `json:"new"` |
| 745 | 746 | Newtonsoft Newtonsoft `json:"newtonsoft"` |
| 746 | - Nil Nil `json:"nil"` | |
| 747 | - No No `json:"NO"` | |
| 748 | 747 | } |
| 749 | 748 | |
| 750 | 749 | type Goto struct { |
| @@ -943,6 +942,10 @@ type List struct { | ||
| 943 | 942 | List int64 `json:"list"` |
| 944 | 943 | } |
| 945 | 944 | |
| 945 | +type LocalDate struct { | |
| 946 | + LocalDate int64 `json:"LocalDate"` | |
| 947 | +} | |
| 948 | + | |
| 946 | 949 | type Locale struct { |
| 947 | 950 | Locale int64 `json:"Locale"` |
| 948 | 951 | } |
| @@ -999,19 +1002,13 @@ type Newtonsoft struct { | ||
| 999 | 1002 | Newtonsoft int64 `json:"newtonsoft"` |
| 1000 | 1003 | } |
| 1001 | 1004 | |
| 1002 | -type Nil struct { | |
| 1003 | - Nil int64 `json:"nil"` | |
| 1004 | -} | |
| 1005 | - | |
| 1006 | -type No struct { | |
| 1007 | - No int64 `json:"NO"` | |
| 1008 | -} | |
| 1009 | - | |
| 1010 | 1005 | type Obj4 struct { |
| 1011 | 1006 | Dummy int64 `json:"dummy"` |
| 1012 | 1007 | NSError NSError `json:"NSError"` |
| 1013 | 1008 | NSObject NSObject `json:"NSObject"` |
| 1014 | 1009 | NSString NSString `json:"NSString"` |
| 1010 | + Nil Nil `json:"nil"` | |
| 1011 | + No No `json:"NO"` | |
| 1015 | 1012 | NoSuchMethod NoSuchMethod `json:"noSuchMethod"` |
| 1016 | 1013 | Noexcept Noexcept `json:"noexcept"` |
| 1017 | 1014 | Nonatomic Nonatomic `json:"nonatomic"` |
| @@ -1029,6 +1026,8 @@ type Obj4 struct { | ||
| 1029 | 1026 | Object Object `json:"object"` |
| 1030 | 1027 | ObjectMapper ObjectMapper `json:"ObjectMapper"` |
| 1031 | 1028 | Of Of `json:"of"` |
| 1029 | + OffsetDateTime OffsetDateTime `json:"OffsetDateTime"` | |
| 1030 | + OffsetTime OffsetTime `json:"OffsetTime"` | |
| 1032 | 1031 | Oneway Oneway `json:"oneway"` |
| 1033 | 1032 | Open Open `json:"open"` |
| 1034 | 1033 | Operator Operator `json:"operator"` |
| @@ -1069,10 +1068,6 @@ type Obj4 struct { | ||
| 1069 | 1068 | Return Return `json:"return"` |
| 1070 | 1069 | Right Right `json:"right"` |
| 1071 | 1070 | RuntimeType RuntimeType `json:"runtimeType"` |
| 1072 | - S S `json:"s"` | |
| 1073 | - Sbyte Sbyte `json:"sbyte"` | |
| 1074 | - Sealed Sealed `json:"sealed"` | |
| 1075 | - Sel Sel `json:"SEL"` | |
| 1076 | 1071 | } |
| 1077 | 1072 | |
| 1078 | 1073 | type NSError struct { |
| @@ -1087,6 +1082,14 @@ type NSString struct { | ||
| 1087 | 1082 | NSString int64 `json:"NSString"` |
| 1088 | 1083 | } |
| 1089 | 1084 | |
| 1085 | +type Nil struct { | |
| 1086 | + Nil int64 `json:"nil"` | |
| 1087 | +} | |
| 1088 | + | |
| 1089 | +type No struct { | |
| 1090 | + No int64 `json:"NO"` | |
| 1091 | +} | |
| 1092 | + | |
| 1090 | 1093 | type NoSuchMethod struct { |
| 1091 | 1094 | NoSuchMethod int64 `json:"noSuchMethod"` |
| 1092 | 1095 | } |
| @@ -1155,6 +1158,14 @@ type Of struct { | ||
| 1155 | 1158 | Of int64 `json:"of"` |
| 1156 | 1159 | } |
| 1157 | 1160 | |
| 1161 | +type OffsetDateTime struct { | |
| 1162 | + OffsetDateTime int64 `json:"OffsetDateTime"` | |
| 1163 | +} | |
| 1164 | + | |
| 1165 | +type OffsetTime struct { | |
| 1166 | + OffsetTime int64 `json:"OffsetTime"` | |
| 1167 | +} | |
| 1168 | + | |
| 1158 | 1169 | type Oneway struct { |
| 1159 | 1170 | Oneway int64 `json:"oneway"` |
| 1160 | 1171 | } |
| @@ -1315,22 +1326,6 @@ type RuntimeType struct { | ||
| 1315 | 1326 | RuntimeType int64 `json:"runtimeType"` |
| 1316 | 1327 | } |
| 1317 | 1328 | |
| 1318 | -type S struct { | |
| 1319 | - S int64 `json:"s"` | |
| 1320 | -} | |
| 1321 | - | |
| 1322 | -type Sbyte struct { | |
| 1323 | - Sbyte int64 `json:"sbyte"` | |
| 1324 | -} | |
| 1325 | - | |
| 1326 | -type Sealed struct { | |
| 1327 | - Sealed int64 `json:"sealed"` | |
| 1328 | -} | |
| 1329 | - | |
| 1330 | -type Sel struct { | |
| 1331 | - Sel int64 `json:"SEL"` | |
| 1332 | -} | |
| 1333 | - | |
| 1334 | 1329 | type Obj5 struct { |
| 1335 | 1330 | Dummy int64 `json:"dummy"` |
| 1336 | 1331 | KSerializer KSerializer `json:"KSerializer"` |
| @@ -1338,6 +1333,10 @@ type Obj5 struct { | ||
| 1338 | 1333 | Obj5True TrueClass `json:"true"` |
| 1339 | 1334 | Obj5Type TypeClass `json:"type"` |
| 1340 | 1335 | PrimitiveKind PrimitiveKind `json:"PrimitiveKind"` |
| 1336 | + S S `json:"s"` | |
| 1337 | + Sbyte Sbyte `json:"sbyte"` | |
| 1338 | + Sealed Sealed `json:"sealed"` | |
| 1339 | + Sel Sel `json:"SEL"` | |
| 1341 | 1340 | Select Select `json:"select"` |
| 1342 | 1341 | Self Self `json:"Self"` |
| 1343 | 1342 | Sendable Sendable `json:"Sendable"` |
| @@ -1393,11 +1392,6 @@ type Obj5 struct { | ||
| 1393 | 1392 | Ulong Ulong `json:"ulong"` |
| 1394 | 1393 | Unchecked Unchecked `json:"unchecked"` |
| 1395 | 1394 | Undefined Undefined `json:"undefined"` |
| 1396 | - Union Union `json:"union"` | |
| 1397 | - UnmarshalJSON UnmarshalJSON `json:"UnmarshalJSON"` | |
| 1398 | - Unowned Unowned `json:"unowned"` | |
| 1399 | - Unsafe Unsafe `json:"unsafe"` | |
| 1400 | - UseSerializers UseSerializers `json:"UseSerializers"` | |
| 1401 | 1395 | } |
| 1402 | 1396 | |
| 1403 | 1397 | type KSerializer struct { |
| @@ -1420,6 +1414,22 @@ type PrimitiveKind struct { | ||
| 1420 | 1414 | PrimitiveKind int64 `json:"PrimitiveKind"` |
| 1421 | 1415 | } |
| 1422 | 1416 | |
| 1417 | +type S struct { | |
| 1418 | + S int64 `json:"s"` | |
| 1419 | +} | |
| 1420 | + | |
| 1421 | +type Sbyte struct { | |
| 1422 | + Sbyte int64 `json:"sbyte"` | |
| 1423 | +} | |
| 1424 | + | |
| 1425 | +type Sealed struct { | |
| 1426 | + Sealed int64 `json:"sealed"` | |
| 1427 | +} | |
| 1428 | + | |
| 1429 | +type Sel struct { | |
| 1430 | + Sel int64 `json:"SEL"` | |
| 1431 | +} | |
| 1432 | + | |
| 1423 | 1433 | type Select struct { |
| 1424 | 1434 | Select int64 `json:"select"` |
| 1425 | 1435 | } |
| @@ -1640,30 +1650,15 @@ type Undefined struct { | ||
| 1640 | 1650 | Undefined int64 `json:"undefined"` |
| 1641 | 1651 | } |
| 1642 | 1652 | |
| 1643 | -type Union struct { | |
| 1644 | - Union int64 `json:"union"` | |
| 1645 | -} | |
| 1646 | - | |
| 1647 | -type UnmarshalJSON struct { | |
| 1648 | - UnmarshalJSON int64 `json:"UnmarshalJSON"` | |
| 1649 | -} | |
| 1650 | - | |
| 1651 | -type Unowned struct { | |
| 1652 | - Unowned int64 `json:"unowned"` | |
| 1653 | -} | |
| 1654 | - | |
| 1655 | -type Unsafe struct { | |
| 1656 | - Unsafe int64 `json:"unsafe"` | |
| 1657 | -} | |
| 1658 | - | |
| 1659 | -type UseSerializers struct { | |
| 1660 | - UseSerializers int64 `json:"UseSerializers"` | |
| 1661 | -} | |
| 1662 | - | |
| 1663 | 1653 | type Obj6 struct { |
| 1664 | 1654 | Dummy int64 `json:"dummy"` |
| 1665 | 1655 | UUID UUID `json:"UUID"` |
| 1656 | + Union Union `json:"union"` | |
| 1657 | + UnmarshalJSON UnmarshalJSON `json:"UnmarshalJSON"` | |
| 1658 | + Unowned Unowned `json:"unowned"` | |
| 1659 | + Unsafe Unsafe `json:"unsafe"` | |
| 1666 | 1660 | Unsigned Unsigned `json:"unsigned"` |
| 1661 | + UseSerializers UseSerializers `json:"UseSerializers"` | |
| 1667 | 1662 | Ushort Ushort `json:"ushort"` |
| 1668 | 1663 | Using Using `json:"using"` |
| 1669 | 1664 | Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"` |
| @@ -1688,10 +1683,30 @@ type UUID struct { | ||
| 1688 | 1683 | UUID int64 `json:"UUID"` |
| 1689 | 1684 | } |
| 1690 | 1685 | |
| 1686 | +type Union struct { | |
| 1687 | + Union int64 `json:"union"` | |
| 1688 | +} | |
| 1689 | + | |
| 1690 | +type UnmarshalJSON struct { | |
| 1691 | + UnmarshalJSON int64 `json:"UnmarshalJSON"` | |
| 1692 | +} | |
| 1693 | + | |
| 1694 | +type Unowned struct { | |
| 1695 | + Unowned int64 `json:"unowned"` | |
| 1696 | +} | |
| 1697 | + | |
| 1698 | +type Unsafe struct { | |
| 1699 | + Unsafe int64 `json:"unsafe"` | |
| 1700 | +} | |
| 1701 | + | |
| 1691 | 1702 | type Unsigned struct { |
| 1692 | 1703 | Unsigned int64 `json:"unsigned"` |
| 1693 | 1704 | } |
| 1694 | 1705 | |
| 1706 | +type UseSerializers struct { | |
| 1707 | + UseSerializers int64 `json:"UseSerializers"` | |
| 1708 | +} | |
| 1709 | + | |
| 1695 | 1710 | type Ushort struct { |
| 1696 | 1711 | Ushort int64 `json:"ushort"` |
| 1697 | 1712 | } |
Mhaskelldefault / QuickType.hs+254 −200
| @@ -177,6 +177,7 @@ module QuickType | ||
| 177 | 177 | , Lazy (..) |
| 178 | 178 | , LeftClass (..) |
| 179 | 179 | , List (..) |
| 180 | + , LocalDate (..) | |
| 180 | 181 | , Locale (..) |
| 181 | 182 | , Lock (..) |
| 182 | 183 | , Long (..) |
| @@ -190,8 +191,6 @@ module QuickType | ||
| 190 | 191 | , Native (..) |
| 191 | 192 | , New (..) |
| 192 | 193 | , Newtonsoft (..) |
| 193 | - , Nil (..) | |
| 194 | - , No (..) | |
| 195 | 194 | , ID (..) |
| 196 | 195 | , If (..) |
| 197 | 196 | , Import (..) |
| @@ -200,6 +199,8 @@ module QuickType | ||
| 200 | 199 | , Let (..) |
| 201 | 200 | , Module (..) |
| 202 | 201 | , Obj4 (..) |
| 202 | + , Nil (..) | |
| 203 | + , No (..) | |
| 203 | 204 | , NoSuchMethod (..) |
| 204 | 205 | , Noexcept (..) |
| 205 | 206 | , Nonatomic (..) |
| @@ -220,6 +221,8 @@ module QuickType | ||
| 220 | 221 | , ProtocolClass (..) |
| 221 | 222 | , ObjectClass (..) |
| 222 | 223 | , ObjectMapper (..) |
| 224 | + , OffsetDateTime (..) | |
| 225 | + , OffsetTime (..) | |
| 223 | 226 | , Oneway (..) |
| 224 | 227 | , Open (..) |
| 225 | 228 | , Operator (..) |
| @@ -260,10 +263,6 @@ module QuickType | ||
| 260 | 263 | , Return (..) |
| 261 | 264 | , RightClass (..) |
| 262 | 265 | , RuntimeType (..) |
| 263 | - , S (..) | |
| 264 | - , Sbyte (..) | |
| 265 | - , Sealed (..) | |
| 266 | - , Sel (..) | |
| 267 | 266 | , Obj5 (..) |
| 268 | 267 | , KSerializer (..) |
| 269 | 268 | , SelfClass (..) |
| @@ -272,6 +271,10 @@ module QuickType | ||
| 272 | 271 | , Type (..) |
| 273 | 272 | , PrimitiveKind (..) |
| 274 | 273 | , TypeClass (..) |
| 274 | + , S (..) | |
| 275 | + , Sbyte (..) | |
| 276 | + , Sealed (..) | |
| 277 | + , Sel (..) | |
| 275 | 278 | , Select (..) |
| 276 | 279 | , Self (..) |
| 277 | 280 | , Sendable (..) |
| @@ -325,14 +328,14 @@ module QuickType | ||
| 325 | 328 | , Ulong (..) |
| 326 | 329 | , Unchecked (..) |
| 327 | 330 | , Undefined (..) |
| 331 | + , Obj6 (..) | |
| 332 | + , Where (..) | |
| 328 | 333 | , Union (..) |
| 329 | 334 | , UnmarshalJSON (..) |
| 330 | 335 | , Unowned (..) |
| 331 | 336 | , Unsafe (..) |
| 332 | - , UseSerializers (..) | |
| 333 | - , Obj6 (..) | |
| 334 | - , Where (..) | |
| 335 | 337 | , Unsigned (..) |
| 338 | + , UseSerializers (..) | |
| 336 | 339 | , Ushort (..) |
| 337 | 340 | , Using (..) |
| 338 | 341 | , Utf8JSONReader (..) |
| @@ -1069,6 +1072,7 @@ data Obj3 = Obj3 | ||
| 1069 | 1072 | , lazyObj3 :: Lazy |
| 1070 | 1073 | , leftObj3 :: LeftClass |
| 1071 | 1074 | , listObj3 :: List |
| 1075 | + , localDateObj3 :: LocalDate | |
| 1072 | 1076 | , localeObj3 :: Locale |
| 1073 | 1077 | , lockObj3 :: Lock |
| 1074 | 1078 | , longObj3 :: Long |
| @@ -1082,8 +1086,6 @@ data Obj3 = Obj3 | ||
| 1082 | 1086 | , nativeObj3 :: Native |
| 1083 | 1087 | , newObj3 :: New |
| 1084 | 1088 | , newtonsoftObj3 :: Newtonsoft |
| 1085 | - , nilObj3 :: Nil | |
| 1086 | - , noObj3 :: No | |
| 1087 | 1089 | , obj3IDObj3 :: ID |
| 1088 | 1090 | , obj3IfObj3 :: If |
| 1089 | 1091 | , obj3ImportObj3 :: Import |
| @@ -1265,6 +1267,10 @@ data List = List | ||
| 1265 | 1267 | { listList :: Int |
| 1266 | 1268 | } deriving (Show) |
| 1267 | 1269 | |
| 1270 | +data LocalDate = LocalDate | |
| 1271 | + { localDateLocalDate :: Int | |
| 1272 | + } deriving (Show) | |
| 1273 | + | |
| 1268 | 1274 | data Locale = Locale |
| 1269 | 1275 | { localeLocale :: Int |
| 1270 | 1276 | } deriving (Show) |
| @@ -1317,14 +1323,6 @@ data Newtonsoft = Newtonsoft | ||
| 1317 | 1323 | { newtonsoftNewtonsoft :: Int |
| 1318 | 1324 | } deriving (Show) |
| 1319 | 1325 | |
| 1320 | -data Nil = Nil | |
| 1321 | - { nilNil :: Int | |
| 1322 | - } deriving (Show) | |
| 1323 | - | |
| 1324 | -data No = No | |
| 1325 | - { noNo :: Int | |
| 1326 | - } deriving (Show) | |
| 1327 | - | |
| 1328 | 1326 | data ID = ID |
| 1329 | 1327 | { idIDID :: Int |
| 1330 | 1328 | } deriving (Show) |
| @@ -1355,6 +1353,8 @@ data Module = Module | ||
| 1355 | 1353 | |
| 1356 | 1354 | data Obj4 = Obj4 |
| 1357 | 1355 | { dummyObj4 :: Int |
| 1356 | + , nilObj4 :: Nil | |
| 1357 | + , noObj4 :: No | |
| 1358 | 1358 | , noSuchMethodObj4 :: NoSuchMethod |
| 1359 | 1359 | , noexceptObj4 :: Noexcept |
| 1360 | 1360 | , nonatomicObj4 :: Nonatomic |
| @@ -1375,6 +1375,8 @@ data Obj4 = Obj4 | ||
| 1375 | 1375 | , obj4ProtocolObj4 :: ProtocolClass |
| 1376 | 1376 | , objectObj4 :: ObjectClass |
| 1377 | 1377 | , objectMapperObj4 :: ObjectMapper |
| 1378 | + , offsetDateTimeObj4 :: OffsetDateTime | |
| 1379 | + , offsetTimeObj4 :: OffsetTime | |
| 1378 | 1380 | , onewayObj4 :: Oneway |
| 1379 | 1381 | , openObj4 :: Open |
| 1380 | 1382 | , operatorObj4 :: Operator |
| @@ -1415,10 +1417,14 @@ data Obj4 = Obj4 | ||
| 1415 | 1417 | , returnObj4 :: Return |
| 1416 | 1418 | , rightObj4 :: RightClass |
| 1417 | 1419 | , runtimeTypeObj4 :: RuntimeType |
| 1418 | - , sObj4 :: S | |
| 1419 | - , sbyteObj4 :: Sbyte | |
| 1420 | - , sealedObj4 :: Sealed | |
| 1421 | - , selObj4 :: Sel | |
| 1420 | + } deriving (Show) | |
| 1421 | + | |
| 1422 | +data Nil = Nil | |
| 1423 | + { nilNil :: Int | |
| 1424 | + } deriving (Show) | |
| 1425 | + | |
| 1426 | +data No = No | |
| 1427 | + { noNo :: Int | |
| 1422 | 1428 | } deriving (Show) |
| 1423 | 1429 | |
| 1424 | 1430 | data NoSuchMethod = NoSuchMethod |
| @@ -1501,6 +1507,14 @@ data ObjectMapper = ObjectMapper | ||
| 1501 | 1507 | { objectMapperObjectMapper :: Int |
| 1502 | 1508 | } deriving (Show) |
| 1503 | 1509 | |
| 1510 | +data OffsetDateTime = OffsetDateTime | |
| 1511 | + { offsetDateTimeOffsetDateTime :: Int | |
| 1512 | + } deriving (Show) | |
| 1513 | + | |
| 1514 | +data OffsetTime = OffsetTime | |
| 1515 | + { offsetTimeOffsetTime :: Int | |
| 1516 | + } deriving (Show) | |
| 1517 | + | |
| 1504 | 1518 | data Oneway = Oneway |
| 1505 | 1519 | { onewayOneway :: Int |
| 1506 | 1520 | } deriving (Show) |
| @@ -1661,22 +1675,6 @@ data RuntimeType = RuntimeType | ||
| 1661 | 1675 | { runtimeTypeRuntimeType :: Int |
| 1662 | 1676 | } deriving (Show) |
| 1663 | 1677 | |
| 1664 | -data S = S | |
| 1665 | - { sS :: Int | |
| 1666 | - } deriving (Show) | |
| 1667 | - | |
| 1668 | -data Sbyte = Sbyte | |
| 1669 | - { sbyteSbyte :: Int | |
| 1670 | - } deriving (Show) | |
| 1671 | - | |
| 1672 | -data Sealed = Sealed | |
| 1673 | - { sealedSealed :: Int | |
| 1674 | - } deriving (Show) | |
| 1675 | - | |
| 1676 | -data Sel = Sel | |
| 1677 | - { selSel :: Int | |
| 1678 | - } deriving (Show) | |
| 1679 | - | |
| 1680 | 1678 | data Obj5 = Obj5 |
| 1681 | 1679 | { dummyObj5 :: Int |
| 1682 | 1680 | , kSerializerObj5 :: KSerializer |
| @@ -1686,6 +1684,10 @@ data Obj5 = Obj5 | ||
| 1686 | 1684 | , obj5TypeObj5 :: Type |
| 1687 | 1685 | , primitiveKindObj5 :: PrimitiveKind |
| 1688 | 1686 | , purpleTypeObj5 :: TypeClass |
| 1687 | + , sObj5 :: S | |
| 1688 | + , sbyteObj5 :: Sbyte | |
| 1689 | + , sealedObj5 :: Sealed | |
| 1690 | + , selObj5 :: Sel | |
| 1689 | 1691 | , selectObj5 :: Select |
| 1690 | 1692 | , selfObj5 :: Self |
| 1691 | 1693 | , sendableObj5 :: Sendable |
| @@ -1739,11 +1741,6 @@ data Obj5 = Obj5 | ||
| 1739 | 1741 | , ulongObj5 :: Ulong |
| 1740 | 1742 | , uncheckedObj5 :: Unchecked |
| 1741 | 1743 | , undefinedObj5 :: Undefined |
| 1742 | - , unionObj5 :: Union | |
| 1743 | - , unmarshalJSONObj5 :: UnmarshalJSON | |
| 1744 | - , unownedObj5 :: Unowned | |
| 1745 | - , unsafeObj5 :: Unsafe | |
| 1746 | - , useSerializersObj5 :: UseSerializers | |
| 1747 | 1744 | } deriving (Show) |
| 1748 | 1745 | |
| 1749 | 1746 | data KSerializer = KSerializer |
| @@ -1774,6 +1771,22 @@ data TypeClass = TypeClass | ||
| 1774 | 1771 | { typeTypeTypeClass :: Int |
| 1775 | 1772 | } deriving (Show) |
| 1776 | 1773 | |
| 1774 | +data S = S | |
| 1775 | + { sS :: Int | |
| 1776 | + } deriving (Show) | |
| 1777 | + | |
| 1778 | +data Sbyte = Sbyte | |
| 1779 | + { sbyteSbyte :: Int | |
| 1780 | + } deriving (Show) | |
| 1781 | + | |
| 1782 | +data Sealed = Sealed | |
| 1783 | + { sealedSealed :: Int | |
| 1784 | + } deriving (Show) | |
| 1785 | + | |
| 1786 | +data Sel = Sel | |
| 1787 | + { selSel :: Int | |
| 1788 | + } deriving (Show) | |
| 1789 | + | |
| 1777 | 1790 | data Select = Select |
| 1778 | 1791 | { selectSelect :: Int |
| 1779 | 1792 | } deriving (Show) |
| @@ -1986,30 +1999,15 @@ data Undefined = Undefined | ||
| 1986 | 1999 | { undefinedUndefined :: Int |
| 1987 | 2000 | } deriving (Show) |
| 1988 | 2001 | |
| 1989 | -data Union = Union | |
| 1990 | - { unionUnion :: Int | |
| 1991 | - } deriving (Show) | |
| 1992 | - | |
| 1993 | -data UnmarshalJSON = UnmarshalJSON | |
| 1994 | - { unmarshalJSONUnmarshalJSON :: Int | |
| 1995 | - } deriving (Show) | |
| 1996 | - | |
| 1997 | -data Unowned = Unowned | |
| 1998 | - { unownedUnowned :: Int | |
| 1999 | - } deriving (Show) | |
| 2000 | - | |
| 2001 | -data Unsafe = Unsafe | |
| 2002 | - { unsafeUnsafe :: Int | |
| 2003 | - } deriving (Show) | |
| 2004 | - | |
| 2005 | -data UseSerializers = UseSerializers | |
| 2006 | - { useSerializersUseSerializers :: Int | |
| 2007 | - } deriving (Show) | |
| 2008 | - | |
| 2009 | 2002 | data Obj6 = Obj6 |
| 2010 | 2003 | { dummyObj6 :: Int |
| 2011 | 2004 | , obj6WhereObj6 :: Where |
| 2005 | + , unionObj6 :: Union | |
| 2006 | + , unmarshalJSONObj6 :: UnmarshalJSON | |
| 2007 | + , unownedObj6 :: Unowned | |
| 2008 | + , unsafeObj6 :: Unsafe | |
| 2012 | 2009 | , unsignedObj6 :: Unsigned |
| 2010 | + , useSerializersObj6 :: UseSerializers | |
| 2013 | 2011 | , ushortObj6 :: Ushort |
| 2014 | 2012 | , usingObj6 :: Using |
| 2015 | 2013 | , utf8JSONReaderObj6 :: Utf8JSONReader |
| @@ -2034,10 +2032,30 @@ data Where = Where | ||
| 2034 | 2032 | { whereWhereWhere :: Int |
| 2035 | 2033 | } deriving (Show) |
| 2036 | 2034 | |
| 2035 | +data Union = Union | |
| 2036 | + { unionUnion :: Int | |
| 2037 | + } deriving (Show) | |
| 2038 | + | |
| 2039 | +data UnmarshalJSON = UnmarshalJSON | |
| 2040 | + { unmarshalJSONUnmarshalJSON :: Int | |
| 2041 | + } deriving (Show) | |
| 2042 | + | |
| 2043 | +data Unowned = Unowned | |
| 2044 | + { unownedUnowned :: Int | |
| 2045 | + } deriving (Show) | |
| 2046 | + | |
| 2047 | +data Unsafe = Unsafe | |
| 2048 | + { unsafeUnsafe :: Int | |
| 2049 | + } deriving (Show) | |
| 2050 | + | |
| 2037 | 2051 | data Unsigned = Unsigned |
| 2038 | 2052 | { unsignedUnsigned :: Int |
| 2039 | 2053 | } deriving (Show) |
| 2040 | 2054 | |
| 2055 | +data UseSerializers = UseSerializers | |
| 2056 | + { useSerializersUseSerializers :: Int | |
| 2057 | + } deriving (Show) | |
| 2058 | + | |
| 2041 | 2059 | data Ushort = Ushort |
| 2042 | 2060 | { ushortUshort :: Int |
| 2043 | 2061 | } deriving (Show) |
| @@ -3702,7 +3720,7 @@ instance FromJSON Obj2False where | ||
| 3702 | 3720 | <$> v .: "false" |
| 3703 | 3721 | |
| 3704 | 3722 | instance ToJSON Obj3 where |
| 3705 | - toJSON (Obj3 dummyObj3 gotoObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 interfaceObj3 internalObj3 isObj3 isoDateTimeOffsetConverterObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonAnyObj3 jsonCodingKeyObj3 jsonConverterObj3 jsonDecoderObj3 jsonEncoderObj3 jsonExceptionObj3 jsonGeneratorObj3 jsonNodeObj3 jsonNullObj3 jsonParserObj3 jsonReaderObj3 jsonSerializerObj3 jsonTokenObj3 jsonTokenTypeObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 localeObj3 lockObj3 longObj3 mapObj3 mapEntryObj3 marshalJSONObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) = | |
| 3723 | + toJSON (Obj3 dummyObj3 gotoObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 interfaceObj3 internalObj3 isObj3 isoDateTimeOffsetConverterObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonAnyObj3 jsonCodingKeyObj3 jsonConverterObj3 jsonDecoderObj3 jsonEncoderObj3 jsonExceptionObj3 jsonGeneratorObj3 jsonNodeObj3 jsonNullObj3 jsonParserObj3 jsonReaderObj3 jsonSerializerObj3 jsonTokenObj3 jsonTokenTypeObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 localDateObj3 localeObj3 lockObj3 longObj3 mapObj3 mapEntryObj3 marshalJSONObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) = | |
| 3706 | 3724 | object $ foldMap (maybe [] pure) |
| 3707 | 3725 | [ Just $ "dummy" .= dummyObj3 |
| 3708 | 3726 | , Just $ "goto" .= gotoObj3 |
| @@ -3748,6 +3766,7 @@ instance ToJSON Obj3 where | ||
| 3748 | 3766 | , Just $ "lazy" .= lazyObj3 |
| 3749 | 3767 | , Just $ "left" .= leftObj3 |
| 3750 | 3768 | , Just $ "list" .= listObj3 |
| 3769 | + , Just $ "LocalDate" .= localDateObj3 | |
| 3751 | 3770 | , Just $ "Locale" .= localeObj3 |
| 3752 | 3771 | , Just $ "lock" .= lockObj3 |
| 3753 | 3772 | , Just $ "long" .= longObj3 |
| @@ -3761,8 +3780,6 @@ instance ToJSON Obj3 where | ||
| 3761 | 3780 | , Just $ "native" .= nativeObj3 |
| 3762 | 3781 | , Just $ "new" .= newObj3 |
| 3763 | 3782 | , Just $ "newtonsoft" .= newtonsoftObj3 |
| 3764 | - , Just $ "nil" .= nilObj3 | |
| 3765 | - , Just $ "NO" .= noObj3 | |
| 3766 | 3783 | , Just $ "id" .= obj3IDObj3 |
| 3767 | 3784 | , Just $ "if" .= obj3IfObj3 |
| 3768 | 3785 | , Just $ "import" .= obj3ImportObj3 |
| @@ -3818,6 +3835,7 @@ instance FromJSON Obj3 where | ||
| 3818 | 3835 | <*> v .: "lazy" |
| 3819 | 3836 | <*> v .: "left" |
| 3820 | 3837 | <*> v .: "list" |
| 3838 | + <*> v .: "LocalDate" | |
| 3821 | 3839 | <*> v .: "Locale" |
| 3822 | 3840 | <*> v .: "lock" |
| 3823 | 3841 | <*> v .: "long" |
| @@ -3831,8 +3849,6 @@ instance FromJSON Obj3 where | ||
| 3831 | 3849 | <*> v .: "native" |
| 3832 | 3850 | <*> v .: "new" |
| 3833 | 3851 | <*> v .: "newtonsoft" |
| 3834 | - <*> v .: "nil" | |
| 3835 | - <*> v .: "NO" | |
| 3836 | 3852 | <*> v .: "id" |
| 3837 | 3853 | <*> v .: "if" |
| 3838 | 3854 | <*> v .: "import" |
| @@ -4271,6 +4287,16 @@ instance FromJSON List where | ||
| 4271 | 4287 | parseJSON (Object v) = List |
| 4272 | 4288 | <$> v .: "list" |
| 4273 | 4289 | |
| 4290 | +instance ToJSON LocalDate where | |
| 4291 | + toJSON (LocalDate localDateLocalDate) = | |
| 4292 | + object $ foldMap (maybe [] pure) | |
| 4293 | + [ Just $ "LocalDate" .= localDateLocalDate | |
| 4294 | + ] | |
| 4295 | + | |
| 4296 | +instance FromJSON LocalDate where | |
| 4297 | + parseJSON (Object v) = LocalDate | |
| 4298 | + <$> v .: "LocalDate" | |
| 4299 | + | |
| 4274 | 4300 | instance ToJSON Locale where |
| 4275 | 4301 | toJSON (Locale localeLocale) = |
| 4276 | 4302 | object $ foldMap (maybe [] pure) |
| @@ -4401,26 +4427,6 @@ instance FromJSON Newtonsoft where | ||
| 4401 | 4427 | parseJSON (Object v) = Newtonsoft |
| 4402 | 4428 | <$> v .: "newtonsoft" |
| 4403 | 4429 | |
| 4404 | -instance ToJSON Nil where | |
| 4405 | - toJSON (Nil nilNil) = | |
| 4406 | - object $ foldMap (maybe [] pure) | |
| 4407 | - [ Just $ "nil" .= nilNil | |
| 4408 | - ] | |
| 4409 | - | |
| 4410 | -instance FromJSON Nil where | |
| 4411 | - parseJSON (Object v) = Nil | |
| 4412 | - <$> v .: "nil" | |
| 4413 | - | |
| 4414 | -instance ToJSON No where | |
| 4415 | - toJSON (No noNo) = | |
| 4416 | - object $ foldMap (maybe [] pure) | |
| 4417 | - [ Just $ "NO" .= noNo | |
| 4418 | - ] | |
| 4419 | - | |
| 4420 | -instance FromJSON No where | |
| 4421 | - parseJSON (Object v) = No | |
| 4422 | - <$> v .: "NO" | |
| 4423 | - | |
| 4424 | 4430 | instance ToJSON ID where |
| 4425 | 4431 | toJSON (ID idIDID) = |
| 4426 | 4432 | object $ foldMap (maybe [] pure) |
| @@ -4492,9 +4498,11 @@ instance FromJSON Module where | ||
| 4492 | 4498 | <$> v .: "module" |
| 4493 | 4499 | |
| 4494 | 4500 | instance ToJSON Obj4 where |
| 4495 | - toJSON (Obj4 dummyObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 onewayObj4 openObj4 operatorObj4 optionalObj4 orObj4 orEqObj4 outObj4 overrideObj4 packageObj4 paramsObj4 passObj4 portObj4 postfixObj4 precedenceObj4 prefixObj4 printObj4 printMembersObj4 printfObj4 privateObj4 protectedObj4 protocolObj4 publicObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 regExpObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4 sObj4 sbyteObj4 sealedObj4 selObj4) = | |
| 4501 | + toJSON (Obj4 dummyObj4 nilObj4 noObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 offsetDateTimeObj4 offsetTimeObj4 onewayObj4 openObj4 operatorObj4 optionalObj4 orObj4 orEqObj4 outObj4 overrideObj4 packageObj4 paramsObj4 passObj4 portObj4 postfixObj4 precedenceObj4 prefixObj4 printObj4 printMembersObj4 printfObj4 privateObj4 protectedObj4 protocolObj4 publicObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 regExpObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4) = | |
| 4496 | 4502 | object $ foldMap (maybe [] pure) |
| 4497 | 4503 | [ Just $ "dummy" .= dummyObj4 |
| 4504 | + , Just $ "nil" .= nilObj4 | |
| 4505 | + , Just $ "NO" .= noObj4 | |
| 4498 | 4506 | , Just $ "noSuchMethod" .= noSuchMethodObj4 |
| 4499 | 4507 | , Just $ "noexcept" .= noexceptObj4 |
| 4500 | 4508 | , Just $ "nonatomic" .= nonatomicObj4 |
| @@ -4515,6 +4523,8 @@ instance ToJSON Obj4 where | ||
| 4515 | 4523 | , Just $ "protocol" .= obj4ProtocolObj4 |
| 4516 | 4524 | , Just $ "object" .= objectObj4 |
| 4517 | 4525 | , Just $ "ObjectMapper" .= objectMapperObj4 |
| 4526 | + , Just $ "OffsetDateTime" .= offsetDateTimeObj4 | |
| 4527 | + , Just $ "OffsetTime" .= offsetTimeObj4 | |
| 4518 | 4528 | , Just $ "oneway" .= onewayObj4 |
| 4519 | 4529 | , Just $ "open" .= openObj4 |
| 4520 | 4530 | , Just $ "operator" .= operatorObj4 |
| @@ -4555,15 +4565,13 @@ instance ToJSON Obj4 where | ||
| 4555 | 4565 | , Just $ "return" .= returnObj4 |
| 4556 | 4566 | , Just $ "right" .= rightObj4 |
| 4557 | 4567 | , Just $ "runtimeType" .= runtimeTypeObj4 |
| 4558 | - , Just $ "s" .= sObj4 | |
| 4559 | - , Just $ "sbyte" .= sbyteObj4 | |
| 4560 | - , Just $ "sealed" .= sealedObj4 | |
| 4561 | - , Just $ "SEL" .= selObj4 | |
| 4562 | 4568 | ] |
| 4563 | 4569 | |
| 4564 | 4570 | instance FromJSON Obj4 where |
| 4565 | 4571 | parseJSON (Object v) = Obj4 |
| 4566 | 4572 | <$> v .: "dummy" |
| 4573 | + <*> v .: "nil" | |
| 4574 | + <*> v .: "NO" | |
| 4567 | 4575 | <*> v .: "noSuchMethod" |
| 4568 | 4576 | <*> v .: "noexcept" |
| 4569 | 4577 | <*> v .: "nonatomic" |
| @@ -4584,6 +4592,8 @@ instance FromJSON Obj4 where | ||
| 4584 | 4592 | <*> v .: "protocol" |
| 4585 | 4593 | <*> v .: "object" |
| 4586 | 4594 | <*> v .: "ObjectMapper" |
| 4595 | + <*> v .: "OffsetDateTime" | |
| 4596 | + <*> v .: "OffsetTime" | |
| 4587 | 4597 | <*> v .: "oneway" |
| 4588 | 4598 | <*> v .: "open" |
| 4589 | 4599 | <*> v .: "operator" |
| @@ -4624,10 +4634,26 @@ instance FromJSON Obj4 where | ||
| 4624 | 4634 | <*> v .: "return" |
| 4625 | 4635 | <*> v .: "right" |
| 4626 | 4636 | <*> v .: "runtimeType" |
| 4627 | - <*> v .: "s" | |
| 4628 | - <*> v .: "sbyte" | |
| 4629 | - <*> v .: "sealed" | |
| 4630 | - <*> v .: "SEL" | |
| 4637 | + | |
| 4638 | +instance ToJSON Nil where | |
| 4639 | + toJSON (Nil nilNil) = | |
| 4640 | + object $ foldMap (maybe [] pure) | |
| 4641 | + [ Just $ "nil" .= nilNil | |
| 4642 | + ] | |
| 4643 | + | |
| 4644 | +instance FromJSON Nil where | |
| 4645 | + parseJSON (Object v) = Nil | |
| 4646 | + <$> v .: "nil" | |
| 4647 | + | |
| 4648 | +instance ToJSON No where | |
| 4649 | + toJSON (No noNo) = | |
| 4650 | + object $ foldMap (maybe [] pure) | |
| 4651 | + [ Just $ "NO" .= noNo | |
| 4652 | + ] | |
| 4653 | + | |
| 4654 | +instance FromJSON No where | |
| 4655 | + parseJSON (Object v) = No | |
| 4656 | + <$> v .: "NO" | |
| 4631 | 4657 | |
| 4632 | 4658 | instance ToJSON NoSuchMethod where |
| 4633 | 4659 | toJSON (NoSuchMethod noSuchMethodNoSuchMethod) = |
| @@ -4829,6 +4855,26 @@ instance FromJSON ObjectMapper where | ||
| 4829 | 4855 | parseJSON (Object v) = ObjectMapper |
| 4830 | 4856 | <$> v .: "ObjectMapper" |
| 4831 | 4857 | |
| 4858 | +instance ToJSON OffsetDateTime where | |
| 4859 | + toJSON (OffsetDateTime offsetDateTimeOffsetDateTime) = | |
| 4860 | + object $ foldMap (maybe [] pure) | |
| 4861 | + [ Just $ "OffsetDateTime" .= offsetDateTimeOffsetDateTime | |
| 4862 | + ] | |
| 4863 | + | |
| 4864 | +instance FromJSON OffsetDateTime where | |
| 4865 | + parseJSON (Object v) = OffsetDateTime | |
| 4866 | + <$> v .: "OffsetDateTime" | |
| 4867 | + | |
| 4868 | +instance ToJSON OffsetTime where | |
| 4869 | + toJSON (OffsetTime offsetTimeOffsetTime) = | |
| 4870 | + object $ foldMap (maybe [] pure) | |
| 4871 | + [ Just $ "OffsetTime" .= offsetTimeOffsetTime | |
| 4872 | + ] | |
| 4873 | + | |
| 4874 | +instance FromJSON OffsetTime where | |
| 4875 | + parseJSON (Object v) = OffsetTime | |
| 4876 | + <$> v .: "OffsetTime" | |
| 4877 | + | |
| 4832 | 4878 | instance ToJSON Oneway where |
| 4833 | 4879 | toJSON (Oneway onewayOneway) = |
| 4834 | 4880 | object $ foldMap (maybe [] pure) |
| @@ -5229,48 +5275,8 @@ instance FromJSON RuntimeType where | ||
| 5229 | 5275 | parseJSON (Object v) = RuntimeType |
| 5230 | 5276 | <$> v .: "runtimeType" |
| 5231 | 5277 | |
| 5232 | -instance ToJSON S where | |
| 5233 | - toJSON (S sS) = | |
| 5234 | - object $ foldMap (maybe [] pure) | |
| 5235 | - [ Just $ "s" .= sS | |
| 5236 | - ] | |
| 5237 | - | |
| 5238 | -instance FromJSON S where | |
| 5239 | - parseJSON (Object v) = S | |
| 5240 | - <$> v .: "s" | |
| 5241 | - | |
| 5242 | -instance ToJSON Sbyte where | |
| 5243 | - toJSON (Sbyte sbyteSbyte) = | |
| 5244 | - object $ foldMap (maybe [] pure) | |
| 5245 | - [ Just $ "sbyte" .= sbyteSbyte | |
| 5246 | - ] | |
| 5247 | - | |
| 5248 | -instance FromJSON Sbyte where | |
| 5249 | - parseJSON (Object v) = Sbyte | |
| 5250 | - <$> v .: "sbyte" | |
| 5251 | - | |
| 5252 | -instance ToJSON Sealed where | |
| 5253 | - toJSON (Sealed sealedSealed) = | |
| 5254 | - object $ foldMap (maybe [] pure) | |
| 5255 | - [ Just $ "sealed" .= sealedSealed | |
| 5256 | - ] | |
| 5257 | - | |
| 5258 | -instance FromJSON Sealed where | |
| 5259 | - parseJSON (Object v) = Sealed | |
| 5260 | - <$> v .: "sealed" | |
| 5261 | - | |
| 5262 | -instance ToJSON Sel where | |
| 5263 | - toJSON (Sel selSel) = | |
| 5264 | - object $ foldMap (maybe [] pure) | |
| 5265 | - [ Just $ "SEL" .= selSel | |
| 5266 | - ] | |
| 5267 | - | |
| 5268 | -instance FromJSON Sel where | |
| 5269 | - parseJSON (Object v) = Sel | |
| 5270 | - <$> v .: "SEL" | |
| 5271 | - | |
| 5272 | 5278 | instance ToJSON Obj5 where |
| 5273 | - toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 selectObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toDictObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unmarshalJSONObj5 unownedObj5 unsafeObj5 useSerializersObj5) = | |
| 5279 | + toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 sObj5 sbyteObj5 sealedObj5 selObj5 selectObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toDictObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5) = | |
| 5274 | 5280 | object $ foldMap (maybe [] pure) |
| 5275 | 5281 | [ Just $ "dummy" .= dummyObj5 |
| 5276 | 5282 | , Just $ "KSerializer" .= kSerializerObj5 |
| @@ -5280,6 +5286,10 @@ instance ToJSON Obj5 where | ||
| 5280 | 5286 | , Just $ "Type" .= obj5TypeObj5 |
| 5281 | 5287 | , Just $ "PrimitiveKind" .= primitiveKindObj5 |
| 5282 | 5288 | , Just $ "type" .= purpleTypeObj5 |
| 5289 | + , Just $ "s" .= sObj5 | |
| 5290 | + , Just $ "sbyte" .= sbyteObj5 | |
| 5291 | + , Just $ "sealed" .= sealedObj5 | |
| 5292 | + , Just $ "SEL" .= selObj5 | |
| 5283 | 5293 | , Just $ "select" .= selectObj5 |
| 5284 | 5294 | , Just $ "Self" .= selfObj5 |
| 5285 | 5295 | , Just $ "Sendable" .= sendableObj5 |
| @@ -5333,11 +5343,6 @@ instance ToJSON Obj5 where | ||
| 5333 | 5343 | , Just $ "ulong" .= ulongObj5 |
| 5334 | 5344 | , Just $ "unchecked" .= uncheckedObj5 |
| 5335 | 5345 | , Just $ "undefined" .= undefinedObj5 |
| 5336 | - , Just $ "union" .= unionObj5 | |
| 5337 | - , Just $ "UnmarshalJSON" .= unmarshalJSONObj5 | |
| 5338 | - , Just $ "unowned" .= unownedObj5 | |
| 5339 | - , Just $ "unsafe" .= unsafeObj5 | |
| 5340 | - , Just $ "UseSerializers" .= useSerializersObj5 | |
| 5341 | 5346 | ] |
| 5342 | 5347 | |
| 5343 | 5348 | instance FromJSON Obj5 where |
| @@ -5350,6 +5355,10 @@ instance FromJSON Obj5 where | ||
| 5350 | 5355 | <*> v .: "Type" |
| 5351 | 5356 | <*> v .: "PrimitiveKind" |
| 5352 | 5357 | <*> v .: "type" |
| 5358 | + <*> v .: "s" | |
| 5359 | + <*> v .: "sbyte" | |
| 5360 | + <*> v .: "sealed" | |
| 5361 | + <*> v .: "SEL" | |
| 5353 | 5362 | <*> v .: "select" |
| 5354 | 5363 | <*> v .: "Self" |
| 5355 | 5364 | <*> v .: "Sendable" |
| @@ -5403,11 +5412,6 @@ instance FromJSON Obj5 where | ||
| 5403 | 5412 | <*> v .: "ulong" |
| 5404 | 5413 | <*> v .: "unchecked" |
| 5405 | 5414 | <*> v .: "undefined" |
| 5406 | - <*> v .: "union" | |
| 5407 | - <*> v .: "UnmarshalJSON" | |
| 5408 | - <*> v .: "unowned" | |
| 5409 | - <*> v .: "unsafe" | |
| 5410 | - <*> v .: "UseSerializers" | |
| 5411 | 5415 | |
| 5412 | 5416 | instance ToJSON KSerializer where |
| 5413 | 5417 | toJSON (KSerializer kSerializerKSerializer) = |
| @@ -5479,6 +5483,46 @@ instance FromJSON TypeClass where | ||
| 5479 | 5483 | parseJSON (Object v) = TypeClass |
| 5480 | 5484 | <$> v .: "type" |
| 5481 | 5485 | |
| 5486 | +instance ToJSON S where | |
| 5487 | + toJSON (S sS) = | |
| 5488 | + object $ foldMap (maybe [] pure) | |
| 5489 | + [ Just $ "s" .= sS | |
| 5490 | + ] | |
| 5491 | + | |
| 5492 | +instance FromJSON S where | |
| 5493 | + parseJSON (Object v) = S | |
| 5494 | + <$> v .: "s" | |
| 5495 | + | |
| 5496 | +instance ToJSON Sbyte where | |
| 5497 | + toJSON (Sbyte sbyteSbyte) = | |
| 5498 | + object $ foldMap (maybe [] pure) | |
| 5499 | + [ Just $ "sbyte" .= sbyteSbyte | |
| 5500 | + ] | |
| 5501 | + | |
| 5502 | +instance FromJSON Sbyte where | |
| 5503 | + parseJSON (Object v) = Sbyte | |
| 5504 | + <$> v .: "sbyte" | |
| 5505 | + | |
| 5506 | +instance ToJSON Sealed where | |
| 5507 | + toJSON (Sealed sealedSealed) = | |
| 5508 | + object $ foldMap (maybe [] pure) | |
| 5509 | + [ Just $ "sealed" .= sealedSealed | |
| 5510 | + ] | |
| 5511 | + | |
| 5512 | +instance FromJSON Sealed where | |
| 5513 | + parseJSON (Object v) = Sealed | |
| 5514 | + <$> v .: "sealed" | |
| 5515 | + | |
| 5516 | +instance ToJSON Sel where | |
| 5517 | + toJSON (Sel selSel) = | |
| 5518 | + object $ foldMap (maybe [] pure) | |
| 5519 | + [ Just $ "SEL" .= selSel | |
| 5520 | + ] | |
| 5521 | + | |
| 5522 | +instance FromJSON Sel where | |
| 5523 | + parseJSON (Object v) = Sel | |
| 5524 | + <$> v .: "SEL" | |
| 5525 | + | |
| 5482 | 5526 | instance ToJSON Select where |
| 5483 | 5527 | toJSON (Select selectSelect) = |
| 5484 | 5528 | object $ foldMap (maybe [] pure) |
| @@ -6009,62 +6053,17 @@ instance FromJSON Undefined where | ||
| 6009 | 6053 | parseJSON (Object v) = Undefined |
| 6010 | 6054 | <$> v .: "undefined" |
| 6011 | 6055 | |
| 6012 | -instance ToJSON Union where | |
| 6013 | - toJSON (Union unionUnion) = | |
| 6014 | - object $ foldMap (maybe [] pure) | |
| 6015 | - [ Just $ "union" .= unionUnion | |
| 6016 | - ] | |
| 6017 | - | |
| 6018 | -instance FromJSON Union where | |
| 6019 | - parseJSON (Object v) = Union | |
| 6020 | - <$> v .: "union" | |
| 6021 | - | |
| 6022 | -instance ToJSON UnmarshalJSON where | |
| 6023 | - toJSON (UnmarshalJSON unmarshalJSONUnmarshalJSON) = | |
| 6024 | - object $ foldMap (maybe [] pure) | |
| 6025 | - [ Just $ "UnmarshalJSON" .= unmarshalJSONUnmarshalJSON | |
| 6026 | - ] | |
| 6027 | - | |
| 6028 | -instance FromJSON UnmarshalJSON where | |
| 6029 | - parseJSON (Object v) = UnmarshalJSON | |
| 6030 | - <$> v .: "UnmarshalJSON" | |
| 6031 | - | |
| 6032 | -instance ToJSON Unowned where | |
| 6033 | - toJSON (Unowned unownedUnowned) = | |
| 6034 | - object $ foldMap (maybe [] pure) | |
| 6035 | - [ Just $ "unowned" .= unownedUnowned | |
| 6036 | - ] | |
| 6037 | - | |
| 6038 | -instance FromJSON Unowned where | |
| 6039 | - parseJSON (Object v) = Unowned | |
| 6040 | - <$> v .: "unowned" | |
| 6041 | - | |
| 6042 | -instance ToJSON Unsafe where | |
| 6043 | - toJSON (Unsafe unsafeUnsafe) = | |
| 6044 | - object $ foldMap (maybe [] pure) | |
| 6045 | - [ Just $ "unsafe" .= unsafeUnsafe | |
| 6046 | - ] | |
| 6047 | - | |
| 6048 | -instance FromJSON Unsafe where | |
| 6049 | - parseJSON (Object v) = Unsafe | |
| 6050 | - <$> v .: "unsafe" | |
| 6051 | - | |
| 6052 | -instance ToJSON UseSerializers where | |
| 6053 | - toJSON (UseSerializers useSerializersUseSerializers) = | |
| 6054 | - object $ foldMap (maybe [] pure) | |
| 6055 | - [ Just $ "UseSerializers" .= useSerializersUseSerializers | |
| 6056 | - ] | |
| 6057 | - | |
| 6058 | -instance FromJSON UseSerializers where | |
| 6059 | - parseJSON (Object v) = UseSerializers | |
| 6060 | - <$> v .: "UseSerializers" | |
| 6061 | - | |
| 6062 | 6056 | instance ToJSON Obj6 where |
| 6063 | - toJSON (Obj6 dummyObj6 obj6WhereObj6 unsignedObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) = | |
| 6057 | + toJSON (Obj6 dummyObj6 obj6WhereObj6 unionObj6 unmarshalJSONObj6 unownedObj6 unsafeObj6 unsignedObj6 useSerializersObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) = | |
| 6064 | 6058 | object $ foldMap (maybe [] pure) |
| 6065 | 6059 | [ Just $ "dummy" .= dummyObj6 |
| 6066 | 6060 | , Just $ "where" .= obj6WhereObj6 |
| 6061 | + , Just $ "union" .= unionObj6 | |
| 6062 | + , Just $ "UnmarshalJSON" .= unmarshalJSONObj6 | |
| 6063 | + , Just $ "unowned" .= unownedObj6 | |
| 6064 | + , Just $ "unsafe" .= unsafeObj6 | |
| 6067 | 6065 | , Just $ "unsigned" .= unsignedObj6 |
| 6066 | + , Just $ "UseSerializers" .= useSerializersObj6 | |
| 6068 | 6067 | , Just $ "ushort" .= ushortObj6 |
| 6069 | 6068 | , Just $ "using" .= usingObj6 |
| 6070 | 6069 | , Just $ "Utf8JsonReader" .= utf8JSONReaderObj6 |
| @@ -6089,7 +6088,12 @@ instance FromJSON Obj6 where | ||
| 6089 | 6088 | parseJSON (Object v) = Obj6 |
| 6090 | 6089 | <$> v .: "dummy" |
| 6091 | 6090 | <*> v .: "where" |
| 6091 | + <*> v .: "union" | |
| 6092 | + <*> v .: "UnmarshalJSON" | |
| 6093 | + <*> v .: "unowned" | |
| 6094 | + <*> v .: "unsafe" | |
| 6092 | 6095 | <*> v .: "unsigned" |
| 6096 | + <*> v .: "UseSerializers" | |
| 6093 | 6097 | <*> v .: "ushort" |
| 6094 | 6098 | <*> v .: "using" |
| 6095 | 6099 | <*> v .: "Utf8JsonReader" |
| @@ -6119,6 +6123,46 @@ instance FromJSON Where where | ||
| 6119 | 6123 | parseJSON (Object v) = Where |
| 6120 | 6124 | <$> v .: "where" |
| 6121 | 6125 | |
| 6126 | +instance ToJSON Union where | |
| 6127 | + toJSON (Union unionUnion) = | |
| 6128 | + object $ foldMap (maybe [] pure) | |
| 6129 | + [ Just $ "union" .= unionUnion | |
| 6130 | + ] | |
| 6131 | + | |
| 6132 | +instance FromJSON Union where | |
| 6133 | + parseJSON (Object v) = Union | |
| 6134 | + <$> v .: "union" | |
| 6135 | + | |
| 6136 | +instance ToJSON UnmarshalJSON where | |
| 6137 | + toJSON (UnmarshalJSON unmarshalJSONUnmarshalJSON) = | |
| 6138 | + object $ foldMap (maybe [] pure) | |
| 6139 | + [ Just $ "UnmarshalJSON" .= unmarshalJSONUnmarshalJSON | |
| 6140 | + ] | |
| 6141 | + | |
| 6142 | +instance FromJSON UnmarshalJSON where | |
| 6143 | + parseJSON (Object v) = UnmarshalJSON | |
| 6144 | + <$> v .: "UnmarshalJSON" | |
| 6145 | + | |
| 6146 | +instance ToJSON Unowned where | |
| 6147 | + toJSON (Unowned unownedUnowned) = | |
| 6148 | + object $ foldMap (maybe [] pure) | |
| 6149 | + [ Just $ "unowned" .= unownedUnowned | |
| 6150 | + ] | |
| 6151 | + | |
| 6152 | +instance FromJSON Unowned where | |
| 6153 | + parseJSON (Object v) = Unowned | |
| 6154 | + <$> v .: "unowned" | |
| 6155 | + | |
| 6156 | +instance ToJSON Unsafe where | |
| 6157 | + toJSON (Unsafe unsafeUnsafe) = | |
| 6158 | + object $ foldMap (maybe [] pure) | |
| 6159 | + [ Just $ "unsafe" .= unsafeUnsafe | |
| 6160 | + ] | |
| 6161 | + | |
| 6162 | +instance FromJSON Unsafe where | |
| 6163 | + parseJSON (Object v) = Unsafe | |
| 6164 | + <$> v .: "unsafe" | |
| 6165 | + | |
| 6122 | 6166 | instance ToJSON Unsigned where |
| 6123 | 6167 | toJSON (Unsigned unsignedUnsigned) = |
| 6124 | 6168 | object $ foldMap (maybe [] pure) |
| @@ -6129,6 +6173,16 @@ instance FromJSON Unsigned where | ||
| 6129 | 6173 | parseJSON (Object v) = Unsigned |
| 6130 | 6174 | <$> v .: "unsigned" |
| 6131 | 6175 | |
| 6176 | +instance ToJSON UseSerializers where | |
| 6177 | + toJSON (UseSerializers useSerializersUseSerializers) = | |
| 6178 | + object $ foldMap (maybe [] pure) | |
| 6179 | + [ Just $ "UseSerializers" .= useSerializersUseSerializers | |
| 6180 | + ] | |
| 6181 | + | |
| 6182 | +instance FromJSON UseSerializers where | |
| 6183 | + parseJSON (Object v) = UseSerializers | |
| 6184 | + <$> v .: "UseSerializers" | |
| 6185 | + | |
| 6132 | 6186 | instance ToJSON Ushort where |
| 6133 | 6187 | toJSON (Ushort ushortUshort) = |
| 6134 | 6188 | object $ foldMap (maybe [] pure) |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / LocalDate.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class LocalDate { | |
| 6 | + private long localDate; | |
| 7 | + | |
| 8 | + @JsonProperty("LocalDate") | |
| 9 | + public long getLocalDate() { return localDate; } | |
| 10 | + @JsonProperty("LocalDate") | |
| 11 | + public void setLocalDate(long value) { this.localDate = value; } | |
| 12 | +} |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj3.java+6 −12
| @@ -46,6 +46,7 @@ public class Obj3 { | ||
| 46 | 46 | private Left left; |
| 47 | 47 | private Let let; |
| 48 | 48 | private ListClass list; |
| 49 | + private LocalDate localDate; | |
| 49 | 50 | private Locale locale; |
| 50 | 51 | private Lock lock; |
| 51 | 52 | private MapClass map; |
| @@ -57,8 +58,6 @@ public class Obj3 { | ||
| 57 | 58 | private Mutating mutating; |
| 58 | 59 | private Namespace namespace; |
| 59 | 60 | private Newtonsoft newtonsoft; |
| 60 | - private Nil nil; | |
| 61 | - private No no; | |
| 62 | 61 | private Goto obj3Goto; |
| 63 | 62 | private If obj3If; |
| 64 | 63 | private Implements obj3Implements; |
| @@ -285,6 +284,11 @@ public class Obj3 { | ||
| 285 | 284 | @JsonProperty("list") |
| 286 | 285 | public void setList(ListClass value) { this.list = value; } |
| 287 | 286 | |
| 287 | + @JsonProperty("LocalDate") | |
| 288 | + public LocalDate getLocalDate() { return localDate; } | |
| 289 | + @JsonProperty("LocalDate") | |
| 290 | + public void setLocalDate(LocalDate value) { this.localDate = value; } | |
| 291 | + | |
| 288 | 292 | @JsonProperty("Locale") |
| 289 | 293 | public Locale getLocale() { return locale; } |
| 290 | 294 | @JsonProperty("Locale") |
| @@ -340,16 +344,6 @@ public class Obj3 { | ||
| 340 | 344 | @JsonProperty("newtonsoft") |
| 341 | 345 | public void setNewtonsoft(Newtonsoft value) { this.newtonsoft = value; } |
| 342 | 346 | |
| 343 | - @JsonProperty("nil") | |
| 344 | - public Nil getNil() { return nil; } | |
| 345 | - @JsonProperty("nil") | |
| 346 | - public void setNil(Nil value) { this.nil = value; } | |
| 347 | - | |
| 348 | - @JsonProperty("NO") | |
| 349 | - public No getNo() { return no; } | |
| 350 | - @JsonProperty("NO") | |
| 351 | - public void setNo(No value) { this.no = value; } | |
| 352 | - | |
| 353 | 347 | @JsonProperty("goto") |
| 354 | 348 | public Goto getObj3Goto() { return obj3Goto; } |
| 355 | 349 | @JsonProperty("goto") |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj4.java+24 −24
| @@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*; | ||
| 4 | 4 | |
| 5 | 5 | public class Obj4 { |
| 6 | 6 | private long dummy; |
| 7 | + private Nil nil; | |
| 8 | + private No no; | |
| 7 | 9 | private NoSuchMethod noSuchMethod; |
| 8 | 10 | private Noexcept noexcept; |
| 9 | 11 | private Nonatomic nonatomic; |
| @@ -29,6 +31,8 @@ public class Obj4 { | ||
| 29 | 31 | private ObjectClass object; |
| 30 | 32 | private ObjectMapperClass objectMapper; |
| 31 | 33 | private Of of; |
| 34 | + private OffsetDateTime offsetDateTime; | |
| 35 | + private OffsetTime offsetTime; | |
| 32 | 36 | private Oneway oneway; |
| 33 | 37 | private Open open; |
| 34 | 38 | private Operator operator; |
| @@ -64,16 +68,22 @@ public class Obj4 { | ||
| 64 | 68 | private Rethrows rethrows; |
| 65 | 69 | private Right right; |
| 66 | 70 | private RuntimeType runtimeType; |
| 67 | - private S s; | |
| 68 | - private Sbyte sbyte; | |
| 69 | - private Sealed sealed; | |
| 70 | - private Sel sel; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| 74 | 74 | @JsonProperty("dummy") |
| 75 | 75 | public void setDummy(long value) { this.dummy = value; } |
| 76 | 76 | |
| 77 | + @JsonProperty("nil") | |
| 78 | + public Nil getNil() { return nil; } | |
| 79 | + @JsonProperty("nil") | |
| 80 | + public void setNil(Nil value) { this.nil = value; } | |
| 81 | + | |
| 82 | + @JsonProperty("NO") | |
| 83 | + public No getNo() { return no; } | |
| 84 | + @JsonProperty("NO") | |
| 85 | + public void setNo(No value) { this.no = value; } | |
| 86 | + | |
| 77 | 87 | @JsonProperty("noSuchMethod") |
| 78 | 88 | public NoSuchMethod getNoSuchMethod() { return noSuchMethod; } |
| 79 | 89 | @JsonProperty("noSuchMethod") |
| @@ -199,6 +209,16 @@ public class Obj4 { | ||
| 199 | 209 | @JsonProperty("of") |
| 200 | 210 | public void setOf(Of value) { this.of = value; } |
| 201 | 211 | |
| 212 | + @JsonProperty("OffsetDateTime") | |
| 213 | + public OffsetDateTime getOffsetDateTime() { return offsetDateTime; } | |
| 214 | + @JsonProperty("OffsetDateTime") | |
| 215 | + public void setOffsetDateTime(OffsetDateTime value) { this.offsetDateTime = value; } | |
| 216 | + | |
| 217 | + @JsonProperty("OffsetTime") | |
| 218 | + public OffsetTime getOffsetTime() { return offsetTime; } | |
| 219 | + @JsonProperty("OffsetTime") | |
| 220 | + public void setOffsetTime(OffsetTime value) { this.offsetTime = value; } | |
| 221 | + | |
| 202 | 222 | @JsonProperty("oneway") |
| 203 | 223 | public Oneway getOneway() { return oneway; } |
| 204 | 224 | @JsonProperty("oneway") |
| @@ -373,24 +393,4 @@ public class Obj4 { | ||
| 373 | 393 | public RuntimeType getRuntimeType() { return runtimeType; } |
| 374 | 394 | @JsonProperty("runtimeType") |
| 375 | 395 | public void setRuntimeType(RuntimeType value) { this.runtimeType = value; } |
| 376 | - | |
| 377 | - @JsonProperty("s") | |
| 378 | - public S getS() { return s; } | |
| 379 | - @JsonProperty("s") | |
| 380 | - public void setS(S value) { this.s = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("sbyte") | |
| 383 | - public Sbyte getSbyte() { return sbyte; } | |
| 384 | - @JsonProperty("sbyte") | |
| 385 | - public void setSbyte(Sbyte value) { this.sbyte = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("sealed") | |
| 388 | - public Sealed getSealed() { return sealed; } | |
| 389 | - @JsonProperty("sealed") | |
| 390 | - public void setSealed(Sealed value) { this.sealed = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("SEL") | |
| 393 | - public Sel getSel() { return sel; } | |
| 394 | - @JsonProperty("SEL") | |
| 395 | - public void setSel(Sel value) { this.sel = value; } | |
| 396 | 396 | } |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj5.java+24 −30
| @@ -21,6 +21,10 @@ public class Obj5 { | ||
| 21 | 21 | private TypeClass obj5Type; |
| 22 | 22 | private PrimitiveKind primitiveKind; |
| 23 | 23 | private TrueClass purpleTrue; |
| 24 | + private S s; | |
| 25 | + private Sbyte sbyte; | |
| 26 | + private Sealed sealed; | |
| 27 | + private Sel sel; | |
| 24 | 28 | private Select select; |
| 25 | 29 | private Self self; |
| 26 | 30 | private Sendable sendable; |
| @@ -64,11 +68,6 @@ public class Obj5 { | ||
| 64 | 68 | private Ulong ulong; |
| 65 | 69 | private Unchecked unchecked; |
| 66 | 70 | private Undefined undefined; |
| 67 | - private Union union; | |
| 68 | - private UnmarshalJSON unmarshalJSON; | |
| 69 | - private Unowned unowned; | |
| 70 | - private Unsafe unsafe; | |
| 71 | - private UseSerializers useSerializers; | |
| 72 | 71 | |
| 73 | 72 | @JsonProperty("dummy") |
| 74 | 73 | public long getDummy() { return dummy; } |
| @@ -160,6 +159,26 @@ public class Obj5 { | ||
| 160 | 159 | @JsonProperty("true") |
| 161 | 160 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 162 | 161 | |
| 162 | + @JsonProperty("s") | |
| 163 | + public S getS() { return s; } | |
| 164 | + @JsonProperty("s") | |
| 165 | + public void setS(S value) { this.s = value; } | |
| 166 | + | |
| 167 | + @JsonProperty("sbyte") | |
| 168 | + public Sbyte getSbyte() { return sbyte; } | |
| 169 | + @JsonProperty("sbyte") | |
| 170 | + public void setSbyte(Sbyte value) { this.sbyte = value; } | |
| 171 | + | |
| 172 | + @JsonProperty("sealed") | |
| 173 | + public Sealed getSealed() { return sealed; } | |
| 174 | + @JsonProperty("sealed") | |
| 175 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 176 | + | |
| 177 | + @JsonProperty("SEL") | |
| 178 | + public Sel getSel() { return sel; } | |
| 179 | + @JsonProperty("SEL") | |
| 180 | + public void setSel(Sel value) { this.sel = value; } | |
| 181 | + | |
| 163 | 182 | @JsonProperty("select") |
| 164 | 183 | public Select getSelect() { return select; } |
| 165 | 184 | @JsonProperty("select") |
| @@ -374,29 +393,4 @@ public class Obj5 { | ||
| 374 | 393 | public Undefined getUndefined() { return undefined; } |
| 375 | 394 | @JsonProperty("undefined") |
| 376 | 395 | public void setUndefined(Undefined value) { this.undefined = value; } |
| 377 | - | |
| 378 | - @JsonProperty("union") | |
| 379 | - public Union getUnion() { return union; } | |
| 380 | - @JsonProperty("union") | |
| 381 | - public void setUnion(Union value) { this.union = value; } | |
| 382 | - | |
| 383 | - @JsonProperty("UnmarshalJSON") | |
| 384 | - public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; } | |
| 385 | - @JsonProperty("UnmarshalJSON") | |
| 386 | - public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; } | |
| 387 | - | |
| 388 | - @JsonProperty("unowned") | |
| 389 | - public Unowned getUnowned() { return unowned; } | |
| 390 | - @JsonProperty("unowned") | |
| 391 | - public void setUnowned(Unowned value) { this.unowned = value; } | |
| 392 | - | |
| 393 | - @JsonProperty("unsafe") | |
| 394 | - public Unsafe getUnsafe() { return unsafe; } | |
| 395 | - @JsonProperty("unsafe") | |
| 396 | - public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 397 | - | |
| 398 | - @JsonProperty("UseSerializers") | |
| 399 | - public UseSerializers getUseSerializers() { return useSerializers; } | |
| 400 | - @JsonProperty("UseSerializers") | |
| 401 | - public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } | |
| 402 | 396 | } |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj6.java+30 −0
| @@ -7,7 +7,12 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Union union; | |
| 11 | + private UnmarshalJSON unmarshalJSON; | |
| 12 | + private Unowned unowned; | |
| 13 | + private Unsafe unsafe; | |
| 10 | 14 | private Unsigned unsigned; |
| 15 | + private UseSerializers useSerializers; | |
| 11 | 16 | private Ushort ushort; |
| 12 | 17 | private Using using; |
| 13 | 18 | private Utf8JSONReader utf8JSONReader; |
| @@ -45,11 +50,36 @@ public class Obj6 { | ||
| 45 | 50 | @JsonProperty("while") |
| 46 | 51 | public void setObj6While(While value) { this.obj6While = value; } |
| 47 | 52 | |
| 53 | + @JsonProperty("union") | |
| 54 | + public Union getUnion() { return union; } | |
| 55 | + @JsonProperty("union") | |
| 56 | + public void setUnion(Union value) { this.union = value; } | |
| 57 | + | |
| 58 | + @JsonProperty("UnmarshalJSON") | |
| 59 | + public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; } | |
| 60 | + @JsonProperty("UnmarshalJSON") | |
| 61 | + public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; } | |
| 62 | + | |
| 63 | + @JsonProperty("unowned") | |
| 64 | + public Unowned getUnowned() { return unowned; } | |
| 65 | + @JsonProperty("unowned") | |
| 66 | + public void setUnowned(Unowned value) { this.unowned = value; } | |
| 67 | + | |
| 68 | + @JsonProperty("unsafe") | |
| 69 | + public Unsafe getUnsafe() { return unsafe; } | |
| 70 | + @JsonProperty("unsafe") | |
| 71 | + public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 72 | + | |
| 48 | 73 | @JsonProperty("unsigned") |
| 49 | 74 | public Unsigned getUnsigned() { return unsigned; } |
| 50 | 75 | @JsonProperty("unsigned") |
| 51 | 76 | public void setUnsigned(Unsigned value) { this.unsigned = value; } |
| 52 | 77 | |
| 78 | + @JsonProperty("UseSerializers") | |
| 79 | + public UseSerializers getUseSerializers() { return useSerializers; } | |
| 80 | + @JsonProperty("UseSerializers") | |
| 81 | + public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } | |
| 82 | + | |
| 53 | 83 | @JsonProperty("ushort") |
| 54 | 84 | public Ushort getUshort() { return ushort; } |
| 55 | 85 | @JsonProperty("ushort") |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / OffsetDateTime.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetDateTime { | |
| 6 | + private long offsetDateTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetDateTime") | |
| 9 | + public long getOffsetDateTime() { return offsetDateTime; } | |
| 10 | + @JsonProperty("OffsetDateTime") | |
| 11 | + public void setOffsetDateTime(long value) { this.offsetDateTime = value; } | |
| 12 | +} |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / OffsetTime.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetTime { | |
| 6 | + private long offsetTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetTime") | |
| 9 | + public long getOffsetTime() { return offsetTime; } | |
| 10 | + @JsonProperty("OffsetTime") | |
| 11 | + public void setOffsetTime(long value) { this.offsetTime = value; } | |
| 12 | +} |
Ajava-lombokdefault / src / main / java / io / quicktype / LocalDateClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class LocalDateClass { | |
| 6 | + private long localDate; | |
| 7 | + | |
| 8 | + @JsonProperty("LocalDate") | |
| 9 | + public long getLocalDate() { return localDate; } | |
| 10 | + @JsonProperty("LocalDate") | |
| 11 | + public void setLocalDate(long value) { this.localDate = value; } | |
| 12 | +} |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj3.java+6 −12
| @@ -46,6 +46,7 @@ public class Obj3 { | ||
| 46 | 46 | private Left left; |
| 47 | 47 | private Let let; |
| 48 | 48 | private ListClass list; |
| 49 | + private LocalDateClass localDate; | |
| 49 | 50 | private Locale locale; |
| 50 | 51 | private Lock lock; |
| 51 | 52 | private MapClass map; |
| @@ -57,8 +58,6 @@ public class Obj3 { | ||
| 57 | 58 | private Mutating mutating; |
| 58 | 59 | private Namespace namespace; |
| 59 | 60 | private Newtonsoft newtonsoft; |
| 60 | - private Nil nil; | |
| 61 | - private No no; | |
| 62 | 61 | private Goto obj3Goto; |
| 63 | 62 | private If obj3If; |
| 64 | 63 | private Implements obj3Implements; |
| @@ -285,6 +284,11 @@ public class Obj3 { | ||
| 285 | 284 | @JsonProperty("list") |
| 286 | 285 | public void setList(ListClass value) { this.list = value; } |
| 287 | 286 | |
| 287 | + @JsonProperty("LocalDate") | |
| 288 | + public LocalDateClass getLocalDate() { return localDate; } | |
| 289 | + @JsonProperty("LocalDate") | |
| 290 | + public void setLocalDate(LocalDateClass value) { this.localDate = value; } | |
| 291 | + | |
| 288 | 292 | @JsonProperty("Locale") |
| 289 | 293 | public Locale getLocale() { return locale; } |
| 290 | 294 | @JsonProperty("Locale") |
| @@ -340,16 +344,6 @@ public class Obj3 { | ||
| 340 | 344 | @JsonProperty("newtonsoft") |
| 341 | 345 | public void setNewtonsoft(Newtonsoft value) { this.newtonsoft = value; } |
| 342 | 346 | |
| 343 | - @JsonProperty("nil") | |
| 344 | - public Nil getNil() { return nil; } | |
| 345 | - @JsonProperty("nil") | |
| 346 | - public void setNil(Nil value) { this.nil = value; } | |
| 347 | - | |
| 348 | - @JsonProperty("NO") | |
| 349 | - public No getNo() { return no; } | |
| 350 | - @JsonProperty("NO") | |
| 351 | - public void setNo(No value) { this.no = value; } | |
| 352 | - | |
| 353 | 347 | @JsonProperty("goto") |
| 354 | 348 | public Goto getObj3Goto() { return obj3Goto; } |
| 355 | 349 | @JsonProperty("goto") |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj4.java+24 −24
| @@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*; | ||
| 4 | 4 | |
| 5 | 5 | public class Obj4 { |
| 6 | 6 | private long dummy; |
| 7 | + private Nil nil; | |
| 8 | + private No no; | |
| 7 | 9 | private NoSuchMethod noSuchMethod; |
| 8 | 10 | private Noexcept noexcept; |
| 9 | 11 | private Nonatomic nonatomic; |
| @@ -29,6 +31,8 @@ public class Obj4 { | ||
| 29 | 31 | private ObjectClass object; |
| 30 | 32 | private ObjectMapperClass objectMapper; |
| 31 | 33 | private Of of; |
| 34 | + private OffsetDateTimeClass offsetDateTime; | |
| 35 | + private OffsetTimeClass offsetTime; | |
| 32 | 36 | private Oneway oneway; |
| 33 | 37 | private Open open; |
| 34 | 38 | private Operator operator; |
| @@ -64,16 +68,22 @@ public class Obj4 { | ||
| 64 | 68 | private Rethrows rethrows; |
| 65 | 69 | private Right right; |
| 66 | 70 | private RuntimeType runtimeType; |
| 67 | - private S s; | |
| 68 | - private Sbyte sbyte; | |
| 69 | - private Sealed sealed; | |
| 70 | - private Sel sel; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| 74 | 74 | @JsonProperty("dummy") |
| 75 | 75 | public void setDummy(long value) { this.dummy = value; } |
| 76 | 76 | |
| 77 | + @JsonProperty("nil") | |
| 78 | + public Nil getNil() { return nil; } | |
| 79 | + @JsonProperty("nil") | |
| 80 | + public void setNil(Nil value) { this.nil = value; } | |
| 81 | + | |
| 82 | + @JsonProperty("NO") | |
| 83 | + public No getNo() { return no; } | |
| 84 | + @JsonProperty("NO") | |
| 85 | + public void setNo(No value) { this.no = value; } | |
| 86 | + | |
| 77 | 87 | @JsonProperty("noSuchMethod") |
| 78 | 88 | public NoSuchMethod getNoSuchMethod() { return noSuchMethod; } |
| 79 | 89 | @JsonProperty("noSuchMethod") |
| @@ -199,6 +209,16 @@ public class Obj4 { | ||
| 199 | 209 | @JsonProperty("of") |
| 200 | 210 | public void setOf(Of value) { this.of = value; } |
| 201 | 211 | |
| 212 | + @JsonProperty("OffsetDateTime") | |
| 213 | + public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; } | |
| 214 | + @JsonProperty("OffsetDateTime") | |
| 215 | + public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; } | |
| 216 | + | |
| 217 | + @JsonProperty("OffsetTime") | |
| 218 | + public OffsetTimeClass getOffsetTime() { return offsetTime; } | |
| 219 | + @JsonProperty("OffsetTime") | |
| 220 | + public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; } | |
| 221 | + | |
| 202 | 222 | @JsonProperty("oneway") |
| 203 | 223 | public Oneway getOneway() { return oneway; } |
| 204 | 224 | @JsonProperty("oneway") |
| @@ -373,24 +393,4 @@ public class Obj4 { | ||
| 373 | 393 | public RuntimeType getRuntimeType() { return runtimeType; } |
| 374 | 394 | @JsonProperty("runtimeType") |
| 375 | 395 | public void setRuntimeType(RuntimeType value) { this.runtimeType = value; } |
| 376 | - | |
| 377 | - @JsonProperty("s") | |
| 378 | - public S getS() { return s; } | |
| 379 | - @JsonProperty("s") | |
| 380 | - public void setS(S value) { this.s = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("sbyte") | |
| 383 | - public Sbyte getSbyte() { return sbyte; } | |
| 384 | - @JsonProperty("sbyte") | |
| 385 | - public void setSbyte(Sbyte value) { this.sbyte = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("sealed") | |
| 388 | - public Sealed getSealed() { return sealed; } | |
| 389 | - @JsonProperty("sealed") | |
| 390 | - public void setSealed(Sealed value) { this.sealed = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("SEL") | |
| 393 | - public Sel getSel() { return sel; } | |
| 394 | - @JsonProperty("SEL") | |
| 395 | - public void setSel(Sel value) { this.sel = value; } | |
| 396 | 396 | } |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj5.java+24 −30
| @@ -21,6 +21,10 @@ public class Obj5 { | ||
| 21 | 21 | private TypeClass obj5Type; |
| 22 | 22 | private PrimitiveKind primitiveKind; |
| 23 | 23 | private TrueClass purpleTrue; |
| 24 | + private S s; | |
| 25 | + private Sbyte sbyte; | |
| 26 | + private Sealed sealed; | |
| 27 | + private Sel sel; | |
| 24 | 28 | private Select select; |
| 25 | 29 | private Self self; |
| 26 | 30 | private Sendable sendable; |
| @@ -64,11 +68,6 @@ public class Obj5 { | ||
| 64 | 68 | private Ulong ulong; |
| 65 | 69 | private Unchecked unchecked; |
| 66 | 70 | private Undefined undefined; |
| 67 | - private Union union; | |
| 68 | - private UnmarshalJSON unmarshalJSON; | |
| 69 | - private Unowned unowned; | |
| 70 | - private Unsafe unsafe; | |
| 71 | - private UseSerializers useSerializers; | |
| 72 | 71 | |
| 73 | 72 | @JsonProperty("dummy") |
| 74 | 73 | public long getDummy() { return dummy; } |
| @@ -160,6 +159,26 @@ public class Obj5 { | ||
| 160 | 159 | @JsonProperty("true") |
| 161 | 160 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 162 | 161 | |
| 162 | + @JsonProperty("s") | |
| 163 | + public S getS() { return s; } | |
| 164 | + @JsonProperty("s") | |
| 165 | + public void setS(S value) { this.s = value; } | |
| 166 | + | |
| 167 | + @JsonProperty("sbyte") | |
| 168 | + public Sbyte getSbyte() { return sbyte; } | |
| 169 | + @JsonProperty("sbyte") | |
| 170 | + public void setSbyte(Sbyte value) { this.sbyte = value; } | |
| 171 | + | |
| 172 | + @JsonProperty("sealed") | |
| 173 | + public Sealed getSealed() { return sealed; } | |
| 174 | + @JsonProperty("sealed") | |
| 175 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 176 | + | |
| 177 | + @JsonProperty("SEL") | |
| 178 | + public Sel getSel() { return sel; } | |
| 179 | + @JsonProperty("SEL") | |
| 180 | + public void setSel(Sel value) { this.sel = value; } | |
| 181 | + | |
| 163 | 182 | @JsonProperty("select") |
| 164 | 183 | public Select getSelect() { return select; } |
| 165 | 184 | @JsonProperty("select") |
| @@ -374,29 +393,4 @@ public class Obj5 { | ||
| 374 | 393 | public Undefined getUndefined() { return undefined; } |
| 375 | 394 | @JsonProperty("undefined") |
| 376 | 395 | public void setUndefined(Undefined value) { this.undefined = value; } |
| 377 | - | |
| 378 | - @JsonProperty("union") | |
| 379 | - public Union getUnion() { return union; } | |
| 380 | - @JsonProperty("union") | |
| 381 | - public void setUnion(Union value) { this.union = value; } | |
| 382 | - | |
| 383 | - @JsonProperty("UnmarshalJSON") | |
| 384 | - public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; } | |
| 385 | - @JsonProperty("UnmarshalJSON") | |
| 386 | - public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; } | |
| 387 | - | |
| 388 | - @JsonProperty("unowned") | |
| 389 | - public Unowned getUnowned() { return unowned; } | |
| 390 | - @JsonProperty("unowned") | |
| 391 | - public void setUnowned(Unowned value) { this.unowned = value; } | |
| 392 | - | |
| 393 | - @JsonProperty("unsafe") | |
| 394 | - public Unsafe getUnsafe() { return unsafe; } | |
| 395 | - @JsonProperty("unsafe") | |
| 396 | - public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 397 | - | |
| 398 | - @JsonProperty("UseSerializers") | |
| 399 | - public UseSerializers getUseSerializers() { return useSerializers; } | |
| 400 | - @JsonProperty("UseSerializers") | |
| 401 | - public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } | |
| 402 | 396 | } |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj6.java+30 −0
| @@ -7,7 +7,12 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Union union; | |
| 11 | + private UnmarshalJSON unmarshalJSON; | |
| 12 | + private Unowned unowned; | |
| 13 | + private Unsafe unsafe; | |
| 10 | 14 | private Unsigned unsigned; |
| 15 | + private UseSerializers useSerializers; | |
| 11 | 16 | private Ushort ushort; |
| 12 | 17 | private Using using; |
| 13 | 18 | private Utf8JSONReader utf8JSONReader; |
| @@ -45,11 +50,36 @@ public class Obj6 { | ||
| 45 | 50 | @JsonProperty("while") |
| 46 | 51 | public void setObj6While(While value) { this.obj6While = value; } |
| 47 | 52 | |
| 53 | + @JsonProperty("union") | |
| 54 | + public Union getUnion() { return union; } | |
| 55 | + @JsonProperty("union") | |
| 56 | + public void setUnion(Union value) { this.union = value; } | |
| 57 | + | |
| 58 | + @JsonProperty("UnmarshalJSON") | |
| 59 | + public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; } | |
| 60 | + @JsonProperty("UnmarshalJSON") | |
| 61 | + public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; } | |
| 62 | + | |
| 63 | + @JsonProperty("unowned") | |
| 64 | + public Unowned getUnowned() { return unowned; } | |
| 65 | + @JsonProperty("unowned") | |
| 66 | + public void setUnowned(Unowned value) { this.unowned = value; } | |
| 67 | + | |
| 68 | + @JsonProperty("unsafe") | |
| 69 | + public Unsafe getUnsafe() { return unsafe; } | |
| 70 | + @JsonProperty("unsafe") | |
| 71 | + public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 72 | + | |
| 48 | 73 | @JsonProperty("unsigned") |
| 49 | 74 | public Unsigned getUnsigned() { return unsigned; } |
| 50 | 75 | @JsonProperty("unsigned") |
| 51 | 76 | public void setUnsigned(Unsigned value) { this.unsigned = value; } |
| 52 | 77 | |
| 78 | + @JsonProperty("UseSerializers") | |
| 79 | + public UseSerializers getUseSerializers() { return useSerializers; } | |
| 80 | + @JsonProperty("UseSerializers") | |
| 81 | + public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } | |
| 82 | + | |
| 53 | 83 | @JsonProperty("ushort") |
| 54 | 84 | public Ushort getUshort() { return ushort; } |
| 55 | 85 | @JsonProperty("ushort") |
Ajava-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetDateTimeClass { | |
| 6 | + private long offsetDateTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetDateTime") | |
| 9 | + public long getOffsetDateTime() { return offsetDateTime; } | |
| 10 | + @JsonProperty("OffsetDateTime") | |
| 11 | + public void setOffsetDateTime(long value) { this.offsetDateTime = value; } | |
| 12 | +} |
Ajava-lombokdefault / src / main / java / io / quicktype / OffsetTimeClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetTimeClass { | |
| 6 | + private long offsetTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetTime") | |
| 9 | + public long getOffsetTime() { return offsetTime; } | |
| 10 | + @JsonProperty("OffsetTime") | |
| 11 | + public void setOffsetTime(long value) { this.offsetTime = value; } | |
| 12 | +} |
Ajavadefault / src / main / java / io / quicktype / LocalDateClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class LocalDateClass { | |
| 6 | + private long localDate; | |
| 7 | + | |
| 8 | + @JsonProperty("LocalDate") | |
| 9 | + public long getLocalDate() { return localDate; } | |
| 10 | + @JsonProperty("LocalDate") | |
| 11 | + public void setLocalDate(long value) { this.localDate = value; } | |
| 12 | +} |
Mjavadefault / src / main / java / io / quicktype / Obj3.java+6 −12
| @@ -46,6 +46,7 @@ public class Obj3 { | ||
| 46 | 46 | private Left left; |
| 47 | 47 | private Let let; |
| 48 | 48 | private ListClass list; |
| 49 | + private LocalDateClass localDate; | |
| 49 | 50 | private Locale locale; |
| 50 | 51 | private Lock lock; |
| 51 | 52 | private MapClass map; |
| @@ -57,8 +58,6 @@ public class Obj3 { | ||
| 57 | 58 | private Mutating mutating; |
| 58 | 59 | private Namespace namespace; |
| 59 | 60 | private Newtonsoft newtonsoft; |
| 60 | - private Nil nil; | |
| 61 | - private No no; | |
| 62 | 61 | private Goto obj3Goto; |
| 63 | 62 | private If obj3If; |
| 64 | 63 | private Implements obj3Implements; |
| @@ -285,6 +284,11 @@ public class Obj3 { | ||
| 285 | 284 | @JsonProperty("list") |
| 286 | 285 | public void setList(ListClass value) { this.list = value; } |
| 287 | 286 | |
| 287 | + @JsonProperty("LocalDate") | |
| 288 | + public LocalDateClass getLocalDate() { return localDate; } | |
| 289 | + @JsonProperty("LocalDate") | |
| 290 | + public void setLocalDate(LocalDateClass value) { this.localDate = value; } | |
| 291 | + | |
| 288 | 292 | @JsonProperty("Locale") |
| 289 | 293 | public Locale getLocale() { return locale; } |
| 290 | 294 | @JsonProperty("Locale") |
| @@ -340,16 +344,6 @@ public class Obj3 { | ||
| 340 | 344 | @JsonProperty("newtonsoft") |
| 341 | 345 | public void setNewtonsoft(Newtonsoft value) { this.newtonsoft = value; } |
| 342 | 346 | |
| 343 | - @JsonProperty("nil") | |
| 344 | - public Nil getNil() { return nil; } | |
| 345 | - @JsonProperty("nil") | |
| 346 | - public void setNil(Nil value) { this.nil = value; } | |
| 347 | - | |
| 348 | - @JsonProperty("NO") | |
| 349 | - public No getNo() { return no; } | |
| 350 | - @JsonProperty("NO") | |
| 351 | - public void setNo(No value) { this.no = value; } | |
| 352 | - | |
| 353 | 347 | @JsonProperty("goto") |
| 354 | 348 | public Goto getObj3Goto() { return obj3Goto; } |
| 355 | 349 | @JsonProperty("goto") |
Mjavadefault / src / main / java / io / quicktype / Obj4.java+24 −24
| @@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.*; | ||
| 4 | 4 | |
| 5 | 5 | public class Obj4 { |
| 6 | 6 | private long dummy; |
| 7 | + private Nil nil; | |
| 8 | + private No no; | |
| 7 | 9 | private NoSuchMethod noSuchMethod; |
| 8 | 10 | private Noexcept noexcept; |
| 9 | 11 | private Nonatomic nonatomic; |
| @@ -29,6 +31,8 @@ public class Obj4 { | ||
| 29 | 31 | private ObjectClass object; |
| 30 | 32 | private ObjectMapperClass objectMapper; |
| 31 | 33 | private Of of; |
| 34 | + private OffsetDateTimeClass offsetDateTime; | |
| 35 | + private OffsetTimeClass offsetTime; | |
| 32 | 36 | private Oneway oneway; |
| 33 | 37 | private Open open; |
| 34 | 38 | private Operator operator; |
| @@ -64,16 +68,22 @@ public class Obj4 { | ||
| 64 | 68 | private Rethrows rethrows; |
| 65 | 69 | private Right right; |
| 66 | 70 | private RuntimeType runtimeType; |
| 67 | - private S s; | |
| 68 | - private Sbyte sbyte; | |
| 69 | - private Sealed sealed; | |
| 70 | - private Sel sel; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| 74 | 74 | @JsonProperty("dummy") |
| 75 | 75 | public void setDummy(long value) { this.dummy = value; } |
| 76 | 76 | |
| 77 | + @JsonProperty("nil") | |
| 78 | + public Nil getNil() { return nil; } | |
| 79 | + @JsonProperty("nil") | |
| 80 | + public void setNil(Nil value) { this.nil = value; } | |
| 81 | + | |
| 82 | + @JsonProperty("NO") | |
| 83 | + public No getNo() { return no; } | |
| 84 | + @JsonProperty("NO") | |
| 85 | + public void setNo(No value) { this.no = value; } | |
| 86 | + | |
| 77 | 87 | @JsonProperty("noSuchMethod") |
| 78 | 88 | public NoSuchMethod getNoSuchMethod() { return noSuchMethod; } |
| 79 | 89 | @JsonProperty("noSuchMethod") |
| @@ -199,6 +209,16 @@ public class Obj4 { | ||
| 199 | 209 | @JsonProperty("of") |
| 200 | 210 | public void setOf(Of value) { this.of = value; } |
| 201 | 211 | |
| 212 | + @JsonProperty("OffsetDateTime") | |
| 213 | + public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; } | |
| 214 | + @JsonProperty("OffsetDateTime") | |
| 215 | + public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; } | |
| 216 | + | |
| 217 | + @JsonProperty("OffsetTime") | |
| 218 | + public OffsetTimeClass getOffsetTime() { return offsetTime; } | |
| 219 | + @JsonProperty("OffsetTime") | |
| 220 | + public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; } | |
| 221 | + | |
| 202 | 222 | @JsonProperty("oneway") |
| 203 | 223 | public Oneway getOneway() { return oneway; } |
| 204 | 224 | @JsonProperty("oneway") |
| @@ -373,24 +393,4 @@ public class Obj4 { | ||
| 373 | 393 | public RuntimeType getRuntimeType() { return runtimeType; } |
| 374 | 394 | @JsonProperty("runtimeType") |
| 375 | 395 | public void setRuntimeType(RuntimeType value) { this.runtimeType = value; } |
| 376 | - | |
| 377 | - @JsonProperty("s") | |
| 378 | - public S getS() { return s; } | |
| 379 | - @JsonProperty("s") | |
| 380 | - public void setS(S value) { this.s = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("sbyte") | |
| 383 | - public Sbyte getSbyte() { return sbyte; } | |
| 384 | - @JsonProperty("sbyte") | |
| 385 | - public void setSbyte(Sbyte value) { this.sbyte = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("sealed") | |
| 388 | - public Sealed getSealed() { return sealed; } | |
| 389 | - @JsonProperty("sealed") | |
| 390 | - public void setSealed(Sealed value) { this.sealed = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("SEL") | |
| 393 | - public Sel getSel() { return sel; } | |
| 394 | - @JsonProperty("SEL") | |
| 395 | - public void setSel(Sel value) { this.sel = value; } | |
| 396 | 396 | } |
Mjavadefault / src / main / java / io / quicktype / Obj5.java+24 −30
| @@ -21,6 +21,10 @@ public class Obj5 { | ||
| 21 | 21 | private TypeClass obj5Type; |
| 22 | 22 | private PrimitiveKind primitiveKind; |
| 23 | 23 | private TrueClass purpleTrue; |
| 24 | + private S s; | |
| 25 | + private Sbyte sbyte; | |
| 26 | + private Sealed sealed; | |
| 27 | + private Sel sel; | |
| 24 | 28 | private Select select; |
| 25 | 29 | private Self self; |
| 26 | 30 | private Sendable sendable; |
| @@ -64,11 +68,6 @@ public class Obj5 { | ||
| 64 | 68 | private Ulong ulong; |
| 65 | 69 | private Unchecked unchecked; |
| 66 | 70 | private Undefined undefined; |
| 67 | - private Union union; | |
| 68 | - private UnmarshalJSON unmarshalJSON; | |
| 69 | - private Unowned unowned; | |
| 70 | - private Unsafe unsafe; | |
| 71 | - private UseSerializers useSerializers; | |
| 72 | 71 | |
| 73 | 72 | @JsonProperty("dummy") |
| 74 | 73 | public long getDummy() { return dummy; } |
| @@ -160,6 +159,26 @@ public class Obj5 { | ||
| 160 | 159 | @JsonProperty("true") |
| 161 | 160 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 162 | 161 | |
| 162 | + @JsonProperty("s") | |
| 163 | + public S getS() { return s; } | |
| 164 | + @JsonProperty("s") | |
| 165 | + public void setS(S value) { this.s = value; } | |
| 166 | + | |
| 167 | + @JsonProperty("sbyte") | |
| 168 | + public Sbyte getSbyte() { return sbyte; } | |
| 169 | + @JsonProperty("sbyte") | |
| 170 | + public void setSbyte(Sbyte value) { this.sbyte = value; } | |
| 171 | + | |
| 172 | + @JsonProperty("sealed") | |
| 173 | + public Sealed getSealed() { return sealed; } | |
| 174 | + @JsonProperty("sealed") | |
| 175 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 176 | + | |
| 177 | + @JsonProperty("SEL") | |
| 178 | + public Sel getSel() { return sel; } | |
| 179 | + @JsonProperty("SEL") | |
| 180 | + public void setSel(Sel value) { this.sel = value; } | |
| 181 | + | |
| 163 | 182 | @JsonProperty("select") |
| 164 | 183 | public Select getSelect() { return select; } |
| 165 | 184 | @JsonProperty("select") |
| @@ -374,29 +393,4 @@ public class Obj5 { | ||
| 374 | 393 | public Undefined getUndefined() { return undefined; } |
| 375 | 394 | @JsonProperty("undefined") |
| 376 | 395 | public void setUndefined(Undefined value) { this.undefined = value; } |
| 377 | - | |
| 378 | - @JsonProperty("union") | |
| 379 | - public Union getUnion() { return union; } | |
| 380 | - @JsonProperty("union") | |
| 381 | - public void setUnion(Union value) { this.union = value; } | |
| 382 | - | |
| 383 | - @JsonProperty("UnmarshalJSON") | |
| 384 | - public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; } | |
| 385 | - @JsonProperty("UnmarshalJSON") | |
| 386 | - public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; } | |
| 387 | - | |
| 388 | - @JsonProperty("unowned") | |
| 389 | - public Unowned getUnowned() { return unowned; } | |
| 390 | - @JsonProperty("unowned") | |
| 391 | - public void setUnowned(Unowned value) { this.unowned = value; } | |
| 392 | - | |
| 393 | - @JsonProperty("unsafe") | |
| 394 | - public Unsafe getUnsafe() { return unsafe; } | |
| 395 | - @JsonProperty("unsafe") | |
| 396 | - public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 397 | - | |
| 398 | - @JsonProperty("UseSerializers") | |
| 399 | - public UseSerializers getUseSerializers() { return useSerializers; } | |
| 400 | - @JsonProperty("UseSerializers") | |
| 401 | - public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } | |
| 402 | 396 | } |
Mjavadefault / src / main / java / io / quicktype / Obj6.java+30 −0
| @@ -7,7 +7,12 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Union union; | |
| 11 | + private UnmarshalJSON unmarshalJSON; | |
| 12 | + private Unowned unowned; | |
| 13 | + private Unsafe unsafe; | |
| 10 | 14 | private Unsigned unsigned; |
| 15 | + private UseSerializers useSerializers; | |
| 11 | 16 | private Ushort ushort; |
| 12 | 17 | private Using using; |
| 13 | 18 | private Utf8JSONReader utf8JSONReader; |
| @@ -45,11 +50,36 @@ public class Obj6 { | ||
| 45 | 50 | @JsonProperty("while") |
| 46 | 51 | public void setObj6While(While value) { this.obj6While = value; } |
| 47 | 52 | |
| 53 | + @JsonProperty("union") | |
| 54 | + public Union getUnion() { return union; } | |
| 55 | + @JsonProperty("union") | |
| 56 | + public void setUnion(Union value) { this.union = value; } | |
| 57 | + | |
| 58 | + @JsonProperty("UnmarshalJSON") | |
| 59 | + public UnmarshalJSON getUnmarshalJSON() { return unmarshalJSON; } | |
| 60 | + @JsonProperty("UnmarshalJSON") | |
| 61 | + public void setUnmarshalJSON(UnmarshalJSON value) { this.unmarshalJSON = value; } | |
| 62 | + | |
| 63 | + @JsonProperty("unowned") | |
| 64 | + public Unowned getUnowned() { return unowned; } | |
| 65 | + @JsonProperty("unowned") | |
| 66 | + public void setUnowned(Unowned value) { this.unowned = value; } | |
| 67 | + | |
| 68 | + @JsonProperty("unsafe") | |
| 69 | + public Unsafe getUnsafe() { return unsafe; } | |
| 70 | + @JsonProperty("unsafe") | |
| 71 | + public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 72 | + | |
| 48 | 73 | @JsonProperty("unsigned") |
| 49 | 74 | public Unsigned getUnsigned() { return unsigned; } |
| 50 | 75 | @JsonProperty("unsigned") |
| 51 | 76 | public void setUnsigned(Unsigned value) { this.unsigned = value; } |
| 52 | 77 | |
| 78 | + @JsonProperty("UseSerializers") | |
| 79 | + public UseSerializers getUseSerializers() { return useSerializers; } | |
| 80 | + @JsonProperty("UseSerializers") | |
| 81 | + public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } | |
| 82 | + | |
| 53 | 83 | @JsonProperty("ushort") |
| 54 | 84 | public Ushort getUshort() { return ushort; } |
| 55 | 85 | @JsonProperty("ushort") |
Ajavadefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetDateTimeClass { | |
| 6 | + private long offsetDateTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetDateTime") | |
| 9 | + public long getOffsetDateTime() { return offsetDateTime; } | |
| 10 | + @JsonProperty("OffsetDateTime") | |
| 11 | + public void setOffsetDateTime(long value) { this.offsetDateTime = value; } | |
| 12 | +} |
Ajavadefault / src / main / java / io / quicktype / OffsetTimeClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetTimeClass { | |
| 6 | + private long offsetTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetTime") | |
| 9 | + public long getOffsetTime() { return offsetTime; } | |
| 10 | + @JsonProperty("OffsetTime") | |
| 11 | + public void setOffsetTime(long value) { this.offsetTime = value; } | |
| 12 | +} |
Mjavascript-prop-typesdefault / toplevel.js+67 −52
| @@ -160,10 +160,10 @@ let _JSONNode; | ||
| 160 | 160 | let _JSONParser; |
| 161 | 161 | let _JSONReader; |
| 162 | 162 | let _JSONTokenType; |
| 163 | +let _LocalDate; | |
| 163 | 164 | let _Locale; |
| 164 | 165 | let _MapEntry; |
| 165 | 166 | let _MarshalJSON; |
| 166 | -let _No; | |
| 167 | 167 | let _Goto; |
| 168 | 168 | let _Guard; |
| 169 | 169 | let _HasOwnProperty; |
| @@ -209,17 +209,19 @@ let _Namespace; | ||
| 209 | 209 | let _Native; |
| 210 | 210 | let _New; |
| 211 | 211 | let _Newtonsoft; |
| 212 | -let _Nil; | |
| 213 | 212 | let _Obj4; |
| 213 | +let _No; | |
| 214 | 214 | let _NSError; |
| 215 | 215 | let _NSObject; |
| 216 | 216 | let _NSString; |
| 217 | 217 | let _Null; |
| 218 | 218 | let _None; |
| 219 | 219 | let _ObjectMapper; |
| 220 | +let _OffsetDateTime; | |
| 221 | +let _OffsetTime; | |
| 220 | 222 | let _Protocol; |
| 221 | 223 | let _RegExp; |
| 222 | -let _Sel; | |
| 224 | +let _Nil; | |
| 223 | 225 | let _NoSuchMethod; |
| 224 | 226 | let _Noexcept; |
| 225 | 227 | let _Nonatomic; |
| @@ -272,12 +274,10 @@ let _Rethrows; | ||
| 272 | 274 | let _Return; |
| 273 | 275 | let _Right; |
| 274 | 276 | let _RuntimeType; |
| 275 | -let _S; | |
| 276 | -let _Sbyte; | |
| 277 | -let _Sealed; | |
| 278 | 277 | let _Obj5; |
| 279 | 278 | let _KSerializer; |
| 280 | 279 | let _PrimitiveKind; |
| 280 | +let _Sel; | |
| 281 | 281 | let _Self; |
| 282 | 282 | let _Sendable; |
| 283 | 283 | let _SerialDescriptor; |
| @@ -293,8 +293,9 @@ let _TimeOnlyConverter; | ||
| 293 | 293 | let _TimeZone; |
| 294 | 294 | let _True; |
| 295 | 295 | let _Type; |
| 296 | -let _UnmarshalJSON; | |
| 297 | -let _UseSerializers; | |
| 296 | +let _S; | |
| 297 | +let _Sbyte; | |
| 298 | +let _Sealed; | |
| 298 | 299 | let _Select; |
| 299 | 300 | let _SelfClass; |
| 300 | 301 | let _Serialize; |
| @@ -338,14 +339,16 @@ let _Uint; | ||
| 338 | 339 | let _Ulong; |
| 339 | 340 | let _Unchecked; |
| 340 | 341 | let _Undefined; |
| 341 | -let _Union; | |
| 342 | -let _Unowned; | |
| 343 | -let _Unsafe; | |
| 344 | 342 | let _Obj6; |
| 345 | 343 | let _UUID; |
| 344 | +let _UnmarshalJSON; | |
| 345 | +let _UseSerializers; | |
| 346 | 346 | let _Utf8JSONReader; |
| 347 | 347 | let _Utf8JSONWriter; |
| 348 | 348 | let _Yes; |
| 349 | +let _Union; | |
| 350 | +let _Unowned; | |
| 351 | +let _Unsafe; | |
| 349 | 352 | let _Unsigned; |
| 350 | 353 | let _Ushort; |
| 351 | 354 | let _Using; |
| @@ -926,6 +929,9 @@ _JSONReader = PropTypes.shape({ | ||
| 926 | 929 | _JSONTokenType = PropTypes.shape({ |
| 927 | 930 | "JsonTokenType": PropTypes.oneOfType([Integer]).isRequired, |
| 928 | 931 | }); |
| 932 | +_LocalDate = PropTypes.shape({ | |
| 933 | + "LocalDate": PropTypes.oneOfType([Integer]).isRequired, | |
| 934 | +}); | |
| 929 | 935 | _Locale = PropTypes.shape({ |
| 930 | 936 | "Locale": PropTypes.oneOfType([Integer]).isRequired, |
| 931 | 937 | }); |
| @@ -935,9 +941,6 @@ _MapEntry = PropTypes.shape({ | ||
| 935 | 941 | _MarshalJSON = PropTypes.shape({ |
| 936 | 942 | "MarshalJSON": PropTypes.oneOfType([Integer]).isRequired, |
| 937 | 943 | }); |
| 938 | -_No = PropTypes.shape({ | |
| 939 | - "NO": PropTypes.oneOfType([Integer]).isRequired, | |
| 940 | -}); | |
| 941 | 944 | _Goto = PropTypes.shape({ |
| 942 | 945 | "goto": PropTypes.oneOfType([Integer]).isRequired, |
| 943 | 946 | }); |
| @@ -1073,9 +1076,6 @@ _New = PropTypes.shape({ | ||
| 1073 | 1076 | _Newtonsoft = PropTypes.shape({ |
| 1074 | 1077 | "newtonsoft": PropTypes.oneOfType([Integer]).isRequired, |
| 1075 | 1078 | }); |
| 1076 | -_Nil = PropTypes.shape({ | |
| 1077 | - "nil": PropTypes.oneOfType([Integer]).isRequired, | |
| 1078 | -}); | |
| 1079 | 1079 | _Obj3 = PropTypes.shape({ |
| 1080 | 1080 | "Hashable": _Hashable, |
| 1081 | 1081 | "Hasher": _Hasher, |
| @@ -1092,10 +1092,10 @@ _Obj3 = PropTypes.shape({ | ||
| 1092 | 1092 | "JsonParser": _JSONParser, |
| 1093 | 1093 | "JsonReader": _JSONReader, |
| 1094 | 1094 | "JsonTokenType": _JSONTokenType, |
| 1095 | + "LocalDate": _LocalDate, | |
| 1095 | 1096 | "Locale": _Locale, |
| 1096 | 1097 | "MapEntry": _MapEntry, |
| 1097 | 1098 | "MarshalJSON": _MarshalJSON, |
| 1098 | - "NO": _No, | |
| 1099 | 1099 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1100 | 1100 | "goto": _Goto, |
| 1101 | 1101 | "guard": _Guard, |
| @@ -1142,7 +1142,9 @@ _Obj3 = PropTypes.shape({ | ||
| 1142 | 1142 | "native": _Native, |
| 1143 | 1143 | "new": _New, |
| 1144 | 1144 | "newtonsoft": _Newtonsoft, |
| 1145 | - "nil": _Nil, | |
| 1145 | +}); | |
| 1146 | +_No = PropTypes.shape({ | |
| 1147 | + "NO": PropTypes.oneOfType([Integer]).isRequired, | |
| 1146 | 1148 | }); |
| 1147 | 1149 | _NSError = PropTypes.shape({ |
| 1148 | 1150 | "NSError": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1162,14 +1164,20 @@ _None = PropTypes.shape({ | ||
| 1162 | 1164 | _ObjectMapper = PropTypes.shape({ |
| 1163 | 1165 | "ObjectMapper": PropTypes.oneOfType([Integer]).isRequired, |
| 1164 | 1166 | }); |
| 1167 | +_OffsetDateTime = PropTypes.shape({ | |
| 1168 | + "OffsetDateTime": PropTypes.oneOfType([Integer]).isRequired, | |
| 1169 | +}); | |
| 1170 | +_OffsetTime = PropTypes.shape({ | |
| 1171 | + "OffsetTime": PropTypes.oneOfType([Integer]).isRequired, | |
| 1172 | +}); | |
| 1165 | 1173 | _Protocol = PropTypes.shape({ |
| 1166 | 1174 | "Protocol": PropTypes.oneOfType([Integer]).isRequired, |
| 1167 | 1175 | }); |
| 1168 | 1176 | _RegExp = PropTypes.shape({ |
| 1169 | 1177 | "RegExp": PropTypes.oneOfType([(props, name) => props[name] == null || /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(props[name]) ? null : new Error("Expected UUID")]).isRequired, |
| 1170 | 1178 | }); |
| 1171 | -_Sel = PropTypes.shape({ | |
| 1172 | - "SEL": PropTypes.oneOfType([Integer]).isRequired, | |
| 1179 | +_Nil = PropTypes.shape({ | |
| 1180 | + "nil": PropTypes.oneOfType([Integer]).isRequired, | |
| 1173 | 1181 | }); |
| 1174 | 1182 | _NoSuchMethod = PropTypes.shape({ |
| 1175 | 1183 | "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1327,26 +1335,20 @@ _Right = PropTypes.shape({ | ||
| 1327 | 1335 | _RuntimeType = PropTypes.shape({ |
| 1328 | 1336 | "runtimeType": PropTypes.oneOfType([Integer]).isRequired, |
| 1329 | 1337 | }); |
| 1330 | -_S = PropTypes.shape({ | |
| 1331 | - "s": PropTypes.oneOfType([Integer]).isRequired, | |
| 1332 | -}); | |
| 1333 | -_Sbyte = PropTypes.shape({ | |
| 1334 | - "sbyte": PropTypes.oneOfType([Integer]).isRequired, | |
| 1335 | -}); | |
| 1336 | -_Sealed = PropTypes.shape({ | |
| 1337 | - "sealed": PropTypes.oneOfType([Integer]).isRequired, | |
| 1338 | -}); | |
| 1339 | 1338 | _Obj4 = PropTypes.shape({ |
| 1339 | + "NO": _No, | |
| 1340 | 1340 | "NSError": _NSError, |
| 1341 | 1341 | "NSObject": _NSObject, |
| 1342 | 1342 | "NSString": _NSString, |
| 1343 | 1343 | "NULL": _Null, |
| 1344 | 1344 | "None": _None, |
| 1345 | 1345 | "ObjectMapper": _ObjectMapper, |
| 1346 | + "OffsetDateTime": _OffsetDateTime, | |
| 1347 | + "OffsetTime": _OffsetTime, | |
| 1346 | 1348 | "Protocol": _Protocol, |
| 1347 | 1349 | "RegExp": _RegExp, |
| 1348 | - "SEL": _Sel, | |
| 1349 | 1350 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1351 | + "nil": _Nil, | |
| 1350 | 1352 | "noSuchMethod": _NoSuchMethod, |
| 1351 | 1353 | "noexcept": _Noexcept, |
| 1352 | 1354 | "nonatomic": _Nonatomic, |
| @@ -1399,9 +1401,6 @@ _Obj4 = PropTypes.shape({ | ||
| 1399 | 1401 | "return": _Return, |
| 1400 | 1402 | "right": _Right, |
| 1401 | 1403 | "runtimeType": _RuntimeType, |
| 1402 | - "s": _S, | |
| 1403 | - "sbyte": _Sbyte, | |
| 1404 | - "sealed": _Sealed, | |
| 1405 | 1404 | }); |
| 1406 | 1405 | _KSerializer = PropTypes.shape({ |
| 1407 | 1406 | "KSerializer": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1409,6 +1408,9 @@ _KSerializer = PropTypes.shape({ | ||
| 1409 | 1408 | _PrimitiveKind = PropTypes.shape({ |
| 1410 | 1409 | "PrimitiveKind": PropTypes.oneOfType([Integer]).isRequired, |
| 1411 | 1410 | }); |
| 1411 | +_Sel = PropTypes.shape({ | |
| 1412 | + "SEL": PropTypes.oneOfType([Integer]).isRequired, | |
| 1413 | +}); | |
| 1412 | 1414 | _Self = PropTypes.shape({ |
| 1413 | 1415 | "Self": PropTypes.oneOfType([Integer]).isRequired, |
| 1414 | 1416 | }); |
| @@ -1454,11 +1456,14 @@ _True = PropTypes.shape({ | ||
| 1454 | 1456 | _Type = PropTypes.shape({ |
| 1455 | 1457 | "Type": PropTypes.oneOfType([Integer]).isRequired, |
| 1456 | 1458 | }); |
| 1457 | -_UnmarshalJSON = PropTypes.shape({ | |
| 1458 | - "UnmarshalJSON": PropTypes.oneOfType([Integer]).isRequired, | |
| 1459 | +_S = PropTypes.shape({ | |
| 1460 | + "s": PropTypes.oneOfType([Integer]).isRequired, | |
| 1459 | 1461 | }); |
| 1460 | -_UseSerializers = PropTypes.shape({ | |
| 1461 | - "UseSerializers": PropTypes.oneOfType([Integer]).isRequired, | |
| 1462 | +_Sbyte = PropTypes.shape({ | |
| 1463 | + "sbyte": PropTypes.oneOfType([Integer]).isRequired, | |
| 1464 | +}); | |
| 1465 | +_Sealed = PropTypes.shape({ | |
| 1466 | + "sealed": PropTypes.oneOfType([Integer]).isRequired, | |
| 1462 | 1467 | }); |
| 1463 | 1468 | _Select = PropTypes.shape({ |
| 1464 | 1469 | "select": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1589,18 +1594,10 @@ _Unchecked = PropTypes.shape({ | ||
| 1589 | 1594 | _Undefined = PropTypes.shape({ |
| 1590 | 1595 | "undefined": PropTypes.oneOfType([Integer]).isRequired, |
| 1591 | 1596 | }); |
| 1592 | -_Union = PropTypes.shape({ | |
| 1593 | - "union": PropTypes.oneOfType([Integer]).isRequired, | |
| 1594 | -}); | |
| 1595 | -_Unowned = PropTypes.shape({ | |
| 1596 | - "unowned": PropTypes.oneOfType([Integer]).isRequired, | |
| 1597 | -}); | |
| 1598 | -_Unsafe = PropTypes.shape({ | |
| 1599 | - "unsafe": PropTypes.oneOfType([Integer]).isRequired, | |
| 1600 | -}); | |
| 1601 | 1597 | _Obj5 = PropTypes.shape({ |
| 1602 | 1598 | "KSerializer": _KSerializer, |
| 1603 | 1599 | "PrimitiveKind": _PrimitiveKind, |
| 1600 | + "SEL": _Sel, | |
| 1604 | 1601 | "Self": _Self, |
| 1605 | 1602 | "Sendable": _Sendable, |
| 1606 | 1603 | "SerialDescriptor": _SerialDescriptor, |
| @@ -1616,9 +1613,10 @@ _Obj5 = PropTypes.shape({ | ||
| 1616 | 1613 | "TimeZone": _TimeZone, |
| 1617 | 1614 | "True": _True, |
| 1618 | 1615 | "Type": _Type, |
| 1619 | - "UnmarshalJSON": _UnmarshalJSON, | |
| 1620 | - "UseSerializers": _UseSerializers, | |
| 1621 | 1616 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1617 | + "s": _S, | |
| 1618 | + "sbyte": _Sbyte, | |
| 1619 | + "sealed": _Sealed, | |
| 1622 | 1620 | "select": _Select, |
| 1623 | 1621 | "self": _SelfClass, |
| 1624 | 1622 | "serialize": _Serialize, |
| @@ -1662,13 +1660,16 @@ _Obj5 = PropTypes.shape({ | ||
| 1662 | 1660 | "ulong": _Ulong, |
| 1663 | 1661 | "unchecked": _Unchecked, |
| 1664 | 1662 | "undefined": _Undefined, |
| 1665 | - "union": _Union, | |
| 1666 | - "unowned": _Unowned, | |
| 1667 | - "unsafe": _Unsafe, | |
| 1668 | 1663 | }); |
| 1669 | 1664 | _UUID = PropTypes.shape({ |
| 1670 | 1665 | "UUID": PropTypes.oneOfType([Integer]).isRequired, |
| 1671 | 1666 | }); |
| 1667 | +_UnmarshalJSON = PropTypes.shape({ | |
| 1668 | + "UnmarshalJSON": PropTypes.oneOfType([Integer]).isRequired, | |
| 1669 | +}); | |
| 1670 | +_UseSerializers = PropTypes.shape({ | |
| 1671 | + "UseSerializers": PropTypes.oneOfType([Integer]).isRequired, | |
| 1672 | +}); | |
| 1672 | 1673 | _Utf8JSONReader = PropTypes.shape({ |
| 1673 | 1674 | "Utf8JsonReader": PropTypes.oneOfType([Integer]).isRequired, |
| 1674 | 1675 | }); |
| @@ -1678,6 +1679,15 @@ _Utf8JSONWriter = PropTypes.shape({ | ||
| 1678 | 1679 | _Yes = PropTypes.shape({ |
| 1679 | 1680 | "YES": PropTypes.oneOfType([Integer]).isRequired, |
| 1680 | 1681 | }); |
| 1682 | +_Union = PropTypes.shape({ | |
| 1683 | + "union": PropTypes.oneOfType([Integer]).isRequired, | |
| 1684 | +}); | |
| 1685 | +_Unowned = PropTypes.shape({ | |
| 1686 | + "unowned": PropTypes.oneOfType([Integer]).isRequired, | |
| 1687 | +}); | |
| 1688 | +_Unsafe = PropTypes.shape({ | |
| 1689 | + "unsafe": PropTypes.oneOfType([Integer]).isRequired, | |
| 1690 | +}); | |
| 1681 | 1691 | _Unsigned = PropTypes.shape({ |
| 1682 | 1692 | "unsigned": PropTypes.oneOfType([Integer]).isRequired, |
| 1683 | 1693 | }); |
| @@ -1728,10 +1738,15 @@ _Yield = PropTypes.shape({ | ||
| 1728 | 1738 | }); |
| 1729 | 1739 | _Obj6 = PropTypes.shape({ |
| 1730 | 1740 | "UUID": _UUID, |
| 1741 | + "UnmarshalJSON": _UnmarshalJSON, | |
| 1742 | + "UseSerializers": _UseSerializers, | |
| 1731 | 1743 | "Utf8JsonReader": _Utf8JSONReader, |
| 1732 | 1744 | "Utf8JsonWriter": _Utf8JSONWriter, |
| 1733 | 1745 | "YES": _Yes, |
| 1734 | 1746 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1747 | + "union": _Union, | |
| 1748 | + "unowned": _Unowned, | |
| 1749 | + "unsafe": _Unsafe, | |
| 1735 | 1750 | "unsigned": _Unsigned, |
| 1736 | 1751 | "ushort": _Ushort, |
| 1737 | 1752 | "using": _Using, |
Mjavascriptdefault / TopLevel.js+53 −41
| @@ -736,10 +736,10 @@ const typeMap = { | ||
| 736 | 736 | { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") }, |
| 737 | 737 | { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") }, |
| 738 | 738 | { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") }, |
| 739 | + { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") }, | |
| 739 | 740 | { json: "Locale", js: "Locale", typ: r("Locale") }, |
| 740 | 741 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 741 | 742 | { json: "MarshalJSON", js: "MarshalJSON", typ: r("MarshalJSON") }, |
| 742 | - { json: "NO", js: "NO", typ: r("No") }, | |
| 743 | 743 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 744 | 744 | { json: "goto", js: "goto", typ: r("Goto") }, |
| 745 | 745 | { json: "guard", js: "guard", typ: r("Guard") }, |
| @@ -786,7 +786,6 @@ const typeMap = { | ||
| 786 | 786 | { json: "native", js: "native", typ: r("Native") }, |
| 787 | 787 | { json: "new", js: "new", typ: r("New") }, |
| 788 | 788 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 789 | - { json: "nil", js: "nil", typ: r("Nil") }, | |
| 790 | 789 | ], false), |
| 791 | 790 | "Hashable": o([ |
| 792 | 791 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -833,6 +832,9 @@ const typeMap = { | ||
| 833 | 832 | "JSONTokenType": o([ |
| 834 | 833 | { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) }, |
| 835 | 834 | ], false), |
| 835 | + "LocalDate": o([ | |
| 836 | + { json: "LocalDate", js: "LocalDate", typ: i(0) }, | |
| 837 | + ], false), | |
| 836 | 838 | "Locale": o([ |
| 837 | 839 | { json: "Locale", js: "Locale", typ: i(0) }, |
| 838 | 840 | ], false), |
| @@ -842,9 +844,6 @@ const typeMap = { | ||
| 842 | 844 | "MarshalJSON": o([ |
| 843 | 845 | { json: "MarshalJSON", js: "MarshalJSON", typ: i(0) }, |
| 844 | 846 | ], false), |
| 845 | - "No": o([ | |
| 846 | - { json: "NO", js: "NO", typ: i(0) }, | |
| 847 | - ], false), | |
| 848 | 847 | "Goto": o([ |
| 849 | 848 | { json: "goto", js: "goto", typ: i(0) }, |
| 850 | 849 | ], false), |
| @@ -980,20 +979,20 @@ const typeMap = { | ||
| 980 | 979 | "Newtonsoft": o([ |
| 981 | 980 | { json: "newtonsoft", js: "newtonsoft", typ: i(0) }, |
| 982 | 981 | ], false), |
| 983 | - "Nil": o([ | |
| 984 | - { json: "nil", js: "nil", typ: i(0) }, | |
| 985 | - ], false), | |
| 986 | 982 | "Obj4": o([ |
| 983 | + { json: "NO", js: "NO", typ: r("No") }, | |
| 987 | 984 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 988 | 985 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| 989 | 986 | { json: "NSString", js: "NSString", typ: r("NSString") }, |
| 990 | 987 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 991 | 988 | { json: "None", js: "None", typ: r("None") }, |
| 992 | 989 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 990 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") }, | |
| 991 | + { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") }, | |
| 993 | 992 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 994 | 993 | { json: "RegExp", js: "RegExp", typ: r("RegExp") }, |
| 995 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 996 | 994 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 995 | + { json: "nil", js: "nil", typ: r("Nil") }, | |
| 997 | 996 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 998 | 997 | { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, |
| 999 | 998 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| @@ -1046,9 +1045,9 @@ const typeMap = { | ||
| 1046 | 1045 | { json: "return", js: "return", typ: r("Return") }, |
| 1047 | 1046 | { json: "right", js: "right", typ: r("Right") }, |
| 1048 | 1047 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 1049 | - { json: "s", js: "s", typ: r("S") }, | |
| 1050 | - { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 1051 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 1048 | + ], false), | |
| 1049 | + "No": o([ | |
| 1050 | + { json: "NO", js: "NO", typ: i(0) }, | |
| 1052 | 1051 | ], false), |
| 1053 | 1052 | "NSError": o([ |
| 1054 | 1053 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -1068,14 +1067,20 @@ const typeMap = { | ||
| 1068 | 1067 | "ObjectMapper": o([ |
| 1069 | 1068 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 1070 | 1069 | ], false), |
| 1070 | + "OffsetDateTime": o([ | |
| 1071 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) }, | |
| 1072 | + ], false), | |
| 1073 | + "OffsetTime": o([ | |
| 1074 | + { json: "OffsetTime", js: "OffsetTime", typ: i(0) }, | |
| 1075 | + ], false), | |
| 1071 | 1076 | "Protocol": o([ |
| 1072 | 1077 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 1073 | 1078 | ], false), |
| 1074 | 1079 | "RegExp": o([ |
| 1075 | 1080 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 1076 | 1081 | ], false), |
| 1077 | - "Sel": o([ | |
| 1078 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 1082 | + "Nil": o([ | |
| 1083 | + { json: "nil", js: "nil", typ: i(0) }, | |
| 1079 | 1084 | ], false), |
| 1080 | 1085 | "NoSuchMethod": o([ |
| 1081 | 1086 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| @@ -1233,18 +1238,10 @@ const typeMap = { | ||
| 1233 | 1238 | "RuntimeType": o([ |
| 1234 | 1239 | { json: "runtimeType", js: "runtimeType", typ: i(0) }, |
| 1235 | 1240 | ], false), |
| 1236 | - "S": o([ | |
| 1237 | - { json: "s", js: "s", typ: i(0) }, | |
| 1238 | - ], false), | |
| 1239 | - "Sbyte": o([ | |
| 1240 | - { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 1241 | - ], false), | |
| 1242 | - "Sealed": o([ | |
| 1243 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 1244 | - ], false), | |
| 1245 | 1241 | "Obj5": o([ |
| 1246 | 1242 | { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") }, |
| 1247 | 1243 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") }, |
| 1244 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 1248 | 1245 | { json: "Self", js: "Self", typ: r("Self") }, |
| 1249 | 1246 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 1250 | 1247 | { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") }, |
| @@ -1260,9 +1257,10 @@ const typeMap = { | ||
| 1260 | 1257 | { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") }, |
| 1261 | 1258 | { json: "True", js: "True", typ: r("True") }, |
| 1262 | 1259 | { json: "Type", js: "Type", typ: r("Type") }, |
| 1263 | - { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") }, | |
| 1264 | - { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, | |
| 1265 | 1260 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 1261 | + { json: "s", js: "s", typ: r("S") }, | |
| 1262 | + { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 1263 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 1266 | 1264 | { json: "select", js: "select", typ: r("Select") }, |
| 1267 | 1265 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 1268 | 1266 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| @@ -1306,9 +1304,6 @@ const typeMap = { | ||
| 1306 | 1304 | { json: "ulong", js: "ulong", typ: r("Ulong") }, |
| 1307 | 1305 | { json: "unchecked", js: "unchecked", typ: r("Unchecked") }, |
| 1308 | 1306 | { json: "undefined", js: "undefined", typ: r("Undefined") }, |
| 1309 | - { json: "union", js: "union", typ: r("Union") }, | |
| 1310 | - { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 1311 | - { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 1312 | 1307 | ], false), |
| 1313 | 1308 | "KSerializer": o([ |
| 1314 | 1309 | { json: "KSerializer", js: "KSerializer", typ: i(0) }, |
| @@ -1316,6 +1311,9 @@ const typeMap = { | ||
| 1316 | 1311 | "PrimitiveKind": o([ |
| 1317 | 1312 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) }, |
| 1318 | 1313 | ], false), |
| 1314 | + "Sel": o([ | |
| 1315 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 1316 | + ], false), | |
| 1319 | 1317 | "Self": o([ |
| 1320 | 1318 | { json: "Self", js: "Self", typ: i(0) }, |
| 1321 | 1319 | ], false), |
| @@ -1361,11 +1359,14 @@ const typeMap = { | ||
| 1361 | 1359 | "Type": o([ |
| 1362 | 1360 | { json: "Type", js: "Type", typ: i(0) }, |
| 1363 | 1361 | ], false), |
| 1364 | - "UnmarshalJSON": o([ | |
| 1365 | - { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) }, | |
| 1362 | + "S": o([ | |
| 1363 | + { json: "s", js: "s", typ: i(0) }, | |
| 1366 | 1364 | ], false), |
| 1367 | - "UseSerializers": o([ | |
| 1368 | - { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, | |
| 1365 | + "Sbyte": o([ | |
| 1366 | + { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 1367 | + ], false), | |
| 1368 | + "Sealed": o([ | |
| 1369 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 1369 | 1370 | ], false), |
| 1370 | 1371 | "Select": o([ |
| 1371 | 1372 | { json: "select", js: "select", typ: i(0) }, |
| @@ -1496,21 +1497,17 @@ const typeMap = { | ||
| 1496 | 1497 | "Undefined": o([ |
| 1497 | 1498 | { json: "undefined", js: "undefined", typ: i(0) }, |
| 1498 | 1499 | ], false), |
| 1499 | - "Union": o([ | |
| 1500 | - { json: "union", js: "union", typ: i(0) }, | |
| 1501 | - ], false), | |
| 1502 | - "Unowned": o([ | |
| 1503 | - { json: "unowned", js: "unowned", typ: i(0) }, | |
| 1504 | - ], false), | |
| 1505 | - "Unsafe": o([ | |
| 1506 | - { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 1507 | - ], false), | |
| 1508 | 1500 | "Obj6": o([ |
| 1509 | 1501 | { json: "UUID", js: "UUID", typ: r("UUID") }, |
| 1502 | + { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") }, | |
| 1503 | + { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, | |
| 1510 | 1504 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 1511 | 1505 | { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, |
| 1512 | 1506 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 1513 | 1507 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 1508 | + { json: "union", js: "union", typ: r("Union") }, | |
| 1509 | + { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 1510 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 1514 | 1511 | { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, |
| 1515 | 1512 | { json: "ushort", js: "ushort", typ: r("Ushort") }, |
| 1516 | 1513 | { json: "using", js: "using", typ: r("Using") }, |
| @@ -1531,6 +1528,12 @@ const typeMap = { | ||
| 1531 | 1528 | "UUID": o([ |
| 1532 | 1529 | { json: "UUID", js: "UUID", typ: i(0) }, |
| 1533 | 1530 | ], false), |
| 1531 | + "UnmarshalJSON": o([ | |
| 1532 | + { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) }, | |
| 1533 | + ], false), | |
| 1534 | + "UseSerializers": o([ | |
| 1535 | + { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, | |
| 1536 | + ], false), | |
| 1534 | 1537 | "Utf8JSONReader": o([ |
| 1535 | 1538 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) }, |
| 1536 | 1539 | ], false), |
| @@ -1540,6 +1543,15 @@ const typeMap = { | ||
| 1540 | 1543 | "Yes": o([ |
| 1541 | 1544 | { json: "YES", js: "YES", typ: i(0) }, |
| 1542 | 1545 | ], false), |
| 1546 | + "Union": o([ | |
| 1547 | + { json: "union", js: "union", typ: i(0) }, | |
| 1548 | + ], false), | |
| 1549 | + "Unowned": o([ | |
| 1550 | + { json: "unowned", js: "unowned", typ: i(0) }, | |
| 1551 | + ], false), | |
| 1552 | + "Unsafe": o([ | |
| 1553 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 1554 | + ], false), | |
| 1543 | 1555 | "Unsigned": o([ |
| 1544 | 1556 | { json: "unsigned", js: "unsigned", typ: i(0) }, |
| 1545 | 1557 | ], false), |
Mkotlin-jacksondefault / TopLevel.kt+111 −87
| @@ -1249,6 +1249,9 @@ data class Obj3 ( | ||
| 1249 | 1249 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1250 | 1250 | val list: ListClass, |
| 1251 | 1251 | |
| 1252 | + @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true) | |
| 1253 | + val localDate: LocalDate, | |
| 1254 | + | |
| 1252 | 1255 | @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true) |
| 1253 | 1256 | val locale: Locale, |
| 1254 | 1257 | |
| @@ -1291,12 +1294,6 @@ data class Obj3 ( | ||
| 1291 | 1294 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1292 | 1295 | val newtonsoft: Newtonsoft, |
| 1293 | 1296 | |
| 1294 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1295 | - val nil: Nil, | |
| 1296 | - | |
| 1297 | - @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true) | |
| 1298 | - val no: No, | |
| 1299 | - | |
| 1300 | 1297 | @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true) |
| 1301 | 1298 | val obj3If: If, |
| 1302 | 1299 | |
| @@ -1535,6 +1532,11 @@ data class ListClass ( | ||
| 1535 | 1532 | val list: Long |
| 1536 | 1533 | ) |
| 1537 | 1534 | |
| 1535 | +data class LocalDate ( | |
| 1536 | + @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true) | |
| 1537 | + val localDate: Long | |
| 1538 | +) | |
| 1539 | + | |
| 1538 | 1540 | data class Locale ( |
| 1539 | 1541 | @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true) |
| 1540 | 1542 | val locale: Long |
| @@ -1605,16 +1607,6 @@ data class Newtonsoft ( | ||
| 1605 | 1607 | val newtonsoft: Long |
| 1606 | 1608 | ) |
| 1607 | 1609 | |
| 1608 | -data class Nil ( | |
| 1609 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1610 | - val nil: Long | |
| 1611 | -) | |
| 1612 | - | |
| 1613 | -data class No ( | |
| 1614 | - @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true) | |
| 1615 | - val no: Long | |
| 1616 | -) | |
| 1617 | - | |
| 1618 | 1610 | data class If ( |
| 1619 | 1611 | @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true) |
| 1620 | 1612 | val ifIf: Long |
| @@ -1639,6 +1631,12 @@ data class Obj4 ( | ||
| 1639 | 1631 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1640 | 1632 | val dummy: Long, |
| 1641 | 1633 | |
| 1634 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1635 | + val nil: Nil, | |
| 1636 | + | |
| 1637 | + @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true) | |
| 1638 | + val no: No, | |
| 1639 | + | |
| 1642 | 1640 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1643 | 1641 | val noSuchMethod: NoSuchMethod, |
| 1644 | 1642 | |
| @@ -1705,6 +1703,12 @@ data class Obj4 ( | ||
| 1705 | 1703 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1706 | 1704 | val of: Of, |
| 1707 | 1705 | |
| 1706 | + @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true) | |
| 1707 | + val offsetDateTime: OffsetDateTimeClass, | |
| 1708 | + | |
| 1709 | + @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true) | |
| 1710 | + val offsetTime: OffsetTime, | |
| 1711 | + | |
| 1708 | 1712 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1709 | 1713 | val oneway: Oneway, |
| 1710 | 1714 | |
| @@ -1817,19 +1821,17 @@ data class Obj4 ( | ||
| 1817 | 1821 | val right: Right, |
| 1818 | 1822 | |
| 1819 | 1823 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1820 | - val runtimeType: RuntimeType, | |
| 1821 | - | |
| 1822 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1823 | - val s: S, | |
| 1824 | - | |
| 1825 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1826 | - val sbyte: Sbyte, | |
| 1824 | + val runtimeType: RuntimeType | |
| 1825 | +) | |
| 1827 | 1826 | |
| 1827 | +data class Nil ( | |
| 1828 | 1828 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1829 | - val sealed: Sealed, | |
| 1829 | + val nil: Long | |
| 1830 | +) | |
| 1830 | 1831 | |
| 1831 | - @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 1832 | - val sel: Sel | |
| 1832 | +data class No ( | |
| 1833 | + @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true) | |
| 1834 | + val no: Long | |
| 1833 | 1835 | ) |
| 1834 | 1836 | |
| 1835 | 1837 | data class NoSuchMethod ( |
| @@ -1942,6 +1944,16 @@ data class Of ( | ||
| 1942 | 1944 | val of: Long |
| 1943 | 1945 | ) |
| 1944 | 1946 | |
| 1947 | +data class OffsetDateTimeClass ( | |
| 1948 | + @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true) | |
| 1949 | + val offsetDateTime: Long | |
| 1950 | +) | |
| 1951 | + | |
| 1952 | +data class OffsetTime ( | |
| 1953 | + @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true) | |
| 1954 | + val offsetTime: Long | |
| 1955 | +) | |
| 1956 | + | |
| 1945 | 1957 | data class Oneway ( |
| 1946 | 1958 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1947 | 1959 | val oneway: Long |
| @@ -2132,26 +2144,6 @@ data class RuntimeType ( | ||
| 2132 | 2144 | val runtimeType: Long |
| 2133 | 2145 | ) |
| 2134 | 2146 | |
| 2135 | -data class S ( | |
| 2136 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2137 | - val s: Long | |
| 2138 | -) | |
| 2139 | - | |
| 2140 | -data class Sbyte ( | |
| 2141 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2142 | - val sbyte: Long | |
| 2143 | -) | |
| 2144 | - | |
| 2145 | -data class Sealed ( | |
| 2146 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2147 | - val sealed: Long | |
| 2148 | -) | |
| 2149 | - | |
| 2150 | -data class Sel ( | |
| 2151 | - @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 2152 | - val sel: Long | |
| 2153 | -) | |
| 2154 | - | |
| 2155 | 2147 | data class Obj5 ( |
| 2156 | 2148 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2157 | 2149 | val dummy: Long, |
| @@ -2192,6 +2184,18 @@ data class Obj5 ( | ||
| 2192 | 2184 | @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true) |
| 2193 | 2185 | val purpleTrue: TrueClass, |
| 2194 | 2186 | |
| 2187 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2188 | + val s: S, | |
| 2189 | + | |
| 2190 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2191 | + val sbyte: Sbyte, | |
| 2192 | + | |
| 2193 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2194 | + val sealed: Sealed, | |
| 2195 | + | |
| 2196 | + @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 2197 | + val sel: Sel, | |
| 2198 | + | |
| 2195 | 2199 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2196 | 2200 | val select: Select, |
| 2197 | 2201 | |
| @@ -2334,22 +2338,7 @@ data class Obj5 ( | ||
| 2334 | 2338 | val unchecked: Unchecked, |
| 2335 | 2339 | |
| 2336 | 2340 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2337 | - val undefined: Undefined, | |
| 2338 | - | |
| 2339 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2340 | - val union: Union, | |
| 2341 | - | |
| 2342 | - @get:JsonProperty("UnmarshalJSON", required=true)@field:JsonProperty("UnmarshalJSON", required=true) | |
| 2343 | - val unmarshalJSON: UnmarshalJSON, | |
| 2344 | - | |
| 2345 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2346 | - val unowned: Unowned, | |
| 2347 | - | |
| 2348 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2349 | - val unsafe: Unsafe, | |
| 2350 | - | |
| 2351 | - @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true) | |
| 2352 | - val useSerializers: UseSerializers | |
| 2341 | + val undefined: Undefined | |
| 2353 | 2342 | ) |
| 2354 | 2343 | |
| 2355 | 2344 | data class KSerializer ( |
| @@ -2412,6 +2401,26 @@ data class TrueClass ( | ||
| 2412 | 2401 | val trueTrue: Long |
| 2413 | 2402 | ) |
| 2414 | 2403 | |
| 2404 | +data class S ( | |
| 2405 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2406 | + val s: Long | |
| 2407 | +) | |
| 2408 | + | |
| 2409 | +data class Sbyte ( | |
| 2410 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2411 | + val sbyte: Long | |
| 2412 | +) | |
| 2413 | + | |
| 2414 | +data class Sealed ( | |
| 2415 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2416 | + val sealed: Long | |
| 2417 | +) | |
| 2418 | + | |
| 2419 | +data class Sel ( | |
| 2420 | + @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 2421 | + val sel: Long | |
| 2422 | +) | |
| 2423 | + | |
| 2415 | 2424 | data class Select ( |
| 2416 | 2425 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2417 | 2426 | val select: Long |
| @@ -2652,31 +2661,6 @@ data class Undefined ( | ||
| 2652 | 2661 | val undefined: Long |
| 2653 | 2662 | ) |
| 2654 | 2663 | |
| 2655 | -data class Union ( | |
| 2656 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2657 | - val union: Long | |
| 2658 | -) | |
| 2659 | - | |
| 2660 | -data class UnmarshalJSON ( | |
| 2661 | - @get:JsonProperty("UnmarshalJSON", required=true)@field:JsonProperty("UnmarshalJSON", required=true) | |
| 2662 | - val unmarshalJSON: Long | |
| 2663 | -) | |
| 2664 | - | |
| 2665 | -data class Unowned ( | |
| 2666 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2667 | - val unowned: Long | |
| 2668 | -) | |
| 2669 | - | |
| 2670 | -data class Unsafe ( | |
| 2671 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2672 | - val unsafe: Long | |
| 2673 | -) | |
| 2674 | - | |
| 2675 | -data class UseSerializers ( | |
| 2676 | - @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true) | |
| 2677 | - val useSerializers: Long | |
| 2678 | -) | |
| 2679 | - | |
| 2680 | 2664 | data class Obj6 ( |
| 2681 | 2665 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2682 | 2666 | val dummy: Long, |
| @@ -2687,9 +2671,24 @@ data class Obj6 ( | ||
| 2687 | 2671 | @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true) |
| 2688 | 2672 | val obj6While: While, |
| 2689 | 2673 | |
| 2674 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2675 | + val union: Union, | |
| 2676 | + | |
| 2677 | + @get:JsonProperty("UnmarshalJSON", required=true)@field:JsonProperty("UnmarshalJSON", required=true) | |
| 2678 | + val unmarshalJSON: UnmarshalJSON, | |
| 2679 | + | |
| 2680 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2681 | + val unowned: Unowned, | |
| 2682 | + | |
| 2683 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2684 | + val unsafe: Unsafe, | |
| 2685 | + | |
| 2690 | 2686 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2691 | 2687 | val unsigned: Unsigned, |
| 2692 | 2688 | |
| 2689 | + @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true) | |
| 2690 | + val useSerializers: UseSerializers, | |
| 2691 | + | |
| 2693 | 2692 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2694 | 2693 | val ushort: Ushort, |
| 2695 | 2694 | |
| @@ -2752,11 +2751,36 @@ data class While ( | ||
| 2752 | 2751 | val whileWhile: Long |
| 2753 | 2752 | ) |
| 2754 | 2753 | |
| 2754 | +data class Union ( | |
| 2755 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2756 | + val union: Long | |
| 2757 | +) | |
| 2758 | + | |
| 2759 | +data class UnmarshalJSON ( | |
| 2760 | + @get:JsonProperty("UnmarshalJSON", required=true)@field:JsonProperty("UnmarshalJSON", required=true) | |
| 2761 | + val unmarshalJSON: Long | |
| 2762 | +) | |
| 2763 | + | |
| 2764 | +data class Unowned ( | |
| 2765 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2766 | + val unowned: Long | |
| 2767 | +) | |
| 2768 | + | |
| 2769 | +data class Unsafe ( | |
| 2770 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2771 | + val unsafe: Long | |
| 2772 | +) | |
| 2773 | + | |
| 2755 | 2774 | data class Unsigned ( |
| 2756 | 2775 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2757 | 2776 | val unsigned: Long |
| 2758 | 2777 | ) |
| 2759 | 2778 | |
| 2779 | +data class UseSerializers ( | |
| 2780 | + @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true) | |
| 2781 | + val useSerializers: Long | |
| 2782 | +) | |
| 2783 | + | |
| 2760 | 2784 | data class Ushort ( |
| 2761 | 2785 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2762 | 2786 | val ushort: Long |
Mkotlindefault / TopLevel.kt+97 −69
| @@ -951,6 +951,9 @@ data class Obj3 ( | ||
| 951 | 951 | val let: Let, |
| 952 | 952 | val list: ListClass, |
| 953 | 953 | |
| 954 | + @Json(name = "LocalDate") | |
| 955 | + val localDate: LocalDate, | |
| 956 | + | |
| 954 | 957 | @Json(name = "Locale") |
| 955 | 958 | val locale: Locale, |
| 956 | 959 | |
| @@ -974,10 +977,6 @@ data class Obj3 ( | ||
| 974 | 977 | val native: Native, |
| 975 | 978 | val new: New, |
| 976 | 979 | val newtonsoft: Newtonsoft, |
| 977 | - val nil: Nil, | |
| 978 | - | |
| 979 | - @Json(name = "NO") | |
| 980 | - val no: No, | |
| 981 | 980 | |
| 982 | 981 | @Json(name = "if") |
| 983 | 982 | val obj3If: If, |
| @@ -1191,6 +1190,11 @@ data class ListClass ( | ||
| 1191 | 1190 | val list: Long |
| 1192 | 1191 | ) |
| 1193 | 1192 | |
| 1193 | +data class LocalDate ( | |
| 1194 | + @Json(name = "LocalDate") | |
| 1195 | + val localDate: Long | |
| 1196 | +) | |
| 1197 | + | |
| 1194 | 1198 | data class Locale ( |
| 1195 | 1199 | @Json(name = "Locale") |
| 1196 | 1200 | val locale: Long |
| @@ -1251,15 +1255,6 @@ data class Newtonsoft ( | ||
| 1251 | 1255 | val newtonsoft: Long |
| 1252 | 1256 | ) |
| 1253 | 1257 | |
| 1254 | -data class Nil ( | |
| 1255 | - val nil: Long | |
| 1256 | -) | |
| 1257 | - | |
| 1258 | -data class No ( | |
| 1259 | - @Json(name = "NO") | |
| 1260 | - val no: Long | |
| 1261 | -) | |
| 1262 | - | |
| 1263 | 1258 | data class If ( |
| 1264 | 1259 | @Json(name = "if") |
| 1265 | 1260 | val ifIf: Long |
| @@ -1282,6 +1277,11 @@ data class Is ( | ||
| 1282 | 1277 | |
| 1283 | 1278 | data class Obj4 ( |
| 1284 | 1279 | val dummy: Long, |
| 1280 | + val nil: Nil, | |
| 1281 | + | |
| 1282 | + @Json(name = "NO") | |
| 1283 | + val no: No, | |
| 1284 | + | |
| 1285 | 1285 | val noSuchMethod: NoSuchMethod, |
| 1286 | 1286 | val noexcept: Noexcept, |
| 1287 | 1287 | val nonatomic: Nonatomic, |
| @@ -1333,6 +1333,13 @@ data class Obj4 ( | ||
| 1333 | 1333 | val objectMapper: ObjectMapper, |
| 1334 | 1334 | |
| 1335 | 1335 | val of: Of, |
| 1336 | + | |
| 1337 | + @Json(name = "OffsetDateTime") | |
| 1338 | + val offsetDateTime: OffsetDateTimeClass, | |
| 1339 | + | |
| 1340 | + @Json(name = "OffsetTime") | |
| 1341 | + val offsetTime: OffsetTime, | |
| 1342 | + | |
| 1336 | 1343 | val oneway: Oneway, |
| 1337 | 1344 | val open: Open, |
| 1338 | 1345 | val operator: Operator, |
| @@ -1382,13 +1389,16 @@ data class Obj4 ( | ||
| 1382 | 1389 | val retain: Retain, |
| 1383 | 1390 | val rethrows: Rethrows, |
| 1384 | 1391 | val right: Right, |
| 1385 | - val runtimeType: RuntimeType, | |
| 1386 | - val s: S, | |
| 1387 | - val sbyte: Sbyte, | |
| 1388 | - val sealed: Sealed, | |
| 1392 | + val runtimeType: RuntimeType | |
| 1393 | +) | |
| 1389 | 1394 | |
| 1390 | - @Json(name = "SEL") | |
| 1391 | - val sel: Sel | |
| 1395 | +data class Nil ( | |
| 1396 | + val nil: Long | |
| 1397 | +) | |
| 1398 | + | |
| 1399 | +data class No ( | |
| 1400 | + @Json(name = "NO") | |
| 1401 | + val no: Long | |
| 1392 | 1402 | ) |
| 1393 | 1403 | |
| 1394 | 1404 | data class NoSuchMethod ( |
| @@ -1490,6 +1500,16 @@ data class Of ( | ||
| 1490 | 1500 | val of: Long |
| 1491 | 1501 | ) |
| 1492 | 1502 | |
| 1503 | +data class OffsetDateTimeClass ( | |
| 1504 | + @Json(name = "OffsetDateTime") | |
| 1505 | + val offsetDateTime: Long | |
| 1506 | +) | |
| 1507 | + | |
| 1508 | +data class OffsetTime ( | |
| 1509 | + @Json(name = "OffsetTime") | |
| 1510 | + val offsetTime: Long | |
| 1511 | +) | |
| 1512 | + | |
| 1493 | 1513 | data class Oneway ( |
| 1494 | 1514 | val oneway: Long |
| 1495 | 1515 | ) |
| @@ -1646,23 +1666,6 @@ data class RuntimeType ( | ||
| 1646 | 1666 | val runtimeType: Long |
| 1647 | 1667 | ) |
| 1648 | 1668 | |
| 1649 | -data class S ( | |
| 1650 | - val s: Long | |
| 1651 | -) | |
| 1652 | - | |
| 1653 | -data class Sbyte ( | |
| 1654 | - val sbyte: Long | |
| 1655 | -) | |
| 1656 | - | |
| 1657 | -data class Sealed ( | |
| 1658 | - val sealed: Long | |
| 1659 | -) | |
| 1660 | - | |
| 1661 | -data class Sel ( | |
| 1662 | - @Json(name = "SEL") | |
| 1663 | - val sel: Long | |
| 1664 | -) | |
| 1665 | - | |
| 1666 | 1669 | data class Obj5 ( |
| 1667 | 1670 | val dummy: Long, |
| 1668 | 1671 | |
| @@ -1702,6 +1705,13 @@ data class Obj5 ( | ||
| 1702 | 1705 | @Json(name = "true") |
| 1703 | 1706 | val purpleTrue: TrueClass, |
| 1704 | 1707 | |
| 1708 | + val s: S, | |
| 1709 | + val sbyte: Sbyte, | |
| 1710 | + val sealed: Sealed, | |
| 1711 | + | |
| 1712 | + @Json(name = "SEL") | |
| 1713 | + val sel: Sel, | |
| 1714 | + | |
| 1705 | 1715 | val select: Select, |
| 1706 | 1716 | |
| 1707 | 1717 | @Json(name = "Self") |
| @@ -1798,17 +1808,7 @@ data class Obj5 ( | ||
| 1798 | 1808 | val uint: Uint, |
| 1799 | 1809 | val ulong: Ulong, |
| 1800 | 1810 | val unchecked: Unchecked, |
| 1801 | - val undefined: Undefined, | |
| 1802 | - val union: Union, | |
| 1803 | - | |
| 1804 | - @Json(name = "UnmarshalJSON") | |
| 1805 | - val unmarshalJSON: UnmarshalJSON, | |
| 1806 | - | |
| 1807 | - val unowned: Unowned, | |
| 1808 | - val unsafe: Unsafe, | |
| 1809 | - | |
| 1810 | - @Json(name = "UseSerializers") | |
| 1811 | - val useSerializers: UseSerializers | |
| 1811 | + val undefined: Undefined | |
| 1812 | 1812 | ) |
| 1813 | 1813 | |
| 1814 | 1814 | data class KSerializer ( |
| @@ -1869,6 +1869,23 @@ data class TrueClass ( | ||
| 1869 | 1869 | val trueTrue: Long |
| 1870 | 1870 | ) |
| 1871 | 1871 | |
| 1872 | +data class S ( | |
| 1873 | + val s: Long | |
| 1874 | +) | |
| 1875 | + | |
| 1876 | +data class Sbyte ( | |
| 1877 | + val sbyte: Long | |
| 1878 | +) | |
| 1879 | + | |
| 1880 | +data class Sealed ( | |
| 1881 | + val sealed: Long | |
| 1882 | +) | |
| 1883 | + | |
| 1884 | +data class Sel ( | |
| 1885 | + @Json(name = "SEL") | |
| 1886 | + val sel: Long | |
| 1887 | +) | |
| 1888 | + | |
| 1872 | 1889 | data class Select ( |
| 1873 | 1890 | val select: Long |
| 1874 | 1891 | ) |
| @@ -2081,28 +2098,6 @@ data class Undefined ( | ||
| 2081 | 2098 | val undefined: Long |
| 2082 | 2099 | ) |
| 2083 | 2100 | |
| 2084 | -data class Union ( | |
| 2085 | - val union: Long | |
| 2086 | -) | |
| 2087 | - | |
| 2088 | -data class UnmarshalJSON ( | |
| 2089 | - @Json(name = "UnmarshalJSON") | |
| 2090 | - val unmarshalJSON: Long | |
| 2091 | -) | |
| 2092 | - | |
| 2093 | -data class Unowned ( | |
| 2094 | - val unowned: Long | |
| 2095 | -) | |
| 2096 | - | |
| 2097 | -data class Unsafe ( | |
| 2098 | - val unsafe: Long | |
| 2099 | -) | |
| 2100 | - | |
| 2101 | -data class UseSerializers ( | |
| 2102 | - @Json(name = "UseSerializers") | |
| 2103 | - val useSerializers: Long | |
| 2104 | -) | |
| 2105 | - | |
| 2106 | 2101 | data class Obj6 ( |
| 2107 | 2102 | val dummy: Long, |
| 2108 | 2103 | |
| @@ -2112,7 +2107,18 @@ data class Obj6 ( | ||
| 2112 | 2107 | @Json(name = "while") |
| 2113 | 2108 | val obj6While: While, |
| 2114 | 2109 | |
| 2110 | + val union: Union, | |
| 2111 | + | |
| 2112 | + @Json(name = "UnmarshalJSON") | |
| 2113 | + val unmarshalJSON: UnmarshalJSON, | |
| 2114 | + | |
| 2115 | + val unowned: Unowned, | |
| 2116 | + val unsafe: Unsafe, | |
| 2115 | 2117 | val unsigned: Unsigned, |
| 2118 | + | |
| 2119 | + @Json(name = "UseSerializers") | |
| 2120 | + val useSerializers: UseSerializers, | |
| 2121 | + | |
| 2116 | 2122 | val ushort: Ushort, |
| 2117 | 2123 | val using: Using, |
| 2118 | 2124 | |
| @@ -2157,10 +2163,32 @@ data class While ( | ||
| 2157 | 2163 | val whileWhile: Long |
| 2158 | 2164 | ) |
| 2159 | 2165 | |
| 2166 | +data class Union ( | |
| 2167 | + val union: Long | |
| 2168 | +) | |
| 2169 | + | |
| 2170 | +data class UnmarshalJSON ( | |
| 2171 | + @Json(name = "UnmarshalJSON") | |
| 2172 | + val unmarshalJSON: Long | |
| 2173 | +) | |
| 2174 | + | |
| 2175 | +data class Unowned ( | |
| 2176 | + val unowned: Long | |
| 2177 | +) | |
| 2178 | + | |
| 2179 | +data class Unsafe ( | |
| 2180 | + val unsafe: Long | |
| 2181 | +) | |
| 2182 | + | |
| 2160 | 2183 | data class Unsigned ( |
| 2161 | 2184 | val unsigned: Long |
| 2162 | 2185 | ) |
| 2163 | 2186 | |
| 2187 | +data class UseSerializers ( | |
| 2188 | + @Json(name = "UseSerializers") | |
| 2189 | + val useSerializers: Long | |
| 2190 | +) | |
| 2191 | + | |
| 2164 | 2192 | data class Ushort ( |
| 2165 | 2193 | val ushort: Long |
| 2166 | 2194 | ) |
Mkotlinxdefault / TopLevel.kt+111 −80
| @@ -1064,6 +1064,9 @@ data class Obj3 ( | ||
| 1064 | 1064 | val let: Let, |
| 1065 | 1065 | val list: ListClass, |
| 1066 | 1066 | |
| 1067 | + @SerialName("LocalDate") | |
| 1068 | + val localDate: LocalDate, | |
| 1069 | + | |
| 1067 | 1070 | @SerialName("Locale") |
| 1068 | 1071 | val locale: Locale, |
| 1069 | 1072 | |
| @@ -1087,10 +1090,6 @@ data class Obj3 ( | ||
| 1087 | 1090 | val native: Native, |
| 1088 | 1091 | val new: New, |
| 1089 | 1092 | val newtonsoft: Newtonsoft, |
| 1090 | - val nil: Nil, | |
| 1091 | - | |
| 1092 | - @SerialName("NO") | |
| 1093 | - val no: No, | |
| 1094 | 1093 | |
| 1095 | 1094 | @SerialName("if") |
| 1096 | 1095 | val obj3If: If, |
| @@ -1349,6 +1348,12 @@ data class ListClass ( | ||
| 1349 | 1348 | val list: Long |
| 1350 | 1349 | ) |
| 1351 | 1350 | |
| 1351 | +@Serializable | |
| 1352 | +data class LocalDate ( | |
| 1353 | + @SerialName("LocalDate") | |
| 1354 | + val localDate: Long | |
| 1355 | +) | |
| 1356 | + | |
| 1352 | 1357 | @Serializable |
| 1353 | 1358 | data class Locale ( |
| 1354 | 1359 | @SerialName("Locale") |
| @@ -1423,17 +1428,6 @@ data class Newtonsoft ( | ||
| 1423 | 1428 | val newtonsoft: Long |
| 1424 | 1429 | ) |
| 1425 | 1430 | |
| 1426 | -@Serializable | |
| 1427 | -data class Nil ( | |
| 1428 | - val nil: Long | |
| 1429 | -) | |
| 1430 | - | |
| 1431 | -@Serializable | |
| 1432 | -data class No ( | |
| 1433 | - @SerialName("NO") | |
| 1434 | - val no: Long | |
| 1435 | -) | |
| 1436 | - | |
| 1437 | 1431 | @Serializable |
| 1438 | 1432 | data class If ( |
| 1439 | 1433 | @SerialName("if") |
| @@ -1461,6 +1455,11 @@ data class Is ( | ||
| 1461 | 1455 | @Serializable |
| 1462 | 1456 | data class Obj4 ( |
| 1463 | 1457 | val dummy: Long, |
| 1458 | + val nil: Nil, | |
| 1459 | + | |
| 1460 | + @SerialName("NO") | |
| 1461 | + val no: No, | |
| 1462 | + | |
| 1464 | 1463 | val noSuchMethod: NoSuchMethod, |
| 1465 | 1464 | val noexcept: Noexcept, |
| 1466 | 1465 | val nonatomic: Nonatomic, |
| @@ -1512,6 +1511,13 @@ data class Obj4 ( | ||
| 1512 | 1511 | val objectMapper: ObjectMapper, |
| 1513 | 1512 | |
| 1514 | 1513 | val of: Of, |
| 1514 | + | |
| 1515 | + @SerialName("OffsetDateTime") | |
| 1516 | + val offsetDateTime: OffsetDateTimeClass, | |
| 1517 | + | |
| 1518 | + @SerialName("OffsetTime") | |
| 1519 | + val offsetTime: OffsetTime, | |
| 1520 | + | |
| 1515 | 1521 | val oneway: Oneway, |
| 1516 | 1522 | val open: Open, |
| 1517 | 1523 | val operator: Operator, |
| @@ -1561,13 +1567,18 @@ data class Obj4 ( | ||
| 1561 | 1567 | val retain: Retain, |
| 1562 | 1568 | val rethrows: Rethrows, |
| 1563 | 1569 | val right: Right, |
| 1564 | - val runtimeType: RuntimeType, | |
| 1565 | - val s: S, | |
| 1566 | - val sbyte: Sbyte, | |
| 1567 | - val sealed: Sealed, | |
| 1570 | + val runtimeType: RuntimeType | |
| 1571 | +) | |
| 1568 | 1572 | |
| 1569 | - @SerialName("SEL") | |
| 1570 | - val sel: Sel | |
| 1573 | +@Serializable | |
| 1574 | +data class Nil ( | |
| 1575 | + val nil: Long | |
| 1576 | +) | |
| 1577 | + | |
| 1578 | +@Serializable | |
| 1579 | +data class No ( | |
| 1580 | + @SerialName("NO") | |
| 1581 | + val no: Long | |
| 1571 | 1582 | ) |
| 1572 | 1583 | |
| 1573 | 1584 | @Serializable |
| @@ -1691,6 +1702,18 @@ data class Of ( | ||
| 1691 | 1702 | val of: Long |
| 1692 | 1703 | ) |
| 1693 | 1704 | |
| 1705 | +@Serializable | |
| 1706 | +data class OffsetDateTimeClass ( | |
| 1707 | + @SerialName("OffsetDateTime") | |
| 1708 | + val offsetDateTime: Long | |
| 1709 | +) | |
| 1710 | + | |
| 1711 | +@Serializable | |
| 1712 | +data class OffsetTime ( | |
| 1713 | + @SerialName("OffsetTime") | |
| 1714 | + val offsetTime: Long | |
| 1715 | +) | |
| 1716 | + | |
| 1694 | 1717 | @Serializable |
| 1695 | 1718 | data class Oneway ( |
| 1696 | 1719 | val oneway: Long |
| @@ -1885,27 +1908,6 @@ data class RuntimeType ( | ||
| 1885 | 1908 | val runtimeType: Long |
| 1886 | 1909 | ) |
| 1887 | 1910 | |
| 1888 | -@Serializable | |
| 1889 | -data class S ( | |
| 1890 | - val s: Long | |
| 1891 | -) | |
| 1892 | - | |
| 1893 | -@Serializable | |
| 1894 | -data class Sbyte ( | |
| 1895 | - val sbyte: Long | |
| 1896 | -) | |
| 1897 | - | |
| 1898 | -@Serializable | |
| 1899 | -data class Sealed ( | |
| 1900 | - val sealed: Long | |
| 1901 | -) | |
| 1902 | - | |
| 1903 | -@Serializable | |
| 1904 | -data class Sel ( | |
| 1905 | - @SerialName("SEL") | |
| 1906 | - val sel: Long | |
| 1907 | -) | |
| 1908 | - | |
| 1909 | 1911 | @Serializable |
| 1910 | 1912 | data class Obj5 ( |
| 1911 | 1913 | val dummy: Long, |
| @@ -1946,6 +1948,13 @@ data class Obj5 ( | ||
| 1946 | 1948 | @SerialName("true") |
| 1947 | 1949 | val purpleTrue: TrueClass, |
| 1948 | 1950 | |
| 1951 | + val s: S, | |
| 1952 | + val sbyte: Sbyte, | |
| 1953 | + val sealed: Sealed, | |
| 1954 | + | |
| 1955 | + @SerialName("SEL") | |
| 1956 | + val sel: Sel, | |
| 1957 | + | |
| 1949 | 1958 | val select: Select, |
| 1950 | 1959 | |
| 1951 | 1960 | @SerialName("Self") |
| @@ -2042,17 +2051,7 @@ data class Obj5 ( | ||
| 2042 | 2051 | val uint: Uint, |
| 2043 | 2052 | val ulong: Ulong, |
| 2044 | 2053 | val unchecked: Unchecked, |
| 2045 | - val undefined: Undefined, | |
| 2046 | - val union: Union, | |
| 2047 | - | |
| 2048 | - @SerialName("UnmarshalJSON") | |
| 2049 | - val unmarshalJSON: UnmarshalJSON, | |
| 2050 | - | |
| 2051 | - val unowned: Unowned, | |
| 2052 | - val unsafe: Unsafe, | |
| 2053 | - | |
| 2054 | - @SerialName("UseSerializers") | |
| 2055 | - val useSerializers: UseSerializersClass | |
| 2054 | + val undefined: Undefined | |
| 2056 | 2055 | ) |
| 2057 | 2056 | |
| 2058 | 2057 | @Serializable |
| @@ -2125,6 +2124,27 @@ data class TrueClass ( | ||
| 2125 | 2124 | val trueTrue: Long |
| 2126 | 2125 | ) |
| 2127 | 2126 | |
| 2127 | +@Serializable | |
| 2128 | +data class S ( | |
| 2129 | + val s: Long | |
| 2130 | +) | |
| 2131 | + | |
| 2132 | +@Serializable | |
| 2133 | +data class Sbyte ( | |
| 2134 | + val sbyte: Long | |
| 2135 | +) | |
| 2136 | + | |
| 2137 | +@Serializable | |
| 2138 | +data class Sealed ( | |
| 2139 | + val sealed: Long | |
| 2140 | +) | |
| 2141 | + | |
| 2142 | +@Serializable | |
| 2143 | +data class Sel ( | |
| 2144 | + @SerialName("SEL") | |
| 2145 | + val sel: Long | |
| 2146 | +) | |
| 2147 | + | |
| 2128 | 2148 | @Serializable |
| 2129 | 2149 | data class Select ( |
| 2130 | 2150 | val select: Long |
| @@ -2385,33 +2405,6 @@ data class Undefined ( | ||
| 2385 | 2405 | val undefined: Long |
| 2386 | 2406 | ) |
| 2387 | 2407 | |
| 2388 | -@Serializable | |
| 2389 | -data class Union ( | |
| 2390 | - val union: Long | |
| 2391 | -) | |
| 2392 | - | |
| 2393 | -@Serializable | |
| 2394 | -data class UnmarshalJSON ( | |
| 2395 | - @SerialName("UnmarshalJSON") | |
| 2396 | - val unmarshalJSON: Long | |
| 2397 | -) | |
| 2398 | - | |
| 2399 | -@Serializable | |
| 2400 | -data class Unowned ( | |
| 2401 | - val unowned: Long | |
| 2402 | -) | |
| 2403 | - | |
| 2404 | -@Serializable | |
| 2405 | -data class Unsafe ( | |
| 2406 | - val unsafe: Long | |
| 2407 | -) | |
| 2408 | - | |
| 2409 | -@Serializable | |
| 2410 | -data class UseSerializersClass ( | |
| 2411 | - @SerialName("UseSerializers") | |
| 2412 | - val useSerializers: Long | |
| 2413 | -) | |
| 2414 | - | |
| 2415 | 2408 | @Serializable |
| 2416 | 2409 | data class Obj6 ( |
| 2417 | 2410 | val dummy: Long, |
| @@ -2422,7 +2415,18 @@ data class Obj6 ( | ||
| 2422 | 2415 | @SerialName("while") |
| 2423 | 2416 | val obj6While: While, |
| 2424 | 2417 | |
| 2418 | + val union: Union, | |
| 2419 | + | |
| 2420 | + @SerialName("UnmarshalJSON") | |
| 2421 | + val unmarshalJSON: UnmarshalJSON, | |
| 2422 | + | |
| 2423 | + val unowned: Unowned, | |
| 2424 | + val unsafe: Unsafe, | |
| 2425 | 2425 | val unsigned: Unsigned, |
| 2426 | + | |
| 2427 | + @SerialName("UseSerializers") | |
| 2428 | + val useSerializers: UseSerializersClass, | |
| 2429 | + | |
| 2426 | 2430 | val ushort: Ushort, |
| 2427 | 2431 | val using: Using, |
| 2428 | 2432 | |
| @@ -2469,11 +2473,38 @@ data class While ( | ||
| 2469 | 2473 | val whileWhile: Long |
| 2470 | 2474 | ) |
| 2471 | 2475 | |
| 2476 | +@Serializable | |
| 2477 | +data class Union ( | |
| 2478 | + val union: Long | |
| 2479 | +) | |
| 2480 | + | |
| 2481 | +@Serializable | |
| 2482 | +data class UnmarshalJSON ( | |
| 2483 | + @SerialName("UnmarshalJSON") | |
| 2484 | + val unmarshalJSON: Long | |
| 2485 | +) | |
| 2486 | + | |
| 2487 | +@Serializable | |
| 2488 | +data class Unowned ( | |
| 2489 | + val unowned: Long | |
| 2490 | +) | |
| 2491 | + | |
| 2492 | +@Serializable | |
| 2493 | +data class Unsafe ( | |
| 2494 | + val unsafe: Long | |
| 2495 | +) | |
| 2496 | + | |
| 2472 | 2497 | @Serializable |
| 2473 | 2498 | data class Unsigned ( |
| 2474 | 2499 | val unsigned: Long |
| 2475 | 2500 | ) |
| 2476 | 2501 | |
| 2502 | +@Serializable | |
| 2503 | +data class UseSerializersClass ( | |
| 2504 | + @SerialName("UseSerializers") | |
| 2505 | + val useSerializers: Long | |
| 2506 | +) | |
| 2507 | + | |
| 2477 | 2508 | @Serializable |
| 2478 | 2509 | data class Ushort ( |
| 2479 | 2510 | val ushort: Long |
Mobjective-cdefault / QTTopLevel.h+84 −66
| @@ -181,6 +181,7 @@ | ||
| 181 | 181 | @class QTLeft; |
| 182 | 182 | @class QTLet; |
| 183 | 183 | @class QTList; |
| 184 | +@class QTLocalDate; | |
| 184 | 185 | @class QTLocale; |
| 185 | 186 | @class QTLock; |
| 186 | 187 | @class QTMap; |
| @@ -193,17 +194,16 @@ | ||
| 193 | 194 | @class QTNamespace; |
| 194 | 195 | @class QTNative; |
| 195 | 196 | @class QTNewtonsoft; |
| 196 | -@class QTNo; | |
| 197 | 197 | @class QTGoto; |
| 198 | 198 | @class QTIf; |
| 199 | 199 | @class QTInline; |
| 200 | 200 | @class QTInt; |
| 201 | 201 | @class QTLong; |
| 202 | -@class QTNil; | |
| 203 | 202 | @class QTHashCode; |
| 204 | 203 | @class QTInit; |
| 205 | 204 | @class QTNew; |
| 206 | 205 | @class QTObj4; |
| 206 | +@class QTNo; | |
| 207 | 207 | @class QTNoSuchMethod; |
| 208 | 208 | @class QTNoexcept; |
| 209 | 209 | @class QTNone; |
| @@ -217,6 +217,7 @@ | ||
| 217 | 217 | @class QTNull; |
| 218 | 218 | @class QTNullptr; |
| 219 | 219 | @class QTNumber; |
| 220 | +@class QTNil; | |
| 220 | 221 | @class QTNonatomic; |
| 221 | 222 | @class QTNoneClass; |
| 222 | 223 | @class QTNullClass; |
| @@ -228,6 +229,8 @@ | ||
| 228 | 229 | @class QTObject; |
| 229 | 230 | @class QTObjectMapper; |
| 230 | 231 | @class QTOf; |
| 232 | +@class QTOffsetDateTime; | |
| 233 | +@class QTOffsetTime; | |
| 231 | 234 | @class QTOneway; |
| 232 | 235 | @class QTOpen; |
| 233 | 236 | @class QTOperator; |
| @@ -264,10 +267,6 @@ | ||
| 264 | 267 | @class QTRethrows; |
| 265 | 268 | @class QTRight; |
| 266 | 269 | @class QTRuntimeType; |
| 267 | -@class QTS; | |
| 268 | -@class QTSbyte; | |
| 269 | -@class QTSealed; | |
| 270 | -@class QTSel; | |
| 271 | 270 | @class QTObj5; |
| 272 | 271 | @class QTKSerializer; |
| 273 | 272 | @class QTSelfClass; |
| @@ -281,8 +280,11 @@ | ||
| 281 | 280 | @class QTTypeClass; |
| 282 | 281 | @class QTTypedef; |
| 283 | 282 | @class QTTypeof; |
| 284 | -@class QTUnion; | |
| 285 | 283 | @class QTPrimitiveKind; |
| 284 | +@class QTS; | |
| 285 | +@class QTSbyte; | |
| 286 | +@class QTSealed; | |
| 287 | +@class QTSel; | |
| 286 | 288 | @class QTSelect; |
| 287 | 289 | @class QTSelf; |
| 288 | 290 | @class QTSendable; |
| @@ -330,15 +332,16 @@ | ||
| 330 | 332 | @class QTUlong; |
| 331 | 333 | @class QTUnchecked; |
| 332 | 334 | @class QTUndefined; |
| 333 | -@class QTUnmarshalJSON; | |
| 334 | -@class QTUnowned; | |
| 335 | -@class QTUnsafe; | |
| 336 | -@class QTUseSerializers; | |
| 337 | 335 | @class QTObj6; |
| 336 | +@class QTUnion; | |
| 338 | 337 | @class QTUnsigned; |
| 339 | 338 | @class QTVoid; |
| 340 | 339 | @class QTVolatile; |
| 341 | 340 | @class QTWhile; |
| 341 | +@class QTUnmarshalJSON; | |
| 342 | +@class QTUnowned; | |
| 343 | +@class QTUnsafe; | |
| 344 | +@class QTUseSerializers; | |
| 342 | 345 | @class QTUshort; |
| 343 | 346 | @class QTUsing; |
| 344 | 347 | @class QTUtf8JSONReader; |
| @@ -1084,6 +1087,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1084 | 1087 | @property (nonatomic, strong) QTLeft *left; |
| 1085 | 1088 | @property (nonatomic, strong) QTLet *let; |
| 1086 | 1089 | @property (nonatomic, strong) QTList *list; |
| 1090 | +@property (nonatomic, strong) QTLocalDate *localDate; | |
| 1087 | 1091 | @property (nonatomic, strong) QTLocale *locale; |
| 1088 | 1092 | @property (nonatomic, strong) QTLock *lock; |
| 1089 | 1093 | @property (nonatomic, strong) QTMap *map; |
| @@ -1096,13 +1100,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1096 | 1100 | @property (nonatomic, strong) QTNamespace *namespace; |
| 1097 | 1101 | @property (nonatomic, strong) QTNative *native; |
| 1098 | 1102 | @property (nonatomic, strong) QTNewtonsoft *newtonsoft; |
| 1099 | -@property (nonatomic, strong) QTNo *no; | |
| 1100 | 1103 | @property (nonatomic, strong) QTGoto *obj3Goto; |
| 1101 | 1104 | @property (nonatomic, strong) QTIf *obj3If; |
| 1102 | 1105 | @property (nonatomic, strong) QTInline *obj3Inline; |
| 1103 | 1106 | @property (nonatomic, strong) QTInt *obj3Int; |
| 1104 | 1107 | @property (nonatomic, strong) QTLong *obj3Long; |
| 1105 | -@property (nonatomic, strong) QTNil *obj3Nil; | |
| 1106 | 1108 | @property (nonatomic, strong) QTHashCode *theHashCode; |
| 1107 | 1109 | @property (nonatomic, strong) QTInit *theInit; |
| 1108 | 1110 | @property (nonatomic, strong) QTNew *theNew; |
| @@ -1280,6 +1282,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1280 | 1282 | @property (nonatomic, assign) NSInteger list; |
| 1281 | 1283 | @end |
| 1282 | 1284 | |
| 1285 | +@interface QTLocalDate : NSObject | |
| 1286 | +@property (nonatomic, assign) NSInteger localDate; | |
| 1287 | +@end | |
| 1288 | + | |
| 1283 | 1289 | @interface QTLocale : NSObject |
| 1284 | 1290 | @property (nonatomic, assign) NSInteger locale; |
| 1285 | 1291 | @end |
| @@ -1328,10 +1334,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1328 | 1334 | @property (nonatomic, assign) NSInteger newtonsoft; |
| 1329 | 1335 | @end |
| 1330 | 1336 | |
| 1331 | -@interface QTNo : NSObject | |
| 1332 | -@property (nonatomic, assign) NSInteger no; | |
| 1333 | -@end | |
| 1334 | - | |
| 1335 | 1337 | @interface QTGoto : NSObject |
| 1336 | 1338 | @property (nonatomic, assign) NSInteger gotoGoto; |
| 1337 | 1339 | @end |
| @@ -1352,10 +1354,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1352 | 1354 | @property (nonatomic, assign) NSInteger longLong; |
| 1353 | 1355 | @end |
| 1354 | 1356 | |
| 1355 | -@interface QTNil : NSObject | |
| 1356 | -@property (nonatomic, assign) NSInteger nilNil; | |
| 1357 | -@end | |
| 1358 | - | |
| 1359 | 1357 | @interface QTHashCode : NSObject |
| 1360 | 1358 | @property (nonatomic, assign) NSInteger theHashCode; |
| 1361 | 1359 | @end |
| @@ -1370,6 +1368,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1370 | 1368 | |
| 1371 | 1369 | @interface QTObj4 : NSObject |
| 1372 | 1370 | @property (nonatomic, assign) NSInteger dummy; |
| 1371 | +@property (nonatomic, strong) QTNo *no; | |
| 1373 | 1372 | @property (nonatomic, strong) QTNoSuchMethod *noSuchMethod; |
| 1374 | 1373 | @property (nonatomic, strong) QTNoexcept *noexcept; |
| 1375 | 1374 | @property (nonatomic, strong) QTNone *none; |
| @@ -1383,6 +1382,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1383 | 1382 | @property (nonatomic, strong) QTNull *null; |
| 1384 | 1383 | @property (nonatomic, strong) QTNullptr *nullptr; |
| 1385 | 1384 | @property (nonatomic, strong) QTNumber *number; |
| 1385 | +@property (nonatomic, strong) QTNil *obj4Nil; | |
| 1386 | 1386 | @property (nonatomic, strong) QTNonatomic *obj4Nonatomic; |
| 1387 | 1387 | @property (nonatomic, strong) QTNoneClass *obj4None; |
| 1388 | 1388 | @property (nonatomic, strong) QTNullClass *obj4Null; |
| @@ -1394,6 +1394,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1394 | 1394 | @property (nonatomic, strong) QTObject *object; |
| 1395 | 1395 | @property (nonatomic, strong) QTObjectMapper *objectMapper; |
| 1396 | 1396 | @property (nonatomic, strong) QTOf *of; |
| 1397 | +@property (nonatomic, strong) QTOffsetDateTime *offsetDateTime; | |
| 1398 | +@property (nonatomic, strong) QTOffsetTime *offsetTime; | |
| 1397 | 1399 | @property (nonatomic, strong) QTOneway *oneway; |
| 1398 | 1400 | @property (nonatomic, strong) QTOpen *open; |
| 1399 | 1401 | @property (nonatomic, strong) QTOperator *operator; |
| @@ -1430,10 +1432,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1430 | 1432 | @property (nonatomic, strong) QTRethrows *rethrows; |
| 1431 | 1433 | @property (nonatomic, strong) QTRight *right; |
| 1432 | 1434 | @property (nonatomic, strong) QTRuntimeType *runtimeType; |
| 1433 | -@property (nonatomic, strong) QTS *s; | |
| 1434 | -@property (nonatomic, strong) QTSbyte *sbyte; | |
| 1435 | -@property (nonatomic, strong) QTSealed *sealed; | |
| 1436 | -@property (nonatomic, strong) QTSel *sel; | |
| 1435 | +@end | |
| 1436 | + | |
| 1437 | +@interface QTNo : NSObject | |
| 1438 | +@property (nonatomic, assign) NSInteger no; | |
| 1437 | 1439 | @end |
| 1438 | 1440 | |
| 1439 | 1441 | @interface QTNoSuchMethod : NSObject |
| @@ -1488,6 +1490,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1488 | 1490 | @property (nonatomic, assign) NSInteger number; |
| 1489 | 1491 | @end |
| 1490 | 1492 | |
| 1493 | +@interface QTNil : NSObject | |
| 1494 | +@property (nonatomic, assign) NSInteger nilNil; | |
| 1495 | +@end | |
| 1496 | + | |
| 1491 | 1497 | @interface QTNonatomic : NSObject |
| 1492 | 1498 | @property (nonatomic, assign) NSInteger nonatomicNonatomic; |
| 1493 | 1499 | @end |
| @@ -1532,6 +1538,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1532 | 1538 | @property (nonatomic, assign) NSInteger of; |
| 1533 | 1539 | @end |
| 1534 | 1540 | |
| 1541 | +@interface QTOffsetDateTime : NSObject | |
| 1542 | +@property (nonatomic, assign) NSInteger offsetDateTime; | |
| 1543 | +@end | |
| 1544 | + | |
| 1545 | +@interface QTOffsetTime : NSObject | |
| 1546 | +@property (nonatomic, assign) NSInteger offsetTime; | |
| 1547 | +@end | |
| 1548 | + | |
| 1535 | 1549 | @interface QTOneway : NSObject |
| 1536 | 1550 | @property (nonatomic, assign) NSInteger oneway; |
| 1537 | 1551 | @end |
| @@ -1676,22 +1690,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1676 | 1690 | @property (nonatomic, assign) NSInteger runtimeType; |
| 1677 | 1691 | @end |
| 1678 | 1692 | |
| 1679 | -@interface QTS : NSObject | |
| 1680 | -@property (nonatomic, assign) NSInteger s; | |
| 1681 | -@end | |
| 1682 | - | |
| 1683 | -@interface QTSbyte : NSObject | |
| 1684 | -@property (nonatomic, assign) NSInteger sbyte; | |
| 1685 | -@end | |
| 1686 | - | |
| 1687 | -@interface QTSealed : NSObject | |
| 1688 | -@property (nonatomic, assign) NSInteger sealed; | |
| 1689 | -@end | |
| 1690 | - | |
| 1691 | -@interface QTSel : NSObject | |
| 1692 | -@property (nonatomic, assign) NSInteger sel; | |
| 1693 | -@end | |
| 1694 | - | |
| 1695 | 1693 | @interface QTObj5 : NSObject |
| 1696 | 1694 | @property (nonatomic, assign) NSInteger dummy; |
| 1697 | 1695 | @property (nonatomic, strong) QTKSerializer *kSerializer; |
| @@ -1706,8 +1704,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1706 | 1704 | @property (nonatomic, strong) QTTypeClass *obj5Type; |
| 1707 | 1705 | @property (nonatomic, strong) QTTypedef *obj5Typedef; |
| 1708 | 1706 | @property (nonatomic, strong) QTTypeof *obj5Typeof; |
| 1709 | -@property (nonatomic, strong) QTUnion *obj5Union; | |
| 1710 | 1707 | @property (nonatomic, strong) QTPrimitiveKind *primitiveKind; |
| 1708 | +@property (nonatomic, strong) QTS *s; | |
| 1709 | +@property (nonatomic, strong) QTSbyte *sbyte; | |
| 1710 | +@property (nonatomic, strong) QTSealed *sealed; | |
| 1711 | +@property (nonatomic, strong) QTSel *sel; | |
| 1711 | 1712 | @property (nonatomic, strong) QTSelect *select; |
| 1712 | 1713 | @property (nonatomic, strong) QTSelf *self; |
| 1713 | 1714 | @property (nonatomic, strong) QTSendable *sendable; |
| @@ -1755,10 +1756,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1755 | 1756 | @property (nonatomic, strong) QTUlong *ulong; |
| 1756 | 1757 | @property (nonatomic, strong) QTUnchecked *unchecked; |
| 1757 | 1758 | @property (nonatomic, strong) QTUndefined *undefined; |
| 1758 | -@property (nonatomic, strong) QTUnmarshalJSON *unmarshalJSON; | |
| 1759 | -@property (nonatomic, strong) QTUnowned *unowned; | |
| 1760 | -@property (nonatomic, strong) QTUnsafe *unsafe; | |
| 1761 | -@property (nonatomic, strong) QTUseSerializers *useSerializers; | |
| 1762 | 1759 | @end |
| 1763 | 1760 | |
| 1764 | 1761 | @interface QTKSerializer : NSObject |
| @@ -1809,14 +1806,26 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1809 | 1806 | @property (nonatomic, assign) NSInteger typeofTypeof; |
| 1810 | 1807 | @end |
| 1811 | 1808 | |
| 1812 | -@interface QTUnion : NSObject | |
| 1813 | -@property (nonatomic, assign) NSInteger unionUnion; | |
| 1814 | -@end | |
| 1815 | - | |
| 1816 | 1809 | @interface QTPrimitiveKind : NSObject |
| 1817 | 1810 | @property (nonatomic, assign) NSInteger primitiveKind; |
| 1818 | 1811 | @end |
| 1819 | 1812 | |
| 1813 | +@interface QTS : NSObject | |
| 1814 | +@property (nonatomic, assign) NSInteger s; | |
| 1815 | +@end | |
| 1816 | + | |
| 1817 | +@interface QTSbyte : NSObject | |
| 1818 | +@property (nonatomic, assign) NSInteger sbyte; | |
| 1819 | +@end | |
| 1820 | + | |
| 1821 | +@interface QTSealed : NSObject | |
| 1822 | +@property (nonatomic, assign) NSInteger sealed; | |
| 1823 | +@end | |
| 1824 | + | |
| 1825 | +@interface QTSel : NSObject | |
| 1826 | +@property (nonatomic, assign) NSInteger sel; | |
| 1827 | +@end | |
| 1828 | + | |
| 1820 | 1829 | @interface QTSelect : NSObject |
| 1821 | 1830 | @property (nonatomic, assign) NSInteger select; |
| 1822 | 1831 | @end |
| @@ -2005,28 +2014,17 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 2005 | 2014 | @property (nonatomic, assign) NSInteger undefined; |
| 2006 | 2015 | @end |
| 2007 | 2016 | |
| 2008 | -@interface QTUnmarshalJSON : NSObject | |
| 2009 | -@property (nonatomic, assign) NSInteger unmarshalJSON; | |
| 2010 | -@end | |
| 2011 | - | |
| 2012 | -@interface QTUnowned : NSObject | |
| 2013 | -@property (nonatomic, assign) NSInteger unowned; | |
| 2014 | -@end | |
| 2015 | - | |
| 2016 | -@interface QTUnsafe : NSObject | |
| 2017 | -@property (nonatomic, assign) NSInteger unsafe; | |
| 2018 | -@end | |
| 2019 | - | |
| 2020 | -@interface QTUseSerializers : NSObject | |
| 2021 | -@property (nonatomic, assign) NSInteger useSerializers; | |
| 2022 | -@end | |
| 2023 | - | |
| 2024 | 2017 | @interface QTObj6 : NSObject |
| 2025 | 2018 | @property (nonatomic, assign) NSInteger dummy; |
| 2019 | +@property (nonatomic, strong) QTUnion *obj6Union; | |
| 2026 | 2020 | @property (nonatomic, strong) QTUnsigned *obj6Unsigned; |
| 2027 | 2021 | @property (nonatomic, strong) QTVoid *obj6Void; |
| 2028 | 2022 | @property (nonatomic, strong) QTVolatile *obj6Volatile; |
| 2029 | 2023 | @property (nonatomic, strong) QTWhile *obj6While; |
| 2024 | +@property (nonatomic, strong) QTUnmarshalJSON *unmarshalJSON; | |
| 2025 | +@property (nonatomic, strong) QTUnowned *unowned; | |
| 2026 | +@property (nonatomic, strong) QTUnsafe *unsafe; | |
| 2027 | +@property (nonatomic, strong) QTUseSerializers *useSerializers; | |
| 2030 | 2028 | @property (nonatomic, strong) QTUshort *ushort; |
| 2031 | 2029 | @property (nonatomic, strong) QTUsing *using; |
| 2032 | 2030 | @property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader; |
| @@ -2045,6 +2043,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 2045 | 2043 | @property (nonatomic, strong) QTYield *yield; |
| 2046 | 2044 | @end |
| 2047 | 2045 | |
| 2046 | +@interface QTUnion : NSObject | |
| 2047 | +@property (nonatomic, assign) NSInteger unionUnion; | |
| 2048 | +@end | |
| 2049 | + | |
| 2048 | 2050 | @interface QTUnsigned : NSObject |
| 2049 | 2051 | @property (nonatomic, assign) NSInteger unsignedUnsigned; |
| 2050 | 2052 | @end |
| @@ -2061,6 +2063,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 2061 | 2063 | @property (nonatomic, assign) NSInteger whileWhile; |
| 2062 | 2064 | @end |
| 2063 | 2065 | |
| 2066 | +@interface QTUnmarshalJSON : NSObject | |
| 2067 | +@property (nonatomic, assign) NSInteger unmarshalJSON; | |
| 2068 | +@end | |
| 2069 | + | |
| 2070 | +@interface QTUnowned : NSObject | |
| 2071 | +@property (nonatomic, assign) NSInteger unowned; | |
| 2072 | +@end | |
| 2073 | + | |
| 2074 | +@interface QTUnsafe : NSObject | |
| 2075 | +@property (nonatomic, assign) NSInteger unsafe; | |
| 2076 | +@end | |
| 2077 | + | |
| 2078 | +@interface QTUseSerializers : NSObject | |
| 2079 | +@property (nonatomic, assign) NSInteger useSerializers; | |
| 2080 | +@end | |
| 2081 | + | |
| 2064 | 2082 | @interface QTUshort : NSObject |
| 2065 | 2083 | @property (nonatomic, assign) NSInteger ushort; |
| 2066 | 2084 | @end |
Mobjective-cdefault / QTTopLevel.m+811 −625
| @@ -883,6 +883,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 883 | 883 | - (NSDictionary *)JSONDictionary; |
| 884 | 884 | @end |
| 885 | 885 | |
| 886 | +@interface QTLocalDate (JSONConversion) | |
| 887 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 888 | +- (NSDictionary *)JSONDictionary; | |
| 889 | +@end | |
| 890 | + | |
| 886 | 891 | @interface QTLocale (JSONConversion) |
| 887 | 892 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 888 | 893 | - (NSDictionary *)JSONDictionary; |
| @@ -943,11 +948,6 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 943 | 948 | - (NSDictionary *)JSONDictionary; |
| 944 | 949 | @end |
| 945 | 950 | |
| 946 | -@interface QTNo (JSONConversion) | |
| 947 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 948 | -- (NSDictionary *)JSONDictionary; | |
| 949 | -@end | |
| 950 | - | |
| 951 | 951 | @interface QTGoto (JSONConversion) |
| 952 | 952 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 953 | 953 | - (NSDictionary *)JSONDictionary; |
| @@ -973,11 +973,6 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 973 | 973 | - (NSDictionary *)JSONDictionary; |
| 974 | 974 | @end |
| 975 | 975 | |
| 976 | -@interface QTNil (JSONConversion) | |
| 977 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 978 | -- (NSDictionary *)JSONDictionary; | |
| 979 | -@end | |
| 980 | - | |
| 981 | 976 | @interface QTHashCode (JSONConversion) |
| 982 | 977 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 983 | 978 | - (NSDictionary *)JSONDictionary; |
| @@ -998,6 +993,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 998 | 993 | - (NSDictionary *)JSONDictionary; |
| 999 | 994 | @end |
| 1000 | 995 | |
| 996 | +@interface QTNo (JSONConversion) | |
| 997 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 998 | +- (NSDictionary *)JSONDictionary; | |
| 999 | +@end | |
| 1000 | + | |
| 1001 | 1001 | @interface QTNoSuchMethod (JSONConversion) |
| 1002 | 1002 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1003 | 1003 | - (NSDictionary *)JSONDictionary; |
| @@ -1063,6 +1063,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1063 | 1063 | - (NSDictionary *)JSONDictionary; |
| 1064 | 1064 | @end |
| 1065 | 1065 | |
| 1066 | +@interface QTNil (JSONConversion) | |
| 1067 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1068 | +- (NSDictionary *)JSONDictionary; | |
| 1069 | +@end | |
| 1070 | + | |
| 1066 | 1071 | @interface QTNonatomic (JSONConversion) |
| 1067 | 1072 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1068 | 1073 | - (NSDictionary *)JSONDictionary; |
| @@ -1118,6 +1123,16 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1118 | 1123 | - (NSDictionary *)JSONDictionary; |
| 1119 | 1124 | @end |
| 1120 | 1125 | |
| 1126 | +@interface QTOffsetDateTime (JSONConversion) | |
| 1127 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1128 | +- (NSDictionary *)JSONDictionary; | |
| 1129 | +@end | |
| 1130 | + | |
| 1131 | +@interface QTOffsetTime (JSONConversion) | |
| 1132 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1133 | +- (NSDictionary *)JSONDictionary; | |
| 1134 | +@end | |
| 1135 | + | |
| 1121 | 1136 | @interface QTOneway (JSONConversion) |
| 1122 | 1137 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1123 | 1138 | - (NSDictionary *)JSONDictionary; |
| @@ -1298,26 +1313,6 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1298 | 1313 | - (NSDictionary *)JSONDictionary; |
| 1299 | 1314 | @end |
| 1300 | 1315 | |
| 1301 | -@interface QTS (JSONConversion) | |
| 1302 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1303 | -- (NSDictionary *)JSONDictionary; | |
| 1304 | -@end | |
| 1305 | - | |
| 1306 | -@interface QTSbyte (JSONConversion) | |
| 1307 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1308 | -- (NSDictionary *)JSONDictionary; | |
| 1309 | -@end | |
| 1310 | - | |
| 1311 | -@interface QTSealed (JSONConversion) | |
| 1312 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1313 | -- (NSDictionary *)JSONDictionary; | |
| 1314 | -@end | |
| 1315 | - | |
| 1316 | -@interface QTSel (JSONConversion) | |
| 1317 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1318 | -- (NSDictionary *)JSONDictionary; | |
| 1319 | -@end | |
| 1320 | - | |
| 1321 | 1316 | @interface QTObj5 (JSONConversion) |
| 1322 | 1317 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1323 | 1318 | - (NSDictionary *)JSONDictionary; |
| @@ -1383,12 +1378,27 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1383 | 1378 | - (NSDictionary *)JSONDictionary; |
| 1384 | 1379 | @end |
| 1385 | 1380 | |
| 1386 | -@interface QTUnion (JSONConversion) | |
| 1381 | +@interface QTPrimitiveKind (JSONConversion) | |
| 1387 | 1382 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1388 | 1383 | - (NSDictionary *)JSONDictionary; |
| 1389 | 1384 | @end |
| 1390 | 1385 | |
| 1391 | -@interface QTPrimitiveKind (JSONConversion) | |
| 1386 | +@interface QTS (JSONConversion) | |
| 1387 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1388 | +- (NSDictionary *)JSONDictionary; | |
| 1389 | +@end | |
| 1390 | + | |
| 1391 | +@interface QTSbyte (JSONConversion) | |
| 1392 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1393 | +- (NSDictionary *)JSONDictionary; | |
| 1394 | +@end | |
| 1395 | + | |
| 1396 | +@interface QTSealed (JSONConversion) | |
| 1397 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1398 | +- (NSDictionary *)JSONDictionary; | |
| 1399 | +@end | |
| 1400 | + | |
| 1401 | +@interface QTSel (JSONConversion) | |
| 1392 | 1402 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1393 | 1403 | - (NSDictionary *)JSONDictionary; |
| 1394 | 1404 | @end |
| @@ -1628,47 +1638,52 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1628 | 1638 | - (NSDictionary *)JSONDictionary; |
| 1629 | 1639 | @end |
| 1630 | 1640 | |
| 1631 | -@interface QTUnmarshalJSON (JSONConversion) | |
| 1641 | +@interface QTObj6 (JSONConversion) | |
| 1632 | 1642 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1633 | 1643 | - (NSDictionary *)JSONDictionary; |
| 1634 | 1644 | @end |
| 1635 | 1645 | |
| 1636 | -@interface QTUnowned (JSONConversion) | |
| 1646 | +@interface QTUnion (JSONConversion) | |
| 1637 | 1647 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1638 | 1648 | - (NSDictionary *)JSONDictionary; |
| 1639 | 1649 | @end |
| 1640 | 1650 | |
| 1641 | -@interface QTUnsafe (JSONConversion) | |
| 1651 | +@interface QTUnsigned (JSONConversion) | |
| 1642 | 1652 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1643 | 1653 | - (NSDictionary *)JSONDictionary; |
| 1644 | 1654 | @end |
| 1645 | 1655 | |
| 1646 | -@interface QTUseSerializers (JSONConversion) | |
| 1656 | +@interface QTVoid (JSONConversion) | |
| 1647 | 1657 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1648 | 1658 | - (NSDictionary *)JSONDictionary; |
| 1649 | 1659 | @end |
| 1650 | 1660 | |
| 1651 | -@interface QTObj6 (JSONConversion) | |
| 1661 | +@interface QTVolatile (JSONConversion) | |
| 1652 | 1662 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1653 | 1663 | - (NSDictionary *)JSONDictionary; |
| 1654 | 1664 | @end |
| 1655 | 1665 | |
| 1656 | -@interface QTUnsigned (JSONConversion) | |
| 1666 | +@interface QTWhile (JSONConversion) | |
| 1657 | 1667 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1658 | 1668 | - (NSDictionary *)JSONDictionary; |
| 1659 | 1669 | @end |
| 1660 | 1670 | |
| 1661 | -@interface QTVoid (JSONConversion) | |
| 1671 | +@interface QTUnmarshalJSON (JSONConversion) | |
| 1662 | 1672 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1663 | 1673 | - (NSDictionary *)JSONDictionary; |
| 1664 | 1674 | @end |
| 1665 | 1675 | |
| 1666 | -@interface QTVolatile (JSONConversion) | |
| 1676 | +@interface QTUnowned (JSONConversion) | |
| 1667 | 1677 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1668 | 1678 | - (NSDictionary *)JSONDictionary; |
| 1669 | 1679 | @end |
| 1670 | 1680 | |
| 1671 | -@interface QTWhile (JSONConversion) | |
| 1681 | +@interface QTUnsafe (JSONConversion) | |
| 1682 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1683 | +- (NSDictionary *)JSONDictionary; | |
| 1684 | +@end | |
| 1685 | + | |
| 1686 | +@interface QTUseSerializers (JSONConversion) | |
| 1672 | 1687 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1673 | 1688 | - (NSDictionary *)JSONDictionary; |
| 1674 | 1689 | @end |
| @@ -8684,6 +8699,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8684 | 8699 | @"left": @"left", |
| 8685 | 8700 | @"let": @"let", |
| 8686 | 8701 | @"list": @"list", |
| 8702 | + @"LocalDate": @"localDate", | |
| 8687 | 8703 | @"Locale": @"locale", |
| 8688 | 8704 | @"lock": @"lock", |
| 8689 | 8705 | @"map": @"map", |
| @@ -8696,13 +8712,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8696 | 8712 | @"namespace": @"namespace", |
| 8697 | 8713 | @"native": @"native", |
| 8698 | 8714 | @"newtonsoft": @"newtonsoft", |
| 8699 | - @"NO": @"no", | |
| 8700 | 8715 | @"goto": @"obj3Goto", |
| 8701 | 8716 | @"if": @"obj3If", |
| 8702 | 8717 | @"inline": @"obj3Inline", |
| 8703 | 8718 | @"int": @"obj3Int", |
| 8704 | 8719 | @"long": @"obj3Long", |
| 8705 | - @"nil": @"obj3Nil", | |
| 8706 | 8720 | @"hashCode": @"theHashCode", |
| 8707 | 8721 | @"init": @"theInit", |
| 8708 | 8722 | @"new": @"theNew", |
| @@ -8762,6 +8776,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8762 | 8776 | if (![dict[@"left"] isKindOfClass:NSDictionary.class]) return nil; |
| 8763 | 8777 | if (![dict[@"let"] isKindOfClass:NSDictionary.class]) return nil; |
| 8764 | 8778 | if (![dict[@"list"] isKindOfClass:NSDictionary.class]) return nil; |
| 8779 | + if (![dict[@"LocalDate"] isKindOfClass:NSDictionary.class]) return nil; | |
| 8765 | 8780 | if (![dict[@"Locale"] isKindOfClass:NSDictionary.class]) return nil; |
| 8766 | 8781 | if (![dict[@"lock"] isKindOfClass:NSDictionary.class]) return nil; |
| 8767 | 8782 | if (![dict[@"map"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -8774,13 +8789,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8774 | 8789 | if (![dict[@"namespace"] isKindOfClass:NSDictionary.class]) return nil; |
| 8775 | 8790 | if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil; |
| 8776 | 8791 | if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil; |
| 8777 | - if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil; | |
| 8778 | 8792 | if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil; |
| 8779 | 8793 | if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil; |
| 8780 | 8794 | if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil; |
| 8781 | 8795 | if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil; |
| 8782 | 8796 | if (![dict[@"long"] isKindOfClass:NSDictionary.class]) return nil; |
| 8783 | - if (![dict[@"nil"] isKindOfClass:NSDictionary.class]) return nil; | |
| 8784 | 8797 | if (![dict[@"hashCode"] isKindOfClass:NSDictionary.class]) return nil; |
| 8785 | 8798 | if (![dict[@"init"] isKindOfClass:NSDictionary.class]) return nil; |
| 8786 | 8799 | if (![dict[@"new"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -8871,6 +8884,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8871 | 8884 | if (!_let && dict[@"let"] && ![dict[@"let"] isKindOfClass:NSNull.class]) return nil; |
| 8872 | 8885 | _list = [QTList fromJSONDictionary:(id)_list]; |
| 8873 | 8886 | if (!_list && dict[@"list"] && ![dict[@"list"] isKindOfClass:NSNull.class]) return nil; |
| 8887 | + _localDate = [QTLocalDate fromJSONDictionary:(id)_localDate]; | |
| 8888 | + if (!_localDate && dict[@"LocalDate"] && ![dict[@"LocalDate"] isKindOfClass:NSNull.class]) return nil; | |
| 8874 | 8889 | _locale = [QTLocale fromJSONDictionary:(id)_locale]; |
| 8875 | 8890 | if (!_locale && dict[@"Locale"] && ![dict[@"Locale"] isKindOfClass:NSNull.class]) return nil; |
| 8876 | 8891 | _lock = [QTLock fromJSONDictionary:(id)_lock]; |
| @@ -8895,8 +8910,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8895 | 8910 | if (!_native && dict[@"native"] && ![dict[@"native"] isKindOfClass:NSNull.class]) return nil; |
| 8896 | 8911 | _newtonsoft = [QTNewtonsoft fromJSONDictionary:(id)_newtonsoft]; |
| 8897 | 8912 | if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil; |
| 8898 | - _no = [QTNo fromJSONDictionary:(id)_no]; | |
| 8899 | - if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil; | |
| 8900 | 8913 | _obj3Goto = [QTGoto fromJSONDictionary:(id)_obj3Goto]; |
| 8901 | 8914 | if (!_obj3Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil; |
| 8902 | 8915 | _obj3If = [QTIf fromJSONDictionary:(id)_obj3If]; |
| @@ -8907,8 +8920,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8907 | 8920 | if (!_obj3Int && dict[@"int"] && ![dict[@"int"] isKindOfClass:NSNull.class]) return nil; |
| 8908 | 8921 | _obj3Long = [QTLong fromJSONDictionary:(id)_obj3Long]; |
| 8909 | 8922 | if (!_obj3Long && dict[@"long"] && ![dict[@"long"] isKindOfClass:NSNull.class]) return nil; |
| 8910 | - _obj3Nil = [QTNil fromJSONDictionary:(id)_obj3Nil]; | |
| 8911 | - if (!_obj3Nil && dict[@"nil"] && ![dict[@"nil"] isKindOfClass:NSNull.class]) return nil; | |
| 8912 | 8923 | _theHashCode = [QTHashCode fromJSONDictionary:(id)_theHashCode]; |
| 8913 | 8924 | if (!_theHashCode && dict[@"hashCode"] && ![dict[@"hashCode"] isKindOfClass:NSNull.class]) return nil; |
| 8914 | 8925 | _theInit = [QTInit fromJSONDictionary:(id)_theInit]; |
| @@ -8987,6 +8998,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8987 | 8998 | @"left": [_left JSONDictionary], |
| 8988 | 8999 | @"let": [_let JSONDictionary], |
| 8989 | 9000 | @"list": [_list JSONDictionary], |
| 9001 | + @"LocalDate": [_localDate JSONDictionary], | |
| 8990 | 9002 | @"Locale": [_locale JSONDictionary], |
| 8991 | 9003 | @"lock": [_lock JSONDictionary], |
| 8992 | 9004 | @"map": [_map JSONDictionary], |
| @@ -8999,13 +9011,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8999 | 9011 | @"namespace": [_namespace JSONDictionary], |
| 9000 | 9012 | @"native": [_native JSONDictionary], |
| 9001 | 9013 | @"newtonsoft": [_newtonsoft JSONDictionary], |
| 9002 | - @"NO": [_no JSONDictionary], | |
| 9003 | 9014 | @"goto": [_obj3Goto JSONDictionary], |
| 9004 | 9015 | @"if": [_obj3If JSONDictionary], |
| 9005 | 9016 | @"inline": [_obj3Inline JSONDictionary], |
| 9006 | 9017 | @"int": [_obj3Int JSONDictionary], |
| 9007 | 9018 | @"long": [_obj3Long JSONDictionary], |
| 9008 | - @"nil": [_obj3Nil JSONDictionary], | |
| 9009 | 9019 | @"hashCode": [_theHashCode JSONDictionary], |
| 9010 | 9020 | @"init": [_theInit JSONDictionary], |
| 9011 | 9021 | @"new": [_theNew JSONDictionary], |
| @@ -11020,6 +11030,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11020 | 11030 | } |
| 11021 | 11031 | @end |
| 11022 | 11032 | |
| 11033 | +@implementation QTLocalDate | |
| 11034 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 11035 | +{ | |
| 11036 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 11037 | + return properties = properties ? properties : @{ | |
| 11038 | + @"LocalDate": @"localDate", | |
| 11039 | + }; | |
| 11040 | +} | |
| 11041 | + | |
| 11042 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 11043 | +{ | |
| 11044 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil; | |
| 11045 | +} | |
| 11046 | + | |
| 11047 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 11048 | +{ | |
| 11049 | + if (self = [super init]) { | |
| 11050 | + if (![dict[@"LocalDate"] isKindOfClass:NSNumber.class]) return nil; | |
| 11051 | + if ([dict[@"LocalDate"] doubleValue] != [dict[@"LocalDate"] longLongValue]) return nil; | |
| 11052 | + [self setValuesForKeysWithDictionary:dict]; | |
| 11053 | + } | |
| 11054 | + return self; | |
| 11055 | +} | |
| 11056 | + | |
| 11057 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 11058 | +{ | |
| 11059 | + id resolved = QTLocalDate.properties[key]; | |
| 11060 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 11061 | +} | |
| 11062 | + | |
| 11063 | +- (void)setNilValueForKey:(NSString *)key | |
| 11064 | +{ | |
| 11065 | + id resolved = QTLocalDate.properties[key]; | |
| 11066 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 11067 | +} | |
| 11068 | + | |
| 11069 | +- (NSDictionary *)JSONDictionary | |
| 11070 | +{ | |
| 11071 | + id dict = [[self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues] mutableCopy]; | |
| 11072 | + | |
| 11073 | + for (id jsonName in QTLocalDate.properties) { | |
| 11074 | + id propertyName = QTLocalDate.properties[jsonName]; | |
| 11075 | + if (![jsonName isEqualToString:propertyName]) { | |
| 11076 | + dict[jsonName] = dict[propertyName]; | |
| 11077 | + [dict removeObjectForKey:propertyName]; | |
| 11078 | + } | |
| 11079 | + } | |
| 11080 | + | |
| 11081 | + return dict; | |
| 11082 | +} | |
| 11083 | +@end | |
| 11084 | + | |
| 11023 | 11085 | @implementation QTLocale |
| 11024 | 11086 | + (NSDictionary<NSString *, NSString *> *)properties |
| 11025 | 11087 | { |
| @@ -11564,58 +11626,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11564 | 11626 | } |
| 11565 | 11627 | @end |
| 11566 | 11628 | |
| 11567 | -@implementation QTNo | |
| 11568 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 11569 | -{ | |
| 11570 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 11571 | - return properties = properties ? properties : @{ | |
| 11572 | - @"NO": @"no", | |
| 11573 | - }; | |
| 11574 | -} | |
| 11575 | - | |
| 11576 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 11577 | -{ | |
| 11578 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTNo alloc] initWithJSONDictionary:dict] : nil; | |
| 11579 | -} | |
| 11580 | - | |
| 11581 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 11582 | -{ | |
| 11583 | - if (self = [super init]) { | |
| 11584 | - if (![dict[@"NO"] isKindOfClass:NSNumber.class]) return nil; | |
| 11585 | - if ([dict[@"NO"] doubleValue] != [dict[@"NO"] longLongValue]) return nil; | |
| 11586 | - [self setValuesForKeysWithDictionary:dict]; | |
| 11587 | - } | |
| 11588 | - return self; | |
| 11589 | -} | |
| 11590 | - | |
| 11591 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 11592 | -{ | |
| 11593 | - id resolved = QTNo.properties[key]; | |
| 11594 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 11595 | -} | |
| 11596 | - | |
| 11597 | -- (void)setNilValueForKey:(NSString *)key | |
| 11598 | -{ | |
| 11599 | - id resolved = QTNo.properties[key]; | |
| 11600 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 11601 | -} | |
| 11602 | - | |
| 11603 | -- (NSDictionary *)JSONDictionary | |
| 11604 | -{ | |
| 11605 | - id dict = [[self dictionaryWithValuesForKeys:QTNo.properties.allValues] mutableCopy]; | |
| 11606 | - | |
| 11607 | - for (id jsonName in QTNo.properties) { | |
| 11608 | - id propertyName = QTNo.properties[jsonName]; | |
| 11609 | - if (![jsonName isEqualToString:propertyName]) { | |
| 11610 | - dict[jsonName] = dict[propertyName]; | |
| 11611 | - [dict removeObjectForKey:propertyName]; | |
| 11612 | - } | |
| 11613 | - } | |
| 11614 | - | |
| 11615 | - return dict; | |
| 11616 | -} | |
| 11617 | -@end | |
| 11618 | - | |
| 11619 | 11629 | @implementation QTGoto |
| 11620 | 11630 | + (NSDictionary<NSString *, NSString *> *)properties |
| 11621 | 11631 | { |
| @@ -11876,58 +11886,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11876 | 11886 | } |
| 11877 | 11887 | @end |
| 11878 | 11888 | |
| 11879 | -@implementation QTNil | |
| 11880 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 11881 | -{ | |
| 11882 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 11883 | - return properties = properties ? properties : @{ | |
| 11884 | - @"nil": @"nilNil", | |
| 11885 | - }; | |
| 11886 | -} | |
| 11887 | - | |
| 11888 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 11889 | -{ | |
| 11890 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTNil alloc] initWithJSONDictionary:dict] : nil; | |
| 11891 | -} | |
| 11892 | - | |
| 11893 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 11894 | -{ | |
| 11895 | - if (self = [super init]) { | |
| 11896 | - if (![dict[@"nil"] isKindOfClass:NSNumber.class]) return nil; | |
| 11897 | - if ([dict[@"nil"] doubleValue] != [dict[@"nil"] longLongValue]) return nil; | |
| 11898 | - [self setValuesForKeysWithDictionary:dict]; | |
| 11899 | - } | |
| 11900 | - return self; | |
| 11901 | -} | |
| 11902 | - | |
| 11903 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 11904 | -{ | |
| 11905 | - id resolved = QTNil.properties[key]; | |
| 11906 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 11907 | -} | |
| 11908 | - | |
| 11909 | -- (void)setNilValueForKey:(NSString *)key | |
| 11910 | -{ | |
| 11911 | - id resolved = QTNil.properties[key]; | |
| 11912 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 11913 | -} | |
| 11914 | - | |
| 11915 | -- (NSDictionary *)JSONDictionary | |
| 11916 | -{ | |
| 11917 | - id dict = [[self dictionaryWithValuesForKeys:QTNil.properties.allValues] mutableCopy]; | |
| 11918 | - | |
| 11919 | - for (id jsonName in QTNil.properties) { | |
| 11920 | - id propertyName = QTNil.properties[jsonName]; | |
| 11921 | - if (![jsonName isEqualToString:propertyName]) { | |
| 11922 | - dict[jsonName] = dict[propertyName]; | |
| 11923 | - [dict removeObjectForKey:propertyName]; | |
| 11924 | - } | |
| 11925 | - } | |
| 11926 | - | |
| 11927 | - return dict; | |
| 11928 | -} | |
| 11929 | -@end | |
| 11930 | - | |
| 11931 | 11889 | @implementation QTHashCode |
| 11932 | 11890 | + (NSDictionary<NSString *, NSString *> *)properties |
| 11933 | 11891 | { |
| @@ -12090,6 +12048,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12090 | 12048 | static NSDictionary<NSString *, NSString *> *properties; |
| 12091 | 12049 | return properties = properties ? properties : @{ |
| 12092 | 12050 | @"dummy": @"dummy", |
| 12051 | + @"NO": @"no", | |
| 12093 | 12052 | @"noSuchMethod": @"noSuchMethod", |
| 12094 | 12053 | @"noexcept": @"noexcept", |
| 12095 | 12054 | @"None": @"none", |
| @@ -12103,6 +12062,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12103 | 12062 | @"NULL": @"null", |
| 12104 | 12063 | @"nullptr": @"nullptr", |
| 12105 | 12064 | @"number": @"number", |
| 12065 | + @"nil": @"obj4Nil", | |
| 12106 | 12066 | @"nonatomic": @"obj4Nonatomic", |
| 12107 | 12067 | @"none": @"obj4None", |
| 12108 | 12068 | @"null": @"obj4Null", |
| @@ -12114,6 +12074,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12114 | 12074 | @"object": @"object", |
| 12115 | 12075 | @"ObjectMapper": @"objectMapper", |
| 12116 | 12076 | @"of": @"of", |
| 12077 | + @"OffsetDateTime": @"offsetDateTime", | |
| 12078 | + @"OffsetTime": @"offsetTime", | |
| 12117 | 12079 | @"oneway": @"oneway", |
| 12118 | 12080 | @"open": @"open", |
| 12119 | 12081 | @"operator": @"operator", |
| @@ -12150,10 +12112,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12150 | 12112 | @"rethrows": @"rethrows", |
| 12151 | 12113 | @"right": @"right", |
| 12152 | 12114 | @"runtimeType": @"runtimeType", |
| 12153 | - @"s": @"s", | |
| 12154 | - @"sbyte": @"sbyte", | |
| 12155 | - @"sealed": @"sealed", | |
| 12156 | - @"SEL": @"sel", | |
| 12157 | 12115 | }; |
| 12158 | 12116 | } |
| 12159 | 12117 | |
| @@ -12167,6 +12125,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12167 | 12125 | if (self = [super init]) { |
| 12168 | 12126 | if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil; |
| 12169 | 12127 | if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil; |
| 12128 | + if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12170 | 12129 | if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil; |
| 12171 | 12130 | if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil; |
| 12172 | 12131 | if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -12180,6 +12139,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12180 | 12139 | if (![dict[@"NULL"] isKindOfClass:NSDictionary.class]) return nil; |
| 12181 | 12140 | if (![dict[@"nullptr"] isKindOfClass:NSDictionary.class]) return nil; |
| 12182 | 12141 | if (![dict[@"number"] isKindOfClass:NSDictionary.class]) return nil; |
| 12142 | + if (![dict[@"nil"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12183 | 12143 | if (![dict[@"nonatomic"] isKindOfClass:NSDictionary.class]) return nil; |
| 12184 | 12144 | if (![dict[@"none"] isKindOfClass:NSDictionary.class]) return nil; |
| 12185 | 12145 | if (![dict[@"null"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -12191,6 +12151,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12191 | 12151 | if (![dict[@"object"] isKindOfClass:NSDictionary.class]) return nil; |
| 12192 | 12152 | if (![dict[@"ObjectMapper"] isKindOfClass:NSDictionary.class]) return nil; |
| 12193 | 12153 | if (![dict[@"of"] isKindOfClass:NSDictionary.class]) return nil; |
| 12154 | + if (![dict[@"OffsetDateTime"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12155 | + if (![dict[@"OffsetTime"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12194 | 12156 | if (![dict[@"oneway"] isKindOfClass:NSDictionary.class]) return nil; |
| 12195 | 12157 | if (![dict[@"open"] isKindOfClass:NSDictionary.class]) return nil; |
| 12196 | 12158 | if (![dict[@"operator"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -12227,11 +12189,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12227 | 12189 | if (![dict[@"rethrows"] isKindOfClass:NSDictionary.class]) return nil; |
| 12228 | 12190 | if (![dict[@"right"] isKindOfClass:NSDictionary.class]) return nil; |
| 12229 | 12191 | if (![dict[@"runtimeType"] isKindOfClass:NSDictionary.class]) return nil; |
| 12230 | - if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12231 | - if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12232 | - if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12233 | - if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12234 | 12192 | [self setValuesForKeysWithDictionary:dict]; |
| 12193 | + _no = [QTNo fromJSONDictionary:(id)_no]; | |
| 12194 | + if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil; | |
| 12235 | 12195 | _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod]; |
| 12236 | 12196 | if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil; |
| 12237 | 12197 | _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept]; |
| @@ -12258,6 +12218,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12258 | 12218 | if (!_nullptr && dict[@"nullptr"] && ![dict[@"nullptr"] isKindOfClass:NSNull.class]) return nil; |
| 12259 | 12219 | _number = [QTNumber fromJSONDictionary:(id)_number]; |
| 12260 | 12220 | if (!_number && dict[@"number"] && ![dict[@"number"] isKindOfClass:NSNull.class]) return nil; |
| 12221 | + _obj4Nil = [QTNil fromJSONDictionary:(id)_obj4Nil]; | |
| 12222 | + if (!_obj4Nil && dict[@"nil"] && ![dict[@"nil"] isKindOfClass:NSNull.class]) return nil; | |
| 12261 | 12223 | _obj4Nonatomic = [QTNonatomic fromJSONDictionary:(id)_obj4Nonatomic]; |
| 12262 | 12224 | if (!_obj4Nonatomic && dict[@"nonatomic"] && ![dict[@"nonatomic"] isKindOfClass:NSNull.class]) return nil; |
| 12263 | 12225 | _obj4None = [QTNoneClass fromJSONDictionary:(id)_obj4None]; |
| @@ -12280,6 +12242,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12280 | 12242 | if (!_objectMapper && dict[@"ObjectMapper"] && ![dict[@"ObjectMapper"] isKindOfClass:NSNull.class]) return nil; |
| 12281 | 12243 | _of = [QTOf fromJSONDictionary:(id)_of]; |
| 12282 | 12244 | if (!_of && dict[@"of"] && ![dict[@"of"] isKindOfClass:NSNull.class]) return nil; |
| 12245 | + _offsetDateTime = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTime]; | |
| 12246 | + if (!_offsetDateTime && dict[@"OffsetDateTime"] && ![dict[@"OffsetDateTime"] isKindOfClass:NSNull.class]) return nil; | |
| 12247 | + _offsetTime = [QTOffsetTime fromJSONDictionary:(id)_offsetTime]; | |
| 12248 | + if (!_offsetTime && dict[@"OffsetTime"] && ![dict[@"OffsetTime"] isKindOfClass:NSNull.class]) return nil; | |
| 12283 | 12249 | _oneway = [QTOneway fromJSONDictionary:(id)_oneway]; |
| 12284 | 12250 | if (!_oneway && dict[@"oneway"] && ![dict[@"oneway"] isKindOfClass:NSNull.class]) return nil; |
| 12285 | 12251 | _open = [QTOpen fromJSONDictionary:(id)_open]; |
| @@ -12352,14 +12318,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12352 | 12318 | if (!_right && dict[@"right"] && ![dict[@"right"] isKindOfClass:NSNull.class]) return nil; |
| 12353 | 12319 | _runtimeType = [QTRuntimeType fromJSONDictionary:(id)_runtimeType]; |
| 12354 | 12320 | if (!_runtimeType && dict[@"runtimeType"] && ![dict[@"runtimeType"] isKindOfClass:NSNull.class]) return nil; |
| 12355 | - _s = [QTS fromJSONDictionary:(id)_s]; | |
| 12356 | - if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil; | |
| 12357 | - _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte]; | |
| 12358 | - if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil; | |
| 12359 | - _sealed = [QTSealed fromJSONDictionary:(id)_sealed]; | |
| 12360 | - if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil; | |
| 12361 | - _sel = [QTSel fromJSONDictionary:(id)_sel]; | |
| 12362 | - if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil; | |
| 12363 | 12321 | } |
| 12364 | 12322 | return self; |
| 12365 | 12323 | } |
| @@ -12389,6 +12347,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12389 | 12347 | } |
| 12390 | 12348 | |
| 12391 | 12349 | [dict addEntriesFromDictionary:@{ |
| 12350 | + @"NO": [_no JSONDictionary], | |
| 12392 | 12351 | @"noSuchMethod": [_noSuchMethod JSONDictionary], |
| 12393 | 12352 | @"noexcept": [_noexcept JSONDictionary], |
| 12394 | 12353 | @"None": [_none JSONDictionary], |
| @@ -12402,6 +12361,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12402 | 12361 | @"NULL": [_null JSONDictionary], |
| 12403 | 12362 | @"nullptr": [_nullptr JSONDictionary], |
| 12404 | 12363 | @"number": [_number JSONDictionary], |
| 12364 | + @"nil": [_obj4Nil JSONDictionary], | |
| 12405 | 12365 | @"nonatomic": [_obj4Nonatomic JSONDictionary], |
| 12406 | 12366 | @"none": [_obj4None JSONDictionary], |
| 12407 | 12367 | @"null": [_obj4Null JSONDictionary], |
| @@ -12413,6 +12373,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12413 | 12373 | @"object": [_object JSONDictionary], |
| 12414 | 12374 | @"ObjectMapper": [_objectMapper JSONDictionary], |
| 12415 | 12375 | @"of": [_of JSONDictionary], |
| 12376 | + @"OffsetDateTime": [_offsetDateTime JSONDictionary], | |
| 12377 | + @"OffsetTime": [_offsetTime JSONDictionary], | |
| 12416 | 12378 | @"oneway": [_oneway JSONDictionary], |
| 12417 | 12379 | @"open": [_open JSONDictionary], |
| 12418 | 12380 | @"operator": [_operator JSONDictionary], |
| @@ -12449,16 +12411,64 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12449 | 12411 | @"rethrows": [_rethrows JSONDictionary], |
| 12450 | 12412 | @"right": [_right JSONDictionary], |
| 12451 | 12413 | @"runtimeType": [_runtimeType JSONDictionary], |
| 12452 | - @"s": [_s JSONDictionary], | |
| 12453 | - @"sbyte": [_sbyte JSONDictionary], | |
| 12454 | - @"sealed": [_sealed JSONDictionary], | |
| 12455 | - @"SEL": [_sel JSONDictionary], | |
| 12456 | 12414 | }]; |
| 12457 | 12415 | |
| 12458 | 12416 | return dict; |
| 12459 | 12417 | } |
| 12460 | 12418 | @end |
| 12461 | 12419 | |
| 12420 | +@implementation QTNo | |
| 12421 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 12422 | +{ | |
| 12423 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 12424 | + return properties = properties ? properties : @{ | |
| 12425 | + @"NO": @"no", | |
| 12426 | + }; | |
| 12427 | +} | |
| 12428 | + | |
| 12429 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 12430 | +{ | |
| 12431 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTNo alloc] initWithJSONDictionary:dict] : nil; | |
| 12432 | +} | |
| 12433 | + | |
| 12434 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 12435 | +{ | |
| 12436 | + if (self = [super init]) { | |
| 12437 | + if (![dict[@"NO"] isKindOfClass:NSNumber.class]) return nil; | |
| 12438 | + if ([dict[@"NO"] doubleValue] != [dict[@"NO"] longLongValue]) return nil; | |
| 12439 | + [self setValuesForKeysWithDictionary:dict]; | |
| 12440 | + } | |
| 12441 | + return self; | |
| 12442 | +} | |
| 12443 | + | |
| 12444 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 12445 | +{ | |
| 12446 | + id resolved = QTNo.properties[key]; | |
| 12447 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 12448 | +} | |
| 12449 | + | |
| 12450 | +- (void)setNilValueForKey:(NSString *)key | |
| 12451 | +{ | |
| 12452 | + id resolved = QTNo.properties[key]; | |
| 12453 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 12454 | +} | |
| 12455 | + | |
| 12456 | +- (NSDictionary *)JSONDictionary | |
| 12457 | +{ | |
| 12458 | + id dict = [[self dictionaryWithValuesForKeys:QTNo.properties.allValues] mutableCopy]; | |
| 12459 | + | |
| 12460 | + for (id jsonName in QTNo.properties) { | |
| 12461 | + id propertyName = QTNo.properties[jsonName]; | |
| 12462 | + if (![jsonName isEqualToString:propertyName]) { | |
| 12463 | + dict[jsonName] = dict[propertyName]; | |
| 12464 | + [dict removeObjectForKey:propertyName]; | |
| 12465 | + } | |
| 12466 | + } | |
| 12467 | + | |
| 12468 | + return dict; | |
| 12469 | +} | |
| 12470 | +@end | |
| 12471 | + | |
| 12462 | 12472 | @implementation QTNoSuchMethod |
| 12463 | 12473 | + (NSDictionary<NSString *, NSString *> *)properties |
| 12464 | 12474 | { |
| @@ -13065,6 +13075,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 13065 | 13075 | } |
| 13066 | 13076 | @end |
| 13067 | 13077 | |
| 13078 | +@implementation QTNil | |
| 13079 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 13080 | +{ | |
| 13081 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 13082 | + return properties = properties ? properties : @{ | |
| 13083 | + @"nil": @"nilNil", | |
| 13084 | + }; | |
| 13085 | +} | |
| 13086 | + | |
| 13087 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 13088 | +{ | |
| 13089 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTNil alloc] initWithJSONDictionary:dict] : nil; | |
| 13090 | +} | |
| 13091 | + | |
| 13092 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 13093 | +{ | |
| 13094 | + if (self = [super init]) { | |
| 13095 | + if (![dict[@"nil"] isKindOfClass:NSNumber.class]) return nil; | |
| 13096 | + if ([dict[@"nil"] doubleValue] != [dict[@"nil"] longLongValue]) return nil; | |
| 13097 | + [self setValuesForKeysWithDictionary:dict]; | |
| 13098 | + } | |
| 13099 | + return self; | |
| 13100 | +} | |
| 13101 | + | |
| 13102 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 13103 | +{ | |
| 13104 | + id resolved = QTNil.properties[key]; | |
| 13105 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 13106 | +} | |
| 13107 | + | |
| 13108 | +- (void)setNilValueForKey:(NSString *)key | |
| 13109 | +{ | |
| 13110 | + id resolved = QTNil.properties[key]; | |
| 13111 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 13112 | +} | |
| 13113 | + | |
| 13114 | +- (NSDictionary *)JSONDictionary | |
| 13115 | +{ | |
| 13116 | + id dict = [[self dictionaryWithValuesForKeys:QTNil.properties.allValues] mutableCopy]; | |
| 13117 | + | |
| 13118 | + for (id jsonName in QTNil.properties) { | |
| 13119 | + id propertyName = QTNil.properties[jsonName]; | |
| 13120 | + if (![jsonName isEqualToString:propertyName]) { | |
| 13121 | + dict[jsonName] = dict[propertyName]; | |
| 13122 | + [dict removeObjectForKey:propertyName]; | |
| 13123 | + } | |
| 13124 | + } | |
| 13125 | + | |
| 13126 | + return dict; | |
| 13127 | +} | |
| 13128 | +@end | |
| 13129 | + | |
| 13068 | 13130 | @implementation QTNonatomic |
| 13069 | 13131 | + (NSDictionary<NSString *, NSString *> *)properties |
| 13070 | 13132 | { |
| @@ -13587,6 +13649,110 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 13587 | 13649 | } |
| 13588 | 13650 | @end |
| 13589 | 13651 | |
| 13652 | +@implementation QTOffsetDateTime | |
| 13653 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 13654 | +{ | |
| 13655 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 13656 | + return properties = properties ? properties : @{ | |
| 13657 | + @"OffsetDateTime": @"offsetDateTime", | |
| 13658 | + }; | |
| 13659 | +} | |
| 13660 | + | |
| 13661 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 13662 | +{ | |
| 13663 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil; | |
| 13664 | +} | |
| 13665 | + | |
| 13666 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 13667 | +{ | |
| 13668 | + if (self = [super init]) { | |
| 13669 | + if (![dict[@"OffsetDateTime"] isKindOfClass:NSNumber.class]) return nil; | |
| 13670 | + if ([dict[@"OffsetDateTime"] doubleValue] != [dict[@"OffsetDateTime"] longLongValue]) return nil; | |
| 13671 | + [self setValuesForKeysWithDictionary:dict]; | |
| 13672 | + } | |
| 13673 | + return self; | |
| 13674 | +} | |
| 13675 | + | |
| 13676 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 13677 | +{ | |
| 13678 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 13679 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 13680 | +} | |
| 13681 | + | |
| 13682 | +- (void)setNilValueForKey:(NSString *)key | |
| 13683 | +{ | |
| 13684 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 13685 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 13686 | +} | |
| 13687 | + | |
| 13688 | +- (NSDictionary *)JSONDictionary | |
| 13689 | +{ | |
| 13690 | + id dict = [[self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues] mutableCopy]; | |
| 13691 | + | |
| 13692 | + for (id jsonName in QTOffsetDateTime.properties) { | |
| 13693 | + id propertyName = QTOffsetDateTime.properties[jsonName]; | |
| 13694 | + if (![jsonName isEqualToString:propertyName]) { | |
| 13695 | + dict[jsonName] = dict[propertyName]; | |
| 13696 | + [dict removeObjectForKey:propertyName]; | |
| 13697 | + } | |
| 13698 | + } | |
| 13699 | + | |
| 13700 | + return dict; | |
| 13701 | +} | |
| 13702 | +@end | |
| 13703 | + | |
| 13704 | +@implementation QTOffsetTime | |
| 13705 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 13706 | +{ | |
| 13707 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 13708 | + return properties = properties ? properties : @{ | |
| 13709 | + @"OffsetTime": @"offsetTime", | |
| 13710 | + }; | |
| 13711 | +} | |
| 13712 | + | |
| 13713 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 13714 | +{ | |
| 13715 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil; | |
| 13716 | +} | |
| 13717 | + | |
| 13718 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 13719 | +{ | |
| 13720 | + if (self = [super init]) { | |
| 13721 | + if (![dict[@"OffsetTime"] isKindOfClass:NSNumber.class]) return nil; | |
| 13722 | + if ([dict[@"OffsetTime"] doubleValue] != [dict[@"OffsetTime"] longLongValue]) return nil; | |
| 13723 | + [self setValuesForKeysWithDictionary:dict]; | |
| 13724 | + } | |
| 13725 | + return self; | |
| 13726 | +} | |
| 13727 | + | |
| 13728 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 13729 | +{ | |
| 13730 | + id resolved = QTOffsetTime.properties[key]; | |
| 13731 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 13732 | +} | |
| 13733 | + | |
| 13734 | +- (void)setNilValueForKey:(NSString *)key | |
| 13735 | +{ | |
| 13736 | + id resolved = QTOffsetTime.properties[key]; | |
| 13737 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 13738 | +} | |
| 13739 | + | |
| 13740 | +- (NSDictionary *)JSONDictionary | |
| 13741 | +{ | |
| 13742 | + id dict = [[self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues] mutableCopy]; | |
| 13743 | + | |
| 13744 | + for (id jsonName in QTOffsetTime.properties) { | |
| 13745 | + id propertyName = QTOffsetTime.properties[jsonName]; | |
| 13746 | + if (![jsonName isEqualToString:propertyName]) { | |
| 13747 | + dict[jsonName] = dict[propertyName]; | |
| 13748 | + [dict removeObjectForKey:propertyName]; | |
| 13749 | + } | |
| 13750 | + } | |
| 13751 | + | |
| 13752 | + return dict; | |
| 13753 | +} | |
| 13754 | +@end | |
| 13755 | + | |
| 13590 | 13756 | @implementation QTOneway |
| 13591 | 13757 | + (NSDictionary<NSString *, NSString *> *)properties |
| 13592 | 13758 | { |
| @@ -15139,204 +15305,29 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15139 | 15305 | } |
| 15140 | 15306 | @end |
| 15141 | 15307 | |
| 15142 | -@implementation QTS | |
| 15308 | +@implementation QTObj5 | |
| 15143 | 15309 | + (NSDictionary<NSString *, NSString *> *)properties |
| 15144 | 15310 | { |
| 15145 | 15311 | static NSDictionary<NSString *, NSString *> *properties; |
| 15146 | 15312 | return properties = properties ? properties : @{ |
| 15313 | + @"dummy": @"dummy", | |
| 15314 | + @"KSerializer": @"kSerializer", | |
| 15315 | + @"self": @"obj5Self", | |
| 15316 | + @"short": @"obj5Short", | |
| 15317 | + @"signed": @"obj5Signed", | |
| 15318 | + @"sizeof": @"obj5Sizeof", | |
| 15319 | + @"static": @"obj5Static", | |
| 15320 | + @"struct": @"obj5Struct", | |
| 15321 | + @"switch": @"obj5Switch", | |
| 15322 | + @"True": @"obj5True", | |
| 15323 | + @"type": @"obj5Type", | |
| 15324 | + @"typedef": @"obj5Typedef", | |
| 15325 | + @"typeof": @"obj5Typeof", | |
| 15326 | + @"PrimitiveKind": @"primitiveKind", | |
| 15147 | 15327 | @"s": @"s", |
| 15148 | - }; | |
| 15149 | -} | |
| 15150 | - | |
| 15151 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15152 | -{ | |
| 15153 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTS alloc] initWithJSONDictionary:dict] : nil; | |
| 15154 | -} | |
| 15155 | - | |
| 15156 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15157 | -{ | |
| 15158 | - if (self = [super init]) { | |
| 15159 | - if (![dict[@"s"] isKindOfClass:NSNumber.class]) return nil; | |
| 15160 | - if ([dict[@"s"] doubleValue] != [dict[@"s"] longLongValue]) return nil; | |
| 15161 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15162 | - } | |
| 15163 | - return self; | |
| 15164 | -} | |
| 15165 | - | |
| 15166 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15167 | -{ | |
| 15168 | - id resolved = QTS.properties[key]; | |
| 15169 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15170 | -} | |
| 15171 | - | |
| 15172 | -- (void)setNilValueForKey:(NSString *)key | |
| 15173 | -{ | |
| 15174 | - id resolved = QTS.properties[key]; | |
| 15175 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15176 | -} | |
| 15177 | - | |
| 15178 | -- (NSDictionary *)JSONDictionary | |
| 15179 | -{ | |
| 15180 | - return [self dictionaryWithValuesForKeys:QTS.properties.allValues]; | |
| 15181 | -} | |
| 15182 | -@end | |
| 15183 | - | |
| 15184 | -@implementation QTSbyte | |
| 15185 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15186 | -{ | |
| 15187 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15188 | - return properties = properties ? properties : @{ | |
| 15189 | 15328 | @"sbyte": @"sbyte", |
| 15190 | - }; | |
| 15191 | -} | |
| 15192 | - | |
| 15193 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15194 | -{ | |
| 15195 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSbyte alloc] initWithJSONDictionary:dict] : nil; | |
| 15196 | -} | |
| 15197 | - | |
| 15198 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15199 | -{ | |
| 15200 | - if (self = [super init]) { | |
| 15201 | - if (![dict[@"sbyte"] isKindOfClass:NSNumber.class]) return nil; | |
| 15202 | - if ([dict[@"sbyte"] doubleValue] != [dict[@"sbyte"] longLongValue]) return nil; | |
| 15203 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15204 | - } | |
| 15205 | - return self; | |
| 15206 | -} | |
| 15207 | - | |
| 15208 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15209 | -{ | |
| 15210 | - id resolved = QTSbyte.properties[key]; | |
| 15211 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15212 | -} | |
| 15213 | - | |
| 15214 | -- (void)setNilValueForKey:(NSString *)key | |
| 15215 | -{ | |
| 15216 | - id resolved = QTSbyte.properties[key]; | |
| 15217 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15218 | -} | |
| 15219 | - | |
| 15220 | -- (NSDictionary *)JSONDictionary | |
| 15221 | -{ | |
| 15222 | - return [self dictionaryWithValuesForKeys:QTSbyte.properties.allValues]; | |
| 15223 | -} | |
| 15224 | -@end | |
| 15225 | - | |
| 15226 | -@implementation QTSealed | |
| 15227 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15228 | -{ | |
| 15229 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15230 | - return properties = properties ? properties : @{ | |
| 15231 | 15329 | @"sealed": @"sealed", |
| 15232 | - }; | |
| 15233 | -} | |
| 15234 | - | |
| 15235 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15236 | -{ | |
| 15237 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil; | |
| 15238 | -} | |
| 15239 | - | |
| 15240 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15241 | -{ | |
| 15242 | - if (self = [super init]) { | |
| 15243 | - if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil; | |
| 15244 | - if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil; | |
| 15245 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15246 | - } | |
| 15247 | - return self; | |
| 15248 | -} | |
| 15249 | - | |
| 15250 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15251 | -{ | |
| 15252 | - id resolved = QTSealed.properties[key]; | |
| 15253 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15254 | -} | |
| 15255 | - | |
| 15256 | -- (void)setNilValueForKey:(NSString *)key | |
| 15257 | -{ | |
| 15258 | - id resolved = QTSealed.properties[key]; | |
| 15259 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15260 | -} | |
| 15261 | - | |
| 15262 | -- (NSDictionary *)JSONDictionary | |
| 15263 | -{ | |
| 15264 | - return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues]; | |
| 15265 | -} | |
| 15266 | -@end | |
| 15267 | - | |
| 15268 | -@implementation QTSel | |
| 15269 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15270 | -{ | |
| 15271 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15272 | - return properties = properties ? properties : @{ | |
| 15273 | 15330 | @"SEL": @"sel", |
| 15274 | - }; | |
| 15275 | -} | |
| 15276 | - | |
| 15277 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15278 | -{ | |
| 15279 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil; | |
| 15280 | -} | |
| 15281 | - | |
| 15282 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15283 | -{ | |
| 15284 | - if (self = [super init]) { | |
| 15285 | - if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil; | |
| 15286 | - if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil; | |
| 15287 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15288 | - } | |
| 15289 | - return self; | |
| 15290 | -} | |
| 15291 | - | |
| 15292 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15293 | -{ | |
| 15294 | - id resolved = QTSel.properties[key]; | |
| 15295 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15296 | -} | |
| 15297 | - | |
| 15298 | -- (void)setNilValueForKey:(NSString *)key | |
| 15299 | -{ | |
| 15300 | - id resolved = QTSel.properties[key]; | |
| 15301 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15302 | -} | |
| 15303 | - | |
| 15304 | -- (NSDictionary *)JSONDictionary | |
| 15305 | -{ | |
| 15306 | - id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy]; | |
| 15307 | - | |
| 15308 | - for (id jsonName in QTSel.properties) { | |
| 15309 | - id propertyName = QTSel.properties[jsonName]; | |
| 15310 | - if (![jsonName isEqualToString:propertyName]) { | |
| 15311 | - dict[jsonName] = dict[propertyName]; | |
| 15312 | - [dict removeObjectForKey:propertyName]; | |
| 15313 | - } | |
| 15314 | - } | |
| 15315 | - | |
| 15316 | - return dict; | |
| 15317 | -} | |
| 15318 | -@end | |
| 15319 | - | |
| 15320 | -@implementation QTObj5 | |
| 15321 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15322 | -{ | |
| 15323 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15324 | - return properties = properties ? properties : @{ | |
| 15325 | - @"dummy": @"dummy", | |
| 15326 | - @"KSerializer": @"kSerializer", | |
| 15327 | - @"self": @"obj5Self", | |
| 15328 | - @"short": @"obj5Short", | |
| 15329 | - @"signed": @"obj5Signed", | |
| 15330 | - @"sizeof": @"obj5Sizeof", | |
| 15331 | - @"static": @"obj5Static", | |
| 15332 | - @"struct": @"obj5Struct", | |
| 15333 | - @"switch": @"obj5Switch", | |
| 15334 | - @"True": @"obj5True", | |
| 15335 | - @"type": @"obj5Type", | |
| 15336 | - @"typedef": @"obj5Typedef", | |
| 15337 | - @"typeof": @"obj5Typeof", | |
| 15338 | - @"union": @"obj5Union", | |
| 15339 | - @"PrimitiveKind": @"primitiveKind", | |
| 15340 | 15331 | @"select": @"select", |
| 15341 | 15332 | @"Self": @"self", |
| 15342 | 15333 | @"Sendable": @"sendable", |
| @@ -15384,10 +15375,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15384 | 15375 | @"ulong": @"ulong", |
| 15385 | 15376 | @"unchecked": @"unchecked", |
| 15386 | 15377 | @"undefined": @"undefined", |
| 15387 | - @"UnmarshalJSON": @"unmarshalJSON", | |
| 15388 | - @"unowned": @"unowned", | |
| 15389 | - @"unsafe": @"unsafe", | |
| 15390 | - @"UseSerializers": @"useSerializers", | |
| 15391 | 15378 | }; |
| 15392 | 15379 | } |
| 15393 | 15380 | |
| @@ -15413,8 +15400,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15413 | 15400 | if (![dict[@"type"] isKindOfClass:NSDictionary.class]) return nil; |
| 15414 | 15401 | if (![dict[@"typedef"] isKindOfClass:NSDictionary.class]) return nil; |
| 15415 | 15402 | if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil; |
| 15416 | - if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15417 | 15403 | if (![dict[@"PrimitiveKind"] isKindOfClass:NSDictionary.class]) return nil; |
| 15404 | + if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15405 | + if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15406 | + if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15407 | + if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15418 | 15408 | if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil; |
| 15419 | 15409 | if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil; |
| 15420 | 15410 | if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -15462,10 +15452,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15462 | 15452 | if (![dict[@"ulong"] isKindOfClass:NSDictionary.class]) return nil; |
| 15463 | 15453 | if (![dict[@"unchecked"] isKindOfClass:NSDictionary.class]) return nil; |
| 15464 | 15454 | if (![dict[@"undefined"] isKindOfClass:NSDictionary.class]) return nil; |
| 15465 | - if (![dict[@"UnmarshalJSON"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15466 | - if (![dict[@"unowned"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15467 | - if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15468 | - if (![dict[@"UseSerializers"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15469 | 15455 | [self setValuesForKeysWithDictionary:dict]; |
| 15470 | 15456 | _kSerializer = [QTKSerializer fromJSONDictionary:(id)_kSerializer]; |
| 15471 | 15457 | if (!_kSerializer && dict[@"KSerializer"] && ![dict[@"KSerializer"] isKindOfClass:NSNull.class]) return nil; |
| @@ -15491,10 +15477,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15491 | 15477 | if (!_obj5Typedef && dict[@"typedef"] && ![dict[@"typedef"] isKindOfClass:NSNull.class]) return nil; |
| 15492 | 15478 | _obj5Typeof = [QTTypeof fromJSONDictionary:(id)_obj5Typeof]; |
| 15493 | 15479 | if (!_obj5Typeof && dict[@"typeof"] && ![dict[@"typeof"] isKindOfClass:NSNull.class]) return nil; |
| 15494 | - _obj5Union = [QTUnion fromJSONDictionary:(id)_obj5Union]; | |
| 15495 | - if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil; | |
| 15496 | 15480 | _primitiveKind = [QTPrimitiveKind fromJSONDictionary:(id)_primitiveKind]; |
| 15497 | 15481 | if (!_primitiveKind && dict[@"PrimitiveKind"] && ![dict[@"PrimitiveKind"] isKindOfClass:NSNull.class]) return nil; |
| 15482 | + _s = [QTS fromJSONDictionary:(id)_s]; | |
| 15483 | + if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil; | |
| 15484 | + _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte]; | |
| 15485 | + if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil; | |
| 15486 | + _sealed = [QTSealed fromJSONDictionary:(id)_sealed]; | |
| 15487 | + if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil; | |
| 15488 | + _sel = [QTSel fromJSONDictionary:(id)_sel]; | |
| 15489 | + if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil; | |
| 15498 | 15490 | _select = [QTSelect fromJSONDictionary:(id)_select]; |
| 15499 | 15491 | if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil; |
| 15500 | 15492 | _self = [QTSelf fromJSONDictionary:(id)_self]; |
| @@ -15589,14 +15581,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15589 | 15581 | if (!_unchecked && dict[@"unchecked"] && ![dict[@"unchecked"] isKindOfClass:NSNull.class]) return nil; |
| 15590 | 15582 | _undefined = [QTUndefined fromJSONDictionary:(id)_undefined]; |
| 15591 | 15583 | if (!_undefined && dict[@"undefined"] && ![dict[@"undefined"] isKindOfClass:NSNull.class]) return nil; |
| 15592 | - _unmarshalJSON = [QTUnmarshalJSON fromJSONDictionary:(id)_unmarshalJSON]; | |
| 15593 | - if (!_unmarshalJSON && dict[@"UnmarshalJSON"] && ![dict[@"UnmarshalJSON"] isKindOfClass:NSNull.class]) return nil; | |
| 15594 | - _unowned = [QTUnowned fromJSONDictionary:(id)_unowned]; | |
| 15595 | - if (!_unowned && dict[@"unowned"] && ![dict[@"unowned"] isKindOfClass:NSNull.class]) return nil; | |
| 15596 | - _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe]; | |
| 15597 | - if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil; | |
| 15598 | - _useSerializers = [QTUseSerializers fromJSONDictionary:(id)_useSerializers]; | |
| 15599 | - if (!_useSerializers && dict[@"UseSerializers"] && ![dict[@"UseSerializers"] isKindOfClass:NSNull.class]) return nil; | |
| 15600 | 15584 | } |
| 15601 | 15585 | return self; |
| 15602 | 15586 | } |
| @@ -15638,8 +15622,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15638 | 15622 | @"type": [_obj5Type JSONDictionary], |
| 15639 | 15623 | @"typedef": [_obj5Typedef JSONDictionary], |
| 15640 | 15624 | @"typeof": [_obj5Typeof JSONDictionary], |
| 15641 | - @"union": [_obj5Union JSONDictionary], | |
| 15642 | 15625 | @"PrimitiveKind": [_primitiveKind JSONDictionary], |
| 15626 | + @"s": [_s JSONDictionary], | |
| 15627 | + @"sbyte": [_sbyte JSONDictionary], | |
| 15628 | + @"sealed": [_sealed JSONDictionary], | |
| 15629 | + @"SEL": [_sel JSONDictionary], | |
| 15643 | 15630 | @"select": [_select JSONDictionary], |
| 15644 | 15631 | @"Self": [_self JSONDictionary], |
| 15645 | 15632 | @"Sendable": [_sendable JSONDictionary], |
| @@ -15687,10 +15674,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15687 | 15674 | @"ulong": [_ulong JSONDictionary], |
| 15688 | 15675 | @"unchecked": [_unchecked JSONDictionary], |
| 15689 | 15676 | @"undefined": [_undefined JSONDictionary], |
| 15690 | - @"UnmarshalJSON": [_unmarshalJSON JSONDictionary], | |
| 15691 | - @"unowned": [_unowned JSONDictionary], | |
| 15692 | - @"unsafe": [_unsafe JSONDictionary], | |
| 15693 | - @"UseSerializers": [_useSerializers JSONDictionary], | |
| 15694 | 15677 | }]; |
| 15695 | 15678 | |
| 15696 | 15679 | return dict; |
| @@ -16301,25 +16284,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16301 | 16284 | } |
| 16302 | 16285 | @end |
| 16303 | 16286 | |
| 16304 | -@implementation QTUnion | |
| 16287 | +@implementation QTPrimitiveKind | |
| 16305 | 16288 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16306 | 16289 | { |
| 16307 | 16290 | static NSDictionary<NSString *, NSString *> *properties; |
| 16308 | 16291 | return properties = properties ? properties : @{ |
| 16309 | - @"union": @"unionUnion", | |
| 16292 | + @"PrimitiveKind": @"primitiveKind", | |
| 16310 | 16293 | }; |
| 16311 | 16294 | } |
| 16312 | 16295 | |
| 16313 | 16296 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16314 | 16297 | { |
| 16315 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUnion alloc] initWithJSONDictionary:dict] : nil; | |
| 16298 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil; | |
| 16316 | 16299 | } |
| 16317 | 16300 | |
| 16318 | 16301 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16319 | 16302 | { |
| 16320 | 16303 | if (self = [super init]) { |
| 16321 | - if (![dict[@"union"] isKindOfClass:NSNumber.class]) return nil; | |
| 16322 | - if ([dict[@"union"] doubleValue] != [dict[@"union"] longLongValue]) return nil; | |
| 16304 | + if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil; | |
| 16305 | + if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil; | |
| 16323 | 16306 | [self setValuesForKeysWithDictionary:dict]; |
| 16324 | 16307 | } |
| 16325 | 16308 | return self; |
| @@ -16327,22 +16310,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16327 | 16310 | |
| 16328 | 16311 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16329 | 16312 | { |
| 16330 | - id resolved = QTUnion.properties[key]; | |
| 16313 | + id resolved = QTPrimitiveKind.properties[key]; | |
| 16331 | 16314 | if (resolved) [super setValue:value forKey:resolved]; |
| 16332 | 16315 | } |
| 16333 | 16316 | |
| 16334 | 16317 | - (void)setNilValueForKey:(NSString *)key |
| 16335 | 16318 | { |
| 16336 | - id resolved = QTUnion.properties[key]; | |
| 16319 | + id resolved = QTPrimitiveKind.properties[key]; | |
| 16337 | 16320 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16338 | 16321 | } |
| 16339 | 16322 | |
| 16340 | 16323 | - (NSDictionary *)JSONDictionary |
| 16341 | 16324 | { |
| 16342 | - id dict = [[self dictionaryWithValuesForKeys:QTUnion.properties.allValues] mutableCopy]; | |
| 16325 | + id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy]; | |
| 16343 | 16326 | |
| 16344 | - for (id jsonName in QTUnion.properties) { | |
| 16345 | - id propertyName = QTUnion.properties[jsonName]; | |
| 16327 | + for (id jsonName in QTPrimitiveKind.properties) { | |
| 16328 | + id propertyName = QTPrimitiveKind.properties[jsonName]; | |
| 16346 | 16329 | if (![jsonName isEqualToString:propertyName]) { |
| 16347 | 16330 | dict[jsonName] = dict[propertyName]; |
| 16348 | 16331 | [dict removeObjectForKey:propertyName]; |
| @@ -16353,25 +16336,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16353 | 16336 | } |
| 16354 | 16337 | @end |
| 16355 | 16338 | |
| 16356 | -@implementation QTPrimitiveKind | |
| 16339 | +@implementation QTS | |
| 16357 | 16340 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16358 | 16341 | { |
| 16359 | 16342 | static NSDictionary<NSString *, NSString *> *properties; |
| 16360 | 16343 | return properties = properties ? properties : @{ |
| 16361 | - @"PrimitiveKind": @"primitiveKind", | |
| 16344 | + @"s": @"s", | |
| 16362 | 16345 | }; |
| 16363 | 16346 | } |
| 16364 | 16347 | |
| 16365 | 16348 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16366 | 16349 | { |
| 16367 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil; | |
| 16350 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTS alloc] initWithJSONDictionary:dict] : nil; | |
| 16368 | 16351 | } |
| 16369 | 16352 | |
| 16370 | 16353 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16371 | 16354 | { |
| 16372 | 16355 | if (self = [super init]) { |
| 16373 | - if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil; | |
| 16374 | - if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil; | |
| 16356 | + if (![dict[@"s"] isKindOfClass:NSNumber.class]) return nil; | |
| 16357 | + if ([dict[@"s"] doubleValue] != [dict[@"s"] longLongValue]) return nil; | |
| 16375 | 16358 | [self setValuesForKeysWithDictionary:dict]; |
| 16376 | 16359 | } |
| 16377 | 16360 | return self; |
| @@ -16379,51 +16362,41 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16379 | 16362 | |
| 16380 | 16363 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16381 | 16364 | { |
| 16382 | - id resolved = QTPrimitiveKind.properties[key]; | |
| 16365 | + id resolved = QTS.properties[key]; | |
| 16383 | 16366 | if (resolved) [super setValue:value forKey:resolved]; |
| 16384 | 16367 | } |
| 16385 | 16368 | |
| 16386 | 16369 | - (void)setNilValueForKey:(NSString *)key |
| 16387 | 16370 | { |
| 16388 | - id resolved = QTPrimitiveKind.properties[key]; | |
| 16371 | + id resolved = QTS.properties[key]; | |
| 16389 | 16372 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16390 | 16373 | } |
| 16391 | 16374 | |
| 16392 | 16375 | - (NSDictionary *)JSONDictionary |
| 16393 | 16376 | { |
| 16394 | - id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy]; | |
| 16395 | - | |
| 16396 | - for (id jsonName in QTPrimitiveKind.properties) { | |
| 16397 | - id propertyName = QTPrimitiveKind.properties[jsonName]; | |
| 16398 | - if (![jsonName isEqualToString:propertyName]) { | |
| 16399 | - dict[jsonName] = dict[propertyName]; | |
| 16400 | - [dict removeObjectForKey:propertyName]; | |
| 16401 | - } | |
| 16402 | - } | |
| 16403 | - | |
| 16404 | - return dict; | |
| 16377 | + return [self dictionaryWithValuesForKeys:QTS.properties.allValues]; | |
| 16405 | 16378 | } |
| 16406 | 16379 | @end |
| 16407 | 16380 | |
| 16408 | -@implementation QTSelect | |
| 16381 | +@implementation QTSbyte | |
| 16409 | 16382 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16410 | 16383 | { |
| 16411 | 16384 | static NSDictionary<NSString *, NSString *> *properties; |
| 16412 | 16385 | return properties = properties ? properties : @{ |
| 16413 | - @"select": @"select", | |
| 16386 | + @"sbyte": @"sbyte", | |
| 16414 | 16387 | }; |
| 16415 | 16388 | } |
| 16416 | 16389 | |
| 16417 | 16390 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16418 | 16391 | { |
| 16419 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil; | |
| 16392 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSbyte alloc] initWithJSONDictionary:dict] : nil; | |
| 16420 | 16393 | } |
| 16421 | 16394 | |
| 16422 | 16395 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16423 | 16396 | { |
| 16424 | 16397 | if (self = [super init]) { |
| 16425 | - if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil; | |
| 16426 | - if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil; | |
| 16398 | + if (![dict[@"sbyte"] isKindOfClass:NSNumber.class]) return nil; | |
| 16399 | + if ([dict[@"sbyte"] doubleValue] != [dict[@"sbyte"] longLongValue]) return nil; | |
| 16427 | 16400 | [self setValuesForKeysWithDictionary:dict]; |
| 16428 | 16401 | } |
| 16429 | 16402 | return self; |
| @@ -16431,34 +16404,170 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16431 | 16404 | |
| 16432 | 16405 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16433 | 16406 | { |
| 16434 | - id resolved = QTSelect.properties[key]; | |
| 16407 | + id resolved = QTSbyte.properties[key]; | |
| 16435 | 16408 | if (resolved) [super setValue:value forKey:resolved]; |
| 16436 | 16409 | } |
| 16437 | 16410 | |
| 16438 | 16411 | - (void)setNilValueForKey:(NSString *)key |
| 16439 | 16412 | { |
| 16440 | - id resolved = QTSelect.properties[key]; | |
| 16413 | + id resolved = QTSbyte.properties[key]; | |
| 16441 | 16414 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16442 | 16415 | } |
| 16443 | 16416 | |
| 16444 | 16417 | - (NSDictionary *)JSONDictionary |
| 16445 | 16418 | { |
| 16446 | - return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues]; | |
| 16419 | + return [self dictionaryWithValuesForKeys:QTSbyte.properties.allValues]; | |
| 16447 | 16420 | } |
| 16448 | 16421 | @end |
| 16449 | 16422 | |
| 16450 | -@implementation QTSelf | |
| 16423 | +@implementation QTSealed | |
| 16451 | 16424 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16452 | 16425 | { |
| 16453 | 16426 | static NSDictionary<NSString *, NSString *> *properties; |
| 16454 | 16427 | return properties = properties ? properties : @{ |
| 16455 | - @"Self": @"self", | |
| 16428 | + @"sealed": @"sealed", | |
| 16456 | 16429 | }; |
| 16457 | 16430 | } |
| 16458 | 16431 | |
| 16459 | 16432 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16460 | 16433 | { |
| 16461 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil; | |
| 16434 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil; | |
| 16435 | +} | |
| 16436 | + | |
| 16437 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16438 | +{ | |
| 16439 | + if (self = [super init]) { | |
| 16440 | + if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil; | |
| 16441 | + if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil; | |
| 16442 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16443 | + } | |
| 16444 | + return self; | |
| 16445 | +} | |
| 16446 | + | |
| 16447 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16448 | +{ | |
| 16449 | + id resolved = QTSealed.properties[key]; | |
| 16450 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16451 | +} | |
| 16452 | + | |
| 16453 | +- (void)setNilValueForKey:(NSString *)key | |
| 16454 | +{ | |
| 16455 | + id resolved = QTSealed.properties[key]; | |
| 16456 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16457 | +} | |
| 16458 | + | |
| 16459 | +- (NSDictionary *)JSONDictionary | |
| 16460 | +{ | |
| 16461 | + return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues]; | |
| 16462 | +} | |
| 16463 | +@end | |
| 16464 | + | |
| 16465 | +@implementation QTSel | |
| 16466 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16467 | +{ | |
| 16468 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16469 | + return properties = properties ? properties : @{ | |
| 16470 | + @"SEL": @"sel", | |
| 16471 | + }; | |
| 16472 | +} | |
| 16473 | + | |
| 16474 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16475 | +{ | |
| 16476 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil; | |
| 16477 | +} | |
| 16478 | + | |
| 16479 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16480 | +{ | |
| 16481 | + if (self = [super init]) { | |
| 16482 | + if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil; | |
| 16483 | + if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil; | |
| 16484 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16485 | + } | |
| 16486 | + return self; | |
| 16487 | +} | |
| 16488 | + | |
| 16489 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16490 | +{ | |
| 16491 | + id resolved = QTSel.properties[key]; | |
| 16492 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16493 | +} | |
| 16494 | + | |
| 16495 | +- (void)setNilValueForKey:(NSString *)key | |
| 16496 | +{ | |
| 16497 | + id resolved = QTSel.properties[key]; | |
| 16498 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16499 | +} | |
| 16500 | + | |
| 16501 | +- (NSDictionary *)JSONDictionary | |
| 16502 | +{ | |
| 16503 | + id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy]; | |
| 16504 | + | |
| 16505 | + for (id jsonName in QTSel.properties) { | |
| 16506 | + id propertyName = QTSel.properties[jsonName]; | |
| 16507 | + if (![jsonName isEqualToString:propertyName]) { | |
| 16508 | + dict[jsonName] = dict[propertyName]; | |
| 16509 | + [dict removeObjectForKey:propertyName]; | |
| 16510 | + } | |
| 16511 | + } | |
| 16512 | + | |
| 16513 | + return dict; | |
| 16514 | +} | |
| 16515 | +@end | |
| 16516 | + | |
| 16517 | +@implementation QTSelect | |
| 16518 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16519 | +{ | |
| 16520 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16521 | + return properties = properties ? properties : @{ | |
| 16522 | + @"select": @"select", | |
| 16523 | + }; | |
| 16524 | +} | |
| 16525 | + | |
| 16526 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16527 | +{ | |
| 16528 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil; | |
| 16529 | +} | |
| 16530 | + | |
| 16531 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16532 | +{ | |
| 16533 | + if (self = [super init]) { | |
| 16534 | + if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil; | |
| 16535 | + if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil; | |
| 16536 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16537 | + } | |
| 16538 | + return self; | |
| 16539 | +} | |
| 16540 | + | |
| 16541 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16542 | +{ | |
| 16543 | + id resolved = QTSelect.properties[key]; | |
| 16544 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16545 | +} | |
| 16546 | + | |
| 16547 | +- (void)setNilValueForKey:(NSString *)key | |
| 16548 | +{ | |
| 16549 | + id resolved = QTSelect.properties[key]; | |
| 16550 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16551 | +} | |
| 16552 | + | |
| 16553 | +- (NSDictionary *)JSONDictionary | |
| 16554 | +{ | |
| 16555 | + return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues]; | |
| 16556 | +} | |
| 16557 | +@end | |
| 16558 | + | |
| 16559 | +@implementation QTSelf | |
| 16560 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16561 | +{ | |
| 16562 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16563 | + return properties = properties ? properties : @{ | |
| 16564 | + @"Self": @"self", | |
| 16565 | + }; | |
| 16566 | +} | |
| 16567 | + | |
| 16568 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16569 | +{ | |
| 16570 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil; | |
| 16462 | 16571 | } |
| 16463 | 16572 | |
| 16464 | 16573 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| @@ -18589,77 +18698,205 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18589 | 18698 | } |
| 18590 | 18699 | @end |
| 18591 | 18700 | |
| 18592 | -@implementation QTUnmarshalJSON | |
| 18701 | +@implementation QTObj6 | |
| 18593 | 18702 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18594 | 18703 | { |
| 18595 | 18704 | static NSDictionary<NSString *, NSString *> *properties; |
| 18596 | 18705 | return properties = properties ? properties : @{ |
| 18706 | + @"dummy": @"dummy", | |
| 18707 | + @"union": @"obj6Union", | |
| 18708 | + @"unsigned": @"obj6Unsigned", | |
| 18709 | + @"void": @"obj6Void", | |
| 18710 | + @"volatile": @"obj6Volatile", | |
| 18711 | + @"while": @"obj6While", | |
| 18597 | 18712 | @"UnmarshalJSON": @"unmarshalJSON", |
| 18713 | + @"unowned": @"unowned", | |
| 18714 | + @"unsafe": @"unsafe", | |
| 18715 | + @"UseSerializers": @"useSerializers", | |
| 18716 | + @"ushort": @"ushort", | |
| 18717 | + @"using": @"using", | |
| 18718 | + @"Utf8JsonReader": @"utf8JSONReader", | |
| 18719 | + @"Utf8JsonWriter": @"utf8JSONWriter", | |
| 18720 | + @"UUID": @"uuid", | |
| 18721 | + @"var": @"var", | |
| 18722 | + @"virtual": @"virtual", | |
| 18723 | + @"wchar_t": @"wcharT", | |
| 18724 | + @"weak": @"weak", | |
| 18725 | + @"where": @"where", | |
| 18726 | + @"willSet": @"willSet", | |
| 18727 | + @"with": @"with", | |
| 18728 | + @"xor": @"xor", | |
| 18729 | + @"xor_eq": @"xorEq", | |
| 18730 | + @"YES": @"yes", | |
| 18731 | + @"yield": @"yield", | |
| 18598 | 18732 | }; |
| 18599 | 18733 | } |
| 18600 | 18734 | |
| 18601 | 18735 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18602 | 18736 | { |
| 18603 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUnmarshalJSON alloc] initWithJSONDictionary:dict] : nil; | |
| 18737 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTObj6 alloc] initWithJSONDictionary:dict] : nil; | |
| 18604 | 18738 | } |
| 18605 | 18739 | |
| 18606 | 18740 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18607 | 18741 | { |
| 18608 | 18742 | if (self = [super init]) { |
| 18609 | - if (![dict[@"UnmarshalJSON"] isKindOfClass:NSNumber.class]) return nil; | |
| 18610 | - if ([dict[@"UnmarshalJSON"] doubleValue] != [dict[@"UnmarshalJSON"] longLongValue]) return nil; | |
| 18743 | + if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil; | |
| 18744 | + if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil; | |
| 18745 | + if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18746 | + if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18747 | + if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18748 | + if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18749 | + if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18750 | + if (![dict[@"UnmarshalJSON"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18751 | + if (![dict[@"unowned"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18752 | + if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18753 | + if (![dict[@"UseSerializers"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18754 | + if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18755 | + if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18756 | + if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18757 | + if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18758 | + if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18759 | + if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18760 | + if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18761 | + if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18762 | + if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18763 | + if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18764 | + if (![dict[@"willSet"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18765 | + if (![dict[@"with"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18766 | + if (![dict[@"xor"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18767 | + if (![dict[@"xor_eq"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18768 | + if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18769 | + if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18611 | 18770 | [self setValuesForKeysWithDictionary:dict]; |
| 18771 | + _obj6Union = [QTUnion fromJSONDictionary:(id)_obj6Union]; | |
| 18772 | + if (!_obj6Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil; | |
| 18773 | + _obj6Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj6Unsigned]; | |
| 18774 | + if (!_obj6Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil; | |
| 18775 | + _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void]; | |
| 18776 | + if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil; | |
| 18777 | + _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile]; | |
| 18778 | + if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil; | |
| 18779 | + _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While]; | |
| 18780 | + if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil; | |
| 18781 | + _unmarshalJSON = [QTUnmarshalJSON fromJSONDictionary:(id)_unmarshalJSON]; | |
| 18782 | + if (!_unmarshalJSON && dict[@"UnmarshalJSON"] && ![dict[@"UnmarshalJSON"] isKindOfClass:NSNull.class]) return nil; | |
| 18783 | + _unowned = [QTUnowned fromJSONDictionary:(id)_unowned]; | |
| 18784 | + if (!_unowned && dict[@"unowned"] && ![dict[@"unowned"] isKindOfClass:NSNull.class]) return nil; | |
| 18785 | + _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe]; | |
| 18786 | + if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil; | |
| 18787 | + _useSerializers = [QTUseSerializers fromJSONDictionary:(id)_useSerializers]; | |
| 18788 | + if (!_useSerializers && dict[@"UseSerializers"] && ![dict[@"UseSerializers"] isKindOfClass:NSNull.class]) return nil; | |
| 18789 | + _ushort = [QTUshort fromJSONDictionary:(id)_ushort]; | |
| 18790 | + if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil; | |
| 18791 | + _using = [QTUsing fromJSONDictionary:(id)_using]; | |
| 18792 | + if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil; | |
| 18793 | + _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader]; | |
| 18794 | + if (!_utf8JSONReader && dict[@"Utf8JsonReader"] && ![dict[@"Utf8JsonReader"] isKindOfClass:NSNull.class]) return nil; | |
| 18795 | + _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter]; | |
| 18796 | + if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil; | |
| 18797 | + _uuid = [QTUUID fromJSONDictionary:(id)_uuid]; | |
| 18798 | + if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil; | |
| 18799 | + _var = [QTVar fromJSONDictionary:(id)_var]; | |
| 18800 | + if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil; | |
| 18801 | + _virtual = [QTVirtual fromJSONDictionary:(id)_virtual]; | |
| 18802 | + if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil; | |
| 18803 | + _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT]; | |
| 18804 | + if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil; | |
| 18805 | + _weak = [QTWeak fromJSONDictionary:(id)_weak]; | |
| 18806 | + if (!_weak && dict[@"weak"] && ![dict[@"weak"] isKindOfClass:NSNull.class]) return nil; | |
| 18807 | + _where = [QTWhere fromJSONDictionary:(id)_where]; | |
| 18808 | + if (!_where && dict[@"where"] && ![dict[@"where"] isKindOfClass:NSNull.class]) return nil; | |
| 18809 | + _willSet = [QTWillSet fromJSONDictionary:(id)_willSet]; | |
| 18810 | + if (!_willSet && dict[@"willSet"] && ![dict[@"willSet"] isKindOfClass:NSNull.class]) return nil; | |
| 18811 | + _with = [QTWith fromJSONDictionary:(id)_with]; | |
| 18812 | + if (!_with && dict[@"with"] && ![dict[@"with"] isKindOfClass:NSNull.class]) return nil; | |
| 18813 | + _xor = [QTXor fromJSONDictionary:(id)_xor]; | |
| 18814 | + if (!_xor && dict[@"xor"] && ![dict[@"xor"] isKindOfClass:NSNull.class]) return nil; | |
| 18815 | + _xorEq = [QTXorEq fromJSONDictionary:(id)_xorEq]; | |
| 18816 | + if (!_xorEq && dict[@"xor_eq"] && ![dict[@"xor_eq"] isKindOfClass:NSNull.class]) return nil; | |
| 18817 | + _yes = [QTYes fromJSONDictionary:(id)_yes]; | |
| 18818 | + if (!_yes && dict[@"YES"] && ![dict[@"YES"] isKindOfClass:NSNull.class]) return nil; | |
| 18819 | + _yield = [QTYield fromJSONDictionary:(id)_yield]; | |
| 18820 | + if (!_yield && dict[@"yield"] && ![dict[@"yield"] isKindOfClass:NSNull.class]) return nil; | |
| 18612 | 18821 | } |
| 18613 | 18822 | return self; |
| 18614 | 18823 | } |
| 18615 | 18824 | |
| 18616 | 18825 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18617 | 18826 | { |
| 18618 | - id resolved = QTUnmarshalJSON.properties[key]; | |
| 18827 | + id resolved = QTObj6.properties[key]; | |
| 18619 | 18828 | if (resolved) [super setValue:value forKey:resolved]; |
| 18620 | 18829 | } |
| 18621 | 18830 | |
| 18622 | 18831 | - (void)setNilValueForKey:(NSString *)key |
| 18623 | 18832 | { |
| 18624 | - id resolved = QTUnmarshalJSON.properties[key]; | |
| 18833 | + id resolved = QTObj6.properties[key]; | |
| 18625 | 18834 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18626 | 18835 | } |
| 18627 | 18836 | |
| 18628 | 18837 | - (NSDictionary *)JSONDictionary |
| 18629 | 18838 | { |
| 18630 | - id dict = [[self dictionaryWithValuesForKeys:QTUnmarshalJSON.properties.allValues] mutableCopy]; | |
| 18839 | + id dict = [[self dictionaryWithValuesForKeys:QTObj6.properties.allValues] mutableCopy]; | |
| 18631 | 18840 | |
| 18632 | - for (id jsonName in QTUnmarshalJSON.properties) { | |
| 18633 | - id propertyName = QTUnmarshalJSON.properties[jsonName]; | |
| 18841 | + for (id jsonName in QTObj6.properties) { | |
| 18842 | + id propertyName = QTObj6.properties[jsonName]; | |
| 18634 | 18843 | if (![jsonName isEqualToString:propertyName]) { |
| 18635 | 18844 | dict[jsonName] = dict[propertyName]; |
| 18636 | 18845 | [dict removeObjectForKey:propertyName]; |
| 18637 | 18846 | } |
| 18638 | 18847 | } |
| 18639 | 18848 | |
| 18640 | - return dict; | |
| 18641 | -} | |
| 18642 | -@end | |
| 18643 | - | |
| 18644 | -@implementation QTUnowned | |
| 18849 | + [dict addEntriesFromDictionary:@{ | |
| 18850 | + @"union": [_obj6Union JSONDictionary], | |
| 18851 | + @"unsigned": [_obj6Unsigned JSONDictionary], | |
| 18852 | + @"void": [_obj6Void JSONDictionary], | |
| 18853 | + @"volatile": [_obj6Volatile JSONDictionary], | |
| 18854 | + @"while": [_obj6While JSONDictionary], | |
| 18855 | + @"UnmarshalJSON": [_unmarshalJSON JSONDictionary], | |
| 18856 | + @"unowned": [_unowned JSONDictionary], | |
| 18857 | + @"unsafe": [_unsafe JSONDictionary], | |
| 18858 | + @"UseSerializers": [_useSerializers JSONDictionary], | |
| 18859 | + @"ushort": [_ushort JSONDictionary], | |
| 18860 | + @"using": [_using JSONDictionary], | |
| 18861 | + @"Utf8JsonReader": [_utf8JSONReader JSONDictionary], | |
| 18862 | + @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary], | |
| 18863 | + @"UUID": [_uuid JSONDictionary], | |
| 18864 | + @"var": [_var JSONDictionary], | |
| 18865 | + @"virtual": [_virtual JSONDictionary], | |
| 18866 | + @"wchar_t": [_wcharT JSONDictionary], | |
| 18867 | + @"weak": [_weak JSONDictionary], | |
| 18868 | + @"where": [_where JSONDictionary], | |
| 18869 | + @"willSet": [_willSet JSONDictionary], | |
| 18870 | + @"with": [_with JSONDictionary], | |
| 18871 | + @"xor": [_xor JSONDictionary], | |
| 18872 | + @"xor_eq": [_xorEq JSONDictionary], | |
| 18873 | + @"YES": [_yes JSONDictionary], | |
| 18874 | + @"yield": [_yield JSONDictionary], | |
| 18875 | + }]; | |
| 18876 | + | |
| 18877 | + return dict; | |
| 18878 | +} | |
| 18879 | +@end | |
| 18880 | + | |
| 18881 | +@implementation QTUnion | |
| 18645 | 18882 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18646 | 18883 | { |
| 18647 | 18884 | static NSDictionary<NSString *, NSString *> *properties; |
| 18648 | 18885 | return properties = properties ? properties : @{ |
| 18649 | - @"unowned": @"unowned", | |
| 18886 | + @"union": @"unionUnion", | |
| 18650 | 18887 | }; |
| 18651 | 18888 | } |
| 18652 | 18889 | |
| 18653 | 18890 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18654 | 18891 | { |
| 18655 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUnowned alloc] initWithJSONDictionary:dict] : nil; | |
| 18892 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUnion alloc] initWithJSONDictionary:dict] : nil; | |
| 18656 | 18893 | } |
| 18657 | 18894 | |
| 18658 | 18895 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18659 | 18896 | { |
| 18660 | 18897 | if (self = [super init]) { |
| 18661 | - if (![dict[@"unowned"] isKindOfClass:NSNumber.class]) return nil; | |
| 18662 | - if ([dict[@"unowned"] doubleValue] != [dict[@"unowned"] longLongValue]) return nil; | |
| 18898 | + if (![dict[@"union"] isKindOfClass:NSNumber.class]) return nil; | |
| 18899 | + if ([dict[@"union"] doubleValue] != [dict[@"union"] longLongValue]) return nil; | |
| 18663 | 18900 | [self setValuesForKeysWithDictionary:dict]; |
| 18664 | 18901 | } |
| 18665 | 18902 | return self; |
| @@ -18667,41 +18904,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18667 | 18904 | |
| 18668 | 18905 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18669 | 18906 | { |
| 18670 | - id resolved = QTUnowned.properties[key]; | |
| 18907 | + id resolved = QTUnion.properties[key]; | |
| 18671 | 18908 | if (resolved) [super setValue:value forKey:resolved]; |
| 18672 | 18909 | } |
| 18673 | 18910 | |
| 18674 | 18911 | - (void)setNilValueForKey:(NSString *)key |
| 18675 | 18912 | { |
| 18676 | - id resolved = QTUnowned.properties[key]; | |
| 18913 | + id resolved = QTUnion.properties[key]; | |
| 18677 | 18914 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18678 | 18915 | } |
| 18679 | 18916 | |
| 18680 | 18917 | - (NSDictionary *)JSONDictionary |
| 18681 | 18918 | { |
| 18682 | - return [self dictionaryWithValuesForKeys:QTUnowned.properties.allValues]; | |
| 18919 | + id dict = [[self dictionaryWithValuesForKeys:QTUnion.properties.allValues] mutableCopy]; | |
| 18920 | + | |
| 18921 | + for (id jsonName in QTUnion.properties) { | |
| 18922 | + id propertyName = QTUnion.properties[jsonName]; | |
| 18923 | + if (![jsonName isEqualToString:propertyName]) { | |
| 18924 | + dict[jsonName] = dict[propertyName]; | |
| 18925 | + [dict removeObjectForKey:propertyName]; | |
| 18926 | + } | |
| 18927 | + } | |
| 18928 | + | |
| 18929 | + return dict; | |
| 18683 | 18930 | } |
| 18684 | 18931 | @end |
| 18685 | 18932 | |
| 18686 | -@implementation QTUnsafe | |
| 18933 | +@implementation QTUnsigned | |
| 18687 | 18934 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18688 | 18935 | { |
| 18689 | 18936 | static NSDictionary<NSString *, NSString *> *properties; |
| 18690 | 18937 | return properties = properties ? properties : @{ |
| 18691 | - @"unsafe": @"unsafe", | |
| 18938 | + @"unsigned": @"unsignedUnsigned", | |
| 18692 | 18939 | }; |
| 18693 | 18940 | } |
| 18694 | 18941 | |
| 18695 | 18942 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18696 | 18943 | { |
| 18697 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsafe alloc] initWithJSONDictionary:dict] : nil; | |
| 18944 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil; | |
| 18698 | 18945 | } |
| 18699 | 18946 | |
| 18700 | 18947 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18701 | 18948 | { |
| 18702 | 18949 | if (self = [super init]) { |
| 18703 | - if (![dict[@"unsafe"] isKindOfClass:NSNumber.class]) return nil; | |
| 18704 | - if ([dict[@"unsafe"] doubleValue] != [dict[@"unsafe"] longLongValue]) return nil; | |
| 18950 | + if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil; | |
| 18951 | + if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil; | |
| 18705 | 18952 | [self setValuesForKeysWithDictionary:dict]; |
| 18706 | 18953 | } |
| 18707 | 18954 | return self; |
| @@ -18709,41 +18956,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18709 | 18956 | |
| 18710 | 18957 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18711 | 18958 | { |
| 18712 | - id resolved = QTUnsafe.properties[key]; | |
| 18959 | + id resolved = QTUnsigned.properties[key]; | |
| 18713 | 18960 | if (resolved) [super setValue:value forKey:resolved]; |
| 18714 | 18961 | } |
| 18715 | 18962 | |
| 18716 | 18963 | - (void)setNilValueForKey:(NSString *)key |
| 18717 | 18964 | { |
| 18718 | - id resolved = QTUnsafe.properties[key]; | |
| 18965 | + id resolved = QTUnsigned.properties[key]; | |
| 18719 | 18966 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18720 | 18967 | } |
| 18721 | 18968 | |
| 18722 | 18969 | - (NSDictionary *)JSONDictionary |
| 18723 | 18970 | { |
| 18724 | - return [self dictionaryWithValuesForKeys:QTUnsafe.properties.allValues]; | |
| 18971 | + id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy]; | |
| 18972 | + | |
| 18973 | + for (id jsonName in QTUnsigned.properties) { | |
| 18974 | + id propertyName = QTUnsigned.properties[jsonName]; | |
| 18975 | + if (![jsonName isEqualToString:propertyName]) { | |
| 18976 | + dict[jsonName] = dict[propertyName]; | |
| 18977 | + [dict removeObjectForKey:propertyName]; | |
| 18978 | + } | |
| 18979 | + } | |
| 18980 | + | |
| 18981 | + return dict; | |
| 18725 | 18982 | } |
| 18726 | 18983 | @end |
| 18727 | 18984 | |
| 18728 | -@implementation QTUseSerializers | |
| 18985 | +@implementation QTVoid | |
| 18729 | 18986 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18730 | 18987 | { |
| 18731 | 18988 | static NSDictionary<NSString *, NSString *> *properties; |
| 18732 | 18989 | return properties = properties ? properties : @{ |
| 18733 | - @"UseSerializers": @"useSerializers", | |
| 18990 | + @"void": @"voidVoid", | |
| 18734 | 18991 | }; |
| 18735 | 18992 | } |
| 18736 | 18993 | |
| 18737 | 18994 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18738 | 18995 | { |
| 18739 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUseSerializers alloc] initWithJSONDictionary:dict] : nil; | |
| 18996 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTVoid alloc] initWithJSONDictionary:dict] : nil; | |
| 18740 | 18997 | } |
| 18741 | 18998 | |
| 18742 | 18999 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18743 | 19000 | { |
| 18744 | 19001 | if (self = [super init]) { |
| 18745 | - if (![dict[@"UseSerializers"] isKindOfClass:NSNumber.class]) return nil; | |
| 18746 | - if ([dict[@"UseSerializers"] doubleValue] != [dict[@"UseSerializers"] longLongValue]) return nil; | |
| 19002 | + if (![dict[@"void"] isKindOfClass:NSNumber.class]) return nil; | |
| 19003 | + if ([dict[@"void"] doubleValue] != [dict[@"void"] longLongValue]) return nil; | |
| 18747 | 19004 | [self setValuesForKeysWithDictionary:dict]; |
| 18748 | 19005 | } |
| 18749 | 19006 | return self; |
| @@ -18751,22 +19008,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18751 | 19008 | |
| 18752 | 19009 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18753 | 19010 | { |
| 18754 | - id resolved = QTUseSerializers.properties[key]; | |
| 19011 | + id resolved = QTVoid.properties[key]; | |
| 18755 | 19012 | if (resolved) [super setValue:value forKey:resolved]; |
| 18756 | 19013 | } |
| 18757 | 19014 | |
| 18758 | 19015 | - (void)setNilValueForKey:(NSString *)key |
| 18759 | 19016 | { |
| 18760 | - id resolved = QTUseSerializers.properties[key]; | |
| 19017 | + id resolved = QTVoid.properties[key]; | |
| 18761 | 19018 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18762 | 19019 | } |
| 18763 | 19020 | |
| 18764 | 19021 | - (NSDictionary *)JSONDictionary |
| 18765 | 19022 | { |
| 18766 | - id dict = [[self dictionaryWithValuesForKeys:QTUseSerializers.properties.allValues] mutableCopy]; | |
| 19023 | + id dict = [[self dictionaryWithValuesForKeys:QTVoid.properties.allValues] mutableCopy]; | |
| 18767 | 19024 | |
| 18768 | - for (id jsonName in QTUseSerializers.properties) { | |
| 18769 | - id propertyName = QTUseSerializers.properties[jsonName]; | |
| 19025 | + for (id jsonName in QTVoid.properties) { | |
| 19026 | + id propertyName = QTVoid.properties[jsonName]; | |
| 18770 | 19027 | if (![jsonName isEqualToString:propertyName]) { |
| 18771 | 19028 | dict[jsonName] = dict[propertyName]; |
| 18772 | 19029 | [dict removeObjectForKey:propertyName]; |
| @@ -18777,180 +19034,77 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18777 | 19034 | } |
| 18778 | 19035 | @end |
| 18779 | 19036 | |
| 18780 | -@implementation QTObj6 | |
| 19037 | +@implementation QTVolatile | |
| 18781 | 19038 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18782 | 19039 | { |
| 18783 | 19040 | static NSDictionary<NSString *, NSString *> *properties; |
| 18784 | 19041 | return properties = properties ? properties : @{ |
| 18785 | - @"dummy": @"dummy", | |
| 18786 | - @"unsigned": @"obj6Unsigned", | |
| 18787 | - @"void": @"obj6Void", | |
| 18788 | - @"volatile": @"obj6Volatile", | |
| 18789 | - @"while": @"obj6While", | |
| 18790 | - @"ushort": @"ushort", | |
| 18791 | - @"using": @"using", | |
| 18792 | - @"Utf8JsonReader": @"utf8JSONReader", | |
| 18793 | - @"Utf8JsonWriter": @"utf8JSONWriter", | |
| 18794 | - @"UUID": @"uuid", | |
| 18795 | - @"var": @"var", | |
| 18796 | - @"virtual": @"virtual", | |
| 18797 | - @"wchar_t": @"wcharT", | |
| 18798 | - @"weak": @"weak", | |
| 18799 | - @"where": @"where", | |
| 18800 | - @"willSet": @"willSet", | |
| 18801 | - @"with": @"with", | |
| 18802 | - @"xor": @"xor", | |
| 18803 | - @"xor_eq": @"xorEq", | |
| 18804 | - @"YES": @"yes", | |
| 18805 | - @"yield": @"yield", | |
| 19042 | + @"volatile": @"volatileVolatile", | |
| 18806 | 19043 | }; |
| 18807 | 19044 | } |
| 18808 | 19045 | |
| 18809 | 19046 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18810 | 19047 | { |
| 18811 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTObj6 alloc] initWithJSONDictionary:dict] : nil; | |
| 19048 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTVolatile alloc] initWithJSONDictionary:dict] : nil; | |
| 18812 | 19049 | } |
| 18813 | 19050 | |
| 18814 | 19051 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18815 | 19052 | { |
| 18816 | 19053 | if (self = [super init]) { |
| 18817 | - if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil; | |
| 18818 | - if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil; | |
| 18819 | - if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18820 | - if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18821 | - if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18822 | - if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18823 | - if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18824 | - if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18825 | - if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18826 | - if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18827 | - if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18828 | - if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18829 | - if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18830 | - if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18831 | - if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18832 | - if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18833 | - if (![dict[@"willSet"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18834 | - if (![dict[@"with"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18835 | - if (![dict[@"xor"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18836 | - if (![dict[@"xor_eq"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18837 | - if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18838 | - if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil; | |
| 19054 | + if (![dict[@"volatile"] isKindOfClass:NSNumber.class]) return nil; | |
| 19055 | + if ([dict[@"volatile"] doubleValue] != [dict[@"volatile"] longLongValue]) return nil; | |
| 18839 | 19056 | [self setValuesForKeysWithDictionary:dict]; |
| 18840 | - _obj6Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj6Unsigned]; | |
| 18841 | - if (!_obj6Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil; | |
| 18842 | - _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void]; | |
| 18843 | - if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil; | |
| 18844 | - _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile]; | |
| 18845 | - if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil; | |
| 18846 | - _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While]; | |
| 18847 | - if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil; | |
| 18848 | - _ushort = [QTUshort fromJSONDictionary:(id)_ushort]; | |
| 18849 | - if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil; | |
| 18850 | - _using = [QTUsing fromJSONDictionary:(id)_using]; | |
| 18851 | - if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil; | |
| 18852 | - _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader]; | |
| 18853 | - if (!_utf8JSONReader && dict[@"Utf8JsonReader"] && ![dict[@"Utf8JsonReader"] isKindOfClass:NSNull.class]) return nil; | |
| 18854 | - _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter]; | |
| 18855 | - if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil; | |
| 18856 | - _uuid = [QTUUID fromJSONDictionary:(id)_uuid]; | |
| 18857 | - if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil; | |
| 18858 | - _var = [QTVar fromJSONDictionary:(id)_var]; | |
| 18859 | - if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil; | |
| 18860 | - _virtual = [QTVirtual fromJSONDictionary:(id)_virtual]; | |
| 18861 | - if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil; | |
| 18862 | - _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT]; | |
| 18863 | - if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil; | |
| 18864 | - _weak = [QTWeak fromJSONDictionary:(id)_weak]; | |
| 18865 | - if (!_weak && dict[@"weak"] && ![dict[@"weak"] isKindOfClass:NSNull.class]) return nil; | |
| 18866 | - _where = [QTWhere fromJSONDictionary:(id)_where]; | |
| 18867 | - if (!_where && dict[@"where"] && ![dict[@"where"] isKindOfClass:NSNull.class]) return nil; | |
| 18868 | - _willSet = [QTWillSet fromJSONDictionary:(id)_willSet]; | |
| 18869 | - if (!_willSet && dict[@"willSet"] && ![dict[@"willSet"] isKindOfClass:NSNull.class]) return nil; | |
| 18870 | - _with = [QTWith fromJSONDictionary:(id)_with]; | |
| 18871 | - if (!_with && dict[@"with"] && ![dict[@"with"] isKindOfClass:NSNull.class]) return nil; | |
| 18872 | - _xor = [QTXor fromJSONDictionary:(id)_xor]; | |
| 18873 | - if (!_xor && dict[@"xor"] && ![dict[@"xor"] isKindOfClass:NSNull.class]) return nil; | |
| 18874 | - _xorEq = [QTXorEq fromJSONDictionary:(id)_xorEq]; | |
| 18875 | - if (!_xorEq && dict[@"xor_eq"] && ![dict[@"xor_eq"] isKindOfClass:NSNull.class]) return nil; | |
| 18876 | - _yes = [QTYes fromJSONDictionary:(id)_yes]; | |
| 18877 | - if (!_yes && dict[@"YES"] && ![dict[@"YES"] isKindOfClass:NSNull.class]) return nil; | |
| 18878 | - _yield = [QTYield fromJSONDictionary:(id)_yield]; | |
| 18879 | - if (!_yield && dict[@"yield"] && ![dict[@"yield"] isKindOfClass:NSNull.class]) return nil; | |
| 18880 | 19057 | } |
| 18881 | 19058 | return self; |
| 18882 | 19059 | } |
| 18883 | 19060 | |
| 18884 | 19061 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18885 | 19062 | { |
| 18886 | - id resolved = QTObj6.properties[key]; | |
| 19063 | + id resolved = QTVolatile.properties[key]; | |
| 18887 | 19064 | if (resolved) [super setValue:value forKey:resolved]; |
| 18888 | 19065 | } |
| 18889 | 19066 | |
| 18890 | 19067 | - (void)setNilValueForKey:(NSString *)key |
| 18891 | 19068 | { |
| 18892 | - id resolved = QTObj6.properties[key]; | |
| 19069 | + id resolved = QTVolatile.properties[key]; | |
| 18893 | 19070 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18894 | 19071 | } |
| 18895 | 19072 | |
| 18896 | 19073 | - (NSDictionary *)JSONDictionary |
| 18897 | 19074 | { |
| 18898 | - id dict = [[self dictionaryWithValuesForKeys:QTObj6.properties.allValues] mutableCopy]; | |
| 19075 | + id dict = [[self dictionaryWithValuesForKeys:QTVolatile.properties.allValues] mutableCopy]; | |
| 18899 | 19076 | |
| 18900 | - for (id jsonName in QTObj6.properties) { | |
| 18901 | - id propertyName = QTObj6.properties[jsonName]; | |
| 19077 | + for (id jsonName in QTVolatile.properties) { | |
| 19078 | + id propertyName = QTVolatile.properties[jsonName]; | |
| 18902 | 19079 | if (![jsonName isEqualToString:propertyName]) { |
| 18903 | 19080 | dict[jsonName] = dict[propertyName]; |
| 18904 | 19081 | [dict removeObjectForKey:propertyName]; |
| 18905 | 19082 | } |
| 18906 | 19083 | } |
| 18907 | 19084 | |
| 18908 | - [dict addEntriesFromDictionary:@{ | |
| 18909 | - @"unsigned": [_obj6Unsigned JSONDictionary], | |
| 18910 | - @"void": [_obj6Void JSONDictionary], | |
| 18911 | - @"volatile": [_obj6Volatile JSONDictionary], | |
| 18912 | - @"while": [_obj6While JSONDictionary], | |
| 18913 | - @"ushort": [_ushort JSONDictionary], | |
| 18914 | - @"using": [_using JSONDictionary], | |
| 18915 | - @"Utf8JsonReader": [_utf8JSONReader JSONDictionary], | |
| 18916 | - @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary], | |
| 18917 | - @"UUID": [_uuid JSONDictionary], | |
| 18918 | - @"var": [_var JSONDictionary], | |
| 18919 | - @"virtual": [_virtual JSONDictionary], | |
| 18920 | - @"wchar_t": [_wcharT JSONDictionary], | |
| 18921 | - @"weak": [_weak JSONDictionary], | |
| 18922 | - @"where": [_where JSONDictionary], | |
| 18923 | - @"willSet": [_willSet JSONDictionary], | |
| 18924 | - @"with": [_with JSONDictionary], | |
| 18925 | - @"xor": [_xor JSONDictionary], | |
| 18926 | - @"xor_eq": [_xorEq JSONDictionary], | |
| 18927 | - @"YES": [_yes JSONDictionary], | |
| 18928 | - @"yield": [_yield JSONDictionary], | |
| 18929 | - }]; | |
| 18930 | - | |
| 18931 | 19085 | return dict; |
| 18932 | 19086 | } |
| 18933 | 19087 | @end |
| 18934 | 19088 | |
| 18935 | -@implementation QTUnsigned | |
| 19089 | +@implementation QTWhile | |
| 18936 | 19090 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18937 | 19091 | { |
| 18938 | 19092 | static NSDictionary<NSString *, NSString *> *properties; |
| 18939 | 19093 | return properties = properties ? properties : @{ |
| 18940 | - @"unsigned": @"unsignedUnsigned", | |
| 19094 | + @"while": @"whileWhile", | |
| 18941 | 19095 | }; |
| 18942 | 19096 | } |
| 18943 | 19097 | |
| 18944 | 19098 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18945 | 19099 | { |
| 18946 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil; | |
| 19100 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTWhile alloc] initWithJSONDictionary:dict] : nil; | |
| 18947 | 19101 | } |
| 18948 | 19102 | |
| 18949 | 19103 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18950 | 19104 | { |
| 18951 | 19105 | if (self = [super init]) { |
| 18952 | - if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil; | |
| 18953 | - if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil; | |
| 19106 | + if (![dict[@"while"] isKindOfClass:NSNumber.class]) return nil; | |
| 19107 | + if ([dict[@"while"] doubleValue] != [dict[@"while"] longLongValue]) return nil; | |
| 18954 | 19108 | [self setValuesForKeysWithDictionary:dict]; |
| 18955 | 19109 | } |
| 18956 | 19110 | return self; |
| @@ -18958,22 +19112,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18958 | 19112 | |
| 18959 | 19113 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18960 | 19114 | { |
| 18961 | - id resolved = QTUnsigned.properties[key]; | |
| 19115 | + id resolved = QTWhile.properties[key]; | |
| 18962 | 19116 | if (resolved) [super setValue:value forKey:resolved]; |
| 18963 | 19117 | } |
| 18964 | 19118 | |
| 18965 | 19119 | - (void)setNilValueForKey:(NSString *)key |
| 18966 | 19120 | { |
| 18967 | - id resolved = QTUnsigned.properties[key]; | |
| 19121 | + id resolved = QTWhile.properties[key]; | |
| 18968 | 19122 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18969 | 19123 | } |
| 18970 | 19124 | |
| 18971 | 19125 | - (NSDictionary *)JSONDictionary |
| 18972 | 19126 | { |
| 18973 | - id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy]; | |
| 19127 | + id dict = [[self dictionaryWithValuesForKeys:QTWhile.properties.allValues] mutableCopy]; | |
| 18974 | 19128 | |
| 18975 | - for (id jsonName in QTUnsigned.properties) { | |
| 18976 | - id propertyName = QTUnsigned.properties[jsonName]; | |
| 19129 | + for (id jsonName in QTWhile.properties) { | |
| 19130 | + id propertyName = QTWhile.properties[jsonName]; | |
| 18977 | 19131 | if (![jsonName isEqualToString:propertyName]) { |
| 18978 | 19132 | dict[jsonName] = dict[propertyName]; |
| 18979 | 19133 | [dict removeObjectForKey:propertyName]; |
| @@ -18984,25 +19138,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18984 | 19138 | } |
| 18985 | 19139 | @end |
| 18986 | 19140 | |
| 18987 | -@implementation QTVoid | |
| 19141 | +@implementation QTUnmarshalJSON | |
| 18988 | 19142 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18989 | 19143 | { |
| 18990 | 19144 | static NSDictionary<NSString *, NSString *> *properties; |
| 18991 | 19145 | return properties = properties ? properties : @{ |
| 18992 | - @"void": @"voidVoid", | |
| 19146 | + @"UnmarshalJSON": @"unmarshalJSON", | |
| 18993 | 19147 | }; |
| 18994 | 19148 | } |
| 18995 | 19149 | |
| 18996 | 19150 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18997 | 19151 | { |
| 18998 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTVoid alloc] initWithJSONDictionary:dict] : nil; | |
| 19152 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUnmarshalJSON alloc] initWithJSONDictionary:dict] : nil; | |
| 18999 | 19153 | } |
| 19000 | 19154 | |
| 19001 | 19155 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 19002 | 19156 | { |
| 19003 | 19157 | if (self = [super init]) { |
| 19004 | - if (![dict[@"void"] isKindOfClass:NSNumber.class]) return nil; | |
| 19005 | - if ([dict[@"void"] doubleValue] != [dict[@"void"] longLongValue]) return nil; | |
| 19158 | + if (![dict[@"UnmarshalJSON"] isKindOfClass:NSNumber.class]) return nil; | |
| 19159 | + if ([dict[@"UnmarshalJSON"] doubleValue] != [dict[@"UnmarshalJSON"] longLongValue]) return nil; | |
| 19006 | 19160 | [self setValuesForKeysWithDictionary:dict]; |
| 19007 | 19161 | } |
| 19008 | 19162 | return self; |
| @@ -19010,22 +19164,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 19010 | 19164 | |
| 19011 | 19165 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 19012 | 19166 | { |
| 19013 | - id resolved = QTVoid.properties[key]; | |
| 19167 | + id resolved = QTUnmarshalJSON.properties[key]; | |
| 19014 | 19168 | if (resolved) [super setValue:value forKey:resolved]; |
| 19015 | 19169 | } |
| 19016 | 19170 | |
| 19017 | 19171 | - (void)setNilValueForKey:(NSString *)key |
| 19018 | 19172 | { |
| 19019 | - id resolved = QTVoid.properties[key]; | |
| 19173 | + id resolved = QTUnmarshalJSON.properties[key]; | |
| 19020 | 19174 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 19021 | 19175 | } |
| 19022 | 19176 | |
| 19023 | 19177 | - (NSDictionary *)JSONDictionary |
| 19024 | 19178 | { |
| 19025 | - id dict = [[self dictionaryWithValuesForKeys:QTVoid.properties.allValues] mutableCopy]; | |
| 19179 | + id dict = [[self dictionaryWithValuesForKeys:QTUnmarshalJSON.properties.allValues] mutableCopy]; | |
| 19026 | 19180 | |
| 19027 | - for (id jsonName in QTVoid.properties) { | |
| 19028 | - id propertyName = QTVoid.properties[jsonName]; | |
| 19181 | + for (id jsonName in QTUnmarshalJSON.properties) { | |
| 19182 | + id propertyName = QTUnmarshalJSON.properties[jsonName]; | |
| 19029 | 19183 | if (![jsonName isEqualToString:propertyName]) { |
| 19030 | 19184 | dict[jsonName] = dict[propertyName]; |
| 19031 | 19185 | [dict removeObjectForKey:propertyName]; |
| @@ -19036,25 +19190,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 19036 | 19190 | } |
| 19037 | 19191 | @end |
| 19038 | 19192 | |
| 19039 | -@implementation QTVolatile | |
| 19193 | +@implementation QTUnowned | |
| 19040 | 19194 | + (NSDictionary<NSString *, NSString *> *)properties |
| 19041 | 19195 | { |
| 19042 | 19196 | static NSDictionary<NSString *, NSString *> *properties; |
| 19043 | 19197 | return properties = properties ? properties : @{ |
| 19044 | - @"volatile": @"volatileVolatile", | |
| 19198 | + @"unowned": @"unowned", | |
| 19045 | 19199 | }; |
| 19046 | 19200 | } |
| 19047 | 19201 | |
| 19048 | 19202 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 19049 | 19203 | { |
| 19050 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTVolatile alloc] initWithJSONDictionary:dict] : nil; | |
| 19204 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUnowned alloc] initWithJSONDictionary:dict] : nil; | |
| 19051 | 19205 | } |
| 19052 | 19206 | |
| 19053 | 19207 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 19054 | 19208 | { |
| 19055 | 19209 | if (self = [super init]) { |
| 19056 | - if (![dict[@"volatile"] isKindOfClass:NSNumber.class]) return nil; | |
| 19057 | - if ([dict[@"volatile"] doubleValue] != [dict[@"volatile"] longLongValue]) return nil; | |
| 19210 | + if (![dict[@"unowned"] isKindOfClass:NSNumber.class]) return nil; | |
| 19211 | + if ([dict[@"unowned"] doubleValue] != [dict[@"unowned"] longLongValue]) return nil; | |
| 19058 | 19212 | [self setValuesForKeysWithDictionary:dict]; |
| 19059 | 19213 | } |
| 19060 | 19214 | return self; |
| @@ -19062,51 +19216,83 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 19062 | 19216 | |
| 19063 | 19217 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 19064 | 19218 | { |
| 19065 | - id resolved = QTVolatile.properties[key]; | |
| 19219 | + id resolved = QTUnowned.properties[key]; | |
| 19066 | 19220 | if (resolved) [super setValue:value forKey:resolved]; |
| 19067 | 19221 | } |
| 19068 | 19222 | |
| 19069 | 19223 | - (void)setNilValueForKey:(NSString *)key |
| 19070 | 19224 | { |
| 19071 | - id resolved = QTVolatile.properties[key]; | |
| 19225 | + id resolved = QTUnowned.properties[key]; | |
| 19072 | 19226 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 19073 | 19227 | } |
| 19074 | 19228 | |
| 19075 | 19229 | - (NSDictionary *)JSONDictionary |
| 19076 | 19230 | { |
| 19077 | - id dict = [[self dictionaryWithValuesForKeys:QTVolatile.properties.allValues] mutableCopy]; | |
| 19231 | + return [self dictionaryWithValuesForKeys:QTUnowned.properties.allValues]; | |
| 19232 | +} | |
| 19233 | +@end | |
| 19078 | 19234 | |
| 19079 | - for (id jsonName in QTVolatile.properties) { | |
| 19080 | - id propertyName = QTVolatile.properties[jsonName]; | |
| 19081 | - if (![jsonName isEqualToString:propertyName]) { | |
| 19082 | - dict[jsonName] = dict[propertyName]; | |
| 19083 | - [dict removeObjectForKey:propertyName]; | |
| 19084 | - } | |
| 19235 | +@implementation QTUnsafe | |
| 19236 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 19237 | +{ | |
| 19238 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 19239 | + return properties = properties ? properties : @{ | |
| 19240 | + @"unsafe": @"unsafe", | |
| 19241 | + }; | |
| 19242 | +} | |
| 19243 | + | |
| 19244 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 19245 | +{ | |
| 19246 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsafe alloc] initWithJSONDictionary:dict] : nil; | |
| 19247 | +} | |
| 19248 | + | |
| 19249 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 19250 | +{ | |
| 19251 | + if (self = [super init]) { | |
| 19252 | + if (![dict[@"unsafe"] isKindOfClass:NSNumber.class]) return nil; | |
| 19253 | + if ([dict[@"unsafe"] doubleValue] != [dict[@"unsafe"] longLongValue]) return nil; | |
| 19254 | + [self setValuesForKeysWithDictionary:dict]; | |
| 19085 | 19255 | } |
| 19256 | + return self; | |
| 19257 | +} | |
| 19086 | 19258 | |
| 19087 | - return dict; | |
| 19259 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 19260 | +{ | |
| 19261 | + id resolved = QTUnsafe.properties[key]; | |
| 19262 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 19263 | +} | |
| 19264 | + | |
| 19265 | +- (void)setNilValueForKey:(NSString *)key | |
| 19266 | +{ | |
| 19267 | + id resolved = QTUnsafe.properties[key]; | |
| 19268 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 19269 | +} | |
| 19270 | + | |
| 19271 | +- (NSDictionary *)JSONDictionary | |
| 19272 | +{ | |
| 19273 | + return [self dictionaryWithValuesForKeys:QTUnsafe.properties.allValues]; | |
| 19088 | 19274 | } |
| 19089 | 19275 | @end |
| 19090 | 19276 | |
| 19091 | -@implementation QTWhile | |
| 19277 | +@implementation QTUseSerializers | |
| 19092 | 19278 | + (NSDictionary<NSString *, NSString *> *)properties |
| 19093 | 19279 | { |
| 19094 | 19280 | static NSDictionary<NSString *, NSString *> *properties; |
| 19095 | 19281 | return properties = properties ? properties : @{ |
| 19096 | - @"while": @"whileWhile", | |
| 19282 | + @"UseSerializers": @"useSerializers", | |
| 19097 | 19283 | }; |
| 19098 | 19284 | } |
| 19099 | 19285 | |
| 19100 | 19286 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 19101 | 19287 | { |
| 19102 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTWhile alloc] initWithJSONDictionary:dict] : nil; | |
| 19288 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUseSerializers alloc] initWithJSONDictionary:dict] : nil; | |
| 19103 | 19289 | } |
| 19104 | 19290 | |
| 19105 | 19291 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 19106 | 19292 | { |
| 19107 | 19293 | if (self = [super init]) { |
| 19108 | - if (![dict[@"while"] isKindOfClass:NSNumber.class]) return nil; | |
| 19109 | - if ([dict[@"while"] doubleValue] != [dict[@"while"] longLongValue]) return nil; | |
| 19294 | + if (![dict[@"UseSerializers"] isKindOfClass:NSNumber.class]) return nil; | |
| 19295 | + if ([dict[@"UseSerializers"] doubleValue] != [dict[@"UseSerializers"] longLongValue]) return nil; | |
| 19110 | 19296 | [self setValuesForKeysWithDictionary:dict]; |
| 19111 | 19297 | } |
| 19112 | 19298 | return self; |
| @@ -19114,22 +19300,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 19114 | 19300 | |
| 19115 | 19301 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 19116 | 19302 | { |
| 19117 | - id resolved = QTWhile.properties[key]; | |
| 19303 | + id resolved = QTUseSerializers.properties[key]; | |
| 19118 | 19304 | if (resolved) [super setValue:value forKey:resolved]; |
| 19119 | 19305 | } |
| 19120 | 19306 | |
| 19121 | 19307 | - (void)setNilValueForKey:(NSString *)key |
| 19122 | 19308 | { |
| 19123 | - id resolved = QTWhile.properties[key]; | |
| 19309 | + id resolved = QTUseSerializers.properties[key]; | |
| 19124 | 19310 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 19125 | 19311 | } |
| 19126 | 19312 | |
| 19127 | 19313 | - (NSDictionary *)JSONDictionary |
| 19128 | 19314 | { |
| 19129 | - id dict = [[self dictionaryWithValuesForKeys:QTWhile.properties.allValues] mutableCopy]; | |
| 19315 | + id dict = [[self dictionaryWithValuesForKeys:QTUseSerializers.properties.allValues] mutableCopy]; | |
| 19130 | 19316 | |
| 19131 | - for (id jsonName in QTWhile.properties) { | |
| 19132 | - id propertyName = QTWhile.properties[jsonName]; | |
| 19317 | + for (id jsonName in QTUseSerializers.properties) { | |
| 19318 | + id propertyName = QTUseSerializers.properties[jsonName]; | |
| 19133 | 19319 | if (![jsonName isEqualToString:propertyName]) { |
| 19134 | 19320 | dict[jsonName] = dict[propertyName]; |
| 19135 | 19321 | [dict removeObjectForKey:propertyName]; |
Mphpdefault / TopLevel.php+5,133 −4,656
| @@ -21125,6 +21125,7 @@ class Obj3 { | ||
| 21125 | 21125 | private Left $left; // json:left Required |
| 21126 | 21126 | private Let $let; // json:let Required |
| 21127 | 21127 | private ListClass $list; // json:list Required |
| 21128 | + private LocalDate $localDate; // json:LocalDate Required | |
| 21128 | 21129 | private LocaleClass $locale; // json:Locale Required |
| 21129 | 21130 | private Lock $lock; // json:lock Required |
| 21130 | 21131 | private Long $long; // json:long Required |
| @@ -21139,8 +21140,6 @@ class Obj3 { | ||
| 21139 | 21140 | private Native $native; // json:native Required |
| 21140 | 21141 | private NewClass $new; // json:new Required |
| 21141 | 21142 | private Newtonsoft $newtonsoft; // json:newtonsoft Required |
| 21142 | - private Nil $nil; // json:nil Required | |
| 21143 | - private No $no; // json:NO Required | |
| 21144 | 21143 | |
| 21145 | 21144 | /** |
| 21146 | 21145 | * @param int $dummy |
| @@ -21193,6 +21192,7 @@ class Obj3 { | ||
| 21193 | 21192 | * @param Left $left |
| 21194 | 21193 | * @param Let $let |
| 21195 | 21194 | * @param ListClass $list |
| 21195 | + * @param LocalDate $localDate | |
| 21196 | 21196 | * @param LocaleClass $locale |
| 21197 | 21197 | * @param Lock $lock |
| 21198 | 21198 | * @param Long $long |
| @@ -21207,10 +21207,8 @@ class Obj3 { | ||
| 21207 | 21207 | * @param Native $native |
| 21208 | 21208 | * @param NewClass $new |
| 21209 | 21209 | * @param Newtonsoft $newtonsoft |
| 21210 | - * @param Nil $nil | |
| 21211 | - * @param No $no | |
| 21212 | 21210 | */ |
| 21213 | - public function __construct(int $dummy, GotoClass $goto, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, Hashable $hashable, Hasher $hasher, ID $id, IfClass $if, Imp $imp, ImplementsClass $implements, Implicit $implicit, Import $import, In $in, Indirect $indirect, Infix $infix, Init $init, Inline $inline, Inout $inout, InstanceofClass $instanceof, IntClass $int, InterfaceClass $interface, Internal $internal, Is $is, ISODateTimeOffsetConverter $isoDateTimeOffsetConverter, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONAny $jsonAny, JSONCodingKey $jsonCodingKey, JSONConverter $jsonConverter, JSONDecoder $jsonDecoder, JSONEncoder $jsonEncoder, JSONExceptionClass $jsonException, JSONGenerator $jsonGenerator, JSONNode $jsonNode, JSONNull $jsonNull, JSONParser $jsonParser, JSONReader $jsonReader, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONTokenType $jsonTokenType, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, LocaleClass $locale, Lock $lock, Long $long, Map $map, MapEntry $mapEntry, MarshalJSON $marshalJSON, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no) { | |
| 21211 | + public function __construct(int $dummy, GotoClass $goto, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, Hashable $hashable, Hasher $hasher, ID $id, IfClass $if, Imp $imp, ImplementsClass $implements, Implicit $implicit, Import $import, In $in, Indirect $indirect, Infix $infix, Init $init, Inline $inline, Inout $inout, InstanceofClass $instanceof, IntClass $int, InterfaceClass $interface, Internal $internal, Is $is, ISODateTimeOffsetConverter $isoDateTimeOffsetConverter, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONAny $jsonAny, JSONCodingKey $jsonCodingKey, JSONConverter $jsonConverter, JSONDecoder $jsonDecoder, JSONEncoder $jsonEncoder, JSONExceptionClass $jsonException, JSONGenerator $jsonGenerator, JSONNode $jsonNode, JSONNull $jsonNull, JSONParser $jsonParser, JSONReader $jsonReader, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONTokenType $jsonTokenType, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, LocalDate $localDate, LocaleClass $locale, Lock $lock, Long $long, Map $map, MapEntry $mapEntry, MarshalJSON $marshalJSON, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft) { | |
| 21214 | 21212 | $this->dummy = $dummy; |
| 21215 | 21213 | $this->goto = $goto; |
| 21216 | 21214 | $this->guard = $guard; |
| @@ -21261,6 +21259,7 @@ class Obj3 { | ||
| 21261 | 21259 | $this->left = $left; |
| 21262 | 21260 | $this->let = $let; |
| 21263 | 21261 | $this->list = $list; |
| 21262 | + $this->localDate = $localDate; | |
| 21264 | 21263 | $this->locale = $locale; |
| 21265 | 21264 | $this->lock = $lock; |
| 21266 | 21265 | $this->long = $long; |
| @@ -21275,8 +21274,6 @@ class Obj3 { | ||
| 21275 | 21274 | $this->native = $native; |
| 21276 | 21275 | $this->new = $new; |
| 21277 | 21276 | $this->newtonsoft = $newtonsoft; |
| 21278 | - $this->nil = $nil; | |
| 21279 | - $this->no = $no; | |
| 21280 | 21277 | } |
| 21281 | 21278 | |
| 21282 | 21279 | /** |
| @@ -23678,6 +23675,54 @@ class Obj3 { | ||
| 23678 | 23675 | return ListClass::sample(); /*80:list*/ |
| 23679 | 23676 | } |
| 23680 | 23677 | |
| 23678 | + /** | |
| 23679 | + * @param stdClass $value | |
| 23680 | + * @throws Exception | |
| 23681 | + * @return LocalDate | |
| 23682 | + */ | |
| 23683 | + public static function fromLocalDate(stdClass $value): LocalDate { | |
| 23684 | + return LocalDate::from($value); /*class*/ | |
| 23685 | + } | |
| 23686 | + | |
| 23687 | + /** | |
| 23688 | + * @throws Exception | |
| 23689 | + * @return stdClass | |
| 23690 | + */ | |
| 23691 | + public function toLocalDate(): stdClass { | |
| 23692 | + if (Obj3::validateLocalDate($this->localDate)) { | |
| 23693 | + return $this->localDate->to(); /*class*/ | |
| 23694 | + } | |
| 23695 | + throw new Exception('never get to this Obj3::localDate'); | |
| 23696 | + } | |
| 23697 | + | |
| 23698 | + /** | |
| 23699 | + * @param LocalDate | |
| 23700 | + * @return bool | |
| 23701 | + * @throws Exception | |
| 23702 | + */ | |
| 23703 | + public static function validateLocalDate(LocalDate $value): bool { | |
| 23704 | + $value->validate(); | |
| 23705 | + return true; | |
| 23706 | + } | |
| 23707 | + | |
| 23708 | + /** | |
| 23709 | + * @throws Exception | |
| 23710 | + * @return LocalDate | |
| 23711 | + */ | |
| 23712 | + public function getLocalDate(): LocalDate { | |
| 23713 | + if (Obj3::validateLocalDate($this->localDate)) { | |
| 23714 | + return $this->localDate; | |
| 23715 | + } | |
| 23716 | + throw new Exception('never get to getLocalDate Obj3::localDate'); | |
| 23717 | + } | |
| 23718 | + | |
| 23719 | + /** | |
| 23720 | + * @return LocalDate | |
| 23721 | + */ | |
| 23722 | + public static function sampleLocalDate(): LocalDate { | |
| 23723 | + return LocalDate::sample(); /*81:localDate*/ | |
| 23724 | + } | |
| 23725 | + | |
| 23681 | 23726 | /** |
| 23682 | 23727 | * @param stdClass $value |
| 23683 | 23728 | * @throws Exception |
| @@ -23723,7 +23768,7 @@ class Obj3 { | ||
| 23723 | 23768 | * @return LocaleClass |
| 23724 | 23769 | */ |
| 23725 | 23770 | public static function sampleLocale(): LocaleClass { |
| 23726 | - return LocaleClass::sample(); /*81:locale*/ | |
| 23771 | + return LocaleClass::sample(); /*82:locale*/ | |
| 23727 | 23772 | } |
| 23728 | 23773 | |
| 23729 | 23774 | /** |
| @@ -23771,7 +23816,7 @@ class Obj3 { | ||
| 23771 | 23816 | * @return Lock |
| 23772 | 23817 | */ |
| 23773 | 23818 | public static function sampleLock(): Lock { |
| 23774 | - return Lock::sample(); /*82:lock*/ | |
| 23819 | + return Lock::sample(); /*83:lock*/ | |
| 23775 | 23820 | } |
| 23776 | 23821 | |
| 23777 | 23822 | /** |
| @@ -23819,7 +23864,7 @@ class Obj3 { | ||
| 23819 | 23864 | * @return Long |
| 23820 | 23865 | */ |
| 23821 | 23866 | public static function sampleLong(): Long { |
| 23822 | - return Long::sample(); /*83:long*/ | |
| 23867 | + return Long::sample(); /*84:long*/ | |
| 23823 | 23868 | } |
| 23824 | 23869 | |
| 23825 | 23870 | /** |
| @@ -23867,7 +23912,7 @@ class Obj3 { | ||
| 23867 | 23912 | * @return Map |
| 23868 | 23913 | */ |
| 23869 | 23914 | public static function sampleMap(): Map { |
| 23870 | - return Map::sample(); /*84:map*/ | |
| 23915 | + return Map::sample(); /*85:map*/ | |
| 23871 | 23916 | } |
| 23872 | 23917 | |
| 23873 | 23918 | /** |
| @@ -23915,7 +23960,7 @@ class Obj3 { | ||
| 23915 | 23960 | * @return MapEntry |
| 23916 | 23961 | */ |
| 23917 | 23962 | public static function sampleMapEntry(): MapEntry { |
| 23918 | - return MapEntry::sample(); /*85:mapEntry*/ | |
| 23963 | + return MapEntry::sample(); /*86:mapEntry*/ | |
| 23919 | 23964 | } |
| 23920 | 23965 | |
| 23921 | 23966 | /** |
| @@ -23963,7 +24008,7 @@ class Obj3 { | ||
| 23963 | 24008 | * @return MarshalJSON |
| 23964 | 24009 | */ |
| 23965 | 24010 | public static function sampleMarshalJSON(): MarshalJSON { |
| 23966 | - return MarshalJSON::sample(); /*86:marshalJSON*/ | |
| 24011 | + return MarshalJSON::sample(); /*87:marshalJSON*/ | |
| 23967 | 24012 | } |
| 23968 | 24013 | |
| 23969 | 24014 | /** |
| @@ -24011,7 +24056,7 @@ class Obj3 { | ||
| 24011 | 24056 | * @return MetadataPropertyHandling |
| 24012 | 24057 | */ |
| 24013 | 24058 | public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling { |
| 24014 | - return MetadataPropertyHandling::sample(); /*87:metadataPropertyHandling*/ | |
| 24059 | + return MetadataPropertyHandling::sample(); /*88:metadataPropertyHandling*/ | |
| 24015 | 24060 | } |
| 24016 | 24061 | |
| 24017 | 24062 | /** |
| @@ -24059,7 +24104,7 @@ class Obj3 { | ||
| 24059 | 24104 | * @return Module |
| 24060 | 24105 | */ |
| 24061 | 24106 | public static function sampleModule(): Module { |
| 24062 | - return Module::sample(); /*88:module*/ | |
| 24107 | + return Module::sample(); /*89:module*/ | |
| 24063 | 24108 | } |
| 24064 | 24109 | |
| 24065 | 24110 | /** |
| @@ -24107,7 +24152,7 @@ class Obj3 { | ||
| 24107 | 24152 | * @return Mutable |
| 24108 | 24153 | */ |
| 24109 | 24154 | public static function sampleMutable(): Mutable { |
| 24110 | - return Mutable::sample(); /*89:mutable*/ | |
| 24155 | + return Mutable::sample(); /*90:mutable*/ | |
| 24111 | 24156 | } |
| 24112 | 24157 | |
| 24113 | 24158 | /** |
| @@ -24155,7 +24200,7 @@ class Obj3 { | ||
| 24155 | 24200 | * @return Mutating |
| 24156 | 24201 | */ |
| 24157 | 24202 | public static function sampleMutating(): Mutating { |
| 24158 | - return Mutating::sample(); /*90:mutating*/ | |
| 24203 | + return Mutating::sample(); /*91:mutating*/ | |
| 24159 | 24204 | } |
| 24160 | 24205 | |
| 24161 | 24206 | /** |
| @@ -24203,7 +24248,7 @@ class Obj3 { | ||
| 24203 | 24248 | * @return NamespaceClass |
| 24204 | 24249 | */ |
| 24205 | 24250 | public static function sampleNamespace(): NamespaceClass { |
| 24206 | - return NamespaceClass::sample(); /*91:namespace*/ | |
| 24251 | + return NamespaceClass::sample(); /*92:namespace*/ | |
| 24207 | 24252 | } |
| 24208 | 24253 | |
| 24209 | 24254 | /** |
| @@ -24251,7 +24296,7 @@ class Obj3 { | ||
| 24251 | 24296 | * @return Native |
| 24252 | 24297 | */ |
| 24253 | 24298 | public static function sampleNative(): Native { |
| 24254 | - return Native::sample(); /*92:native*/ | |
| 24299 | + return Native::sample(); /*93:native*/ | |
| 24255 | 24300 | } |
| 24256 | 24301 | |
| 24257 | 24302 | /** |
| @@ -24299,7 +24344,7 @@ class Obj3 { | ||
| 24299 | 24344 | * @return NewClass |
| 24300 | 24345 | */ |
| 24301 | 24346 | public static function sampleNew(): NewClass { |
| 24302 | - return NewClass::sample(); /*93:new*/ | |
| 24347 | + return NewClass::sample(); /*94:new*/ | |
| 24303 | 24348 | } |
| 24304 | 24349 | |
| 24305 | 24350 | /** |
| @@ -24347,103 +24392,7 @@ class Obj3 { | ||
| 24347 | 24392 | * @return Newtonsoft |
| 24348 | 24393 | */ |
| 24349 | 24394 | public static function sampleNewtonsoft(): Newtonsoft { |
| 24350 | - return Newtonsoft::sample(); /*94:newtonsoft*/ | |
| 24351 | - } | |
| 24352 | - | |
| 24353 | - /** | |
| 24354 | - * @param stdClass $value | |
| 24355 | - * @throws Exception | |
| 24356 | - * @return Nil | |
| 24357 | - */ | |
| 24358 | - public static function fromNil(stdClass $value): Nil { | |
| 24359 | - return Nil::from($value); /*class*/ | |
| 24360 | - } | |
| 24361 | - | |
| 24362 | - /** | |
| 24363 | - * @throws Exception | |
| 24364 | - * @return stdClass | |
| 24365 | - */ | |
| 24366 | - public function toNil(): stdClass { | |
| 24367 | - if (Obj3::validateNil($this->nil)) { | |
| 24368 | - return $this->nil->to(); /*class*/ | |
| 24369 | - } | |
| 24370 | - throw new Exception('never get to this Obj3::nil'); | |
| 24371 | - } | |
| 24372 | - | |
| 24373 | - /** | |
| 24374 | - * @param Nil | |
| 24375 | - * @return bool | |
| 24376 | - * @throws Exception | |
| 24377 | - */ | |
| 24378 | - public static function validateNil(Nil $value): bool { | |
| 24379 | - $value->validate(); | |
| 24380 | - return true; | |
| 24381 | - } | |
| 24382 | - | |
| 24383 | - /** | |
| 24384 | - * @throws Exception | |
| 24385 | - * @return Nil | |
| 24386 | - */ | |
| 24387 | - public function getNil(): Nil { | |
| 24388 | - if (Obj3::validateNil($this->nil)) { | |
| 24389 | - return $this->nil; | |
| 24390 | - } | |
| 24391 | - throw new Exception('never get to getNil Obj3::nil'); | |
| 24392 | - } | |
| 24393 | - | |
| 24394 | - /** | |
| 24395 | - * @return Nil | |
| 24396 | - */ | |
| 24397 | - public static function sampleNil(): Nil { | |
| 24398 | - return Nil::sample(); /*95:nil*/ | |
| 24399 | - } | |
| 24400 | - | |
| 24401 | - /** | |
| 24402 | - * @param stdClass $value | |
| 24403 | - * @throws Exception | |
| 24404 | - * @return No | |
| 24405 | - */ | |
| 24406 | - public static function fromNo(stdClass $value): No { | |
| 24407 | - return No::from($value); /*class*/ | |
| 24408 | - } | |
| 24409 | - | |
| 24410 | - /** | |
| 24411 | - * @throws Exception | |
| 24412 | - * @return stdClass | |
| 24413 | - */ | |
| 24414 | - public function toNo(): stdClass { | |
| 24415 | - if (Obj3::validateNo($this->no)) { | |
| 24416 | - return $this->no->to(); /*class*/ | |
| 24417 | - } | |
| 24418 | - throw new Exception('never get to this Obj3::no'); | |
| 24419 | - } | |
| 24420 | - | |
| 24421 | - /** | |
| 24422 | - * @param No | |
| 24423 | - * @return bool | |
| 24424 | - * @throws Exception | |
| 24425 | - */ | |
| 24426 | - public static function validateNo(No $value): bool { | |
| 24427 | - $value->validate(); | |
| 24428 | - return true; | |
| 24429 | - } | |
| 24430 | - | |
| 24431 | - /** | |
| 24432 | - * @throws Exception | |
| 24433 | - * @return No | |
| 24434 | - */ | |
| 24435 | - public function getNo(): No { | |
| 24436 | - if (Obj3::validateNo($this->no)) { | |
| 24437 | - return $this->no; | |
| 24438 | - } | |
| 24439 | - throw new Exception('never get to getNo Obj3::no'); | |
| 24440 | - } | |
| 24441 | - | |
| 24442 | - /** | |
| 24443 | - * @return No | |
| 24444 | - */ | |
| 24445 | - public static function sampleNo(): No { | |
| 24446 | - return No::sample(); /*96:no*/ | |
| 24395 | + return Newtonsoft::sample(); /*95:newtonsoft*/ | |
| 24447 | 24396 | } |
| 24448 | 24397 | |
| 24449 | 24398 | /** |
| @@ -24501,6 +24450,7 @@ class Obj3 { | ||
| 24501 | 24450 | || Obj3::validateLeft($this->left) |
| 24502 | 24451 | || Obj3::validateLet($this->let) |
| 24503 | 24452 | || Obj3::validateList($this->list) |
| 24453 | + || Obj3::validateLocalDate($this->localDate) | |
| 24504 | 24454 | || Obj3::validateLocale($this->locale) |
| 24505 | 24455 | || Obj3::validateLock($this->lock) |
| 24506 | 24456 | || Obj3::validateLong($this->long) |
| @@ -24514,9 +24464,7 @@ class Obj3 { | ||
| 24514 | 24464 | || Obj3::validateNamespace($this->namespace) |
| 24515 | 24465 | || Obj3::validateNative($this->native) |
| 24516 | 24466 | || Obj3::validateNew($this->new) |
| 24517 | - || Obj3::validateNewtonsoft($this->newtonsoft) | |
| 24518 | - || Obj3::validateNil($this->nil) | |
| 24519 | - || Obj3::validateNo($this->no); | |
| 24467 | + || Obj3::validateNewtonsoft($this->newtonsoft); | |
| 24520 | 24468 | } |
| 24521 | 24469 | |
| 24522 | 24470 | /** |
| @@ -24575,6 +24523,7 @@ class Obj3 { | ||
| 24575 | 24523 | $out->{'left'} = $this->toLeft(); |
| 24576 | 24524 | $out->{'let'} = $this->toLet(); |
| 24577 | 24525 | $out->{'list'} = $this->toList(); |
| 24526 | + $out->{'LocalDate'} = $this->toLocalDate(); | |
| 24578 | 24527 | $out->{'Locale'} = $this->toLocale(); |
| 24579 | 24528 | $out->{'lock'} = $this->toLock(); |
| 24580 | 24529 | $out->{'long'} = $this->toLong(); |
| @@ -24589,8 +24538,6 @@ class Obj3 { | ||
| 24589 | 24538 | $out->{'native'} = $this->toNative(); |
| 24590 | 24539 | $out->{'new'} = $this->toNew(); |
| 24591 | 24540 | $out->{'newtonsoft'} = $this->toNewtonsoft(); |
| 24592 | - $out->{'nil'} = $this->toNil(); | |
| 24593 | - $out->{'NO'} = $this->toNo(); | |
| 24594 | 24541 | return $out; |
| 24595 | 24542 | } |
| 24596 | 24543 | |
| @@ -24750,6 +24697,9 @@ class Obj3 { | ||
| 24750 | 24697 | if (!property_exists($obj, 'list')) { |
| 24751 | 24698 | throw new Exception("Missing required property"); |
| 24752 | 24699 | } |
| 24700 | + if (!property_exists($obj, 'LocalDate')) { | |
| 24701 | + throw new Exception("Missing required property"); | |
| 24702 | + } | |
| 24753 | 24703 | if (!property_exists($obj, 'Locale')) { |
| 24754 | 24704 | throw new Exception("Missing required property"); |
| 24755 | 24705 | } |
| @@ -24792,12 +24742,6 @@ class Obj3 { | ||
| 24792 | 24742 | if (!property_exists($obj, 'newtonsoft')) { |
| 24793 | 24743 | throw new Exception("Missing required property"); |
| 24794 | 24744 | } |
| 24795 | - if (!property_exists($obj, 'nil')) { | |
| 24796 | - throw new Exception("Missing required property"); | |
| 24797 | - } | |
| 24798 | - if (!property_exists($obj, 'NO')) { | |
| 24799 | - throw new Exception("Missing required property"); | |
| 24800 | - } | |
| 24801 | 24745 | return new Obj3( |
| 24802 | 24746 | Obj3::fromDummy($obj->{'dummy'}) |
| 24803 | 24747 | ,Obj3::fromGoto($obj->{'goto'}) |
| @@ -24849,6 +24793,7 @@ class Obj3 { | ||
| 24849 | 24793 | ,Obj3::fromLeft($obj->{'left'}) |
| 24850 | 24794 | ,Obj3::fromLet($obj->{'let'}) |
| 24851 | 24795 | ,Obj3::fromList($obj->{'list'}) |
| 24796 | + ,Obj3::fromLocalDate($obj->{'LocalDate'}) | |
| 24852 | 24797 | ,Obj3::fromLocale($obj->{'Locale'}) |
| 24853 | 24798 | ,Obj3::fromLock($obj->{'lock'}) |
| 24854 | 24799 | ,Obj3::fromLong($obj->{'long'}) |
| @@ -24863,8 +24808,6 @@ class Obj3 { | ||
| 24863 | 24808 | ,Obj3::fromNative($obj->{'native'}) |
| 24864 | 24809 | ,Obj3::fromNew($obj->{'new'}) |
| 24865 | 24810 | ,Obj3::fromNewtonsoft($obj->{'newtonsoft'}) |
| 24866 | - ,Obj3::fromNil($obj->{'nil'}) | |
| 24867 | - ,Obj3::fromNo($obj->{'NO'}) | |
| 24868 | 24811 | ); |
| 24869 | 24812 | } |
| 24870 | 24813 | |
| @@ -24923,6 +24866,7 @@ class Obj3 { | ||
| 24923 | 24866 | ,Obj3::sampleLeft() |
| 24924 | 24867 | ,Obj3::sampleLet() |
| 24925 | 24868 | ,Obj3::sampleList() |
| 24869 | + ,Obj3::sampleLocalDate() | |
| 24926 | 24870 | ,Obj3::sampleLocale() |
| 24927 | 24871 | ,Obj3::sampleLock() |
| 24928 | 24872 | ,Obj3::sampleLong() |
| @@ -24937,8 +24881,6 @@ class Obj3 { | ||
| 24937 | 24881 | ,Obj3::sampleNative() |
| 24938 | 24882 | ,Obj3::sampleNew() |
| 24939 | 24883 | ,Obj3::sampleNewtonsoft() |
| 24940 | - ,Obj3::sampleNil() | |
| 24941 | - ,Obj3::sampleNo() | |
| 24942 | 24884 | ); |
| 24943 | 24885 | } |
| 24944 | 24886 | } |
| @@ -29895,6 +29837,107 @@ class ListClass { | ||
| 29895 | 29837 | } |
| 29896 | 29838 | } |
| 29897 | 29839 | |
| 29840 | +// This is an autogenerated file:LocalDate | |
| 29841 | + | |
| 29842 | +class LocalDate { | |
| 29843 | + private int $localDate; // json:LocalDate Required | |
| 29844 | + | |
| 29845 | + /** | |
| 29846 | + * @param int $localDate | |
| 29847 | + */ | |
| 29848 | + public function __construct(int $localDate) { | |
| 29849 | + $this->localDate = $localDate; | |
| 29850 | + } | |
| 29851 | + | |
| 29852 | + /** | |
| 29853 | + * @param int $value | |
| 29854 | + * @throws Exception | |
| 29855 | + * @return int | |
| 29856 | + */ | |
| 29857 | + public static function fromLocalDate(int $value): int { | |
| 29858 | + return $value; /*int*/ | |
| 29859 | + } | |
| 29860 | + | |
| 29861 | + /** | |
| 29862 | + * @throws Exception | |
| 29863 | + * @return int | |
| 29864 | + */ | |
| 29865 | + public function toLocalDate(): int { | |
| 29866 | + if (LocalDate::validateLocalDate($this->localDate)) { | |
| 29867 | + return $this->localDate; /*int*/ | |
| 29868 | + } | |
| 29869 | + throw new Exception('never get to this LocalDate::localDate'); | |
| 29870 | + } | |
| 29871 | + | |
| 29872 | + /** | |
| 29873 | + * @param int | |
| 29874 | + * @return bool | |
| 29875 | + * @throws Exception | |
| 29876 | + */ | |
| 29877 | + public static function validateLocalDate(int $value): bool { | |
| 29878 | + return true; | |
| 29879 | + } | |
| 29880 | + | |
| 29881 | + /** | |
| 29882 | + * @throws Exception | |
| 29883 | + * @return int | |
| 29884 | + */ | |
| 29885 | + public function getLocalDate(): int { | |
| 29886 | + if (LocalDate::validateLocalDate($this->localDate)) { | |
| 29887 | + return $this->localDate; | |
| 29888 | + } | |
| 29889 | + throw new Exception('never get to getLocalDate LocalDate::localDate'); | |
| 29890 | + } | |
| 29891 | + | |
| 29892 | + /** | |
| 29893 | + * @return int | |
| 29894 | + */ | |
| 29895 | + public static function sampleLocalDate(): int { | |
| 29896 | + return 31; /*31:localDate*/ | |
| 29897 | + } | |
| 29898 | + | |
| 29899 | + /** | |
| 29900 | + * @throws Exception | |
| 29901 | + * @return bool | |
| 29902 | + */ | |
| 29903 | + public function validate(): bool { | |
| 29904 | + return LocalDate::validateLocalDate($this->localDate); | |
| 29905 | + } | |
| 29906 | + | |
| 29907 | + /** | |
| 29908 | + * @return stdClass | |
| 29909 | + * @throws Exception | |
| 29910 | + */ | |
| 29911 | + public function to(): stdClass { | |
| 29912 | + $out = new stdClass(); | |
| 29913 | + $out->{'LocalDate'} = $this->toLocalDate(); | |
| 29914 | + return $out; | |
| 29915 | + } | |
| 29916 | + | |
| 29917 | + /** | |
| 29918 | + * @param stdClass $obj | |
| 29919 | + * @return LocalDate | |
| 29920 | + * @throws Exception | |
| 29921 | + */ | |
| 29922 | + public static function from(stdClass $obj): LocalDate { | |
| 29923 | + if (!property_exists($obj, 'LocalDate')) { | |
| 29924 | + throw new Exception("Missing required property"); | |
| 29925 | + } | |
| 29926 | + return new LocalDate( | |
| 29927 | + LocalDate::fromLocalDate($obj->{'LocalDate'}) | |
| 29928 | + ); | |
| 29929 | + } | |
| 29930 | + | |
| 29931 | + /** | |
| 29932 | + * @return LocalDate | |
| 29933 | + */ | |
| 29934 | + public static function sample(): LocalDate { | |
| 29935 | + return new LocalDate( | |
| 29936 | + LocalDate::sampleLocalDate() | |
| 29937 | + ); | |
| 29938 | + } | |
| 29939 | +} | |
| 29940 | + | |
| 29898 | 29941 | // This is an autogenerated file:LocaleClass |
| 29899 | 29942 | |
| 29900 | 29943 | class LocaleClass { |
| @@ -31309,212 +31352,12 @@ class Newtonsoft { | ||
| 31309 | 31352 | } |
| 31310 | 31353 | } |
| 31311 | 31354 | |
| 31312 | -// This is an autogenerated file:Nil | |
| 31313 | - | |
| 31314 | -class Nil { | |
| 31315 | - private int $nil; // json:nil Required | |
| 31316 | - | |
| 31317 | - /** | |
| 31318 | - * @param int $nil | |
| 31319 | - */ | |
| 31320 | - public function __construct(int $nil) { | |
| 31321 | - $this->nil = $nil; | |
| 31322 | - } | |
| 31323 | - | |
| 31324 | - /** | |
| 31325 | - * @param int $value | |
| 31326 | - * @throws Exception | |
| 31327 | - * @return int | |
| 31328 | - */ | |
| 31329 | - public static function fromNil(int $value): int { | |
| 31330 | - return $value; /*int*/ | |
| 31331 | - } | |
| 31332 | - | |
| 31333 | - /** | |
| 31334 | - * @throws Exception | |
| 31335 | - * @return int | |
| 31336 | - */ | |
| 31337 | - public function toNil(): int { | |
| 31338 | - if (Nil::validateNil($this->nil)) { | |
| 31339 | - return $this->nil; /*int*/ | |
| 31340 | - } | |
| 31341 | - throw new Exception('never get to this Nil::nil'); | |
| 31342 | - } | |
| 31343 | - | |
| 31344 | - /** | |
| 31345 | - * @param int | |
| 31346 | - * @return bool | |
| 31347 | - * @throws Exception | |
| 31348 | - */ | |
| 31349 | - public static function validateNil(int $value): bool { | |
| 31350 | - return true; | |
| 31351 | - } | |
| 31352 | - | |
| 31353 | - /** | |
| 31354 | - * @throws Exception | |
| 31355 | - * @return int | |
| 31356 | - */ | |
| 31357 | - public function getNil(): int { | |
| 31358 | - if (Nil::validateNil($this->nil)) { | |
| 31359 | - return $this->nil; | |
| 31360 | - } | |
| 31361 | - throw new Exception('never get to getNil Nil::nil'); | |
| 31362 | - } | |
| 31363 | - | |
| 31364 | - /** | |
| 31365 | - * @return int | |
| 31366 | - */ | |
| 31367 | - public static function sampleNil(): int { | |
| 31368 | - return 31; /*31:nil*/ | |
| 31369 | - } | |
| 31370 | - | |
| 31371 | - /** | |
| 31372 | - * @throws Exception | |
| 31373 | - * @return bool | |
| 31374 | - */ | |
| 31375 | - public function validate(): bool { | |
| 31376 | - return Nil::validateNil($this->nil); | |
| 31377 | - } | |
| 31378 | - | |
| 31379 | - /** | |
| 31380 | - * @return stdClass | |
| 31381 | - * @throws Exception | |
| 31382 | - */ | |
| 31383 | - public function to(): stdClass { | |
| 31384 | - $out = new stdClass(); | |
| 31385 | - $out->{'nil'} = $this->toNil(); | |
| 31386 | - return $out; | |
| 31387 | - } | |
| 31388 | - | |
| 31389 | - /** | |
| 31390 | - * @param stdClass $obj | |
| 31391 | - * @return Nil | |
| 31392 | - * @throws Exception | |
| 31393 | - */ | |
| 31394 | - public static function from(stdClass $obj): Nil { | |
| 31395 | - if (!property_exists($obj, 'nil')) { | |
| 31396 | - throw new Exception("Missing required property"); | |
| 31397 | - } | |
| 31398 | - return new Nil( | |
| 31399 | - Nil::fromNil($obj->{'nil'}) | |
| 31400 | - ); | |
| 31401 | - } | |
| 31402 | - | |
| 31403 | - /** | |
| 31404 | - * @return Nil | |
| 31405 | - */ | |
| 31406 | - public static function sample(): Nil { | |
| 31407 | - return new Nil( | |
| 31408 | - Nil::sampleNil() | |
| 31409 | - ); | |
| 31410 | - } | |
| 31411 | -} | |
| 31412 | - | |
| 31413 | -// This is an autogenerated file:No | |
| 31414 | - | |
| 31415 | -class No { | |
| 31416 | - private int $no; // json:NO Required | |
| 31417 | - | |
| 31418 | - /** | |
| 31419 | - * @param int $no | |
| 31420 | - */ | |
| 31421 | - public function __construct(int $no) { | |
| 31422 | - $this->no = $no; | |
| 31423 | - } | |
| 31424 | - | |
| 31425 | - /** | |
| 31426 | - * @param int $value | |
| 31427 | - * @throws Exception | |
| 31428 | - * @return int | |
| 31429 | - */ | |
| 31430 | - public static function fromNo(int $value): int { | |
| 31431 | - return $value; /*int*/ | |
| 31432 | - } | |
| 31433 | - | |
| 31434 | - /** | |
| 31435 | - * @throws Exception | |
| 31436 | - * @return int | |
| 31437 | - */ | |
| 31438 | - public function toNo(): int { | |
| 31439 | - if (No::validateNo($this->no)) { | |
| 31440 | - return $this->no; /*int*/ | |
| 31441 | - } | |
| 31442 | - throw new Exception('never get to this No::no'); | |
| 31443 | - } | |
| 31444 | - | |
| 31445 | - /** | |
| 31446 | - * @param int | |
| 31447 | - * @return bool | |
| 31448 | - * @throws Exception | |
| 31449 | - */ | |
| 31450 | - public static function validateNo(int $value): bool { | |
| 31451 | - return true; | |
| 31452 | - } | |
| 31453 | - | |
| 31454 | - /** | |
| 31455 | - * @throws Exception | |
| 31456 | - * @return int | |
| 31457 | - */ | |
| 31458 | - public function getNo(): int { | |
| 31459 | - if (No::validateNo($this->no)) { | |
| 31460 | - return $this->no; | |
| 31461 | - } | |
| 31462 | - throw new Exception('never get to getNo No::no'); | |
| 31463 | - } | |
| 31464 | - | |
| 31465 | - /** | |
| 31466 | - * @return int | |
| 31467 | - */ | |
| 31468 | - public static function sampleNo(): int { | |
| 31469 | - return 31; /*31:no*/ | |
| 31470 | - } | |
| 31471 | - | |
| 31472 | - /** | |
| 31473 | - * @throws Exception | |
| 31474 | - * @return bool | |
| 31475 | - */ | |
| 31476 | - public function validate(): bool { | |
| 31477 | - return No::validateNo($this->no); | |
| 31478 | - } | |
| 31479 | - | |
| 31480 | - /** | |
| 31481 | - * @return stdClass | |
| 31482 | - * @throws Exception | |
| 31483 | - */ | |
| 31484 | - public function to(): stdClass { | |
| 31485 | - $out = new stdClass(); | |
| 31486 | - $out->{'NO'} = $this->toNo(); | |
| 31487 | - return $out; | |
| 31488 | - } | |
| 31489 | - | |
| 31490 | - /** | |
| 31491 | - * @param stdClass $obj | |
| 31492 | - * @return No | |
| 31493 | - * @throws Exception | |
| 31494 | - */ | |
| 31495 | - public static function from(stdClass $obj): No { | |
| 31496 | - if (!property_exists($obj, 'NO')) { | |
| 31497 | - throw new Exception("Missing required property"); | |
| 31498 | - } | |
| 31499 | - return new No( | |
| 31500 | - No::fromNo($obj->{'NO'}) | |
| 31501 | - ); | |
| 31502 | - } | |
| 31503 | - | |
| 31504 | - /** | |
| 31505 | - * @return No | |
| 31506 | - */ | |
| 31507 | - public static function sample(): No { | |
| 31508 | - return new No( | |
| 31509 | - No::sampleNo() | |
| 31510 | - ); | |
| 31511 | - } | |
| 31512 | -} | |
| 31513 | - | |
| 31514 | -// This is an autogenerated file:Obj4 | |
| 31355 | +// This is an autogenerated file:Obj4 | |
| 31515 | 31356 | |
| 31516 | 31357 | class Obj4 { |
| 31517 | 31358 | private int $dummy; // json:dummy Required |
| 31359 | + private Nil $nil; // json:nil Required | |
| 31360 | + private No $no; // json:NO Required | |
| 31518 | 31361 | private NoSuchMethod $noSuchMethod; // json:noSuchMethod Required |
| 31519 | 31362 | private Noexcept $noexcept; // json:noexcept Required |
| 31520 | 31363 | private Nonatomic $nonatomic; // json:nonatomic Required |
| @@ -31535,6 +31378,8 @@ class Obj4 { | ||
| 31535 | 31378 | private ObjectClass $object; // json:object Required |
| 31536 | 31379 | private ObjectMapper $objectMapper; // json:ObjectMapper Required |
| 31537 | 31380 | private Of $of; // json:of Required |
| 31381 | + private OffsetDateTime $offsetDateTime; // json:OffsetDateTime Required | |
| 31382 | + private OffsetTime $offsetTime; // json:OffsetTime Required | |
| 31538 | 31383 | private Oneway $oneway; // json:oneway Required |
| 31539 | 31384 | private Open $open; // json:open Required |
| 31540 | 31385 | private Operator $operator; // json:operator Required |
| @@ -31575,13 +31420,11 @@ class Obj4 { | ||
| 31575 | 31420 | private ReturnClass $return; // json:return Required |
| 31576 | 31421 | private Right $right; // json:right Required |
| 31577 | 31422 | private RuntimeType $runtimeType; // json:runtimeType Required |
| 31578 | - private S $s; // json:s Required | |
| 31579 | - private Sbyte $sbyte; // json:sbyte Required | |
| 31580 | - private Sealed $sealed; // json:sealed Required | |
| 31581 | - private Sel $sel; // json:SEL Required | |
| 31582 | 31423 | |
| 31583 | 31424 | /** |
| 31584 | 31425 | * @param int $dummy |
| 31426 | + * @param Nil $nil | |
| 31427 | + * @param No $no | |
| 31585 | 31428 | * @param NoSuchMethod $noSuchMethod |
| 31586 | 31429 | * @param Noexcept $noexcept |
| 31587 | 31430 | * @param Nonatomic $nonatomic |
| @@ -31602,6 +31445,8 @@ class Obj4 { | ||
| 31602 | 31445 | * @param ObjectClass $object |
| 31603 | 31446 | * @param ObjectMapper $objectMapper |
| 31604 | 31447 | * @param Of $of |
| 31448 | + * @param OffsetDateTime $offsetDateTime | |
| 31449 | + * @param OffsetTime $offsetTime | |
| 31605 | 31450 | * @param Oneway $oneway |
| 31606 | 31451 | * @param Open $open |
| 31607 | 31452 | * @param Operator $operator |
| @@ -31642,13 +31487,11 @@ class Obj4 { | ||
| 31642 | 31487 | * @param ReturnClass $return |
| 31643 | 31488 | * @param Right $right |
| 31644 | 31489 | * @param RuntimeType $runtimeType |
| 31645 | - * @param S $s | |
| 31646 | - * @param Sbyte $sbyte | |
| 31647 | - * @param Sealed $sealed | |
| 31648 | - * @param Sel $sel | |
| 31649 | 31490 | */ |
| 31650 | - public function __construct(int $dummy, NoSuchMethod $noSuchMethod, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, Of $of, Oneway $oneway, Open $open, Operator $operator, Optional $optional, OrClass $or, OrEq $orEq, Out $out, OverrideClass $override, Package $package, Params $params, Pass $pass, Port $port, Postfix $postfix, Precedence $precedence, Prefix $prefix, PrintClass $print, PrintMembers $printMembers, Printf $printf, PrivateClass $private, ProtectedClass $protected, Protocol $protocol, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, RegExp $regExp, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel) { | |
| 31491 | + public function __construct(int $dummy, Nil $nil, No $no, NoSuchMethod $noSuchMethod, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, Of $of, OffsetDateTime $offsetDateTime, OffsetTime $offsetTime, Oneway $oneway, Open $open, Operator $operator, Optional $optional, OrClass $or, OrEq $orEq, Out $out, OverrideClass $override, Package $package, Params $params, Pass $pass, Port $port, Postfix $postfix, Precedence $precedence, Prefix $prefix, PrintClass $print, PrintMembers $printMembers, Printf $printf, PrivateClass $private, ProtectedClass $protected, Protocol $protocol, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, RegExp $regExp, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType) { | |
| 31651 | 31492 | $this->dummy = $dummy; |
| 31493 | + $this->nil = $nil; | |
| 31494 | + $this->no = $no; | |
| 31652 | 31495 | $this->noSuchMethod = $noSuchMethod; |
| 31653 | 31496 | $this->noexcept = $noexcept; |
| 31654 | 31497 | $this->nonatomic = $nonatomic; |
| @@ -31669,6 +31512,8 @@ class Obj4 { | ||
| 31669 | 31512 | $this->object = $object; |
| 31670 | 31513 | $this->objectMapper = $objectMapper; |
| 31671 | 31514 | $this->of = $of; |
| 31515 | + $this->offsetDateTime = $offsetDateTime; | |
| 31516 | + $this->offsetTime = $offsetTime; | |
| 31672 | 31517 | $this->oneway = $oneway; |
| 31673 | 31518 | $this->open = $open; |
| 31674 | 31519 | $this->operator = $operator; |
| @@ -31709,10 +31554,6 @@ class Obj4 { | ||
| 31709 | 31554 | $this->return = $return; |
| 31710 | 31555 | $this->right = $right; |
| 31711 | 31556 | $this->runtimeType = $runtimeType; |
| 31712 | - $this->s = $s; | |
| 31713 | - $this->sbyte = $sbyte; | |
| 31714 | - $this->sealed = $sealed; | |
| 31715 | - $this->sel = $sel; | |
| 31716 | 31557 | } |
| 31717 | 31558 | |
| 31718 | 31559 | /** |
| @@ -31765,145 +31606,241 @@ class Obj4 { | ||
| 31765 | 31606 | /** |
| 31766 | 31607 | * @param stdClass $value |
| 31767 | 31608 | * @throws Exception |
| 31768 | - * @return NoSuchMethod | |
| 31609 | + * @return Nil | |
| 31769 | 31610 | */ |
| 31770 | - public static function fromNoSuchMethod(stdClass $value): NoSuchMethod { | |
| 31771 | - return NoSuchMethod::from($value); /*class*/ | |
| 31611 | + public static function fromNil(stdClass $value): Nil { | |
| 31612 | + return Nil::from($value); /*class*/ | |
| 31772 | 31613 | } |
| 31773 | 31614 | |
| 31774 | 31615 | /** |
| 31775 | 31616 | * @throws Exception |
| 31776 | 31617 | * @return stdClass |
| 31777 | 31618 | */ |
| 31778 | - public function toNoSuchMethod(): stdClass { | |
| 31779 | - if (Obj4::validateNoSuchMethod($this->noSuchMethod)) { | |
| 31780 | - return $this->noSuchMethod->to(); /*class*/ | |
| 31619 | + public function toNil(): stdClass { | |
| 31620 | + if (Obj4::validateNil($this->nil)) { | |
| 31621 | + return $this->nil->to(); /*class*/ | |
| 31781 | 31622 | } |
| 31782 | - throw new Exception('never get to this Obj4::noSuchMethod'); | |
| 31623 | + throw new Exception('never get to this Obj4::nil'); | |
| 31783 | 31624 | } |
| 31784 | 31625 | |
| 31785 | 31626 | /** |
| 31786 | - * @param NoSuchMethod | |
| 31627 | + * @param Nil | |
| 31787 | 31628 | * @return bool |
| 31788 | 31629 | * @throws Exception |
| 31789 | 31630 | */ |
| 31790 | - public static function validateNoSuchMethod(NoSuchMethod $value): bool { | |
| 31631 | + public static function validateNil(Nil $value): bool { | |
| 31791 | 31632 | $value->validate(); |
| 31792 | 31633 | return true; |
| 31793 | 31634 | } |
| 31794 | 31635 | |
| 31795 | 31636 | /** |
| 31796 | 31637 | * @throws Exception |
| 31797 | - * @return NoSuchMethod | |
| 31638 | + * @return Nil | |
| 31798 | 31639 | */ |
| 31799 | - public function getNoSuchMethod(): NoSuchMethod { | |
| 31800 | - if (Obj4::validateNoSuchMethod($this->noSuchMethod)) { | |
| 31801 | - return $this->noSuchMethod; | |
| 31640 | + public function getNil(): Nil { | |
| 31641 | + if (Obj4::validateNil($this->nil)) { | |
| 31642 | + return $this->nil; | |
| 31802 | 31643 | } |
| 31803 | - throw new Exception('never get to getNoSuchMethod Obj4::noSuchMethod'); | |
| 31644 | + throw new Exception('never get to getNil Obj4::nil'); | |
| 31804 | 31645 | } |
| 31805 | 31646 | |
| 31806 | 31647 | /** |
| 31807 | - * @return NoSuchMethod | |
| 31648 | + * @return Nil | |
| 31808 | 31649 | */ |
| 31809 | - public static function sampleNoSuchMethod(): NoSuchMethod { | |
| 31810 | - return NoSuchMethod::sample(); /*32:noSuchMethod*/ | |
| 31650 | + public static function sampleNil(): Nil { | |
| 31651 | + return Nil::sample(); /*32:nil*/ | |
| 31811 | 31652 | } |
| 31812 | 31653 | |
| 31813 | 31654 | /** |
| 31814 | 31655 | * @param stdClass $value |
| 31815 | 31656 | * @throws Exception |
| 31816 | - * @return Noexcept | |
| 31657 | + * @return No | |
| 31817 | 31658 | */ |
| 31818 | - public static function fromNoexcept(stdClass $value): Noexcept { | |
| 31819 | - return Noexcept::from($value); /*class*/ | |
| 31659 | + public static function fromNo(stdClass $value): No { | |
| 31660 | + return No::from($value); /*class*/ | |
| 31820 | 31661 | } |
| 31821 | 31662 | |
| 31822 | 31663 | /** |
| 31823 | 31664 | * @throws Exception |
| 31824 | 31665 | * @return stdClass |
| 31825 | 31666 | */ |
| 31826 | - public function toNoexcept(): stdClass { | |
| 31827 | - if (Obj4::validateNoexcept($this->noexcept)) { | |
| 31828 | - return $this->noexcept->to(); /*class*/ | |
| 31667 | + public function toNo(): stdClass { | |
| 31668 | + if (Obj4::validateNo($this->no)) { | |
| 31669 | + return $this->no->to(); /*class*/ | |
| 31829 | 31670 | } |
| 31830 | - throw new Exception('never get to this Obj4::noexcept'); | |
| 31671 | + throw new Exception('never get to this Obj4::no'); | |
| 31831 | 31672 | } |
| 31832 | 31673 | |
| 31833 | 31674 | /** |
| 31834 | - * @param Noexcept | |
| 31675 | + * @param No | |
| 31835 | 31676 | * @return bool |
| 31836 | 31677 | * @throws Exception |
| 31837 | 31678 | */ |
| 31838 | - public static function validateNoexcept(Noexcept $value): bool { | |
| 31679 | + public static function validateNo(No $value): bool { | |
| 31839 | 31680 | $value->validate(); |
| 31840 | 31681 | return true; |
| 31841 | 31682 | } |
| 31842 | 31683 | |
| 31843 | 31684 | /** |
| 31844 | 31685 | * @throws Exception |
| 31845 | - * @return Noexcept | |
| 31686 | + * @return No | |
| 31846 | 31687 | */ |
| 31847 | - public function getNoexcept(): Noexcept { | |
| 31848 | - if (Obj4::validateNoexcept($this->noexcept)) { | |
| 31849 | - return $this->noexcept; | |
| 31688 | + public function getNo(): No { | |
| 31689 | + if (Obj4::validateNo($this->no)) { | |
| 31690 | + return $this->no; | |
| 31850 | 31691 | } |
| 31851 | - throw new Exception('never get to getNoexcept Obj4::noexcept'); | |
| 31692 | + throw new Exception('never get to getNo Obj4::no'); | |
| 31852 | 31693 | } |
| 31853 | 31694 | |
| 31854 | 31695 | /** |
| 31855 | - * @return Noexcept | |
| 31696 | + * @return No | |
| 31856 | 31697 | */ |
| 31857 | - public static function sampleNoexcept(): Noexcept { | |
| 31858 | - return Noexcept::sample(); /*33:noexcept*/ | |
| 31698 | + public static function sampleNo(): No { | |
| 31699 | + return No::sample(); /*33:no*/ | |
| 31859 | 31700 | } |
| 31860 | 31701 | |
| 31861 | 31702 | /** |
| 31862 | 31703 | * @param stdClass $value |
| 31863 | 31704 | * @throws Exception |
| 31864 | - * @return Nonatomic | |
| 31705 | + * @return NoSuchMethod | |
| 31865 | 31706 | */ |
| 31866 | - public static function fromNonatomic(stdClass $value): Nonatomic { | |
| 31867 | - return Nonatomic::from($value); /*class*/ | |
| 31707 | + public static function fromNoSuchMethod(stdClass $value): NoSuchMethod { | |
| 31708 | + return NoSuchMethod::from($value); /*class*/ | |
| 31868 | 31709 | } |
| 31869 | 31710 | |
| 31870 | 31711 | /** |
| 31871 | 31712 | * @throws Exception |
| 31872 | 31713 | * @return stdClass |
| 31873 | 31714 | */ |
| 31874 | - public function toNonatomic(): stdClass { | |
| 31875 | - if (Obj4::validateNonatomic($this->nonatomic)) { | |
| 31876 | - return $this->nonatomic->to(); /*class*/ | |
| 31715 | + public function toNoSuchMethod(): stdClass { | |
| 31716 | + if (Obj4::validateNoSuchMethod($this->noSuchMethod)) { | |
| 31717 | + return $this->noSuchMethod->to(); /*class*/ | |
| 31877 | 31718 | } |
| 31878 | - throw new Exception('never get to this Obj4::nonatomic'); | |
| 31719 | + throw new Exception('never get to this Obj4::noSuchMethod'); | |
| 31879 | 31720 | } |
| 31880 | 31721 | |
| 31881 | 31722 | /** |
| 31882 | - * @param Nonatomic | |
| 31723 | + * @param NoSuchMethod | |
| 31883 | 31724 | * @return bool |
| 31884 | 31725 | * @throws Exception |
| 31885 | 31726 | */ |
| 31886 | - public static function validateNonatomic(Nonatomic $value): bool { | |
| 31727 | + public static function validateNoSuchMethod(NoSuchMethod $value): bool { | |
| 31887 | 31728 | $value->validate(); |
| 31888 | 31729 | return true; |
| 31889 | 31730 | } |
| 31890 | 31731 | |
| 31891 | 31732 | /** |
| 31892 | 31733 | * @throws Exception |
| 31893 | - * @return Nonatomic | |
| 31734 | + * @return NoSuchMethod | |
| 31894 | 31735 | */ |
| 31895 | - public function getNonatomic(): Nonatomic { | |
| 31896 | - if (Obj4::validateNonatomic($this->nonatomic)) { | |
| 31897 | - return $this->nonatomic; | |
| 31736 | + public function getNoSuchMethod(): NoSuchMethod { | |
| 31737 | + if (Obj4::validateNoSuchMethod($this->noSuchMethod)) { | |
| 31738 | + return $this->noSuchMethod; | |
| 31898 | 31739 | } |
| 31899 | - throw new Exception('never get to getNonatomic Obj4::nonatomic'); | |
| 31740 | + throw new Exception('never get to getNoSuchMethod Obj4::noSuchMethod'); | |
| 31900 | 31741 | } |
| 31901 | 31742 | |
| 31902 | 31743 | /** |
| 31903 | - * @return Nonatomic | |
| 31744 | + * @return NoSuchMethod | |
| 31745 | + */ | |
| 31746 | + public static function sampleNoSuchMethod(): NoSuchMethod { | |
| 31747 | + return NoSuchMethod::sample(); /*34:noSuchMethod*/ | |
| 31748 | + } | |
| 31749 | + | |
| 31750 | + /** | |
| 31751 | + * @param stdClass $value | |
| 31752 | + * @throws Exception | |
| 31753 | + * @return Noexcept | |
| 31754 | + */ | |
| 31755 | + public static function fromNoexcept(stdClass $value): Noexcept { | |
| 31756 | + return Noexcept::from($value); /*class*/ | |
| 31757 | + } | |
| 31758 | + | |
| 31759 | + /** | |
| 31760 | + * @throws Exception | |
| 31761 | + * @return stdClass | |
| 31762 | + */ | |
| 31763 | + public function toNoexcept(): stdClass { | |
| 31764 | + if (Obj4::validateNoexcept($this->noexcept)) { | |
| 31765 | + return $this->noexcept->to(); /*class*/ | |
| 31766 | + } | |
| 31767 | + throw new Exception('never get to this Obj4::noexcept'); | |
| 31768 | + } | |
| 31769 | + | |
| 31770 | + /** | |
| 31771 | + * @param Noexcept | |
| 31772 | + * @return bool | |
| 31773 | + * @throws Exception | |
| 31774 | + */ | |
| 31775 | + public static function validateNoexcept(Noexcept $value): bool { | |
| 31776 | + $value->validate(); | |
| 31777 | + return true; | |
| 31778 | + } | |
| 31779 | + | |
| 31780 | + /** | |
| 31781 | + * @throws Exception | |
| 31782 | + * @return Noexcept | |
| 31783 | + */ | |
| 31784 | + public function getNoexcept(): Noexcept { | |
| 31785 | + if (Obj4::validateNoexcept($this->noexcept)) { | |
| 31786 | + return $this->noexcept; | |
| 31787 | + } | |
| 31788 | + throw new Exception('never get to getNoexcept Obj4::noexcept'); | |
| 31789 | + } | |
| 31790 | + | |
| 31791 | + /** | |
| 31792 | + * @return Noexcept | |
| 31793 | + */ | |
| 31794 | + public static function sampleNoexcept(): Noexcept { | |
| 31795 | + return Noexcept::sample(); /*35:noexcept*/ | |
| 31796 | + } | |
| 31797 | + | |
| 31798 | + /** | |
| 31799 | + * @param stdClass $value | |
| 31800 | + * @throws Exception | |
| 31801 | + * @return Nonatomic | |
| 31802 | + */ | |
| 31803 | + public static function fromNonatomic(stdClass $value): Nonatomic { | |
| 31804 | + return Nonatomic::from($value); /*class*/ | |
| 31805 | + } | |
| 31806 | + | |
| 31807 | + /** | |
| 31808 | + * @throws Exception | |
| 31809 | + * @return stdClass | |
| 31810 | + */ | |
| 31811 | + public function toNonatomic(): stdClass { | |
| 31812 | + if (Obj4::validateNonatomic($this->nonatomic)) { | |
| 31813 | + return $this->nonatomic->to(); /*class*/ | |
| 31814 | + } | |
| 31815 | + throw new Exception('never get to this Obj4::nonatomic'); | |
| 31816 | + } | |
| 31817 | + | |
| 31818 | + /** | |
| 31819 | + * @param Nonatomic | |
| 31820 | + * @return bool | |
| 31821 | + * @throws Exception | |
| 31822 | + */ | |
| 31823 | + public static function validateNonatomic(Nonatomic $value): bool { | |
| 31824 | + $value->validate(); | |
| 31825 | + return true; | |
| 31826 | + } | |
| 31827 | + | |
| 31828 | + /** | |
| 31829 | + * @throws Exception | |
| 31830 | + * @return Nonatomic | |
| 31831 | + */ | |
| 31832 | + public function getNonatomic(): Nonatomic { | |
| 31833 | + if (Obj4::validateNonatomic($this->nonatomic)) { | |
| 31834 | + return $this->nonatomic; | |
| 31835 | + } | |
| 31836 | + throw new Exception('never get to getNonatomic Obj4::nonatomic'); | |
| 31837 | + } | |
| 31838 | + | |
| 31839 | + /** | |
| 31840 | + * @return Nonatomic | |
| 31904 | 31841 | */ |
| 31905 | 31842 | public static function sampleNonatomic(): Nonatomic { |
| 31906 | - return Nonatomic::sample(); /*34:nonatomic*/ | |
| 31843 | + return Nonatomic::sample(); /*36:nonatomic*/ | |
| 31907 | 31844 | } |
| 31908 | 31845 | |
| 31909 | 31846 | /** |
| @@ -31951,7 +31888,7 @@ class Obj4 { | ||
| 31951 | 31888 | * @return None |
| 31952 | 31889 | */ |
| 31953 | 31890 | public static function sampleNone(): None { |
| 31954 | - return None::sample(); /*35:none*/ | |
| 31891 | + return None::sample(); /*37:none*/ | |
| 31955 | 31892 | } |
| 31956 | 31893 | |
| 31957 | 31894 | /** |
| @@ -31999,7 +31936,7 @@ class Obj4 { | ||
| 31999 | 31936 | * @return Nonlocal |
| 32000 | 31937 | */ |
| 32001 | 31938 | public static function sampleNonlocal(): Nonlocal { |
| 32002 | - return Nonlocal::sample(); /*36:nonlocal*/ | |
| 31939 | + return Nonlocal::sample(); /*38:nonlocal*/ | |
| 32003 | 31940 | } |
| 32004 | 31941 | |
| 32005 | 31942 | /** |
| @@ -32047,7 +31984,7 @@ class Obj4 { | ||
| 32047 | 31984 | * @return Nonmutating |
| 32048 | 31985 | */ |
| 32049 | 31986 | public static function sampleNonmutating(): Nonmutating { |
| 32050 | - return Nonmutating::sample(); /*37:nonmutating*/ | |
| 31987 | + return Nonmutating::sample(); /*39:nonmutating*/ | |
| 32051 | 31988 | } |
| 32052 | 31989 | |
| 32053 | 31990 | /** |
| @@ -32095,7 +32032,7 @@ class Obj4 { | ||
| 32095 | 32032 | * @return Not |
| 32096 | 32033 | */ |
| 32097 | 32034 | public static function sampleNot(): Not { |
| 32098 | - return Not::sample(); /*38:not*/ | |
| 32035 | + return Not::sample(); /*40:not*/ | |
| 32099 | 32036 | } |
| 32100 | 32037 | |
| 32101 | 32038 | /** |
| @@ -32143,7 +32080,7 @@ class Obj4 { | ||
| 32143 | 32080 | * @return NotEq |
| 32144 | 32081 | */ |
| 32145 | 32082 | public static function sampleNotEq(): NotEq { |
| 32146 | - return NotEq::sample(); /*39:notEq*/ | |
| 32083 | + return NotEq::sample(); /*41:notEq*/ | |
| 32147 | 32084 | } |
| 32148 | 32085 | |
| 32149 | 32086 | /** |
| @@ -32191,7 +32128,7 @@ class Obj4 { | ||
| 32191 | 32128 | * @return NSError |
| 32192 | 32129 | */ |
| 32193 | 32130 | public static function sampleNSError(): NSError { |
| 32194 | - return NSError::sample(); /*40:nsError*/ | |
| 32131 | + return NSError::sample(); /*42:nsError*/ | |
| 32195 | 32132 | } |
| 32196 | 32133 | |
| 32197 | 32134 | /** |
| @@ -32239,7 +32176,7 @@ class Obj4 { | ||
| 32239 | 32176 | * @return NSObject |
| 32240 | 32177 | */ |
| 32241 | 32178 | public static function sampleNSObject(): NSObject { |
| 32242 | - return NSObject::sample(); /*41:nsObject*/ | |
| 32179 | + return NSObject::sample(); /*43:nsObject*/ | |
| 32243 | 32180 | } |
| 32244 | 32181 | |
| 32245 | 32182 | /** |
| @@ -32287,7 +32224,7 @@ class Obj4 { | ||
| 32287 | 32224 | * @return NSString |
| 32288 | 32225 | */ |
| 32289 | 32226 | public static function sampleNSString(): NSString { |
| 32290 | - return NSString::sample(); /*42:nsString*/ | |
| 32227 | + return NSString::sample(); /*44:nsString*/ | |
| 32291 | 32228 | } |
| 32292 | 32229 | |
| 32293 | 32230 | /** |
| @@ -32335,7 +32272,7 @@ class Obj4 { | ||
| 32335 | 32272 | * @return NULLClass |
| 32336 | 32273 | */ |
| 32337 | 32274 | public static function sampleNull(): NULLClass { |
| 32338 | - return NULLClass::sample(); /*43:null*/ | |
| 32275 | + return NULLClass::sample(); /*45:null*/ | |
| 32339 | 32276 | } |
| 32340 | 32277 | |
| 32341 | 32278 | /** |
| @@ -32383,7 +32320,7 @@ class Obj4 { | ||
| 32383 | 32320 | * @return Nullptr |
| 32384 | 32321 | */ |
| 32385 | 32322 | public static function sampleNullptr(): Nullptr { |
| 32386 | - return Nullptr::sample(); /*44:nullptr*/ | |
| 32323 | + return Nullptr::sample(); /*46:nullptr*/ | |
| 32387 | 32324 | } |
| 32388 | 32325 | |
| 32389 | 32326 | /** |
| @@ -32431,7 +32368,7 @@ class Obj4 { | ||
| 32431 | 32368 | * @return Number |
| 32432 | 32369 | */ |
| 32433 | 32370 | public static function sampleNumber(): Number { |
| 32434 | - return Number::sample(); /*45:number*/ | |
| 32371 | + return Number::sample(); /*47:number*/ | |
| 32435 | 32372 | } |
| 32436 | 32373 | |
| 32437 | 32374 | /** |
| @@ -32479,7 +32416,7 @@ class Obj4 { | ||
| 32479 | 32416 | * @return NoneClass |
| 32480 | 32417 | */ |
| 32481 | 32418 | public static function sampleObj4None(): NoneClass { |
| 32482 | - return NoneClass::sample(); /*46:obj4None*/ | |
| 32419 | + return NoneClass::sample(); /*48:obj4None*/ | |
| 32483 | 32420 | } |
| 32484 | 32421 | |
| 32485 | 32422 | /** |
| @@ -32527,7 +32464,7 @@ class Obj4 { | ||
| 32527 | 32464 | * @return Obj4Null |
| 32528 | 32465 | */ |
| 32529 | 32466 | public static function sampleObj4Null(): Obj4Null { |
| 32530 | - return Obj4Null::sample(); /*47:obj4Null*/ | |
| 32467 | + return Obj4Null::sample(); /*49:obj4Null*/ | |
| 32531 | 32468 | } |
| 32532 | 32469 | |
| 32533 | 32470 | /** |
| @@ -32575,7 +32512,7 @@ class Obj4 { | ||
| 32575 | 32512 | * @return ProtocolClass |
| 32576 | 32513 | */ |
| 32577 | 32514 | public static function sampleObj4Protocol(): ProtocolClass { |
| 32578 | - return ProtocolClass::sample(); /*48:obj4Protocol*/ | |
| 32515 | + return ProtocolClass::sample(); /*50:obj4Protocol*/ | |
| 32579 | 32516 | } |
| 32580 | 32517 | |
| 32581 | 32518 | /** |
| @@ -32623,7 +32560,7 @@ class Obj4 { | ||
| 32623 | 32560 | * @return ObjectClass |
| 32624 | 32561 | */ |
| 32625 | 32562 | public static function sampleObject(): ObjectClass { |
| 32626 | - return ObjectClass::sample(); /*49:object*/ | |
| 32563 | + return ObjectClass::sample(); /*51:object*/ | |
| 32627 | 32564 | } |
| 32628 | 32565 | |
| 32629 | 32566 | /** |
| @@ -32671,7 +32608,7 @@ class Obj4 { | ||
| 32671 | 32608 | * @return ObjectMapper |
| 32672 | 32609 | */ |
| 32673 | 32610 | public static function sampleObjectMapper(): ObjectMapper { |
| 32674 | - return ObjectMapper::sample(); /*50:objectMapper*/ | |
| 32611 | + return ObjectMapper::sample(); /*52:objectMapper*/ | |
| 32675 | 32612 | } |
| 32676 | 32613 | |
| 32677 | 32614 | /** |
| @@ -32719,7 +32656,103 @@ class Obj4 { | ||
| 32719 | 32656 | * @return Of |
| 32720 | 32657 | */ |
| 32721 | 32658 | public static function sampleOf(): Of { |
| 32722 | - return Of::sample(); /*51:of*/ | |
| 32659 | + return Of::sample(); /*53:of*/ | |
| 32660 | + } | |
| 32661 | + | |
| 32662 | + /** | |
| 32663 | + * @param stdClass $value | |
| 32664 | + * @throws Exception | |
| 32665 | + * @return OffsetDateTime | |
| 32666 | + */ | |
| 32667 | + public static function fromOffsetDateTime(stdClass $value): OffsetDateTime { | |
| 32668 | + return OffsetDateTime::from($value); /*class*/ | |
| 32669 | + } | |
| 32670 | + | |
| 32671 | + /** | |
| 32672 | + * @throws Exception | |
| 32673 | + * @return stdClass | |
| 32674 | + */ | |
| 32675 | + public function toOffsetDateTime(): stdClass { | |
| 32676 | + if (Obj4::validateOffsetDateTime($this->offsetDateTime)) { | |
| 32677 | + return $this->offsetDateTime->to(); /*class*/ | |
| 32678 | + } | |
| 32679 | + throw new Exception('never get to this Obj4::offsetDateTime'); | |
| 32680 | + } | |
| 32681 | + | |
| 32682 | + /** | |
| 32683 | + * @param OffsetDateTime | |
| 32684 | + * @return bool | |
| 32685 | + * @throws Exception | |
| 32686 | + */ | |
| 32687 | + public static function validateOffsetDateTime(OffsetDateTime $value): bool { | |
| 32688 | + $value->validate(); | |
| 32689 | + return true; | |
| 32690 | + } | |
| 32691 | + | |
| 32692 | + /** | |
| 32693 | + * @throws Exception | |
| 32694 | + * @return OffsetDateTime | |
| 32695 | + */ | |
| 32696 | + public function getOffsetDateTime(): OffsetDateTime { | |
| 32697 | + if (Obj4::validateOffsetDateTime($this->offsetDateTime)) { | |
| 32698 | + return $this->offsetDateTime; | |
| 32699 | + } | |
| 32700 | + throw new Exception('never get to getOffsetDateTime Obj4::offsetDateTime'); | |
| 32701 | + } | |
| 32702 | + | |
| 32703 | + /** | |
| 32704 | + * @return OffsetDateTime | |
| 32705 | + */ | |
| 32706 | + public static function sampleOffsetDateTime(): OffsetDateTime { | |
| 32707 | + return OffsetDateTime::sample(); /*54:offsetDateTime*/ | |
| 32708 | + } | |
| 32709 | + | |
| 32710 | + /** | |
| 32711 | + * @param stdClass $value | |
| 32712 | + * @throws Exception | |
| 32713 | + * @return OffsetTime | |
| 32714 | + */ | |
| 32715 | + public static function fromOffsetTime(stdClass $value): OffsetTime { | |
| 32716 | + return OffsetTime::from($value); /*class*/ | |
| 32717 | + } | |
| 32718 | + | |
| 32719 | + /** | |
| 32720 | + * @throws Exception | |
| 32721 | + * @return stdClass | |
| 32722 | + */ | |
| 32723 | + public function toOffsetTime(): stdClass { | |
| 32724 | + if (Obj4::validateOffsetTime($this->offsetTime)) { | |
| 32725 | + return $this->offsetTime->to(); /*class*/ | |
| 32726 | + } | |
| 32727 | + throw new Exception('never get to this Obj4::offsetTime'); | |
| 32728 | + } | |
| 32729 | + | |
| 32730 | + /** | |
| 32731 | + * @param OffsetTime | |
| 32732 | + * @return bool | |
| 32733 | + * @throws Exception | |
| 32734 | + */ | |
| 32735 | + public static function validateOffsetTime(OffsetTime $value): bool { | |
| 32736 | + $value->validate(); | |
| 32737 | + return true; | |
| 32738 | + } | |
| 32739 | + | |
| 32740 | + /** | |
| 32741 | + * @throws Exception | |
| 32742 | + * @return OffsetTime | |
| 32743 | + */ | |
| 32744 | + public function getOffsetTime(): OffsetTime { | |
| 32745 | + if (Obj4::validateOffsetTime($this->offsetTime)) { | |
| 32746 | + return $this->offsetTime; | |
| 32747 | + } | |
| 32748 | + throw new Exception('never get to getOffsetTime Obj4::offsetTime'); | |
| 32749 | + } | |
| 32750 | + | |
| 32751 | + /** | |
| 32752 | + * @return OffsetTime | |
| 32753 | + */ | |
| 32754 | + public static function sampleOffsetTime(): OffsetTime { | |
| 32755 | + return OffsetTime::sample(); /*55:offsetTime*/ | |
| 32723 | 32756 | } |
| 32724 | 32757 | |
| 32725 | 32758 | /** |
| @@ -32767,7 +32800,7 @@ class Obj4 { | ||
| 32767 | 32800 | * @return Oneway |
| 32768 | 32801 | */ |
| 32769 | 32802 | public static function sampleOneway(): Oneway { |
| 32770 | - return Oneway::sample(); /*52:oneway*/ | |
| 32803 | + return Oneway::sample(); /*56:oneway*/ | |
| 32771 | 32804 | } |
| 32772 | 32805 | |
| 32773 | 32806 | /** |
| @@ -32815,7 +32848,7 @@ class Obj4 { | ||
| 32815 | 32848 | * @return Open |
| 32816 | 32849 | */ |
| 32817 | 32850 | public static function sampleOpen(): Open { |
| 32818 | - return Open::sample(); /*53:open*/ | |
| 32851 | + return Open::sample(); /*57:open*/ | |
| 32819 | 32852 | } |
| 32820 | 32853 | |
| 32821 | 32854 | /** |
| @@ -32863,7 +32896,7 @@ class Obj4 { | ||
| 32863 | 32896 | * @return Operator |
| 32864 | 32897 | */ |
| 32865 | 32898 | public static function sampleOperator(): Operator { |
| 32866 | - return Operator::sample(); /*54:operator*/ | |
| 32899 | + return Operator::sample(); /*58:operator*/ | |
| 32867 | 32900 | } |
| 32868 | 32901 | |
| 32869 | 32902 | /** |
| @@ -32911,7 +32944,7 @@ class Obj4 { | ||
| 32911 | 32944 | * @return Optional |
| 32912 | 32945 | */ |
| 32913 | 32946 | public static function sampleOptional(): Optional { |
| 32914 | - return Optional::sample(); /*55:optional*/ | |
| 32947 | + return Optional::sample(); /*59:optional*/ | |
| 32915 | 32948 | } |
| 32916 | 32949 | |
| 32917 | 32950 | /** |
| @@ -32959,7 +32992,7 @@ class Obj4 { | ||
| 32959 | 32992 | * @return OrClass |
| 32960 | 32993 | */ |
| 32961 | 32994 | public static function sampleOr(): OrClass { |
| 32962 | - return OrClass::sample(); /*56:or*/ | |
| 32995 | + return OrClass::sample(); /*60:or*/ | |
| 32963 | 32996 | } |
| 32964 | 32997 | |
| 32965 | 32998 | /** |
| @@ -33007,7 +33040,7 @@ class Obj4 { | ||
| 33007 | 33040 | * @return OrEq |
| 33008 | 33041 | */ |
| 33009 | 33042 | public static function sampleOrEq(): OrEq { |
| 33010 | - return OrEq::sample(); /*57:orEq*/ | |
| 33043 | + return OrEq::sample(); /*61:orEq*/ | |
| 33011 | 33044 | } |
| 33012 | 33045 | |
| 33013 | 33046 | /** |
| @@ -33055,7 +33088,7 @@ class Obj4 { | ||
| 33055 | 33088 | * @return Out |
| 33056 | 33089 | */ |
| 33057 | 33090 | public static function sampleOut(): Out { |
| 33058 | - return Out::sample(); /*58:out*/ | |
| 33091 | + return Out::sample(); /*62:out*/ | |
| 33059 | 33092 | } |
| 33060 | 33093 | |
| 33061 | 33094 | /** |
| @@ -33103,7 +33136,7 @@ class Obj4 { | ||
| 33103 | 33136 | * @return OverrideClass |
| 33104 | 33137 | */ |
| 33105 | 33138 | public static function sampleOverride(): OverrideClass { |
| 33106 | - return OverrideClass::sample(); /*59:override*/ | |
| 33139 | + return OverrideClass::sample(); /*63:override*/ | |
| 33107 | 33140 | } |
| 33108 | 33141 | |
| 33109 | 33142 | /** |
| @@ -33151,7 +33184,7 @@ class Obj4 { | ||
| 33151 | 33184 | * @return Package |
| 33152 | 33185 | */ |
| 33153 | 33186 | public static function samplePackage(): Package { |
| 33154 | - return Package::sample(); /*60:package*/ | |
| 33187 | + return Package::sample(); /*64:package*/ | |
| 33155 | 33188 | } |
| 33156 | 33189 | |
| 33157 | 33190 | /** |
| @@ -33199,7 +33232,7 @@ class Obj4 { | ||
| 33199 | 33232 | * @return Params |
| 33200 | 33233 | */ |
| 33201 | 33234 | public static function sampleParams(): Params { |
| 33202 | - return Params::sample(); /*61:params*/ | |
| 33235 | + return Params::sample(); /*65:params*/ | |
| 33203 | 33236 | } |
| 33204 | 33237 | |
| 33205 | 33238 | /** |
| @@ -33247,7 +33280,7 @@ class Obj4 { | ||
| 33247 | 33280 | * @return Pass |
| 33248 | 33281 | */ |
| 33249 | 33282 | public static function samplePass(): Pass { |
| 33250 | - return Pass::sample(); /*62:pass*/ | |
| 33283 | + return Pass::sample(); /*66:pass*/ | |
| 33251 | 33284 | } |
| 33252 | 33285 | |
| 33253 | 33286 | /** |
| @@ -33295,7 +33328,7 @@ class Obj4 { | ||
| 33295 | 33328 | * @return Port |
| 33296 | 33329 | */ |
| 33297 | 33330 | public static function samplePort(): Port { |
| 33298 | - return Port::sample(); /*63:port*/ | |
| 33331 | + return Port::sample(); /*67:port*/ | |
| 33299 | 33332 | } |
| 33300 | 33333 | |
| 33301 | 33334 | /** |
| @@ -33343,7 +33376,7 @@ class Obj4 { | ||
| 33343 | 33376 | * @return Postfix |
| 33344 | 33377 | */ |
| 33345 | 33378 | public static function samplePostfix(): Postfix { |
| 33346 | - return Postfix::sample(); /*64:postfix*/ | |
| 33379 | + return Postfix::sample(); /*68:postfix*/ | |
| 33347 | 33380 | } |
| 33348 | 33381 | |
| 33349 | 33382 | /** |
| @@ -33391,7 +33424,7 @@ class Obj4 { | ||
| 33391 | 33424 | * @return Precedence |
| 33392 | 33425 | */ |
| 33393 | 33426 | public static function samplePrecedence(): Precedence { |
| 33394 | - return Precedence::sample(); /*65:precedence*/ | |
| 33427 | + return Precedence::sample(); /*69:precedence*/ | |
| 33395 | 33428 | } |
| 33396 | 33429 | |
| 33397 | 33430 | /** |
| @@ -33439,7 +33472,7 @@ class Obj4 { | ||
| 33439 | 33472 | * @return Prefix |
| 33440 | 33473 | */ |
| 33441 | 33474 | public static function samplePrefix(): Prefix { |
| 33442 | - return Prefix::sample(); /*66:prefix*/ | |
| 33475 | + return Prefix::sample(); /*70:prefix*/ | |
| 33443 | 33476 | } |
| 33444 | 33477 | |
| 33445 | 33478 | /** |
| @@ -33487,7 +33520,7 @@ class Obj4 { | ||
| 33487 | 33520 | * @return PrintClass |
| 33488 | 33521 | */ |
| 33489 | 33522 | public static function samplePrint(): PrintClass { |
| 33490 | - return PrintClass::sample(); /*67:print*/ | |
| 33523 | + return PrintClass::sample(); /*71:print*/ | |
| 33491 | 33524 | } |
| 33492 | 33525 | |
| 33493 | 33526 | /** |
| @@ -33535,7 +33568,7 @@ class Obj4 { | ||
| 33535 | 33568 | * @return PrintMembers |
| 33536 | 33569 | */ |
| 33537 | 33570 | public static function samplePrintMembers(): PrintMembers { |
| 33538 | - return PrintMembers::sample(); /*68:printMembers*/ | |
| 33571 | + return PrintMembers::sample(); /*72:printMembers*/ | |
| 33539 | 33572 | } |
| 33540 | 33573 | |
| 33541 | 33574 | /** |
| @@ -33583,7 +33616,7 @@ class Obj4 { | ||
| 33583 | 33616 | * @return Printf |
| 33584 | 33617 | */ |
| 33585 | 33618 | public static function samplePrintf(): Printf { |
| 33586 | - return Printf::sample(); /*69:printf*/ | |
| 33619 | + return Printf::sample(); /*73:printf*/ | |
| 33587 | 33620 | } |
| 33588 | 33621 | |
| 33589 | 33622 | /** |
| @@ -33631,7 +33664,7 @@ class Obj4 { | ||
| 33631 | 33664 | * @return PrivateClass |
| 33632 | 33665 | */ |
| 33633 | 33666 | public static function samplePrivate(): PrivateClass { |
| 33634 | - return PrivateClass::sample(); /*70:private*/ | |
| 33667 | + return PrivateClass::sample(); /*74:private*/ | |
| 33635 | 33668 | } |
| 33636 | 33669 | |
| 33637 | 33670 | /** |
| @@ -33679,7 +33712,7 @@ class Obj4 { | ||
| 33679 | 33712 | * @return ProtectedClass |
| 33680 | 33713 | */ |
| 33681 | 33714 | public static function sampleProtected(): ProtectedClass { |
| 33682 | - return ProtectedClass::sample(); /*71:protected*/ | |
| 33715 | + return ProtectedClass::sample(); /*75:protected*/ | |
| 33683 | 33716 | } |
| 33684 | 33717 | |
| 33685 | 33718 | /** |
| @@ -33727,7 +33760,7 @@ class Obj4 { | ||
| 33727 | 33760 | * @return Protocol |
| 33728 | 33761 | */ |
| 33729 | 33762 | public static function sampleProtocol(): Protocol { |
| 33730 | - return Protocol::sample(); /*72:protocol*/ | |
| 33763 | + return Protocol::sample(); /*76:protocol*/ | |
| 33731 | 33764 | } |
| 33732 | 33765 | |
| 33733 | 33766 | /** |
| @@ -33775,7 +33808,7 @@ class Obj4 { | ||
| 33775 | 33808 | * @return PublicClass |
| 33776 | 33809 | */ |
| 33777 | 33810 | public static function samplePublic(): PublicClass { |
| 33778 | - return PublicClass::sample(); /*73:public*/ | |
| 33811 | + return PublicClass::sample(); /*77:public*/ | |
| 33779 | 33812 | } |
| 33780 | 33813 | |
| 33781 | 33814 | /** |
| @@ -33823,7 +33856,7 @@ class Obj4 { | ||
| 33823 | 33856 | * @return Quicktype |
| 33824 | 33857 | */ |
| 33825 | 33858 | public static function sampleQuicktype(): Quicktype { |
| 33826 | - return Quicktype::sample(); /*74:quicktype*/ | |
| 33859 | + return Quicktype::sample(); /*78:quicktype*/ | |
| 33827 | 33860 | } |
| 33828 | 33861 | |
| 33829 | 33862 | /** |
| @@ -33871,7 +33904,7 @@ class Obj4 { | ||
| 33871 | 33904 | * @return Raise |
| 33872 | 33905 | */ |
| 33873 | 33906 | public static function sampleRaise(): Raise { |
| 33874 | - return Raise::sample(); /*75:raise*/ | |
| 33907 | + return Raise::sample(); /*79:raise*/ | |
| 33875 | 33908 | } |
| 33876 | 33909 | |
| 33877 | 33910 | /** |
| @@ -33919,7 +33952,7 @@ class Obj4 { | ||
| 33919 | 33952 | * @return Range |
| 33920 | 33953 | */ |
| 33921 | 33954 | public static function sampleRange(): Range { |
| 33922 | - return Range::sample(); /*76:range*/ | |
| 33955 | + return Range::sample(); /*80:range*/ | |
| 33923 | 33956 | } |
| 33924 | 33957 | |
| 33925 | 33958 | /** |
| @@ -33967,7 +34000,7 @@ class Obj4 { | ||
| 33967 | 34000 | * @return ReadonlyClass |
| 33968 | 34001 | */ |
| 33969 | 34002 | public static function sampleReadonly(): ReadonlyClass { |
| 33970 | - return ReadonlyClass::sample(); /*77:readonly*/ | |
| 34003 | + return ReadonlyClass::sample(); /*81:readonly*/ | |
| 33971 | 34004 | } |
| 33972 | 34005 | |
| 33973 | 34006 | /** |
| @@ -34015,7 +34048,7 @@ class Obj4 { | ||
| 34015 | 34048 | * @return Ref |
| 34016 | 34049 | */ |
| 34017 | 34050 | public static function sampleRef(): Ref { |
| 34018 | - return Ref::sample(); /*78:ref*/ | |
| 34051 | + return Ref::sample(); /*82:ref*/ | |
| 34019 | 34052 | } |
| 34020 | 34053 | |
| 34021 | 34054 | /** |
| @@ -34063,7 +34096,7 @@ class Obj4 { | ||
| 34063 | 34096 | * @return RegExp |
| 34064 | 34097 | */ |
| 34065 | 34098 | public static function sampleRegExp(): RegExp { |
| 34066 | - return RegExp::sample(); /*79:regExp*/ | |
| 34099 | + return RegExp::sample(); /*83:regExp*/ | |
| 34067 | 34100 | } |
| 34068 | 34101 | |
| 34069 | 34102 | /** |
| @@ -34111,7 +34144,7 @@ class Obj4 { | ||
| 34111 | 34144 | * @return Register |
| 34112 | 34145 | */ |
| 34113 | 34146 | public static function sampleRegister(): Register { |
| 34114 | - return Register::sample(); /*80:register*/ | |
| 34147 | + return Register::sample(); /*84:register*/ | |
| 34115 | 34148 | } |
| 34116 | 34149 | |
| 34117 | 34150 | /** |
| @@ -34159,7 +34192,7 @@ class Obj4 { | ||
| 34159 | 34192 | * @return ReinterpretCast |
| 34160 | 34193 | */ |
| 34161 | 34194 | public static function sampleReinterpretCast(): ReinterpretCast { |
| 34162 | - return ReinterpretCast::sample(); /*81:reinterpretCast*/ | |
| 34195 | + return ReinterpretCast::sample(); /*85:reinterpretCast*/ | |
| 34163 | 34196 | } |
| 34164 | 34197 | |
| 34165 | 34198 | /** |
| @@ -34207,7 +34240,7 @@ class Obj4 { | ||
| 34207 | 34240 | * @return Repeat |
| 34208 | 34241 | */ |
| 34209 | 34242 | public static function sampleRepeat(): Repeat { |
| 34210 | - return Repeat::sample(); /*82:repeat*/ | |
| 34243 | + return Repeat::sample(); /*86:repeat*/ | |
| 34211 | 34244 | } |
| 34212 | 34245 | |
| 34213 | 34246 | /** |
| @@ -34255,7 +34288,7 @@ class Obj4 { | ||
| 34255 | 34288 | * @return RequireClass |
| 34256 | 34289 | */ |
| 34257 | 34290 | public static function sampleRequire(): RequireClass { |
| 34258 | - return RequireClass::sample(); /*83:require*/ | |
| 34291 | + return RequireClass::sample(); /*87:require*/ | |
| 34259 | 34292 | } |
| 34260 | 34293 | |
| 34261 | 34294 | /** |
| @@ -34303,7 +34336,7 @@ class Obj4 { | ||
| 34303 | 34336 | * @return Required |
| 34304 | 34337 | */ |
| 34305 | 34338 | public static function sampleRequired(): Required { |
| 34306 | - return Required::sample(); /*84:required*/ | |
| 34339 | + return Required::sample(); /*88:required*/ | |
| 34307 | 34340 | } |
| 34308 | 34341 | |
| 34309 | 34342 | /** |
| @@ -34351,7 +34384,7 @@ class Obj4 { | ||
| 34351 | 34384 | * @return Requires |
| 34352 | 34385 | */ |
| 34353 | 34386 | public static function sampleRequires(): Requires { |
| 34354 | - return Requires::sample(); /*85:requires*/ | |
| 34387 | + return Requires::sample(); /*89:requires*/ | |
| 34355 | 34388 | } |
| 34356 | 34389 | |
| 34357 | 34390 | /** |
| @@ -34399,7 +34432,7 @@ class Obj4 { | ||
| 34399 | 34432 | * @return Restrict |
| 34400 | 34433 | */ |
| 34401 | 34434 | public static function sampleRestrict(): Restrict { |
| 34402 | - return Restrict::sample(); /*86:restrict*/ | |
| 34435 | + return Restrict::sample(); /*90:restrict*/ | |
| 34403 | 34436 | } |
| 34404 | 34437 | |
| 34405 | 34438 | /** |
| @@ -34447,7 +34480,7 @@ class Obj4 { | ||
| 34447 | 34480 | * @return Retain |
| 34448 | 34481 | */ |
| 34449 | 34482 | public static function sampleRetain(): Retain { |
| 34450 | - return Retain::sample(); /*87:retain*/ | |
| 34483 | + return Retain::sample(); /*91:retain*/ | |
| 34451 | 34484 | } |
| 34452 | 34485 | |
| 34453 | 34486 | /** |
| @@ -34495,7 +34528,7 @@ class Obj4 { | ||
| 34495 | 34528 | * @return Rethrows |
| 34496 | 34529 | */ |
| 34497 | 34530 | public static function sampleRethrows(): Rethrows { |
| 34498 | - return Rethrows::sample(); /*88:rethrows*/ | |
| 34531 | + return Rethrows::sample(); /*92:rethrows*/ | |
| 34499 | 34532 | } |
| 34500 | 34533 | |
| 34501 | 34534 | /** |
| @@ -34543,7 +34576,7 @@ class Obj4 { | ||
| 34543 | 34576 | * @return ReturnClass |
| 34544 | 34577 | */ |
| 34545 | 34578 | public static function sampleReturn(): ReturnClass { |
| 34546 | - return ReturnClass::sample(); /*89:return*/ | |
| 34579 | + return ReturnClass::sample(); /*93:return*/ | |
| 34547 | 34580 | } |
| 34548 | 34581 | |
| 34549 | 34582 | /** |
| @@ -34591,7 +34624,7 @@ class Obj4 { | ||
| 34591 | 34624 | * @return Right |
| 34592 | 34625 | */ |
| 34593 | 34626 | public static function sampleRight(): Right { |
| 34594 | - return Right::sample(); /*90:right*/ | |
| 34627 | + return Right::sample(); /*94:right*/ | |
| 34595 | 34628 | } |
| 34596 | 34629 | |
| 34597 | 34630 | /** |
| @@ -34639,280 +34672,90 @@ class Obj4 { | ||
| 34639 | 34672 | * @return RuntimeType |
| 34640 | 34673 | */ |
| 34641 | 34674 | public static function sampleRuntimeType(): RuntimeType { |
| 34642 | - return RuntimeType::sample(); /*91:runtimeType*/ | |
| 34643 | - } | |
| 34644 | - | |
| 34645 | - /** | |
| 34646 | - * @param stdClass $value | |
| 34647 | - * @throws Exception | |
| 34648 | - * @return S | |
| 34649 | - */ | |
| 34650 | - public static function fromS(stdClass $value): S { | |
| 34651 | - return S::from($value); /*class*/ | |
| 34675 | + return RuntimeType::sample(); /*95:runtimeType*/ | |
| 34652 | 34676 | } |
| 34653 | 34677 | |
| 34654 | 34678 | /** |
| 34655 | 34679 | * @throws Exception |
| 34656 | - * @return stdClass | |
| 34657 | - */ | |
| 34658 | - public function toS(): stdClass { | |
| 34659 | - if (Obj4::validateS($this->s)) { | |
| 34660 | - return $this->s->to(); /*class*/ | |
| 34661 | - } | |
| 34662 | - throw new Exception('never get to this Obj4::s'); | |
| 34663 | - } | |
| 34664 | - | |
| 34665 | - /** | |
| 34666 | - * @param S | |
| 34667 | 34680 | * @return bool |
| 34668 | - * @throws Exception | |
| 34669 | 34681 | */ |
| 34670 | - public static function validateS(S $value): bool { | |
| 34671 | - $value->validate(); | |
| 34672 | - return true; | |
| 34682 | + public function validate(): bool { | |
| 34683 | + return Obj4::validateDummy($this->dummy) | |
| 34684 | + || Obj4::validateNil($this->nil) | |
| 34685 | + || Obj4::validateNo($this->no) | |
| 34686 | + || Obj4::validateNoSuchMethod($this->noSuchMethod) | |
| 34687 | + || Obj4::validateNoexcept($this->noexcept) | |
| 34688 | + || Obj4::validateNonatomic($this->nonatomic) | |
| 34689 | + || Obj4::validateNone($this->none) | |
| 34690 | + || Obj4::validateNonlocal($this->nonlocal) | |
| 34691 | + || Obj4::validateNonmutating($this->nonmutating) | |
| 34692 | + || Obj4::validateNot($this->not) | |
| 34693 | + || Obj4::validateNotEq($this->notEq) | |
| 34694 | + || Obj4::validateNSError($this->nsError) | |
| 34695 | + || Obj4::validateNSObject($this->nsObject) | |
| 34696 | + || Obj4::validateNSString($this->nsString) | |
| 34697 | + || Obj4::validateNull($this->null) | |
| 34698 | + || Obj4::validateNullptr($this->nullptr) | |
| 34699 | + || Obj4::validateNumber($this->number) | |
| 34700 | + || Obj4::validateObj4None($this->obj4None) | |
| 34701 | + || Obj4::validateObj4Null($this->obj4Null) | |
| 34702 | + || Obj4::validateObj4Protocol($this->obj4Protocol) | |
| 34703 | + || Obj4::validateObject($this->object) | |
| 34704 | + || Obj4::validateObjectMapper($this->objectMapper) | |
| 34705 | + || Obj4::validateOf($this->of) | |
| 34706 | + || Obj4::validateOffsetDateTime($this->offsetDateTime) | |
| 34707 | + || Obj4::validateOffsetTime($this->offsetTime) | |
| 34708 | + || Obj4::validateOneway($this->oneway) | |
| 34709 | + || Obj4::validateOpen($this->open) | |
| 34710 | + || Obj4::validateOperator($this->operator) | |
| 34711 | + || Obj4::validateOptional($this->optional) | |
| 34712 | + || Obj4::validateOr($this->or) | |
| 34713 | + || Obj4::validateOrEq($this->orEq) | |
| 34714 | + || Obj4::validateOut($this->out) | |
| 34715 | + || Obj4::validateOverride($this->override) | |
| 34716 | + || Obj4::validatePackage($this->package) | |
| 34717 | + || Obj4::validateParams($this->params) | |
| 34718 | + || Obj4::validatePass($this->pass) | |
| 34719 | + || Obj4::validatePort($this->port) | |
| 34720 | + || Obj4::validatePostfix($this->postfix) | |
| 34721 | + || Obj4::validatePrecedence($this->precedence) | |
| 34722 | + || Obj4::validatePrefix($this->prefix) | |
| 34723 | + || Obj4::validatePrint($this->print) | |
| 34724 | + || Obj4::validatePrintMembers($this->printMembers) | |
| 34725 | + || Obj4::validatePrintf($this->printf) | |
| 34726 | + || Obj4::validatePrivate($this->private) | |
| 34727 | + || Obj4::validateProtected($this->protected) | |
| 34728 | + || Obj4::validateProtocol($this->protocol) | |
| 34729 | + || Obj4::validatePublic($this->public) | |
| 34730 | + || Obj4::validateQuicktype($this->quicktype) | |
| 34731 | + || Obj4::validateRaise($this->raise) | |
| 34732 | + || Obj4::validateRange($this->range) | |
| 34733 | + || Obj4::validateReadonly($this->readonly) | |
| 34734 | + || Obj4::validateRef($this->ref) | |
| 34735 | + || Obj4::validateRegExp($this->regExp) | |
| 34736 | + || Obj4::validateRegister($this->register) | |
| 34737 | + || Obj4::validateReinterpretCast($this->reinterpretCast) | |
| 34738 | + || Obj4::validateRepeat($this->repeat) | |
| 34739 | + || Obj4::validateRequire($this->require) | |
| 34740 | + || Obj4::validateRequired($this->required) | |
| 34741 | + || Obj4::validateRequires($this->requires) | |
| 34742 | + || Obj4::validateRestrict($this->restrict) | |
| 34743 | + || Obj4::validateRetain($this->retain) | |
| 34744 | + || Obj4::validateRethrows($this->rethrows) | |
| 34745 | + || Obj4::validateReturn($this->return) | |
| 34746 | + || Obj4::validateRight($this->right) | |
| 34747 | + || Obj4::validateRuntimeType($this->runtimeType); | |
| 34673 | 34748 | } |
| 34674 | 34749 | |
| 34675 | 34750 | /** |
| 34676 | - * @throws Exception | |
| 34677 | - * @return S | |
| 34678 | - */ | |
| 34679 | - public function getS(): S { | |
| 34680 | - if (Obj4::validateS($this->s)) { | |
| 34681 | - return $this->s; | |
| 34682 | - } | |
| 34683 | - throw new Exception('never get to getS Obj4::s'); | |
| 34684 | - } | |
| 34685 | - | |
| 34686 | - /** | |
| 34687 | - * @return S | |
| 34688 | - */ | |
| 34689 | - public static function sampleS(): S { | |
| 34690 | - return S::sample(); /*92:s*/ | |
| 34691 | - } | |
| 34692 | - | |
| 34693 | - /** | |
| 34694 | - * @param stdClass $value | |
| 34695 | - * @throws Exception | |
| 34696 | - * @return Sbyte | |
| 34697 | - */ | |
| 34698 | - public static function fromSbyte(stdClass $value): Sbyte { | |
| 34699 | - return Sbyte::from($value); /*class*/ | |
| 34700 | - } | |
| 34701 | - | |
| 34702 | - /** | |
| 34703 | - * @throws Exception | |
| 34704 | - * @return stdClass | |
| 34705 | - */ | |
| 34706 | - public function toSbyte(): stdClass { | |
| 34707 | - if (Obj4::validateSbyte($this->sbyte)) { | |
| 34708 | - return $this->sbyte->to(); /*class*/ | |
| 34709 | - } | |
| 34710 | - throw new Exception('never get to this Obj4::sbyte'); | |
| 34711 | - } | |
| 34712 | - | |
| 34713 | - /** | |
| 34714 | - * @param Sbyte | |
| 34715 | - * @return bool | |
| 34716 | - * @throws Exception | |
| 34717 | - */ | |
| 34718 | - public static function validateSbyte(Sbyte $value): bool { | |
| 34719 | - $value->validate(); | |
| 34720 | - return true; | |
| 34721 | - } | |
| 34722 | - | |
| 34723 | - /** | |
| 34724 | - * @throws Exception | |
| 34725 | - * @return Sbyte | |
| 34726 | - */ | |
| 34727 | - public function getSbyte(): Sbyte { | |
| 34728 | - if (Obj4::validateSbyte($this->sbyte)) { | |
| 34729 | - return $this->sbyte; | |
| 34730 | - } | |
| 34731 | - throw new Exception('never get to getSbyte Obj4::sbyte'); | |
| 34732 | - } | |
| 34733 | - | |
| 34734 | - /** | |
| 34735 | - * @return Sbyte | |
| 34736 | - */ | |
| 34737 | - public static function sampleSbyte(): Sbyte { | |
| 34738 | - return Sbyte::sample(); /*93:sbyte*/ | |
| 34739 | - } | |
| 34740 | - | |
| 34741 | - /** | |
| 34742 | - * @param stdClass $value | |
| 34743 | - * @throws Exception | |
| 34744 | - * @return Sealed | |
| 34745 | - */ | |
| 34746 | - public static function fromSealed(stdClass $value): Sealed { | |
| 34747 | - return Sealed::from($value); /*class*/ | |
| 34748 | - } | |
| 34749 | - | |
| 34750 | - /** | |
| 34751 | - * @throws Exception | |
| 34752 | - * @return stdClass | |
| 34753 | - */ | |
| 34754 | - public function toSealed(): stdClass { | |
| 34755 | - if (Obj4::validateSealed($this->sealed)) { | |
| 34756 | - return $this->sealed->to(); /*class*/ | |
| 34757 | - } | |
| 34758 | - throw new Exception('never get to this Obj4::sealed'); | |
| 34759 | - } | |
| 34760 | - | |
| 34761 | - /** | |
| 34762 | - * @param Sealed | |
| 34763 | - * @return bool | |
| 34764 | - * @throws Exception | |
| 34765 | - */ | |
| 34766 | - public static function validateSealed(Sealed $value): bool { | |
| 34767 | - $value->validate(); | |
| 34768 | - return true; | |
| 34769 | - } | |
| 34770 | - | |
| 34771 | - /** | |
| 34772 | - * @throws Exception | |
| 34773 | - * @return Sealed | |
| 34774 | - */ | |
| 34775 | - public function getSealed(): Sealed { | |
| 34776 | - if (Obj4::validateSealed($this->sealed)) { | |
| 34777 | - return $this->sealed; | |
| 34778 | - } | |
| 34779 | - throw new Exception('never get to getSealed Obj4::sealed'); | |
| 34780 | - } | |
| 34781 | - | |
| 34782 | - /** | |
| 34783 | - * @return Sealed | |
| 34784 | - */ | |
| 34785 | - public static function sampleSealed(): Sealed { | |
| 34786 | - return Sealed::sample(); /*94:sealed*/ | |
| 34787 | - } | |
| 34788 | - | |
| 34789 | - /** | |
| 34790 | - * @param stdClass $value | |
| 34791 | - * @throws Exception | |
| 34792 | - * @return Sel | |
| 34793 | - */ | |
| 34794 | - public static function fromSel(stdClass $value): Sel { | |
| 34795 | - return Sel::from($value); /*class*/ | |
| 34796 | - } | |
| 34797 | - | |
| 34798 | - /** | |
| 34799 | - * @throws Exception | |
| 34800 | - * @return stdClass | |
| 34801 | - */ | |
| 34802 | - public function toSel(): stdClass { | |
| 34803 | - if (Obj4::validateSel($this->sel)) { | |
| 34804 | - return $this->sel->to(); /*class*/ | |
| 34805 | - } | |
| 34806 | - throw new Exception('never get to this Obj4::sel'); | |
| 34807 | - } | |
| 34808 | - | |
| 34809 | - /** | |
| 34810 | - * @param Sel | |
| 34811 | - * @return bool | |
| 34812 | - * @throws Exception | |
| 34813 | - */ | |
| 34814 | - public static function validateSel(Sel $value): bool { | |
| 34815 | - $value->validate(); | |
| 34816 | - return true; | |
| 34817 | - } | |
| 34818 | - | |
| 34819 | - /** | |
| 34820 | - * @throws Exception | |
| 34821 | - * @return Sel | |
| 34822 | - */ | |
| 34823 | - public function getSel(): Sel { | |
| 34824 | - if (Obj4::validateSel($this->sel)) { | |
| 34825 | - return $this->sel; | |
| 34826 | - } | |
| 34827 | - throw new Exception('never get to getSel Obj4::sel'); | |
| 34828 | - } | |
| 34829 | - | |
| 34830 | - /** | |
| 34831 | - * @return Sel | |
| 34832 | - */ | |
| 34833 | - public static function sampleSel(): Sel { | |
| 34834 | - return Sel::sample(); /*95:sel*/ | |
| 34835 | - } | |
| 34836 | - | |
| 34837 | - /** | |
| 34838 | - * @throws Exception | |
| 34839 | - * @return bool | |
| 34840 | - */ | |
| 34841 | - public function validate(): bool { | |
| 34842 | - return Obj4::validateDummy($this->dummy) | |
| 34843 | - || Obj4::validateNoSuchMethod($this->noSuchMethod) | |
| 34844 | - || Obj4::validateNoexcept($this->noexcept) | |
| 34845 | - || Obj4::validateNonatomic($this->nonatomic) | |
| 34846 | - || Obj4::validateNone($this->none) | |
| 34847 | - || Obj4::validateNonlocal($this->nonlocal) | |
| 34848 | - || Obj4::validateNonmutating($this->nonmutating) | |
| 34849 | - || Obj4::validateNot($this->not) | |
| 34850 | - || Obj4::validateNotEq($this->notEq) | |
| 34851 | - || Obj4::validateNSError($this->nsError) | |
| 34852 | - || Obj4::validateNSObject($this->nsObject) | |
| 34853 | - || Obj4::validateNSString($this->nsString) | |
| 34854 | - || Obj4::validateNull($this->null) | |
| 34855 | - || Obj4::validateNullptr($this->nullptr) | |
| 34856 | - || Obj4::validateNumber($this->number) | |
| 34857 | - || Obj4::validateObj4None($this->obj4None) | |
| 34858 | - || Obj4::validateObj4Null($this->obj4Null) | |
| 34859 | - || Obj4::validateObj4Protocol($this->obj4Protocol) | |
| 34860 | - || Obj4::validateObject($this->object) | |
| 34861 | - || Obj4::validateObjectMapper($this->objectMapper) | |
| 34862 | - || Obj4::validateOf($this->of) | |
| 34863 | - || Obj4::validateOneway($this->oneway) | |
| 34864 | - || Obj4::validateOpen($this->open) | |
| 34865 | - || Obj4::validateOperator($this->operator) | |
| 34866 | - || Obj4::validateOptional($this->optional) | |
| 34867 | - || Obj4::validateOr($this->or) | |
| 34868 | - || Obj4::validateOrEq($this->orEq) | |
| 34869 | - || Obj4::validateOut($this->out) | |
| 34870 | - || Obj4::validateOverride($this->override) | |
| 34871 | - || Obj4::validatePackage($this->package) | |
| 34872 | - || Obj4::validateParams($this->params) | |
| 34873 | - || Obj4::validatePass($this->pass) | |
| 34874 | - || Obj4::validatePort($this->port) | |
| 34875 | - || Obj4::validatePostfix($this->postfix) | |
| 34876 | - || Obj4::validatePrecedence($this->precedence) | |
| 34877 | - || Obj4::validatePrefix($this->prefix) | |
| 34878 | - || Obj4::validatePrint($this->print) | |
| 34879 | - || Obj4::validatePrintMembers($this->printMembers) | |
| 34880 | - || Obj4::validatePrintf($this->printf) | |
| 34881 | - || Obj4::validatePrivate($this->private) | |
| 34882 | - || Obj4::validateProtected($this->protected) | |
| 34883 | - || Obj4::validateProtocol($this->protocol) | |
| 34884 | - || Obj4::validatePublic($this->public) | |
| 34885 | - || Obj4::validateQuicktype($this->quicktype) | |
| 34886 | - || Obj4::validateRaise($this->raise) | |
| 34887 | - || Obj4::validateRange($this->range) | |
| 34888 | - || Obj4::validateReadonly($this->readonly) | |
| 34889 | - || Obj4::validateRef($this->ref) | |
| 34890 | - || Obj4::validateRegExp($this->regExp) | |
| 34891 | - || Obj4::validateRegister($this->register) | |
| 34892 | - || Obj4::validateReinterpretCast($this->reinterpretCast) | |
| 34893 | - || Obj4::validateRepeat($this->repeat) | |
| 34894 | - || Obj4::validateRequire($this->require) | |
| 34895 | - || Obj4::validateRequired($this->required) | |
| 34896 | - || Obj4::validateRequires($this->requires) | |
| 34897 | - || Obj4::validateRestrict($this->restrict) | |
| 34898 | - || Obj4::validateRetain($this->retain) | |
| 34899 | - || Obj4::validateRethrows($this->rethrows) | |
| 34900 | - || Obj4::validateReturn($this->return) | |
| 34901 | - || Obj4::validateRight($this->right) | |
| 34902 | - || Obj4::validateRuntimeType($this->runtimeType) | |
| 34903 | - || Obj4::validateS($this->s) | |
| 34904 | - || Obj4::validateSbyte($this->sbyte) | |
| 34905 | - || Obj4::validateSealed($this->sealed) | |
| 34906 | - || Obj4::validateSel($this->sel); | |
| 34907 | - } | |
| 34908 | - | |
| 34909 | - /** | |
| 34910 | - * @return stdClass | |
| 34751 | + * @return stdClass | |
| 34911 | 34752 | * @throws Exception |
| 34912 | 34753 | */ |
| 34913 | 34754 | public function to(): stdClass { |
| 34914 | 34755 | $out = new stdClass(); |
| 34915 | 34756 | $out->{'dummy'} = $this->toDummy(); |
| 34757 | + $out->{'nil'} = $this->toNil(); | |
| 34758 | + $out->{'NO'} = $this->toNo(); | |
| 34916 | 34759 | $out->{'noSuchMethod'} = $this->toNoSuchMethod(); |
| 34917 | 34760 | $out->{'noexcept'} = $this->toNoexcept(); |
| 34918 | 34761 | $out->{'nonatomic'} = $this->toNonatomic(); |
| @@ -34933,6 +34776,8 @@ class Obj4 { | ||
| 34933 | 34776 | $out->{'object'} = $this->toObject(); |
| 34934 | 34777 | $out->{'ObjectMapper'} = $this->toObjectMapper(); |
| 34935 | 34778 | $out->{'of'} = $this->toOf(); |
| 34779 | + $out->{'OffsetDateTime'} = $this->toOffsetDateTime(); | |
| 34780 | + $out->{'OffsetTime'} = $this->toOffsetTime(); | |
| 34936 | 34781 | $out->{'oneway'} = $this->toOneway(); |
| 34937 | 34782 | $out->{'open'} = $this->toOpen(); |
| 34938 | 34783 | $out->{'operator'} = $this->toOperator(); |
| @@ -34973,10 +34818,6 @@ class Obj4 { | ||
| 34973 | 34818 | $out->{'return'} = $this->toReturn(); |
| 34974 | 34819 | $out->{'right'} = $this->toRight(); |
| 34975 | 34820 | $out->{'runtimeType'} = $this->toRuntimeType(); |
| 34976 | - $out->{'s'} = $this->toS(); | |
| 34977 | - $out->{'sbyte'} = $this->toSbyte(); | |
| 34978 | - $out->{'sealed'} = $this->toSealed(); | |
| 34979 | - $out->{'SEL'} = $this->toSel(); | |
| 34980 | 34821 | return $out; |
| 34981 | 34822 | } |
| 34982 | 34823 | |
| @@ -34989,6 +34830,12 @@ class Obj4 { | ||
| 34989 | 34830 | if (!property_exists($obj, 'dummy')) { |
| 34990 | 34831 | throw new Exception("Missing required property"); |
| 34991 | 34832 | } |
| 34833 | + if (!property_exists($obj, 'nil')) { | |
| 34834 | + throw new Exception("Missing required property"); | |
| 34835 | + } | |
| 34836 | + if (!property_exists($obj, 'NO')) { | |
| 34837 | + throw new Exception("Missing required property"); | |
| 34838 | + } | |
| 34992 | 34839 | if (!property_exists($obj, 'noSuchMethod')) { |
| 34993 | 34840 | throw new Exception("Missing required property"); |
| 34994 | 34841 | } |
| @@ -35049,6 +34896,12 @@ class Obj4 { | ||
| 35049 | 34896 | if (!property_exists($obj, 'of')) { |
| 35050 | 34897 | throw new Exception("Missing required property"); |
| 35051 | 34898 | } |
| 34899 | + if (!property_exists($obj, 'OffsetDateTime')) { | |
| 34900 | + throw new Exception("Missing required property"); | |
| 34901 | + } | |
| 34902 | + if (!property_exists($obj, 'OffsetTime')) { | |
| 34903 | + throw new Exception("Missing required property"); | |
| 34904 | + } | |
| 35052 | 34905 | if (!property_exists($obj, 'oneway')) { |
| 35053 | 34906 | throw new Exception("Missing required property"); |
| 35054 | 34907 | } |
| @@ -35169,20 +35022,10 @@ class Obj4 { | ||
| 35169 | 35022 | if (!property_exists($obj, 'runtimeType')) { |
| 35170 | 35023 | throw new Exception("Missing required property"); |
| 35171 | 35024 | } |
| 35172 | - if (!property_exists($obj, 's')) { | |
| 35173 | - throw new Exception("Missing required property"); | |
| 35174 | - } | |
| 35175 | - if (!property_exists($obj, 'sbyte')) { | |
| 35176 | - throw new Exception("Missing required property"); | |
| 35177 | - } | |
| 35178 | - if (!property_exists($obj, 'sealed')) { | |
| 35179 | - throw new Exception("Missing required property"); | |
| 35180 | - } | |
| 35181 | - if (!property_exists($obj, 'SEL')) { | |
| 35182 | - throw new Exception("Missing required property"); | |
| 35183 | - } | |
| 35184 | 35025 | return new Obj4( |
| 35185 | 35026 | Obj4::fromDummy($obj->{'dummy'}) |
| 35027 | + ,Obj4::fromNil($obj->{'nil'}) | |
| 35028 | + ,Obj4::fromNo($obj->{'NO'}) | |
| 35186 | 35029 | ,Obj4::fromNoSuchMethod($obj->{'noSuchMethod'}) |
| 35187 | 35030 | ,Obj4::fromNoexcept($obj->{'noexcept'}) |
| 35188 | 35031 | ,Obj4::fromNonatomic($obj->{'nonatomic'}) |
| @@ -35203,6 +35046,8 @@ class Obj4 { | ||
| 35203 | 35046 | ,Obj4::fromObject($obj->{'object'}) |
| 35204 | 35047 | ,Obj4::fromObjectMapper($obj->{'ObjectMapper'}) |
| 35205 | 35048 | ,Obj4::fromOf($obj->{'of'}) |
| 35049 | + ,Obj4::fromOffsetDateTime($obj->{'OffsetDateTime'}) | |
| 35050 | + ,Obj4::fromOffsetTime($obj->{'OffsetTime'}) | |
| 35206 | 35051 | ,Obj4::fromOneway($obj->{'oneway'}) |
| 35207 | 35052 | ,Obj4::fromOpen($obj->{'open'}) |
| 35208 | 35053 | ,Obj4::fromOperator($obj->{'operator'}) |
| @@ -35243,10 +35088,6 @@ class Obj4 { | ||
| 35243 | 35088 | ,Obj4::fromReturn($obj->{'return'}) |
| 35244 | 35089 | ,Obj4::fromRight($obj->{'right'}) |
| 35245 | 35090 | ,Obj4::fromRuntimeType($obj->{'runtimeType'}) |
| 35246 | - ,Obj4::fromS($obj->{'s'}) | |
| 35247 | - ,Obj4::fromSbyte($obj->{'sbyte'}) | |
| 35248 | - ,Obj4::fromSealed($obj->{'sealed'}) | |
| 35249 | - ,Obj4::fromSel($obj->{'SEL'}) | |
| 35250 | 35091 | ); |
| 35251 | 35092 | } |
| 35252 | 35093 | |
| @@ -35256,6 +35097,8 @@ class Obj4 { | ||
| 35256 | 35097 | public static function sample(): Obj4 { |
| 35257 | 35098 | return new Obj4( |
| 35258 | 35099 | Obj4::sampleDummy() |
| 35100 | + ,Obj4::sampleNil() | |
| 35101 | + ,Obj4::sampleNo() | |
| 35259 | 35102 | ,Obj4::sampleNoSuchMethod() |
| 35260 | 35103 | ,Obj4::sampleNoexcept() |
| 35261 | 35104 | ,Obj4::sampleNonatomic() |
| @@ -35276,6 +35119,8 @@ class Obj4 { | ||
| 35276 | 35119 | ,Obj4::sampleObject() |
| 35277 | 35120 | ,Obj4::sampleObjectMapper() |
| 35278 | 35121 | ,Obj4::sampleOf() |
| 35122 | + ,Obj4::sampleOffsetDateTime() | |
| 35123 | + ,Obj4::sampleOffsetTime() | |
| 35279 | 35124 | ,Obj4::sampleOneway() |
| 35280 | 35125 | ,Obj4::sampleOpen() |
| 35281 | 35126 | ,Obj4::sampleOperator() |
| @@ -35316,24 +35161,20 @@ class Obj4 { | ||
| 35316 | 35161 | ,Obj4::sampleReturn() |
| 35317 | 35162 | ,Obj4::sampleRight() |
| 35318 | 35163 | ,Obj4::sampleRuntimeType() |
| 35319 | - ,Obj4::sampleS() | |
| 35320 | - ,Obj4::sampleSbyte() | |
| 35321 | - ,Obj4::sampleSealed() | |
| 35322 | - ,Obj4::sampleSel() | |
| 35323 | 35164 | ); |
| 35324 | 35165 | } |
| 35325 | 35166 | } |
| 35326 | 35167 | |
| 35327 | -// This is an autogenerated file:NoSuchMethod | |
| 35168 | +// This is an autogenerated file:Nil | |
| 35328 | 35169 | |
| 35329 | -class NoSuchMethod { | |
| 35330 | - private int $noSuchMethod; // json:noSuchMethod Required | |
| 35170 | +class Nil { | |
| 35171 | + private int $nil; // json:nil Required | |
| 35331 | 35172 | |
| 35332 | 35173 | /** |
| 35333 | - * @param int $noSuchMethod | |
| 35174 | + * @param int $nil | |
| 35334 | 35175 | */ |
| 35335 | - public function __construct(int $noSuchMethod) { | |
| 35336 | - $this->noSuchMethod = $noSuchMethod; | |
| 35176 | + public function __construct(int $nil) { | |
| 35177 | + $this->nil = $nil; | |
| 35337 | 35178 | } |
| 35338 | 35179 | |
| 35339 | 35180 | /** |
| @@ -35341,7 +35182,7 @@ class NoSuchMethod { | ||
| 35341 | 35182 | * @throws Exception |
| 35342 | 35183 | * @return int |
| 35343 | 35184 | */ |
| 35344 | - public static function fromNoSuchMethod(int $value): int { | |
| 35185 | + public static function fromNil(int $value): int { | |
| 35345 | 35186 | return $value; /*int*/ |
| 35346 | 35187 | } |
| 35347 | 35188 | |
| @@ -35349,11 +35190,11 @@ class NoSuchMethod { | ||
| 35349 | 35190 | * @throws Exception |
| 35350 | 35191 | * @return int |
| 35351 | 35192 | */ |
| 35352 | - public function toNoSuchMethod(): int { | |
| 35353 | - if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) { | |
| 35354 | - return $this->noSuchMethod; /*int*/ | |
| 35193 | + public function toNil(): int { | |
| 35194 | + if (Nil::validateNil($this->nil)) { | |
| 35195 | + return $this->nil; /*int*/ | |
| 35355 | 35196 | } |
| 35356 | - throw new Exception('never get to this NoSuchMethod::noSuchMethod'); | |
| 35197 | + throw new Exception('never get to this Nil::nil'); | |
| 35357 | 35198 | } |
| 35358 | 35199 | |
| 35359 | 35200 | /** |
| @@ -35361,7 +35202,7 @@ class NoSuchMethod { | ||
| 35361 | 35202 | * @return bool |
| 35362 | 35203 | * @throws Exception |
| 35363 | 35204 | */ |
| 35364 | - public static function validateNoSuchMethod(int $value): bool { | |
| 35205 | + public static function validateNil(int $value): bool { | |
| 35365 | 35206 | return true; |
| 35366 | 35207 | } |
| 35367 | 35208 | |
| @@ -35369,11 +35210,213 @@ class NoSuchMethod { | ||
| 35369 | 35210 | * @throws Exception |
| 35370 | 35211 | * @return int |
| 35371 | 35212 | */ |
| 35372 | - public function getNoSuchMethod(): int { | |
| 35373 | - if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) { | |
| 35374 | - return $this->noSuchMethod; | |
| 35213 | + public function getNil(): int { | |
| 35214 | + if (Nil::validateNil($this->nil)) { | |
| 35215 | + return $this->nil; | |
| 35375 | 35216 | } |
| 35376 | - throw new Exception('never get to getNoSuchMethod NoSuchMethod::noSuchMethod'); | |
| 35217 | + throw new Exception('never get to getNil Nil::nil'); | |
| 35218 | + } | |
| 35219 | + | |
| 35220 | + /** | |
| 35221 | + * @return int | |
| 35222 | + */ | |
| 35223 | + public static function sampleNil(): int { | |
| 35224 | + return 31; /*31:nil*/ | |
| 35225 | + } | |
| 35226 | + | |
| 35227 | + /** | |
| 35228 | + * @throws Exception | |
| 35229 | + * @return bool | |
| 35230 | + */ | |
| 35231 | + public function validate(): bool { | |
| 35232 | + return Nil::validateNil($this->nil); | |
| 35233 | + } | |
| 35234 | + | |
| 35235 | + /** | |
| 35236 | + * @return stdClass | |
| 35237 | + * @throws Exception | |
| 35238 | + */ | |
| 35239 | + public function to(): stdClass { | |
| 35240 | + $out = new stdClass(); | |
| 35241 | + $out->{'nil'} = $this->toNil(); | |
| 35242 | + return $out; | |
| 35243 | + } | |
| 35244 | + | |
| 35245 | + /** | |
| 35246 | + * @param stdClass $obj | |
| 35247 | + * @return Nil | |
| 35248 | + * @throws Exception | |
| 35249 | + */ | |
| 35250 | + public static function from(stdClass $obj): Nil { | |
| 35251 | + if (!property_exists($obj, 'nil')) { | |
| 35252 | + throw new Exception("Missing required property"); | |
| 35253 | + } | |
| 35254 | + return new Nil( | |
| 35255 | + Nil::fromNil($obj->{'nil'}) | |
| 35256 | + ); | |
| 35257 | + } | |
| 35258 | + | |
| 35259 | + /** | |
| 35260 | + * @return Nil | |
| 35261 | + */ | |
| 35262 | + public static function sample(): Nil { | |
| 35263 | + return new Nil( | |
| 35264 | + Nil::sampleNil() | |
| 35265 | + ); | |
| 35266 | + } | |
| 35267 | +} | |
| 35268 | + | |
| 35269 | +// This is an autogenerated file:No | |
| 35270 | + | |
| 35271 | +class No { | |
| 35272 | + private int $no; // json:NO Required | |
| 35273 | + | |
| 35274 | + /** | |
| 35275 | + * @param int $no | |
| 35276 | + */ | |
| 35277 | + public function __construct(int $no) { | |
| 35278 | + $this->no = $no; | |
| 35279 | + } | |
| 35280 | + | |
| 35281 | + /** | |
| 35282 | + * @param int $value | |
| 35283 | + * @throws Exception | |
| 35284 | + * @return int | |
| 35285 | + */ | |
| 35286 | + public static function fromNo(int $value): int { | |
| 35287 | + return $value; /*int*/ | |
| 35288 | + } | |
| 35289 | + | |
| 35290 | + /** | |
| 35291 | + * @throws Exception | |
| 35292 | + * @return int | |
| 35293 | + */ | |
| 35294 | + public function toNo(): int { | |
| 35295 | + if (No::validateNo($this->no)) { | |
| 35296 | + return $this->no; /*int*/ | |
| 35297 | + } | |
| 35298 | + throw new Exception('never get to this No::no'); | |
| 35299 | + } | |
| 35300 | + | |
| 35301 | + /** | |
| 35302 | + * @param int | |
| 35303 | + * @return bool | |
| 35304 | + * @throws Exception | |
| 35305 | + */ | |
| 35306 | + public static function validateNo(int $value): bool { | |
| 35307 | + return true; | |
| 35308 | + } | |
| 35309 | + | |
| 35310 | + /** | |
| 35311 | + * @throws Exception | |
| 35312 | + * @return int | |
| 35313 | + */ | |
| 35314 | + public function getNo(): int { | |
| 35315 | + if (No::validateNo($this->no)) { | |
| 35316 | + return $this->no; | |
| 35317 | + } | |
| 35318 | + throw new Exception('never get to getNo No::no'); | |
| 35319 | + } | |
| 35320 | + | |
| 35321 | + /** | |
| 35322 | + * @return int | |
| 35323 | + */ | |
| 35324 | + public static function sampleNo(): int { | |
| 35325 | + return 31; /*31:no*/ | |
| 35326 | + } | |
| 35327 | + | |
| 35328 | + /** | |
| 35329 | + * @throws Exception | |
| 35330 | + * @return bool | |
| 35331 | + */ | |
| 35332 | + public function validate(): bool { | |
| 35333 | + return No::validateNo($this->no); | |
| 35334 | + } | |
| 35335 | + | |
| 35336 | + /** | |
| 35337 | + * @return stdClass | |
| 35338 | + * @throws Exception | |
| 35339 | + */ | |
| 35340 | + public function to(): stdClass { | |
| 35341 | + $out = new stdClass(); | |
| 35342 | + $out->{'NO'} = $this->toNo(); | |
| 35343 | + return $out; | |
| 35344 | + } | |
| 35345 | + | |
| 35346 | + /** | |
| 35347 | + * @param stdClass $obj | |
| 35348 | + * @return No | |
| 35349 | + * @throws Exception | |
| 35350 | + */ | |
| 35351 | + public static function from(stdClass $obj): No { | |
| 35352 | + if (!property_exists($obj, 'NO')) { | |
| 35353 | + throw new Exception("Missing required property"); | |
| 35354 | + } | |
| 35355 | + return new No( | |
| 35356 | + No::fromNo($obj->{'NO'}) | |
| 35357 | + ); | |
| 35358 | + } | |
| 35359 | + | |
| 35360 | + /** | |
| 35361 | + * @return No | |
| 35362 | + */ | |
| 35363 | + public static function sample(): No { | |
| 35364 | + return new No( | |
| 35365 | + No::sampleNo() | |
| 35366 | + ); | |
| 35367 | + } | |
| 35368 | +} | |
| 35369 | + | |
| 35370 | +// This is an autogenerated file:NoSuchMethod | |
| 35371 | + | |
| 35372 | +class NoSuchMethod { | |
| 35373 | + private int $noSuchMethod; // json:noSuchMethod Required | |
| 35374 | + | |
| 35375 | + /** | |
| 35376 | + * @param int $noSuchMethod | |
| 35377 | + */ | |
| 35378 | + public function __construct(int $noSuchMethod) { | |
| 35379 | + $this->noSuchMethod = $noSuchMethod; | |
| 35380 | + } | |
| 35381 | + | |
| 35382 | + /** | |
| 35383 | + * @param int $value | |
| 35384 | + * @throws Exception | |
| 35385 | + * @return int | |
| 35386 | + */ | |
| 35387 | + public static function fromNoSuchMethod(int $value): int { | |
| 35388 | + return $value; /*int*/ | |
| 35389 | + } | |
| 35390 | + | |
| 35391 | + /** | |
| 35392 | + * @throws Exception | |
| 35393 | + * @return int | |
| 35394 | + */ | |
| 35395 | + public function toNoSuchMethod(): int { | |
| 35396 | + if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) { | |
| 35397 | + return $this->noSuchMethod; /*int*/ | |
| 35398 | + } | |
| 35399 | + throw new Exception('never get to this NoSuchMethod::noSuchMethod'); | |
| 35400 | + } | |
| 35401 | + | |
| 35402 | + /** | |
| 35403 | + * @param int | |
| 35404 | + * @return bool | |
| 35405 | + * @throws Exception | |
| 35406 | + */ | |
| 35407 | + public static function validateNoSuchMethod(int $value): bool { | |
| 35408 | + return true; | |
| 35409 | + } | |
| 35410 | + | |
| 35411 | + /** | |
| 35412 | + * @throws Exception | |
| 35413 | + * @return int | |
| 35414 | + */ | |
| 35415 | + public function getNoSuchMethod(): int { | |
| 35416 | + if (NoSuchMethod::validateNoSuchMethod($this->noSuchMethod)) { | |
| 35417 | + return $this->noSuchMethod; | |
| 35418 | + } | |
| 35419 | + throw new Exception('never get to getNoSuchMethod NoSuchMethod::noSuchMethod'); | |
| 35377 | 35420 | } |
| 35378 | 35421 | |
| 35379 | 35422 | /** |
| @@ -37344,16 +37387,16 @@ class Of { | ||
| 37344 | 37387 | } |
| 37345 | 37388 | } |
| 37346 | 37389 | |
| 37347 | -// This is an autogenerated file:Oneway | |
| 37390 | +// This is an autogenerated file:OffsetDateTime | |
| 37348 | 37391 | |
| 37349 | -class Oneway { | |
| 37350 | - private int $oneway; // json:oneway Required | |
| 37392 | +class OffsetDateTime { | |
| 37393 | + private int $offsetDateTime; // json:OffsetDateTime Required | |
| 37351 | 37394 | |
| 37352 | 37395 | /** |
| 37353 | - * @param int $oneway | |
| 37396 | + * @param int $offsetDateTime | |
| 37354 | 37397 | */ |
| 37355 | - public function __construct(int $oneway) { | |
| 37356 | - $this->oneway = $oneway; | |
| 37398 | + public function __construct(int $offsetDateTime) { | |
| 37399 | + $this->offsetDateTime = $offsetDateTime; | |
| 37357 | 37400 | } |
| 37358 | 37401 | |
| 37359 | 37402 | /** |
| @@ -37361,7 +37404,7 @@ class Oneway { | ||
| 37361 | 37404 | * @throws Exception |
| 37362 | 37405 | * @return int |
| 37363 | 37406 | */ |
| 37364 | - public static function fromOneway(int $value): int { | |
| 37407 | + public static function fromOffsetDateTime(int $value): int { | |
| 37365 | 37408 | return $value; /*int*/ |
| 37366 | 37409 | } |
| 37367 | 37410 | |
| @@ -37369,11 +37412,11 @@ class Oneway { | ||
| 37369 | 37412 | * @throws Exception |
| 37370 | 37413 | * @return int |
| 37371 | 37414 | */ |
| 37372 | - public function toOneway(): int { | |
| 37373 | - if (Oneway::validateOneway($this->oneway)) { | |
| 37374 | - return $this->oneway; /*int*/ | |
| 37415 | + public function toOffsetDateTime(): int { | |
| 37416 | + if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) { | |
| 37417 | + return $this->offsetDateTime; /*int*/ | |
| 37375 | 37418 | } |
| 37376 | - throw new Exception('never get to this Oneway::oneway'); | |
| 37419 | + throw new Exception('never get to this OffsetDateTime::offsetDateTime'); | |
| 37377 | 37420 | } |
| 37378 | 37421 | |
| 37379 | 37422 | /** |
| @@ -37381,7 +37424,7 @@ class Oneway { | ||
| 37381 | 37424 | * @return bool |
| 37382 | 37425 | * @throws Exception |
| 37383 | 37426 | */ |
| 37384 | - public static function validateOneway(int $value): bool { | |
| 37427 | + public static function validateOffsetDateTime(int $value): bool { | |
| 37385 | 37428 | return true; |
| 37386 | 37429 | } |
| 37387 | 37430 | |
| @@ -37389,18 +37432,18 @@ class Oneway { | ||
| 37389 | 37432 | * @throws Exception |
| 37390 | 37433 | * @return int |
| 37391 | 37434 | */ |
| 37392 | - public function getOneway(): int { | |
| 37393 | - if (Oneway::validateOneway($this->oneway)) { | |
| 37394 | - return $this->oneway; | |
| 37435 | + public function getOffsetDateTime(): int { | |
| 37436 | + if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) { | |
| 37437 | + return $this->offsetDateTime; | |
| 37395 | 37438 | } |
| 37396 | - throw new Exception('never get to getOneway Oneway::oneway'); | |
| 37439 | + throw new Exception('never get to getOffsetDateTime OffsetDateTime::offsetDateTime'); | |
| 37397 | 37440 | } |
| 37398 | 37441 | |
| 37399 | 37442 | /** |
| 37400 | 37443 | * @return int |
| 37401 | 37444 | */ |
| 37402 | - public static function sampleOneway(): int { | |
| 37403 | - return 31; /*31:oneway*/ | |
| 37445 | + public static function sampleOffsetDateTime(): int { | |
| 37446 | + return 31; /*31:offsetDateTime*/ | |
| 37404 | 37447 | } |
| 37405 | 37448 | |
| 37406 | 37449 | /** |
| @@ -37408,7 +37451,7 @@ class Oneway { | ||
| 37408 | 37451 | * @return bool |
| 37409 | 37452 | */ |
| 37410 | 37453 | public function validate(): bool { |
| 37411 | - return Oneway::validateOneway($this->oneway); | |
| 37454 | + return OffsetDateTime::validateOffsetDateTime($this->offsetDateTime); | |
| 37412 | 37455 | } |
| 37413 | 37456 | |
| 37414 | 37457 | /** |
| @@ -37417,44 +37460,44 @@ class Oneway { | ||
| 37417 | 37460 | */ |
| 37418 | 37461 | public function to(): stdClass { |
| 37419 | 37462 | $out = new stdClass(); |
| 37420 | - $out->{'oneway'} = $this->toOneway(); | |
| 37463 | + $out->{'OffsetDateTime'} = $this->toOffsetDateTime(); | |
| 37421 | 37464 | return $out; |
| 37422 | 37465 | } |
| 37423 | 37466 | |
| 37424 | 37467 | /** |
| 37425 | 37468 | * @param stdClass $obj |
| 37426 | - * @return Oneway | |
| 37469 | + * @return OffsetDateTime | |
| 37427 | 37470 | * @throws Exception |
| 37428 | 37471 | */ |
| 37429 | - public static function from(stdClass $obj): Oneway { | |
| 37430 | - if (!property_exists($obj, 'oneway')) { | |
| 37472 | + public static function from(stdClass $obj): OffsetDateTime { | |
| 37473 | + if (!property_exists($obj, 'OffsetDateTime')) { | |
| 37431 | 37474 | throw new Exception("Missing required property"); |
| 37432 | 37475 | } |
| 37433 | - return new Oneway( | |
| 37434 | - Oneway::fromOneway($obj->{'oneway'}) | |
| 37476 | + return new OffsetDateTime( | |
| 37477 | + OffsetDateTime::fromOffsetDateTime($obj->{'OffsetDateTime'}) | |
| 37435 | 37478 | ); |
| 37436 | 37479 | } |
| 37437 | 37480 | |
| 37438 | 37481 | /** |
| 37439 | - * @return Oneway | |
| 37482 | + * @return OffsetDateTime | |
| 37440 | 37483 | */ |
| 37441 | - public static function sample(): Oneway { | |
| 37442 | - return new Oneway( | |
| 37443 | - Oneway::sampleOneway() | |
| 37484 | + public static function sample(): OffsetDateTime { | |
| 37485 | + return new OffsetDateTime( | |
| 37486 | + OffsetDateTime::sampleOffsetDateTime() | |
| 37444 | 37487 | ); |
| 37445 | 37488 | } |
| 37446 | 37489 | } |
| 37447 | 37490 | |
| 37448 | -// This is an autogenerated file:Open | |
| 37491 | +// This is an autogenerated file:OffsetTime | |
| 37449 | 37492 | |
| 37450 | -class Open { | |
| 37451 | - private int $open; // json:open Required | |
| 37493 | +class OffsetTime { | |
| 37494 | + private int $offsetTime; // json:OffsetTime Required | |
| 37452 | 37495 | |
| 37453 | 37496 | /** |
| 37454 | - * @param int $open | |
| 37497 | + * @param int $offsetTime | |
| 37455 | 37498 | */ |
| 37456 | - public function __construct(int $open) { | |
| 37457 | - $this->open = $open; | |
| 37499 | + public function __construct(int $offsetTime) { | |
| 37500 | + $this->offsetTime = $offsetTime; | |
| 37458 | 37501 | } |
| 37459 | 37502 | |
| 37460 | 37503 | /** |
| @@ -37462,7 +37505,7 @@ class Open { | ||
| 37462 | 37505 | * @throws Exception |
| 37463 | 37506 | * @return int |
| 37464 | 37507 | */ |
| 37465 | - public static function fromOpen(int $value): int { | |
| 37508 | + public static function fromOffsetTime(int $value): int { | |
| 37466 | 37509 | return $value; /*int*/ |
| 37467 | 37510 | } |
| 37468 | 37511 | |
| @@ -37470,11 +37513,11 @@ class Open { | ||
| 37470 | 37513 | * @throws Exception |
| 37471 | 37514 | * @return int |
| 37472 | 37515 | */ |
| 37473 | - public function toOpen(): int { | |
| 37474 | - if (Open::validateOpen($this->open)) { | |
| 37475 | - return $this->open; /*int*/ | |
| 37516 | + public function toOffsetTime(): int { | |
| 37517 | + if (OffsetTime::validateOffsetTime($this->offsetTime)) { | |
| 37518 | + return $this->offsetTime; /*int*/ | |
| 37476 | 37519 | } |
| 37477 | - throw new Exception('never get to this Open::open'); | |
| 37520 | + throw new Exception('never get to this OffsetTime::offsetTime'); | |
| 37478 | 37521 | } |
| 37479 | 37522 | |
| 37480 | 37523 | /** |
| @@ -37482,7 +37525,7 @@ class Open { | ||
| 37482 | 37525 | * @return bool |
| 37483 | 37526 | * @throws Exception |
| 37484 | 37527 | */ |
| 37485 | - public static function validateOpen(int $value): bool { | |
| 37528 | + public static function validateOffsetTime(int $value): bool { | |
| 37486 | 37529 | return true; |
| 37487 | 37530 | } |
| 37488 | 37531 | |
| @@ -37490,18 +37533,18 @@ class Open { | ||
| 37490 | 37533 | * @throws Exception |
| 37491 | 37534 | * @return int |
| 37492 | 37535 | */ |
| 37493 | - public function getOpen(): int { | |
| 37494 | - if (Open::validateOpen($this->open)) { | |
| 37495 | - return $this->open; | |
| 37536 | + public function getOffsetTime(): int { | |
| 37537 | + if (OffsetTime::validateOffsetTime($this->offsetTime)) { | |
| 37538 | + return $this->offsetTime; | |
| 37496 | 37539 | } |
| 37497 | - throw new Exception('never get to getOpen Open::open'); | |
| 37540 | + throw new Exception('never get to getOffsetTime OffsetTime::offsetTime'); | |
| 37498 | 37541 | } |
| 37499 | 37542 | |
| 37500 | 37543 | /** |
| 37501 | 37544 | * @return int |
| 37502 | 37545 | */ |
| 37503 | - public static function sampleOpen(): int { | |
| 37504 | - return 31; /*31:open*/ | |
| 37546 | + public static function sampleOffsetTime(): int { | |
| 37547 | + return 31; /*31:offsetTime*/ | |
| 37505 | 37548 | } |
| 37506 | 37549 | |
| 37507 | 37550 | /** |
| @@ -37509,7 +37552,7 @@ class Open { | ||
| 37509 | 37552 | * @return bool |
| 37510 | 37553 | */ |
| 37511 | 37554 | public function validate(): bool { |
| 37512 | - return Open::validateOpen($this->open); | |
| 37555 | + return OffsetTime::validateOffsetTime($this->offsetTime); | |
| 37513 | 37556 | } |
| 37514 | 37557 | |
| 37515 | 37558 | /** |
| @@ -37518,20 +37561,222 @@ class Open { | ||
| 37518 | 37561 | */ |
| 37519 | 37562 | public function to(): stdClass { |
| 37520 | 37563 | $out = new stdClass(); |
| 37521 | - $out->{'open'} = $this->toOpen(); | |
| 37564 | + $out->{'OffsetTime'} = $this->toOffsetTime(); | |
| 37522 | 37565 | return $out; |
| 37523 | 37566 | } |
| 37524 | 37567 | |
| 37525 | 37568 | /** |
| 37526 | 37569 | * @param stdClass $obj |
| 37527 | - * @return Open | |
| 37570 | + * @return OffsetTime | |
| 37528 | 37571 | * @throws Exception |
| 37529 | 37572 | */ |
| 37530 | - public static function from(stdClass $obj): Open { | |
| 37531 | - if (!property_exists($obj, 'open')) { | |
| 37573 | + public static function from(stdClass $obj): OffsetTime { | |
| 37574 | + if (!property_exists($obj, 'OffsetTime')) { | |
| 37532 | 37575 | throw new Exception("Missing required property"); |
| 37533 | 37576 | } |
| 37534 | - return new Open( | |
| 37577 | + return new OffsetTime( | |
| 37578 | + OffsetTime::fromOffsetTime($obj->{'OffsetTime'}) | |
| 37579 | + ); | |
| 37580 | + } | |
| 37581 | + | |
| 37582 | + /** | |
| 37583 | + * @return OffsetTime | |
| 37584 | + */ | |
| 37585 | + public static function sample(): OffsetTime { | |
| 37586 | + return new OffsetTime( | |
| 37587 | + OffsetTime::sampleOffsetTime() | |
| 37588 | + ); | |
| 37589 | + } | |
| 37590 | +} | |
| 37591 | + | |
| 37592 | +// This is an autogenerated file:Oneway | |
| 37593 | + | |
| 37594 | +class Oneway { | |
| 37595 | + private int $oneway; // json:oneway Required | |
| 37596 | + | |
| 37597 | + /** | |
| 37598 | + * @param int $oneway | |
| 37599 | + */ | |
| 37600 | + public function __construct(int $oneway) { | |
| 37601 | + $this->oneway = $oneway; | |
| 37602 | + } | |
| 37603 | + | |
| 37604 | + /** | |
| 37605 | + * @param int $value | |
| 37606 | + * @throws Exception | |
| 37607 | + * @return int | |
| 37608 | + */ | |
| 37609 | + public static function fromOneway(int $value): int { | |
| 37610 | + return $value; /*int*/ | |
| 37611 | + } | |
| 37612 | + | |
| 37613 | + /** | |
| 37614 | + * @throws Exception | |
| 37615 | + * @return int | |
| 37616 | + */ | |
| 37617 | + public function toOneway(): int { | |
| 37618 | + if (Oneway::validateOneway($this->oneway)) { | |
| 37619 | + return $this->oneway; /*int*/ | |
| 37620 | + } | |
| 37621 | + throw new Exception('never get to this Oneway::oneway'); | |
| 37622 | + } | |
| 37623 | + | |
| 37624 | + /** | |
| 37625 | + * @param int | |
| 37626 | + * @return bool | |
| 37627 | + * @throws Exception | |
| 37628 | + */ | |
| 37629 | + public static function validateOneway(int $value): bool { | |
| 37630 | + return true; | |
| 37631 | + } | |
| 37632 | + | |
| 37633 | + /** | |
| 37634 | + * @throws Exception | |
| 37635 | + * @return int | |
| 37636 | + */ | |
| 37637 | + public function getOneway(): int { | |
| 37638 | + if (Oneway::validateOneway($this->oneway)) { | |
| 37639 | + return $this->oneway; | |
| 37640 | + } | |
| 37641 | + throw new Exception('never get to getOneway Oneway::oneway'); | |
| 37642 | + } | |
| 37643 | + | |
| 37644 | + /** | |
| 37645 | + * @return int | |
| 37646 | + */ | |
| 37647 | + public static function sampleOneway(): int { | |
| 37648 | + return 31; /*31:oneway*/ | |
| 37649 | + } | |
| 37650 | + | |
| 37651 | + /** | |
| 37652 | + * @throws Exception | |
| 37653 | + * @return bool | |
| 37654 | + */ | |
| 37655 | + public function validate(): bool { | |
| 37656 | + return Oneway::validateOneway($this->oneway); | |
| 37657 | + } | |
| 37658 | + | |
| 37659 | + /** | |
| 37660 | + * @return stdClass | |
| 37661 | + * @throws Exception | |
| 37662 | + */ | |
| 37663 | + public function to(): stdClass { | |
| 37664 | + $out = new stdClass(); | |
| 37665 | + $out->{'oneway'} = $this->toOneway(); | |
| 37666 | + return $out; | |
| 37667 | + } | |
| 37668 | + | |
| 37669 | + /** | |
| 37670 | + * @param stdClass $obj | |
| 37671 | + * @return Oneway | |
| 37672 | + * @throws Exception | |
| 37673 | + */ | |
| 37674 | + public static function from(stdClass $obj): Oneway { | |
| 37675 | + if (!property_exists($obj, 'oneway')) { | |
| 37676 | + throw new Exception("Missing required property"); | |
| 37677 | + } | |
| 37678 | + return new Oneway( | |
| 37679 | + Oneway::fromOneway($obj->{'oneway'}) | |
| 37680 | + ); | |
| 37681 | + } | |
| 37682 | + | |
| 37683 | + /** | |
| 37684 | + * @return Oneway | |
| 37685 | + */ | |
| 37686 | + public static function sample(): Oneway { | |
| 37687 | + return new Oneway( | |
| 37688 | + Oneway::sampleOneway() | |
| 37689 | + ); | |
| 37690 | + } | |
| 37691 | +} | |
| 37692 | + | |
| 37693 | +// This is an autogenerated file:Open | |
| 37694 | + | |
| 37695 | +class Open { | |
| 37696 | + private int $open; // json:open Required | |
| 37697 | + | |
| 37698 | + /** | |
| 37699 | + * @param int $open | |
| 37700 | + */ | |
| 37701 | + public function __construct(int $open) { | |
| 37702 | + $this->open = $open; | |
| 37703 | + } | |
| 37704 | + | |
| 37705 | + /** | |
| 37706 | + * @param int $value | |
| 37707 | + * @throws Exception | |
| 37708 | + * @return int | |
| 37709 | + */ | |
| 37710 | + public static function fromOpen(int $value): int { | |
| 37711 | + return $value; /*int*/ | |
| 37712 | + } | |
| 37713 | + | |
| 37714 | + /** | |
| 37715 | + * @throws Exception | |
| 37716 | + * @return int | |
| 37717 | + */ | |
| 37718 | + public function toOpen(): int { | |
| 37719 | + if (Open::validateOpen($this->open)) { | |
| 37720 | + return $this->open; /*int*/ | |
| 37721 | + } | |
| 37722 | + throw new Exception('never get to this Open::open'); | |
| 37723 | + } | |
| 37724 | + | |
| 37725 | + /** | |
| 37726 | + * @param int | |
| 37727 | + * @return bool | |
| 37728 | + * @throws Exception | |
| 37729 | + */ | |
| 37730 | + public static function validateOpen(int $value): bool { | |
| 37731 | + return true; | |
| 37732 | + } | |
| 37733 | + | |
| 37734 | + /** | |
| 37735 | + * @throws Exception | |
| 37736 | + * @return int | |
| 37737 | + */ | |
| 37738 | + public function getOpen(): int { | |
| 37739 | + if (Open::validateOpen($this->open)) { | |
| 37740 | + return $this->open; | |
| 37741 | + } | |
| 37742 | + throw new Exception('never get to getOpen Open::open'); | |
| 37743 | + } | |
| 37744 | + | |
| 37745 | + /** | |
| 37746 | + * @return int | |
| 37747 | + */ | |
| 37748 | + public static function sampleOpen(): int { | |
| 37749 | + return 31; /*31:open*/ | |
| 37750 | + } | |
| 37751 | + | |
| 37752 | + /** | |
| 37753 | + * @throws Exception | |
| 37754 | + * @return bool | |
| 37755 | + */ | |
| 37756 | + public function validate(): bool { | |
| 37757 | + return Open::validateOpen($this->open); | |
| 37758 | + } | |
| 37759 | + | |
| 37760 | + /** | |
| 37761 | + * @return stdClass | |
| 37762 | + * @throws Exception | |
| 37763 | + */ | |
| 37764 | + public function to(): stdClass { | |
| 37765 | + $out = new stdClass(); | |
| 37766 | + $out->{'open'} = $this->toOpen(); | |
| 37767 | + return $out; | |
| 37768 | + } | |
| 37769 | + | |
| 37770 | + /** | |
| 37771 | + * @param stdClass $obj | |
| 37772 | + * @return Open | |
| 37773 | + * @throws Exception | |
| 37774 | + */ | |
| 37775 | + public static function from(stdClass $obj): Open { | |
| 37776 | + if (!property_exists($obj, 'open')) { | |
| 37777 | + throw new Exception("Missing required property"); | |
| 37778 | + } | |
| 37779 | + return new Open( | |
| 37535 | 37780 | Open::fromOpen($obj->{'open'}) |
| 37536 | 37781 | ); |
| 37537 | 37782 | } |
| @@ -41387,117 +41632,208 @@ class RuntimeType { | ||
| 41387 | 41632 | } |
| 41388 | 41633 | } |
| 41389 | 41634 | |
| 41390 | -// This is an autogenerated file:S | |
| 41391 | - | |
| 41392 | -class S { | |
| 41393 | - private int $s; // json:s Required | |
| 41394 | - | |
| 41395 | - /** | |
| 41396 | - * @param int $s | |
| 41397 | - */ | |
| 41398 | - public function __construct(int $s) { | |
| 41399 | - $this->s = $s; | |
| 41400 | - } | |
| 41401 | - | |
| 41402 | - /** | |
| 41403 | - * @param int $value | |
| 41404 | - * @throws Exception | |
| 41405 | - * @return int | |
| 41406 | - */ | |
| 41407 | - public static function fromS(int $value): int { | |
| 41408 | - return $value; /*int*/ | |
| 41409 | - } | |
| 41410 | - | |
| 41411 | - /** | |
| 41412 | - * @throws Exception | |
| 41413 | - * @return int | |
| 41414 | - */ | |
| 41415 | - public function toS(): int { | |
| 41416 | - if (S::validateS($this->s)) { | |
| 41417 | - return $this->s; /*int*/ | |
| 41418 | - } | |
| 41419 | - throw new Exception('never get to this S::s'); | |
| 41420 | - } | |
| 41421 | - | |
| 41422 | - /** | |
| 41423 | - * @param int | |
| 41424 | - * @return bool | |
| 41425 | - * @throws Exception | |
| 41426 | - */ | |
| 41427 | - public static function validateS(int $value): bool { | |
| 41428 | - return true; | |
| 41429 | - } | |
| 41430 | - | |
| 41431 | - /** | |
| 41432 | - * @throws Exception | |
| 41433 | - * @return int | |
| 41434 | - */ | |
| 41435 | - public function getS(): int { | |
| 41436 | - if (S::validateS($this->s)) { | |
| 41437 | - return $this->s; | |
| 41438 | - } | |
| 41439 | - throw new Exception('never get to getS S::s'); | |
| 41440 | - } | |
| 41441 | - | |
| 41442 | - /** | |
| 41443 | - * @return int | |
| 41444 | - */ | |
| 41445 | - public static function sampleS(): int { | |
| 41446 | - return 31; /*31:s*/ | |
| 41447 | - } | |
| 41635 | +// This is an autogenerated file:Obj5 | |
| 41448 | 41636 | |
| 41449 | - /** | |
| 41450 | - * @throws Exception | |
| 41451 | - * @return bool | |
| 41452 | - */ | |
| 41453 | - public function validate(): bool { | |
| 41454 | - return S::validateS($this->s); | |
| 41455 | - } | |
| 41456 | - | |
| 41457 | - /** | |
| 41458 | - * @return stdClass | |
| 41459 | - * @throws Exception | |
| 41460 | - */ | |
| 41461 | - public function to(): stdClass { | |
| 41462 | - $out = new stdClass(); | |
| 41463 | - $out->{'s'} = $this->toS(); | |
| 41464 | - return $out; | |
| 41465 | - } | |
| 41466 | - | |
| 41467 | - /** | |
| 41468 | - * @param stdClass $obj | |
| 41469 | - * @return S | |
| 41470 | - * @throws Exception | |
| 41471 | - */ | |
| 41472 | - public static function from(stdClass $obj): S { | |
| 41473 | - if (!property_exists($obj, 's')) { | |
| 41474 | - throw new Exception("Missing required property"); | |
| 41475 | - } | |
| 41476 | - return new S( | |
| 41477 | - S::fromS($obj->{'s'}) | |
| 41478 | - ); | |
| 41479 | - } | |
| 41480 | - | |
| 41481 | - /** | |
| 41482 | - * @return S | |
| 41483 | - */ | |
| 41484 | - public static function sample(): S { | |
| 41485 | - return new S( | |
| 41486 | - S::sampleS() | |
| 41487 | - ); | |
| 41488 | - } | |
| 41489 | -} | |
| 41490 | - | |
| 41491 | -// This is an autogenerated file:Sbyte | |
| 41492 | - | |
| 41493 | -class Sbyte { | |
| 41494 | - private int $sbyte; // json:sbyte Required | |
| 41637 | +class Obj5 { | |
| 41638 | + private int $dummy; // json:dummy Required | |
| 41639 | + private KSerializer $kSerializer; // json:KSerializer Required | |
| 41640 | + private Obj5Self $obj5Self; // json:self Required | |
| 41641 | + private This $obj5This; // json:this Required | |
| 41642 | + private Obj5True $obj5True; // json:true Required | |
| 41643 | + private TypeClass $obj5Type; // json:type Required | |
| 41644 | + private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required | |
| 41645 | + private S $s; // json:s Required | |
| 41646 | + private Sbyte $sbyte; // json:sbyte Required | |
| 41647 | + private Sealed $sealed; // json:sealed Required | |
| 41648 | + private Sel $sel; // json:SEL Required | |
| 41649 | + private Select $select; // json:select Required | |
| 41650 | + private SelfClass $self; // json:Self Required | |
| 41651 | + private Sendable $sendable; // json:Sendable Required | |
| 41652 | + private SerialDescriptor $serialDescriptor; // json:SerialDescriptor Required | |
| 41653 | + private SerialName $serialName; // json:SerialName Required | |
| 41654 | + private SerializableClass $serializable; // json:Serializable Required | |
| 41655 | + private Serialize $serialize; // json:serialize Required | |
| 41656 | + private SerializerProvider $serializerProvider; // json:SerializerProvider Required | |
| 41657 | + private Set $set; // json:set Required | |
| 41658 | + private Short $short; // json:short Required | |
| 41659 | + private Signed $signed; // json:signed Required | |
| 41660 | + private SimpleModule $simpleModule; // json:SimpleModule Required | |
| 41661 | + private Sizeof $sizeof; // json:sizeof Required | |
| 41662 | + private Stackalloc $stackalloc; // json:stackalloc Required | |
| 41663 | + private Standards $standards; // json:Standards Required | |
| 41664 | + private StaticClass $static; // json:static Required | |
| 41665 | + private StaticAssert $staticAssert; // json:static_assert Required | |
| 41666 | + private StaticCast $staticCast; // json:static_cast Required | |
| 41667 | + private StdDeserializer $stdDeserializer; // json:StdDeserializer Required | |
| 41668 | + private StdSerializer $stdSerializer; // json:StdSerializer Required | |
| 41669 | + private Strictfp $strictfp; // json:strictfp Required | |
| 41670 | + private StringClass $string; // json:string Required | |
| 41671 | + private Struct $struct; // json:struct Required | |
| 41672 | + private Subscript $subscript; // json:subscript Required | |
| 41673 | + private Super $super; // json:super Required | |
| 41674 | + private SwitchClass $switch; // json:switch Required | |
| 41675 | + private Symbol $symbol; // json:symbol Required | |
| 41676 | + private Synchronized $synchronized; // json:synchronized Required | |
| 41677 | + private System $system; // json:system Required | |
| 41678 | + private Template $template; // json:template Required | |
| 41679 | + private Then $then; // json:then Required | |
| 41680 | + private ThreadLocal $threadLocal; // json:thread_local Required | |
| 41681 | + private ThrowClass $throw; // json:throw Required | |
| 41682 | + private Throws $throws; // json:throws Required | |
| 41683 | + private TimeOnly $timeOnly; // json:TimeOnly Required | |
| 41684 | + private TimeOnlyConverter $timeOnlyConverter; // json:TimeOnlyConverter Required | |
| 41685 | + private TimeZone $timeZone; // json:TimeZone Required | |
| 41686 | + private ToDict $toDict; // json:to_dict Required | |
| 41687 | + private ToJSON $toJSON; // json:to_json Required | |
| 41688 | + private ToString $toString; // json:toString Required | |
| 41689 | + private TopLevelClass $topLevel; // json:top_level Required | |
| 41690 | + private Transient $transient; // json:transient Required | |
| 41691 | + private TrueClass $true; // json:True Required | |
| 41692 | + private TryClass $try; // json:try Required | |
| 41693 | + private Type $type; // json:Type Required | |
| 41694 | + private Typealias $typealias; // json:typealias Required | |
| 41695 | + private Typedef $typedef; // json:typedef Required | |
| 41696 | + private Typeid $typeid; // json:typeid Required | |
| 41697 | + private Typename $typename; // json:typename Required | |
| 41698 | + private Typeof $typeof; // json:typeof Required | |
| 41699 | + private Uint $uint; // json:uint Required | |
| 41700 | + private Ulong $ulong; // json:ulong Required | |
| 41701 | + private Unchecked $unchecked; // json:unchecked Required | |
| 41702 | + private Undefined $undefined; // json:undefined Required | |
| 41495 | 41703 | |
| 41496 | 41704 | /** |
| 41497 | - * @param int $sbyte | |
| 41705 | + * @param int $dummy | |
| 41706 | + * @param KSerializer $kSerializer | |
| 41707 | + * @param Obj5Self $obj5Self | |
| 41708 | + * @param This $obj5This | |
| 41709 | + * @param Obj5True $obj5True | |
| 41710 | + * @param TypeClass $obj5Type | |
| 41711 | + * @param PrimitiveKind $primitiveKind | |
| 41712 | + * @param S $s | |
| 41713 | + * @param Sbyte $sbyte | |
| 41714 | + * @param Sealed $sealed | |
| 41715 | + * @param Sel $sel | |
| 41716 | + * @param Select $select | |
| 41717 | + * @param SelfClass $self | |
| 41718 | + * @param Sendable $sendable | |
| 41719 | + * @param SerialDescriptor $serialDescriptor | |
| 41720 | + * @param SerialName $serialName | |
| 41721 | + * @param SerializableClass $serializable | |
| 41722 | + * @param Serialize $serialize | |
| 41723 | + * @param SerializerProvider $serializerProvider | |
| 41724 | + * @param Set $set | |
| 41725 | + * @param Short $short | |
| 41726 | + * @param Signed $signed | |
| 41727 | + * @param SimpleModule $simpleModule | |
| 41728 | + * @param Sizeof $sizeof | |
| 41729 | + * @param Stackalloc $stackalloc | |
| 41730 | + * @param Standards $standards | |
| 41731 | + * @param StaticClass $static | |
| 41732 | + * @param StaticAssert $staticAssert | |
| 41733 | + * @param StaticCast $staticCast | |
| 41734 | + * @param StdDeserializer $stdDeserializer | |
| 41735 | + * @param StdSerializer $stdSerializer | |
| 41736 | + * @param Strictfp $strictfp | |
| 41737 | + * @param StringClass $string | |
| 41738 | + * @param Struct $struct | |
| 41739 | + * @param Subscript $subscript | |
| 41740 | + * @param Super $super | |
| 41741 | + * @param SwitchClass $switch | |
| 41742 | + * @param Symbol $symbol | |
| 41743 | + * @param Synchronized $synchronized | |
| 41744 | + * @param System $system | |
| 41745 | + * @param Template $template | |
| 41746 | + * @param Then $then | |
| 41747 | + * @param ThreadLocal $threadLocal | |
| 41748 | + * @param ThrowClass $throw | |
| 41749 | + * @param Throws $throws | |
| 41750 | + * @param TimeOnly $timeOnly | |
| 41751 | + * @param TimeOnlyConverter $timeOnlyConverter | |
| 41752 | + * @param TimeZone $timeZone | |
| 41753 | + * @param ToDict $toDict | |
| 41754 | + * @param ToJSON $toJSON | |
| 41755 | + * @param ToString $toString | |
| 41756 | + * @param TopLevelClass $topLevel | |
| 41757 | + * @param Transient $transient | |
| 41758 | + * @param TrueClass $true | |
| 41759 | + * @param TryClass $try | |
| 41760 | + * @param Type $type | |
| 41761 | + * @param Typealias $typealias | |
| 41762 | + * @param Typedef $typedef | |
| 41763 | + * @param Typeid $typeid | |
| 41764 | + * @param Typename $typename | |
| 41765 | + * @param Typeof $typeof | |
| 41766 | + * @param Uint $uint | |
| 41767 | + * @param Ulong $ulong | |
| 41768 | + * @param Unchecked $unchecked | |
| 41769 | + * @param Undefined $undefined | |
| 41498 | 41770 | */ |
| 41499 | - public function __construct(int $sbyte) { | |
| 41771 | + public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToDict $toDict, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined) { | |
| 41772 | + $this->dummy = $dummy; | |
| 41773 | + $this->kSerializer = $kSerializer; | |
| 41774 | + $this->obj5Self = $obj5Self; | |
| 41775 | + $this->obj5This = $obj5This; | |
| 41776 | + $this->obj5True = $obj5True; | |
| 41777 | + $this->obj5Type = $obj5Type; | |
| 41778 | + $this->primitiveKind = $primitiveKind; | |
| 41779 | + $this->s = $s; | |
| 41500 | 41780 | $this->sbyte = $sbyte; |
| 41781 | + $this->sealed = $sealed; | |
| 41782 | + $this->sel = $sel; | |
| 41783 | + $this->select = $select; | |
| 41784 | + $this->self = $self; | |
| 41785 | + $this->sendable = $sendable; | |
| 41786 | + $this->serialDescriptor = $serialDescriptor; | |
| 41787 | + $this->serialName = $serialName; | |
| 41788 | + $this->serializable = $serializable; | |
| 41789 | + $this->serialize = $serialize; | |
| 41790 | + $this->serializerProvider = $serializerProvider; | |
| 41791 | + $this->set = $set; | |
| 41792 | + $this->short = $short; | |
| 41793 | + $this->signed = $signed; | |
| 41794 | + $this->simpleModule = $simpleModule; | |
| 41795 | + $this->sizeof = $sizeof; | |
| 41796 | + $this->stackalloc = $stackalloc; | |
| 41797 | + $this->standards = $standards; | |
| 41798 | + $this->static = $static; | |
| 41799 | + $this->staticAssert = $staticAssert; | |
| 41800 | + $this->staticCast = $staticCast; | |
| 41801 | + $this->stdDeserializer = $stdDeserializer; | |
| 41802 | + $this->stdSerializer = $stdSerializer; | |
| 41803 | + $this->strictfp = $strictfp; | |
| 41804 | + $this->string = $string; | |
| 41805 | + $this->struct = $struct; | |
| 41806 | + $this->subscript = $subscript; | |
| 41807 | + $this->super = $super; | |
| 41808 | + $this->switch = $switch; | |
| 41809 | + $this->symbol = $symbol; | |
| 41810 | + $this->synchronized = $synchronized; | |
| 41811 | + $this->system = $system; | |
| 41812 | + $this->template = $template; | |
| 41813 | + $this->then = $then; | |
| 41814 | + $this->threadLocal = $threadLocal; | |
| 41815 | + $this->throw = $throw; | |
| 41816 | + $this->throws = $throws; | |
| 41817 | + $this->timeOnly = $timeOnly; | |
| 41818 | + $this->timeOnlyConverter = $timeOnlyConverter; | |
| 41819 | + $this->timeZone = $timeZone; | |
| 41820 | + $this->toDict = $toDict; | |
| 41821 | + $this->toJSON = $toJSON; | |
| 41822 | + $this->toString = $toString; | |
| 41823 | + $this->topLevel = $topLevel; | |
| 41824 | + $this->transient = $transient; | |
| 41825 | + $this->true = $true; | |
| 41826 | + $this->try = $try; | |
| 41827 | + $this->type = $type; | |
| 41828 | + $this->typealias = $typealias; | |
| 41829 | + $this->typedef = $typedef; | |
| 41830 | + $this->typeid = $typeid; | |
| 41831 | + $this->typename = $typename; | |
| 41832 | + $this->typeof = $typeof; | |
| 41833 | + $this->uint = $uint; | |
| 41834 | + $this->ulong = $ulong; | |
| 41835 | + $this->unchecked = $unchecked; | |
| 41836 | + $this->undefined = $undefined; | |
| 41501 | 41837 | } |
| 41502 | 41838 | |
| 41503 | 41839 | /** |
| @@ -41505,7 +41841,7 @@ class Sbyte { | ||
| 41505 | 41841 | * @throws Exception |
| 41506 | 41842 | * @return int |
| 41507 | 41843 | */ |
| 41508 | - public static function fromSbyte(int $value): int { | |
| 41844 | + public static function fromDummy(int $value): int { | |
| 41509 | 41845 | return $value; /*int*/ |
| 41510 | 41846 | } |
| 41511 | 41847 | |
| @@ -41513,11 +41849,11 @@ class Sbyte { | ||
| 41513 | 41849 | * @throws Exception |
| 41514 | 41850 | * @return int |
| 41515 | 41851 | */ |
| 41516 | - public function toSbyte(): int { | |
| 41517 | - if (Sbyte::validateSbyte($this->sbyte)) { | |
| 41518 | - return $this->sbyte; /*int*/ | |
| 41852 | + public function toDummy(): int { | |
| 41853 | + if (Obj5::validateDummy($this->dummy)) { | |
| 41854 | + return $this->dummy; /*int*/ | |
| 41519 | 41855 | } |
| 41520 | - throw new Exception('never get to this Sbyte::sbyte'); | |
| 41856 | + throw new Exception('never get to this Obj5::dummy'); | |
| 41521 | 41857 | } |
| 41522 | 41858 | |
| 41523 | 41859 | /** |
| @@ -41525,7 +41861,7 @@ class Sbyte { | ||
| 41525 | 41861 | * @return bool |
| 41526 | 41862 | * @throws Exception |
| 41527 | 41863 | */ |
| 41528 | - public static function validateSbyte(int $value): bool { | |
| 41864 | + public static function validateDummy(int $value): bool { | |
| 41529 | 41865 | return true; |
| 41530 | 41866 | } |
| 41531 | 41867 | |
| @@ -41533,804 +41869,498 @@ class Sbyte { | ||
| 41533 | 41869 | * @throws Exception |
| 41534 | 41870 | * @return int |
| 41535 | 41871 | */ |
| 41536 | - public function getSbyte(): int { | |
| 41537 | - if (Sbyte::validateSbyte($this->sbyte)) { | |
| 41538 | - return $this->sbyte; | |
| 41872 | + public function getDummy(): int { | |
| 41873 | + if (Obj5::validateDummy($this->dummy)) { | |
| 41874 | + return $this->dummy; | |
| 41539 | 41875 | } |
| 41540 | - throw new Exception('never get to getSbyte Sbyte::sbyte'); | |
| 41876 | + throw new Exception('never get to getDummy Obj5::dummy'); | |
| 41541 | 41877 | } |
| 41542 | 41878 | |
| 41543 | 41879 | /** |
| 41544 | 41880 | * @return int |
| 41545 | 41881 | */ |
| 41546 | - public static function sampleSbyte(): int { | |
| 41547 | - return 31; /*31:sbyte*/ | |
| 41882 | + public static function sampleDummy(): int { | |
| 41883 | + return 31; /*31:dummy*/ | |
| 41548 | 41884 | } |
| 41549 | 41885 | |
| 41550 | 41886 | /** |
| 41887 | + * @param stdClass $value | |
| 41551 | 41888 | * @throws Exception |
| 41552 | - * @return bool | |
| 41889 | + * @return KSerializer | |
| 41553 | 41890 | */ |
| 41554 | - public function validate(): bool { | |
| 41555 | - return Sbyte::validateSbyte($this->sbyte); | |
| 41891 | + public static function fromKSerializer(stdClass $value): KSerializer { | |
| 41892 | + return KSerializer::from($value); /*class*/ | |
| 41556 | 41893 | } |
| 41557 | 41894 | |
| 41558 | 41895 | /** |
| 41559 | - * @return stdClass | |
| 41560 | 41896 | * @throws Exception |
| 41897 | + * @return stdClass | |
| 41561 | 41898 | */ |
| 41562 | - public function to(): stdClass { | |
| 41563 | - $out = new stdClass(); | |
| 41564 | - $out->{'sbyte'} = $this->toSbyte(); | |
| 41565 | - return $out; | |
| 41899 | + public function toKSerializer(): stdClass { | |
| 41900 | + if (Obj5::validateKSerializer($this->kSerializer)) { | |
| 41901 | + return $this->kSerializer->to(); /*class*/ | |
| 41902 | + } | |
| 41903 | + throw new Exception('never get to this Obj5::kSerializer'); | |
| 41566 | 41904 | } |
| 41567 | 41905 | |
| 41568 | 41906 | /** |
| 41569 | - * @param stdClass $obj | |
| 41570 | - * @return Sbyte | |
| 41907 | + * @param KSerializer | |
| 41908 | + * @return bool | |
| 41571 | 41909 | * @throws Exception |
| 41572 | 41910 | */ |
| 41573 | - public static function from(stdClass $obj): Sbyte { | |
| 41574 | - if (!property_exists($obj, 'sbyte')) { | |
| 41575 | - throw new Exception("Missing required property"); | |
| 41576 | - } | |
| 41577 | - return new Sbyte( | |
| 41578 | - Sbyte::fromSbyte($obj->{'sbyte'}) | |
| 41579 | - ); | |
| 41911 | + public static function validateKSerializer(KSerializer $value): bool { | |
| 41912 | + $value->validate(); | |
| 41913 | + return true; | |
| 41580 | 41914 | } |
| 41581 | 41915 | |
| 41582 | 41916 | /** |
| 41583 | - * @return Sbyte | |
| 41917 | + * @throws Exception | |
| 41918 | + * @return KSerializer | |
| 41584 | 41919 | */ |
| 41585 | - public static function sample(): Sbyte { | |
| 41586 | - return new Sbyte( | |
| 41587 | - Sbyte::sampleSbyte() | |
| 41588 | - ); | |
| 41920 | + public function getKSerializer(): KSerializer { | |
| 41921 | + if (Obj5::validateKSerializer($this->kSerializer)) { | |
| 41922 | + return $this->kSerializer; | |
| 41923 | + } | |
| 41924 | + throw new Exception('never get to getKSerializer Obj5::kSerializer'); | |
| 41589 | 41925 | } |
| 41590 | -} | |
| 41591 | - | |
| 41592 | -// This is an autogenerated file:Sealed | |
| 41593 | - | |
| 41594 | -class Sealed { | |
| 41595 | - private int $sealed; // json:sealed Required | |
| 41596 | 41926 | |
| 41597 | 41927 | /** |
| 41598 | - * @param int $sealed | |
| 41928 | + * @return KSerializer | |
| 41599 | 41929 | */ |
| 41600 | - public function __construct(int $sealed) { | |
| 41601 | - $this->sealed = $sealed; | |
| 41930 | + public static function sampleKSerializer(): KSerializer { | |
| 41931 | + return KSerializer::sample(); /*32:kSerializer*/ | |
| 41602 | 41932 | } |
| 41603 | 41933 | |
| 41604 | 41934 | /** |
| 41605 | - * @param int $value | |
| 41935 | + * @param stdClass $value | |
| 41606 | 41936 | * @throws Exception |
| 41607 | - * @return int | |
| 41937 | + * @return Obj5Self | |
| 41608 | 41938 | */ |
| 41609 | - public static function fromSealed(int $value): int { | |
| 41610 | - return $value; /*int*/ | |
| 41939 | + public static function fromObj5Self(stdClass $value): Obj5Self { | |
| 41940 | + return Obj5Self::from($value); /*class*/ | |
| 41611 | 41941 | } |
| 41612 | 41942 | |
| 41613 | 41943 | /** |
| 41614 | 41944 | * @throws Exception |
| 41615 | - * @return int | |
| 41945 | + * @return stdClass | |
| 41616 | 41946 | */ |
| 41617 | - public function toSealed(): int { | |
| 41618 | - if (Sealed::validateSealed($this->sealed)) { | |
| 41619 | - return $this->sealed; /*int*/ | |
| 41947 | + public function toObj5Self(): stdClass { | |
| 41948 | + if (Obj5::validateObj5Self($this->obj5Self)) { | |
| 41949 | + return $this->obj5Self->to(); /*class*/ | |
| 41620 | 41950 | } |
| 41621 | - throw new Exception('never get to this Sealed::sealed'); | |
| 41951 | + throw new Exception('never get to this Obj5::obj5Self'); | |
| 41622 | 41952 | } |
| 41623 | 41953 | |
| 41624 | 41954 | /** |
| 41625 | - * @param int | |
| 41955 | + * @param Obj5Self | |
| 41626 | 41956 | * @return bool |
| 41627 | 41957 | * @throws Exception |
| 41628 | 41958 | */ |
| 41629 | - public static function validateSealed(int $value): bool { | |
| 41959 | + public static function validateObj5Self(Obj5Self $value): bool { | |
| 41960 | + $value->validate(); | |
| 41630 | 41961 | return true; |
| 41631 | 41962 | } |
| 41632 | 41963 | |
| 41633 | 41964 | /** |
| 41634 | 41965 | * @throws Exception |
| 41635 | - * @return int | |
| 41966 | + * @return Obj5Self | |
| 41636 | 41967 | */ |
| 41637 | - public function getSealed(): int { | |
| 41638 | - if (Sealed::validateSealed($this->sealed)) { | |
| 41639 | - return $this->sealed; | |
| 41968 | + public function getObj5Self(): Obj5Self { | |
| 41969 | + if (Obj5::validateObj5Self($this->obj5Self)) { | |
| 41970 | + return $this->obj5Self; | |
| 41640 | 41971 | } |
| 41641 | - throw new Exception('never get to getSealed Sealed::sealed'); | |
| 41972 | + throw new Exception('never get to getObj5Self Obj5::obj5Self'); | |
| 41642 | 41973 | } |
| 41643 | 41974 | |
| 41644 | 41975 | /** |
| 41645 | - * @return int | |
| 41976 | + * @return Obj5Self | |
| 41646 | 41977 | */ |
| 41647 | - public static function sampleSealed(): int { | |
| 41648 | - return 31; /*31:sealed*/ | |
| 41978 | + public static function sampleObj5Self(): Obj5Self { | |
| 41979 | + return Obj5Self::sample(); /*33:obj5Self*/ | |
| 41649 | 41980 | } |
| 41650 | 41981 | |
| 41651 | 41982 | /** |
| 41983 | + * @param stdClass $value | |
| 41652 | 41984 | * @throws Exception |
| 41653 | - * @return bool | |
| 41985 | + * @return This | |
| 41654 | 41986 | */ |
| 41655 | - public function validate(): bool { | |
| 41656 | - return Sealed::validateSealed($this->sealed); | |
| 41987 | + public static function fromObj5This(stdClass $value): This { | |
| 41988 | + return This::from($value); /*class*/ | |
| 41657 | 41989 | } |
| 41658 | 41990 | |
| 41659 | 41991 | /** |
| 41660 | - * @return stdClass | |
| 41661 | 41992 | * @throws Exception |
| 41993 | + * @return stdClass | |
| 41662 | 41994 | */ |
| 41663 | - public function to(): stdClass { | |
| 41664 | - $out = new stdClass(); | |
| 41665 | - $out->{'sealed'} = $this->toSealed(); | |
| 41666 | - return $out; | |
| 41995 | + public function toObj5This(): stdClass { | |
| 41996 | + if (Obj5::validateObj5This($this->obj5This)) { | |
| 41997 | + return $this->obj5This->to(); /*class*/ | |
| 41998 | + } | |
| 41999 | + throw new Exception('never get to this Obj5::obj5This'); | |
| 41667 | 42000 | } |
| 41668 | 42001 | |
| 41669 | 42002 | /** |
| 41670 | - * @param stdClass $obj | |
| 41671 | - * @return Sealed | |
| 42003 | + * @param This | |
| 42004 | + * @return bool | |
| 41672 | 42005 | * @throws Exception |
| 41673 | 42006 | */ |
| 41674 | - public static function from(stdClass $obj): Sealed { | |
| 41675 | - if (!property_exists($obj, 'sealed')) { | |
| 41676 | - throw new Exception("Missing required property"); | |
| 41677 | - } | |
| 41678 | - return new Sealed( | |
| 41679 | - Sealed::fromSealed($obj->{'sealed'}) | |
| 41680 | - ); | |
| 42007 | + public static function validateObj5This(This $value): bool { | |
| 42008 | + $value->validate(); | |
| 42009 | + return true; | |
| 41681 | 42010 | } |
| 41682 | 42011 | |
| 41683 | 42012 | /** |
| 41684 | - * @return Sealed | |
| 42013 | + * @throws Exception | |
| 42014 | + * @return This | |
| 41685 | 42015 | */ |
| 41686 | - public static function sample(): Sealed { | |
| 41687 | - return new Sealed( | |
| 41688 | - Sealed::sampleSealed() | |
| 41689 | - ); | |
| 42016 | + public function getObj5This(): This { | |
| 42017 | + if (Obj5::validateObj5This($this->obj5This)) { | |
| 42018 | + return $this->obj5This; | |
| 42019 | + } | |
| 42020 | + throw new Exception('never get to getObj5This Obj5::obj5This'); | |
| 41690 | 42021 | } |
| 41691 | -} | |
| 41692 | - | |
| 41693 | -// This is an autogenerated file:Sel | |
| 41694 | - | |
| 41695 | -class Sel { | |
| 41696 | - private int $sel; // json:SEL Required | |
| 41697 | 42022 | |
| 41698 | 42023 | /** |
| 41699 | - * @param int $sel | |
| 42024 | + * @return This | |
| 41700 | 42025 | */ |
| 41701 | - public function __construct(int $sel) { | |
| 41702 | - $this->sel = $sel; | |
| 42026 | + public static function sampleObj5This(): This { | |
| 42027 | + return This::sample(); /*34:obj5This*/ | |
| 41703 | 42028 | } |
| 41704 | 42029 | |
| 41705 | 42030 | /** |
| 41706 | - * @param int $value | |
| 42031 | + * @param stdClass $value | |
| 41707 | 42032 | * @throws Exception |
| 41708 | - * @return int | |
| 42033 | + * @return Obj5True | |
| 41709 | 42034 | */ |
| 41710 | - public static function fromSel(int $value): int { | |
| 41711 | - return $value; /*int*/ | |
| 42035 | + public static function fromObj5True(stdClass $value): Obj5True { | |
| 42036 | + return Obj5True::from($value); /*class*/ | |
| 41712 | 42037 | } |
| 41713 | 42038 | |
| 41714 | 42039 | /** |
| 41715 | 42040 | * @throws Exception |
| 41716 | - * @return int | |
| 42041 | + * @return stdClass | |
| 41717 | 42042 | */ |
| 41718 | - public function toSel(): int { | |
| 41719 | - if (Sel::validateSel($this->sel)) { | |
| 41720 | - return $this->sel; /*int*/ | |
| 42043 | + public function toObj5True(): stdClass { | |
| 42044 | + if (Obj5::validateObj5True($this->obj5True)) { | |
| 42045 | + return $this->obj5True->to(); /*class*/ | |
| 41721 | 42046 | } |
| 41722 | - throw new Exception('never get to this Sel::sel'); | |
| 42047 | + throw new Exception('never get to this Obj5::obj5True'); | |
| 41723 | 42048 | } |
| 41724 | 42049 | |
| 41725 | 42050 | /** |
| 41726 | - * @param int | |
| 42051 | + * @param Obj5True | |
| 41727 | 42052 | * @return bool |
| 41728 | 42053 | * @throws Exception |
| 41729 | 42054 | */ |
| 41730 | - public static function validateSel(int $value): bool { | |
| 42055 | + public static function validateObj5True(Obj5True $value): bool { | |
| 42056 | + $value->validate(); | |
| 41731 | 42057 | return true; |
| 41732 | 42058 | } |
| 41733 | 42059 | |
| 41734 | 42060 | /** |
| 41735 | 42061 | * @throws Exception |
| 41736 | - * @return int | |
| 42062 | + * @return Obj5True | |
| 41737 | 42063 | */ |
| 41738 | - public function getSel(): int { | |
| 41739 | - if (Sel::validateSel($this->sel)) { | |
| 41740 | - return $this->sel; | |
| 42064 | + public function getObj5True(): Obj5True { | |
| 42065 | + if (Obj5::validateObj5True($this->obj5True)) { | |
| 42066 | + return $this->obj5True; | |
| 41741 | 42067 | } |
| 41742 | - throw new Exception('never get to getSel Sel::sel'); | |
| 42068 | + throw new Exception('never get to getObj5True Obj5::obj5True'); | |
| 41743 | 42069 | } |
| 41744 | 42070 | |
| 41745 | 42071 | /** |
| 41746 | - * @return int | |
| 42072 | + * @return Obj5True | |
| 41747 | 42073 | */ |
| 41748 | - public static function sampleSel(): int { | |
| 41749 | - return 31; /*31:sel*/ | |
| 42074 | + public static function sampleObj5True(): Obj5True { | |
| 42075 | + return Obj5True::sample(); /*35:obj5True*/ | |
| 41750 | 42076 | } |
| 41751 | 42077 | |
| 41752 | 42078 | /** |
| 42079 | + * @param stdClass $value | |
| 41753 | 42080 | * @throws Exception |
| 41754 | - * @return bool | |
| 42081 | + * @return TypeClass | |
| 41755 | 42082 | */ |
| 41756 | - public function validate(): bool { | |
| 41757 | - return Sel::validateSel($this->sel); | |
| 42083 | + public static function fromObj5Type(stdClass $value): TypeClass { | |
| 42084 | + return TypeClass::from($value); /*class*/ | |
| 41758 | 42085 | } |
| 41759 | 42086 | |
| 41760 | 42087 | /** |
| 42088 | + * @throws Exception | |
| 41761 | 42089 | * @return stdClass |
| 42090 | + */ | |
| 42091 | + public function toObj5Type(): stdClass { | |
| 42092 | + if (Obj5::validateObj5Type($this->obj5Type)) { | |
| 42093 | + return $this->obj5Type->to(); /*class*/ | |
| 42094 | + } | |
| 42095 | + throw new Exception('never get to this Obj5::obj5Type'); | |
| 42096 | + } | |
| 42097 | + | |
| 42098 | + /** | |
| 42099 | + * @param TypeClass | |
| 42100 | + * @return bool | |
| 41762 | 42101 | * @throws Exception |
| 41763 | 42102 | */ |
| 41764 | - public function to(): stdClass { | |
| 41765 | - $out = new stdClass(); | |
| 41766 | - $out->{'SEL'} = $this->toSel(); | |
| 41767 | - return $out; | |
| 42103 | + public static function validateObj5Type(TypeClass $value): bool { | |
| 42104 | + $value->validate(); | |
| 42105 | + return true; | |
| 41768 | 42106 | } |
| 41769 | 42107 | |
| 41770 | 42108 | /** |
| 41771 | - * @param stdClass $obj | |
| 41772 | - * @return Sel | |
| 41773 | 42109 | * @throws Exception |
| 42110 | + * @return TypeClass | |
| 41774 | 42111 | */ |
| 41775 | - public static function from(stdClass $obj): Sel { | |
| 41776 | - if (!property_exists($obj, 'SEL')) { | |
| 41777 | - throw new Exception("Missing required property"); | |
| 42112 | + public function getObj5Type(): TypeClass { | |
| 42113 | + if (Obj5::validateObj5Type($this->obj5Type)) { | |
| 42114 | + return $this->obj5Type; | |
| 41778 | 42115 | } |
| 41779 | - return new Sel( | |
| 41780 | - Sel::fromSel($obj->{'SEL'}) | |
| 41781 | - ); | |
| 42116 | + throw new Exception('never get to getObj5Type Obj5::obj5Type'); | |
| 41782 | 42117 | } |
| 41783 | 42118 | |
| 41784 | 42119 | /** |
| 41785 | - * @return Sel | |
| 42120 | + * @return TypeClass | |
| 41786 | 42121 | */ |
| 41787 | - public static function sample(): Sel { | |
| 41788 | - return new Sel( | |
| 41789 | - Sel::sampleSel() | |
| 41790 | - ); | |
| 41791 | - } | |
| 41792 | -} | |
| 41793 | - | |
| 41794 | -// This is an autogenerated file:Obj5 | |
| 41795 | - | |
| 41796 | -class Obj5 { | |
| 41797 | - private int $dummy; // json:dummy Required | |
| 41798 | - private KSerializer $kSerializer; // json:KSerializer Required | |
| 41799 | - private Obj5Self $obj5Self; // json:self Required | |
| 41800 | - private This $obj5This; // json:this Required | |
| 41801 | - private Obj5True $obj5True; // json:true Required | |
| 41802 | - private TypeClass $obj5Type; // json:type Required | |
| 41803 | - private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required | |
| 41804 | - private Select $select; // json:select Required | |
| 41805 | - private SelfClass $self; // json:Self Required | |
| 41806 | - private Sendable $sendable; // json:Sendable Required | |
| 41807 | - private SerialDescriptor $serialDescriptor; // json:SerialDescriptor Required | |
| 41808 | - private SerialName $serialName; // json:SerialName Required | |
| 41809 | - private SerializableClass $serializable; // json:Serializable Required | |
| 41810 | - private Serialize $serialize; // json:serialize Required | |
| 41811 | - private SerializerProvider $serializerProvider; // json:SerializerProvider Required | |
| 41812 | - private Set $set; // json:set Required | |
| 41813 | - private Short $short; // json:short Required | |
| 41814 | - private Signed $signed; // json:signed Required | |
| 41815 | - private SimpleModule $simpleModule; // json:SimpleModule Required | |
| 41816 | - private Sizeof $sizeof; // json:sizeof Required | |
| 41817 | - private Stackalloc $stackalloc; // json:stackalloc Required | |
| 41818 | - private Standards $standards; // json:Standards Required | |
| 41819 | - private StaticClass $static; // json:static Required | |
| 41820 | - private StaticAssert $staticAssert; // json:static_assert Required | |
| 41821 | - private StaticCast $staticCast; // json:static_cast Required | |
| 41822 | - private StdDeserializer $stdDeserializer; // json:StdDeserializer Required | |
| 41823 | - private StdSerializer $stdSerializer; // json:StdSerializer Required | |
| 41824 | - private Strictfp $strictfp; // json:strictfp Required | |
| 41825 | - private StringClass $string; // json:string Required | |
| 41826 | - private Struct $struct; // json:struct Required | |
| 41827 | - private Subscript $subscript; // json:subscript Required | |
| 41828 | - private Super $super; // json:super Required | |
| 41829 | - private SwitchClass $switch; // json:switch Required | |
| 41830 | - private Symbol $symbol; // json:symbol Required | |
| 41831 | - private Synchronized $synchronized; // json:synchronized Required | |
| 41832 | - private System $system; // json:system Required | |
| 41833 | - private Template $template; // json:template Required | |
| 41834 | - private Then $then; // json:then Required | |
| 41835 | - private ThreadLocal $threadLocal; // json:thread_local Required | |
| 41836 | - private ThrowClass $throw; // json:throw Required | |
| 41837 | - private Throws $throws; // json:throws Required | |
| 41838 | - private TimeOnly $timeOnly; // json:TimeOnly Required | |
| 41839 | - private TimeOnlyConverter $timeOnlyConverter; // json:TimeOnlyConverter Required | |
| 41840 | - private TimeZone $timeZone; // json:TimeZone Required | |
| 41841 | - private ToDict $toDict; // json:to_dict Required | |
| 41842 | - private ToJSON $toJSON; // json:to_json Required | |
| 41843 | - private ToString $toString; // json:toString Required | |
| 41844 | - private TopLevelClass $topLevel; // json:top_level Required | |
| 41845 | - private Transient $transient; // json:transient Required | |
| 41846 | - private TrueClass $true; // json:True Required | |
| 41847 | - private TryClass $try; // json:try Required | |
| 41848 | - private Type $type; // json:Type Required | |
| 41849 | - private Typealias $typealias; // json:typealias Required | |
| 41850 | - private Typedef $typedef; // json:typedef Required | |
| 41851 | - private Typeid $typeid; // json:typeid Required | |
| 41852 | - private Typename $typename; // json:typename Required | |
| 41853 | - private Typeof $typeof; // json:typeof Required | |
| 41854 | - private Uint $uint; // json:uint Required | |
| 41855 | - private Ulong $ulong; // json:ulong Required | |
| 41856 | - private Unchecked $unchecked; // json:unchecked Required | |
| 41857 | - private Undefined $undefined; // json:undefined Required | |
| 41858 | - private Union $union; // json:union Required | |
| 41859 | - private UnmarshalJSON $unmarshalJSON; // json:UnmarshalJSON Required | |
| 41860 | - private Unowned $unowned; // json:unowned Required | |
| 41861 | - private Unsafe $unsafe; // json:unsafe Required | |
| 41862 | - private UseSerializers $useSerializers; // json:UseSerializers Required | |
| 41863 | - | |
| 41864 | - /** | |
| 41865 | - * @param int $dummy | |
| 41866 | - * @param KSerializer $kSerializer | |
| 41867 | - * @param Obj5Self $obj5Self | |
| 41868 | - * @param This $obj5This | |
| 41869 | - * @param Obj5True $obj5True | |
| 41870 | - * @param TypeClass $obj5Type | |
| 41871 | - * @param PrimitiveKind $primitiveKind | |
| 41872 | - * @param Select $select | |
| 41873 | - * @param SelfClass $self | |
| 41874 | - * @param Sendable $sendable | |
| 41875 | - * @param SerialDescriptor $serialDescriptor | |
| 41876 | - * @param SerialName $serialName | |
| 41877 | - * @param SerializableClass $serializable | |
| 41878 | - * @param Serialize $serialize | |
| 41879 | - * @param SerializerProvider $serializerProvider | |
| 41880 | - * @param Set $set | |
| 41881 | - * @param Short $short | |
| 41882 | - * @param Signed $signed | |
| 41883 | - * @param SimpleModule $simpleModule | |
| 41884 | - * @param Sizeof $sizeof | |
| 41885 | - * @param Stackalloc $stackalloc | |
| 41886 | - * @param Standards $standards | |
| 41887 | - * @param StaticClass $static | |
| 41888 | - * @param StaticAssert $staticAssert | |
| 41889 | - * @param StaticCast $staticCast | |
| 41890 | - * @param StdDeserializer $stdDeserializer | |
| 41891 | - * @param StdSerializer $stdSerializer | |
| 41892 | - * @param Strictfp $strictfp | |
| 41893 | - * @param StringClass $string | |
| 41894 | - * @param Struct $struct | |
| 41895 | - * @param Subscript $subscript | |
| 41896 | - * @param Super $super | |
| 41897 | - * @param SwitchClass $switch | |
| 41898 | - * @param Symbol $symbol | |
| 41899 | - * @param Synchronized $synchronized | |
| 41900 | - * @param System $system | |
| 41901 | - * @param Template $template | |
| 41902 | - * @param Then $then | |
| 41903 | - * @param ThreadLocal $threadLocal | |
| 41904 | - * @param ThrowClass $throw | |
| 41905 | - * @param Throws $throws | |
| 41906 | - * @param TimeOnly $timeOnly | |
| 41907 | - * @param TimeOnlyConverter $timeOnlyConverter | |
| 41908 | - * @param TimeZone $timeZone | |
| 41909 | - * @param ToDict $toDict | |
| 41910 | - * @param ToJSON $toJSON | |
| 41911 | - * @param ToString $toString | |
| 41912 | - * @param TopLevelClass $topLevel | |
| 41913 | - * @param Transient $transient | |
| 41914 | - * @param TrueClass $true | |
| 41915 | - * @param TryClass $try | |
| 41916 | - * @param Type $type | |
| 41917 | - * @param Typealias $typealias | |
| 41918 | - * @param Typedef $typedef | |
| 41919 | - * @param Typeid $typeid | |
| 41920 | - * @param Typename $typename | |
| 41921 | - * @param Typeof $typeof | |
| 41922 | - * @param Uint $uint | |
| 41923 | - * @param Ulong $ulong | |
| 41924 | - * @param Unchecked $unchecked | |
| 41925 | - * @param Undefined $undefined | |
| 41926 | - * @param Union $union | |
| 41927 | - * @param UnmarshalJSON $unmarshalJSON | |
| 41928 | - * @param Unowned $unowned | |
| 41929 | - * @param Unsafe $unsafe | |
| 41930 | - * @param UseSerializers $useSerializers | |
| 41931 | - */ | |
| 41932 | - public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, Select $select, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToDict $toDict, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, UnmarshalJSON $unmarshalJSON, Unowned $unowned, Unsafe $unsafe, UseSerializers $useSerializers) { | |
| 41933 | - $this->dummy = $dummy; | |
| 41934 | - $this->kSerializer = $kSerializer; | |
| 41935 | - $this->obj5Self = $obj5Self; | |
| 41936 | - $this->obj5This = $obj5This; | |
| 41937 | - $this->obj5True = $obj5True; | |
| 41938 | - $this->obj5Type = $obj5Type; | |
| 41939 | - $this->primitiveKind = $primitiveKind; | |
| 41940 | - $this->select = $select; | |
| 41941 | - $this->self = $self; | |
| 41942 | - $this->sendable = $sendable; | |
| 41943 | - $this->serialDescriptor = $serialDescriptor; | |
| 41944 | - $this->serialName = $serialName; | |
| 41945 | - $this->serializable = $serializable; | |
| 41946 | - $this->serialize = $serialize; | |
| 41947 | - $this->serializerProvider = $serializerProvider; | |
| 41948 | - $this->set = $set; | |
| 41949 | - $this->short = $short; | |
| 41950 | - $this->signed = $signed; | |
| 41951 | - $this->simpleModule = $simpleModule; | |
| 41952 | - $this->sizeof = $sizeof; | |
| 41953 | - $this->stackalloc = $stackalloc; | |
| 41954 | - $this->standards = $standards; | |
| 41955 | - $this->static = $static; | |
| 41956 | - $this->staticAssert = $staticAssert; | |
| 41957 | - $this->staticCast = $staticCast; | |
| 41958 | - $this->stdDeserializer = $stdDeserializer; | |
| 41959 | - $this->stdSerializer = $stdSerializer; | |
| 41960 | - $this->strictfp = $strictfp; | |
| 41961 | - $this->string = $string; | |
| 41962 | - $this->struct = $struct; | |
| 41963 | - $this->subscript = $subscript; | |
| 41964 | - $this->super = $super; | |
| 41965 | - $this->switch = $switch; | |
| 41966 | - $this->symbol = $symbol; | |
| 41967 | - $this->synchronized = $synchronized; | |
| 41968 | - $this->system = $system; | |
| 41969 | - $this->template = $template; | |
| 41970 | - $this->then = $then; | |
| 41971 | - $this->threadLocal = $threadLocal; | |
| 41972 | - $this->throw = $throw; | |
| 41973 | - $this->throws = $throws; | |
| 41974 | - $this->timeOnly = $timeOnly; | |
| 41975 | - $this->timeOnlyConverter = $timeOnlyConverter; | |
| 41976 | - $this->timeZone = $timeZone; | |
| 41977 | - $this->toDict = $toDict; | |
| 41978 | - $this->toJSON = $toJSON; | |
| 41979 | - $this->toString = $toString; | |
| 41980 | - $this->topLevel = $topLevel; | |
| 41981 | - $this->transient = $transient; | |
| 41982 | - $this->true = $true; | |
| 41983 | - $this->try = $try; | |
| 41984 | - $this->type = $type; | |
| 41985 | - $this->typealias = $typealias; | |
| 41986 | - $this->typedef = $typedef; | |
| 41987 | - $this->typeid = $typeid; | |
| 41988 | - $this->typename = $typename; | |
| 41989 | - $this->typeof = $typeof; | |
| 41990 | - $this->uint = $uint; | |
| 41991 | - $this->ulong = $ulong; | |
| 41992 | - $this->unchecked = $unchecked; | |
| 41993 | - $this->undefined = $undefined; | |
| 41994 | - $this->union = $union; | |
| 41995 | - $this->unmarshalJSON = $unmarshalJSON; | |
| 41996 | - $this->unowned = $unowned; | |
| 41997 | - $this->unsafe = $unsafe; | |
| 41998 | - $this->useSerializers = $useSerializers; | |
| 42122 | + public static function sampleObj5Type(): TypeClass { | |
| 42123 | + return TypeClass::sample(); /*36:obj5Type*/ | |
| 41999 | 42124 | } |
| 42000 | 42125 | |
| 42001 | 42126 | /** |
| 42002 | - * @param int $value | |
| 42127 | + * @param stdClass $value | |
| 42003 | 42128 | * @throws Exception |
| 42004 | - * @return int | |
| 42129 | + * @return PrimitiveKind | |
| 42005 | 42130 | */ |
| 42006 | - public static function fromDummy(int $value): int { | |
| 42007 | - return $value; /*int*/ | |
| 42131 | + public static function fromPrimitiveKind(stdClass $value): PrimitiveKind { | |
| 42132 | + return PrimitiveKind::from($value); /*class*/ | |
| 42008 | 42133 | } |
| 42009 | 42134 | |
| 42010 | 42135 | /** |
| 42011 | 42136 | * @throws Exception |
| 42012 | - * @return int | |
| 42137 | + * @return stdClass | |
| 42013 | 42138 | */ |
| 42014 | - public function toDummy(): int { | |
| 42015 | - if (Obj5::validateDummy($this->dummy)) { | |
| 42016 | - return $this->dummy; /*int*/ | |
| 42139 | + public function toPrimitiveKind(): stdClass { | |
| 42140 | + if (Obj5::validatePrimitiveKind($this->primitiveKind)) { | |
| 42141 | + return $this->primitiveKind->to(); /*class*/ | |
| 42017 | 42142 | } |
| 42018 | - throw new Exception('never get to this Obj5::dummy'); | |
| 42143 | + throw new Exception('never get to this Obj5::primitiveKind'); | |
| 42019 | 42144 | } |
| 42020 | 42145 | |
| 42021 | 42146 | /** |
| 42022 | - * @param int | |
| 42147 | + * @param PrimitiveKind | |
| 42023 | 42148 | * @return bool |
| 42024 | 42149 | * @throws Exception |
| 42025 | 42150 | */ |
| 42026 | - public static function validateDummy(int $value): bool { | |
| 42151 | + public static function validatePrimitiveKind(PrimitiveKind $value): bool { | |
| 42152 | + $value->validate(); | |
| 42027 | 42153 | return true; |
| 42028 | 42154 | } |
| 42029 | 42155 | |
| 42030 | 42156 | /** |
| 42031 | 42157 | * @throws Exception |
| 42032 | - * @return int | |
| 42158 | + * @return PrimitiveKind | |
| 42033 | 42159 | */ |
| 42034 | - public function getDummy(): int { | |
| 42035 | - if (Obj5::validateDummy($this->dummy)) { | |
| 42036 | - return $this->dummy; | |
| 42160 | + public function getPrimitiveKind(): PrimitiveKind { | |
| 42161 | + if (Obj5::validatePrimitiveKind($this->primitiveKind)) { | |
| 42162 | + return $this->primitiveKind; | |
| 42037 | 42163 | } |
| 42038 | - throw new Exception('never get to getDummy Obj5::dummy'); | |
| 42164 | + throw new Exception('never get to getPrimitiveKind Obj5::primitiveKind'); | |
| 42039 | 42165 | } |
| 42040 | 42166 | |
| 42041 | 42167 | /** |
| 42042 | - * @return int | |
| 42168 | + * @return PrimitiveKind | |
| 42043 | 42169 | */ |
| 42044 | - public static function sampleDummy(): int { | |
| 42045 | - return 31; /*31:dummy*/ | |
| 42170 | + public static function samplePrimitiveKind(): PrimitiveKind { | |
| 42171 | + return PrimitiveKind::sample(); /*37:primitiveKind*/ | |
| 42046 | 42172 | } |
| 42047 | 42173 | |
| 42048 | 42174 | /** |
| 42049 | 42175 | * @param stdClass $value |
| 42050 | 42176 | * @throws Exception |
| 42051 | - * @return KSerializer | |
| 42177 | + * @return S | |
| 42052 | 42178 | */ |
| 42053 | - public static function fromKSerializer(stdClass $value): KSerializer { | |
| 42054 | - return KSerializer::from($value); /*class*/ | |
| 42179 | + public static function fromS(stdClass $value): S { | |
| 42180 | + return S::from($value); /*class*/ | |
| 42055 | 42181 | } |
| 42056 | 42182 | |
| 42057 | 42183 | /** |
| 42058 | 42184 | * @throws Exception |
| 42059 | 42185 | * @return stdClass |
| 42060 | 42186 | */ |
| 42061 | - public function toKSerializer(): stdClass { | |
| 42062 | - if (Obj5::validateKSerializer($this->kSerializer)) { | |
| 42063 | - return $this->kSerializer->to(); /*class*/ | |
| 42187 | + public function toS(): stdClass { | |
| 42188 | + if (Obj5::validateS($this->s)) { | |
| 42189 | + return $this->s->to(); /*class*/ | |
| 42064 | 42190 | } |
| 42065 | - throw new Exception('never get to this Obj5::kSerializer'); | |
| 42191 | + throw new Exception('never get to this Obj5::s'); | |
| 42066 | 42192 | } |
| 42067 | 42193 | |
| 42068 | 42194 | /** |
| 42069 | - * @param KSerializer | |
| 42195 | + * @param S | |
| 42070 | 42196 | * @return bool |
| 42071 | 42197 | * @throws Exception |
| 42072 | 42198 | */ |
| 42073 | - public static function validateKSerializer(KSerializer $value): bool { | |
| 42199 | + public static function validateS(S $value): bool { | |
| 42074 | 42200 | $value->validate(); |
| 42075 | 42201 | return true; |
| 42076 | 42202 | } |
| 42077 | 42203 | |
| 42078 | 42204 | /** |
| 42079 | 42205 | * @throws Exception |
| 42080 | - * @return KSerializer | |
| 42206 | + * @return S | |
| 42081 | 42207 | */ |
| 42082 | - public function getKSerializer(): KSerializer { | |
| 42083 | - if (Obj5::validateKSerializer($this->kSerializer)) { | |
| 42084 | - return $this->kSerializer; | |
| 42085 | - } | |
| 42086 | - throw new Exception('never get to getKSerializer Obj5::kSerializer'); | |
| 42087 | - } | |
| 42088 | - | |
| 42089 | - /** | |
| 42090 | - * @return KSerializer | |
| 42091 | - */ | |
| 42092 | - public static function sampleKSerializer(): KSerializer { | |
| 42093 | - return KSerializer::sample(); /*32:kSerializer*/ | |
| 42094 | - } | |
| 42095 | - | |
| 42096 | - /** | |
| 42097 | - * @param stdClass $value | |
| 42098 | - * @throws Exception | |
| 42099 | - * @return Obj5Self | |
| 42100 | - */ | |
| 42101 | - public static function fromObj5Self(stdClass $value): Obj5Self { | |
| 42102 | - return Obj5Self::from($value); /*class*/ | |
| 42103 | - } | |
| 42104 | - | |
| 42105 | - /** | |
| 42106 | - * @throws Exception | |
| 42107 | - * @return stdClass | |
| 42108 | - */ | |
| 42109 | - public function toObj5Self(): stdClass { | |
| 42110 | - if (Obj5::validateObj5Self($this->obj5Self)) { | |
| 42111 | - return $this->obj5Self->to(); /*class*/ | |
| 42112 | - } | |
| 42113 | - throw new Exception('never get to this Obj5::obj5Self'); | |
| 42114 | - } | |
| 42115 | - | |
| 42116 | - /** | |
| 42117 | - * @param Obj5Self | |
| 42118 | - * @return bool | |
| 42119 | - * @throws Exception | |
| 42120 | - */ | |
| 42121 | - public static function validateObj5Self(Obj5Self $value): bool { | |
| 42122 | - $value->validate(); | |
| 42123 | - return true; | |
| 42124 | - } | |
| 42125 | - | |
| 42126 | - /** | |
| 42127 | - * @throws Exception | |
| 42128 | - * @return Obj5Self | |
| 42129 | - */ | |
| 42130 | - public function getObj5Self(): Obj5Self { | |
| 42131 | - if (Obj5::validateObj5Self($this->obj5Self)) { | |
| 42132 | - return $this->obj5Self; | |
| 42133 | - } | |
| 42134 | - throw new Exception('never get to getObj5Self Obj5::obj5Self'); | |
| 42135 | - } | |
| 42136 | - | |
| 42137 | - /** | |
| 42138 | - * @return Obj5Self | |
| 42139 | - */ | |
| 42140 | - public static function sampleObj5Self(): Obj5Self { | |
| 42141 | - return Obj5Self::sample(); /*33:obj5Self*/ | |
| 42142 | - } | |
| 42143 | - | |
| 42144 | - /** | |
| 42145 | - * @param stdClass $value | |
| 42146 | - * @throws Exception | |
| 42147 | - * @return This | |
| 42148 | - */ | |
| 42149 | - public static function fromObj5This(stdClass $value): This { | |
| 42150 | - return This::from($value); /*class*/ | |
| 42151 | - } | |
| 42152 | - | |
| 42153 | - /** | |
| 42154 | - * @throws Exception | |
| 42155 | - * @return stdClass | |
| 42156 | - */ | |
| 42157 | - public function toObj5This(): stdClass { | |
| 42158 | - if (Obj5::validateObj5This($this->obj5This)) { | |
| 42159 | - return $this->obj5This->to(); /*class*/ | |
| 42160 | - } | |
| 42161 | - throw new Exception('never get to this Obj5::obj5This'); | |
| 42162 | - } | |
| 42163 | - | |
| 42164 | - /** | |
| 42165 | - * @param This | |
| 42166 | - * @return bool | |
| 42167 | - * @throws Exception | |
| 42168 | - */ | |
| 42169 | - public static function validateObj5This(This $value): bool { | |
| 42170 | - $value->validate(); | |
| 42171 | - return true; | |
| 42172 | - } | |
| 42173 | - | |
| 42174 | - /** | |
| 42175 | - * @throws Exception | |
| 42176 | - * @return This | |
| 42177 | - */ | |
| 42178 | - public function getObj5This(): This { | |
| 42179 | - if (Obj5::validateObj5This($this->obj5This)) { | |
| 42180 | - return $this->obj5This; | |
| 42208 | + public function getS(): S { | |
| 42209 | + if (Obj5::validateS($this->s)) { | |
| 42210 | + return $this->s; | |
| 42181 | 42211 | } |
| 42182 | - throw new Exception('never get to getObj5This Obj5::obj5This'); | |
| 42212 | + throw new Exception('never get to getS Obj5::s'); | |
| 42183 | 42213 | } |
| 42184 | 42214 | |
| 42185 | 42215 | /** |
| 42186 | - * @return This | |
| 42216 | + * @return S | |
| 42187 | 42217 | */ |
| 42188 | - public static function sampleObj5This(): This { | |
| 42189 | - return This::sample(); /*34:obj5This*/ | |
| 42218 | + public static function sampleS(): S { | |
| 42219 | + return S::sample(); /*38:s*/ | |
| 42190 | 42220 | } |
| 42191 | 42221 | |
| 42192 | 42222 | /** |
| 42193 | 42223 | * @param stdClass $value |
| 42194 | 42224 | * @throws Exception |
| 42195 | - * @return Obj5True | |
| 42225 | + * @return Sbyte | |
| 42196 | 42226 | */ |
| 42197 | - public static function fromObj5True(stdClass $value): Obj5True { | |
| 42198 | - return Obj5True::from($value); /*class*/ | |
| 42227 | + public static function fromSbyte(stdClass $value): Sbyte { | |
| 42228 | + return Sbyte::from($value); /*class*/ | |
| 42199 | 42229 | } |
| 42200 | 42230 | |
| 42201 | 42231 | /** |
| 42202 | 42232 | * @throws Exception |
| 42203 | 42233 | * @return stdClass |
| 42204 | 42234 | */ |
| 42205 | - public function toObj5True(): stdClass { | |
| 42206 | - if (Obj5::validateObj5True($this->obj5True)) { | |
| 42207 | - return $this->obj5True->to(); /*class*/ | |
| 42235 | + public function toSbyte(): stdClass { | |
| 42236 | + if (Obj5::validateSbyte($this->sbyte)) { | |
| 42237 | + return $this->sbyte->to(); /*class*/ | |
| 42208 | 42238 | } |
| 42209 | - throw new Exception('never get to this Obj5::obj5True'); | |
| 42239 | + throw new Exception('never get to this Obj5::sbyte'); | |
| 42210 | 42240 | } |
| 42211 | 42241 | |
| 42212 | 42242 | /** |
| 42213 | - * @param Obj5True | |
| 42243 | + * @param Sbyte | |
| 42214 | 42244 | * @return bool |
| 42215 | 42245 | * @throws Exception |
| 42216 | 42246 | */ |
| 42217 | - public static function validateObj5True(Obj5True $value): bool { | |
| 42247 | + public static function validateSbyte(Sbyte $value): bool { | |
| 42218 | 42248 | $value->validate(); |
| 42219 | 42249 | return true; |
| 42220 | 42250 | } |
| 42221 | 42251 | |
| 42222 | 42252 | /** |
| 42223 | 42253 | * @throws Exception |
| 42224 | - * @return Obj5True | |
| 42254 | + * @return Sbyte | |
| 42225 | 42255 | */ |
| 42226 | - public function getObj5True(): Obj5True { | |
| 42227 | - if (Obj5::validateObj5True($this->obj5True)) { | |
| 42228 | - return $this->obj5True; | |
| 42256 | + public function getSbyte(): Sbyte { | |
| 42257 | + if (Obj5::validateSbyte($this->sbyte)) { | |
| 42258 | + return $this->sbyte; | |
| 42229 | 42259 | } |
| 42230 | - throw new Exception('never get to getObj5True Obj5::obj5True'); | |
| 42260 | + throw new Exception('never get to getSbyte Obj5::sbyte'); | |
| 42231 | 42261 | } |
| 42232 | 42262 | |
| 42233 | 42263 | /** |
| 42234 | - * @return Obj5True | |
| 42264 | + * @return Sbyte | |
| 42235 | 42265 | */ |
| 42236 | - public static function sampleObj5True(): Obj5True { | |
| 42237 | - return Obj5True::sample(); /*35:obj5True*/ | |
| 42266 | + public static function sampleSbyte(): Sbyte { | |
| 42267 | + return Sbyte::sample(); /*39:sbyte*/ | |
| 42238 | 42268 | } |
| 42239 | 42269 | |
| 42240 | 42270 | /** |
| 42241 | 42271 | * @param stdClass $value |
| 42242 | 42272 | * @throws Exception |
| 42243 | - * @return TypeClass | |
| 42273 | + * @return Sealed | |
| 42244 | 42274 | */ |
| 42245 | - public static function fromObj5Type(stdClass $value): TypeClass { | |
| 42246 | - return TypeClass::from($value); /*class*/ | |
| 42275 | + public static function fromSealed(stdClass $value): Sealed { | |
| 42276 | + return Sealed::from($value); /*class*/ | |
| 42247 | 42277 | } |
| 42248 | 42278 | |
| 42249 | 42279 | /** |
| 42250 | 42280 | * @throws Exception |
| 42251 | 42281 | * @return stdClass |
| 42252 | 42282 | */ |
| 42253 | - public function toObj5Type(): stdClass { | |
| 42254 | - if (Obj5::validateObj5Type($this->obj5Type)) { | |
| 42255 | - return $this->obj5Type->to(); /*class*/ | |
| 42283 | + public function toSealed(): stdClass { | |
| 42284 | + if (Obj5::validateSealed($this->sealed)) { | |
| 42285 | + return $this->sealed->to(); /*class*/ | |
| 42256 | 42286 | } |
| 42257 | - throw new Exception('never get to this Obj5::obj5Type'); | |
| 42287 | + throw new Exception('never get to this Obj5::sealed'); | |
| 42258 | 42288 | } |
| 42259 | 42289 | |
| 42260 | 42290 | /** |
| 42261 | - * @param TypeClass | |
| 42291 | + * @param Sealed | |
| 42262 | 42292 | * @return bool |
| 42263 | 42293 | * @throws Exception |
| 42264 | 42294 | */ |
| 42265 | - public static function validateObj5Type(TypeClass $value): bool { | |
| 42295 | + public static function validateSealed(Sealed $value): bool { | |
| 42266 | 42296 | $value->validate(); |
| 42267 | 42297 | return true; |
| 42268 | 42298 | } |
| 42269 | 42299 | |
| 42270 | 42300 | /** |
| 42271 | 42301 | * @throws Exception |
| 42272 | - * @return TypeClass | |
| 42302 | + * @return Sealed | |
| 42273 | 42303 | */ |
| 42274 | - public function getObj5Type(): TypeClass { | |
| 42275 | - if (Obj5::validateObj5Type($this->obj5Type)) { | |
| 42276 | - return $this->obj5Type; | |
| 42304 | + public function getSealed(): Sealed { | |
| 42305 | + if (Obj5::validateSealed($this->sealed)) { | |
| 42306 | + return $this->sealed; | |
| 42277 | 42307 | } |
| 42278 | - throw new Exception('never get to getObj5Type Obj5::obj5Type'); | |
| 42308 | + throw new Exception('never get to getSealed Obj5::sealed'); | |
| 42279 | 42309 | } |
| 42280 | 42310 | |
| 42281 | 42311 | /** |
| 42282 | - * @return TypeClass | |
| 42312 | + * @return Sealed | |
| 42283 | 42313 | */ |
| 42284 | - public static function sampleObj5Type(): TypeClass { | |
| 42285 | - return TypeClass::sample(); /*36:obj5Type*/ | |
| 42314 | + public static function sampleSealed(): Sealed { | |
| 42315 | + return Sealed::sample(); /*40:sealed*/ | |
| 42286 | 42316 | } |
| 42287 | 42317 | |
| 42288 | 42318 | /** |
| 42289 | 42319 | * @param stdClass $value |
| 42290 | 42320 | * @throws Exception |
| 42291 | - * @return PrimitiveKind | |
| 42321 | + * @return Sel | |
| 42292 | 42322 | */ |
| 42293 | - public static function fromPrimitiveKind(stdClass $value): PrimitiveKind { | |
| 42294 | - return PrimitiveKind::from($value); /*class*/ | |
| 42323 | + public static function fromSel(stdClass $value): Sel { | |
| 42324 | + return Sel::from($value); /*class*/ | |
| 42295 | 42325 | } |
| 42296 | 42326 | |
| 42297 | 42327 | /** |
| 42298 | 42328 | * @throws Exception |
| 42299 | 42329 | * @return stdClass |
| 42300 | 42330 | */ |
| 42301 | - public function toPrimitiveKind(): stdClass { | |
| 42302 | - if (Obj5::validatePrimitiveKind($this->primitiveKind)) { | |
| 42303 | - return $this->primitiveKind->to(); /*class*/ | |
| 42331 | + public function toSel(): stdClass { | |
| 42332 | + if (Obj5::validateSel($this->sel)) { | |
| 42333 | + return $this->sel->to(); /*class*/ | |
| 42304 | 42334 | } |
| 42305 | - throw new Exception('never get to this Obj5::primitiveKind'); | |
| 42335 | + throw new Exception('never get to this Obj5::sel'); | |
| 42306 | 42336 | } |
| 42307 | 42337 | |
| 42308 | 42338 | /** |
| 42309 | - * @param PrimitiveKind | |
| 42339 | + * @param Sel | |
| 42310 | 42340 | * @return bool |
| 42311 | 42341 | * @throws Exception |
| 42312 | 42342 | */ |
| 42313 | - public static function validatePrimitiveKind(PrimitiveKind $value): bool { | |
| 42343 | + public static function validateSel(Sel $value): bool { | |
| 42314 | 42344 | $value->validate(); |
| 42315 | 42345 | return true; |
| 42316 | 42346 | } |
| 42317 | 42347 | |
| 42318 | 42348 | /** |
| 42319 | 42349 | * @throws Exception |
| 42320 | - * @return PrimitiveKind | |
| 42350 | + * @return Sel | |
| 42321 | 42351 | */ |
| 42322 | - public function getPrimitiveKind(): PrimitiveKind { | |
| 42323 | - if (Obj5::validatePrimitiveKind($this->primitiveKind)) { | |
| 42324 | - return $this->primitiveKind; | |
| 42352 | + public function getSel(): Sel { | |
| 42353 | + if (Obj5::validateSel($this->sel)) { | |
| 42354 | + return $this->sel; | |
| 42325 | 42355 | } |
| 42326 | - throw new Exception('never get to getPrimitiveKind Obj5::primitiveKind'); | |
| 42356 | + throw new Exception('never get to getSel Obj5::sel'); | |
| 42327 | 42357 | } |
| 42328 | 42358 | |
| 42329 | 42359 | /** |
| 42330 | - * @return PrimitiveKind | |
| 42360 | + * @return Sel | |
| 42331 | 42361 | */ |
| 42332 | - public static function samplePrimitiveKind(): PrimitiveKind { | |
| 42333 | - return PrimitiveKind::sample(); /*37:primitiveKind*/ | |
| 42362 | + public static function sampleSel(): Sel { | |
| 42363 | + return Sel::sample(); /*41:sel*/ | |
| 42334 | 42364 | } |
| 42335 | 42365 | |
| 42336 | 42366 | /** |
| @@ -42378,7 +42408,7 @@ class Obj5 { | ||
| 42378 | 42408 | * @return Select |
| 42379 | 42409 | */ |
| 42380 | 42410 | public static function sampleSelect(): Select { |
| 42381 | - return Select::sample(); /*38:select*/ | |
| 42411 | + return Select::sample(); /*42:select*/ | |
| 42382 | 42412 | } |
| 42383 | 42413 | |
| 42384 | 42414 | /** |
| @@ -42426,7 +42456,7 @@ class Obj5 { | ||
| 42426 | 42456 | * @return SelfClass |
| 42427 | 42457 | */ |
| 42428 | 42458 | public static function sampleSelf(): SelfClass { |
| 42429 | - return SelfClass::sample(); /*39:self*/ | |
| 42459 | + return SelfClass::sample(); /*43:self*/ | |
| 42430 | 42460 | } |
| 42431 | 42461 | |
| 42432 | 42462 | /** |
| @@ -42474,7 +42504,7 @@ class Obj5 { | ||
| 42474 | 42504 | * @return Sendable |
| 42475 | 42505 | */ |
| 42476 | 42506 | public static function sampleSendable(): Sendable { |
| 42477 | - return Sendable::sample(); /*40:sendable*/ | |
| 42507 | + return Sendable::sample(); /*44:sendable*/ | |
| 42478 | 42508 | } |
| 42479 | 42509 | |
| 42480 | 42510 | /** |
| @@ -42522,7 +42552,7 @@ class Obj5 { | ||
| 42522 | 42552 | * @return SerialDescriptor |
| 42523 | 42553 | */ |
| 42524 | 42554 | public static function sampleSerialDescriptor(): SerialDescriptor { |
| 42525 | - return SerialDescriptor::sample(); /*41:serialDescriptor*/ | |
| 42555 | + return SerialDescriptor::sample(); /*45:serialDescriptor*/ | |
| 42526 | 42556 | } |
| 42527 | 42557 | |
| 42528 | 42558 | /** |
| @@ -42570,7 +42600,7 @@ class Obj5 { | ||
| 42570 | 42600 | * @return SerialName |
| 42571 | 42601 | */ |
| 42572 | 42602 | public static function sampleSerialName(): SerialName { |
| 42573 | - return SerialName::sample(); /*42:serialName*/ | |
| 42603 | + return SerialName::sample(); /*46:serialName*/ | |
| 42574 | 42604 | } |
| 42575 | 42605 | |
| 42576 | 42606 | /** |
| @@ -42618,7 +42648,7 @@ class Obj5 { | ||
| 42618 | 42648 | * @return SerializableClass |
| 42619 | 42649 | */ |
| 42620 | 42650 | public static function sampleSerializable(): SerializableClass { |
| 42621 | - return SerializableClass::sample(); /*43:serializable*/ | |
| 42651 | + return SerializableClass::sample(); /*47:serializable*/ | |
| 42622 | 42652 | } |
| 42623 | 42653 | |
| 42624 | 42654 | /** |
| @@ -42666,7 +42696,7 @@ class Obj5 { | ||
| 42666 | 42696 | * @return Serialize |
| 42667 | 42697 | */ |
| 42668 | 42698 | public static function sampleSerialize(): Serialize { |
| 42669 | - return Serialize::sample(); /*44:serialize*/ | |
| 42699 | + return Serialize::sample(); /*48:serialize*/ | |
| 42670 | 42700 | } |
| 42671 | 42701 | |
| 42672 | 42702 | /** |
| @@ -42714,7 +42744,7 @@ class Obj5 { | ||
| 42714 | 42744 | * @return SerializerProvider |
| 42715 | 42745 | */ |
| 42716 | 42746 | public static function sampleSerializerProvider(): SerializerProvider { |
| 42717 | - return SerializerProvider::sample(); /*45:serializerProvider*/ | |
| 42747 | + return SerializerProvider::sample(); /*49:serializerProvider*/ | |
| 42718 | 42748 | } |
| 42719 | 42749 | |
| 42720 | 42750 | /** |
| @@ -42762,7 +42792,7 @@ class Obj5 { | ||
| 42762 | 42792 | * @return Set |
| 42763 | 42793 | */ |
| 42764 | 42794 | public static function sampleSet(): Set { |
| 42765 | - return Set::sample(); /*46:set*/ | |
| 42795 | + return Set::sample(); /*50:set*/ | |
| 42766 | 42796 | } |
| 42767 | 42797 | |
| 42768 | 42798 | /** |
| @@ -42810,7 +42840,7 @@ class Obj5 { | ||
| 42810 | 42840 | * @return Short |
| 42811 | 42841 | */ |
| 42812 | 42842 | public static function sampleShort(): Short { |
| 42813 | - return Short::sample(); /*47:short*/ | |
| 42843 | + return Short::sample(); /*51:short*/ | |
| 42814 | 42844 | } |
| 42815 | 42845 | |
| 42816 | 42846 | /** |
| @@ -42858,7 +42888,7 @@ class Obj5 { | ||
| 42858 | 42888 | * @return Signed |
| 42859 | 42889 | */ |
| 42860 | 42890 | public static function sampleSigned(): Signed { |
| 42861 | - return Signed::sample(); /*48:signed*/ | |
| 42891 | + return Signed::sample(); /*52:signed*/ | |
| 42862 | 42892 | } |
| 42863 | 42893 | |
| 42864 | 42894 | /** |
| @@ -42906,7 +42936,7 @@ class Obj5 { | ||
| 42906 | 42936 | * @return SimpleModule |
| 42907 | 42937 | */ |
| 42908 | 42938 | public static function sampleSimpleModule(): SimpleModule { |
| 42909 | - return SimpleModule::sample(); /*49:simpleModule*/ | |
| 42939 | + return SimpleModule::sample(); /*53:simpleModule*/ | |
| 42910 | 42940 | } |
| 42911 | 42941 | |
| 42912 | 42942 | /** |
| @@ -42954,7 +42984,7 @@ class Obj5 { | ||
| 42954 | 42984 | * @return Sizeof |
| 42955 | 42985 | */ |
| 42956 | 42986 | public static function sampleSizeof(): Sizeof { |
| 42957 | - return Sizeof::sample(); /*50:sizeof*/ | |
| 42987 | + return Sizeof::sample(); /*54:sizeof*/ | |
| 42958 | 42988 | } |
| 42959 | 42989 | |
| 42960 | 42990 | /** |
| @@ -43002,7 +43032,7 @@ class Obj5 { | ||
| 43002 | 43032 | * @return Stackalloc |
| 43003 | 43033 | */ |
| 43004 | 43034 | public static function sampleStackalloc(): Stackalloc { |
| 43005 | - return Stackalloc::sample(); /*51:stackalloc*/ | |
| 43035 | + return Stackalloc::sample(); /*55:stackalloc*/ | |
| 43006 | 43036 | } |
| 43007 | 43037 | |
| 43008 | 43038 | /** |
| @@ -43050,7 +43080,7 @@ class Obj5 { | ||
| 43050 | 43080 | * @return Standards |
| 43051 | 43081 | */ |
| 43052 | 43082 | public static function sampleStandards(): Standards { |
| 43053 | - return Standards::sample(); /*52:standards*/ | |
| 43083 | + return Standards::sample(); /*56:standards*/ | |
| 43054 | 43084 | } |
| 43055 | 43085 | |
| 43056 | 43086 | /** |
| @@ -43098,7 +43128,7 @@ class Obj5 { | ||
| 43098 | 43128 | * @return StaticClass |
| 43099 | 43129 | */ |
| 43100 | 43130 | public static function sampleStatic(): StaticClass { |
| 43101 | - return StaticClass::sample(); /*53:static*/ | |
| 43131 | + return StaticClass::sample(); /*57:static*/ | |
| 43102 | 43132 | } |
| 43103 | 43133 | |
| 43104 | 43134 | /** |
| @@ -43146,7 +43176,7 @@ class Obj5 { | ||
| 43146 | 43176 | * @return StaticAssert |
| 43147 | 43177 | */ |
| 43148 | 43178 | public static function sampleStaticAssert(): StaticAssert { |
| 43149 | - return StaticAssert::sample(); /*54:staticAssert*/ | |
| 43179 | + return StaticAssert::sample(); /*58:staticAssert*/ | |
| 43150 | 43180 | } |
| 43151 | 43181 | |
| 43152 | 43182 | /** |
| @@ -43194,7 +43224,7 @@ class Obj5 { | ||
| 43194 | 43224 | * @return StaticCast |
| 43195 | 43225 | */ |
| 43196 | 43226 | public static function sampleStaticCast(): StaticCast { |
| 43197 | - return StaticCast::sample(); /*55:staticCast*/ | |
| 43227 | + return StaticCast::sample(); /*59:staticCast*/ | |
| 43198 | 43228 | } |
| 43199 | 43229 | |
| 43200 | 43230 | /** |
| @@ -43242,7 +43272,7 @@ class Obj5 { | ||
| 43242 | 43272 | * @return StdDeserializer |
| 43243 | 43273 | */ |
| 43244 | 43274 | public static function sampleStdDeserializer(): StdDeserializer { |
| 43245 | - return StdDeserializer::sample(); /*56:stdDeserializer*/ | |
| 43275 | + return StdDeserializer::sample(); /*60:stdDeserializer*/ | |
| 43246 | 43276 | } |
| 43247 | 43277 | |
| 43248 | 43278 | /** |
| @@ -43290,7 +43320,7 @@ class Obj5 { | ||
| 43290 | 43320 | * @return StdSerializer |
| 43291 | 43321 | */ |
| 43292 | 43322 | public static function sampleStdSerializer(): StdSerializer { |
| 43293 | - return StdSerializer::sample(); /*57:stdSerializer*/ | |
| 43323 | + return StdSerializer::sample(); /*61:stdSerializer*/ | |
| 43294 | 43324 | } |
| 43295 | 43325 | |
| 43296 | 43326 | /** |
| @@ -43338,7 +43368,7 @@ class Obj5 { | ||
| 43338 | 43368 | * @return Strictfp |
| 43339 | 43369 | */ |
| 43340 | 43370 | public static function sampleStrictfp(): Strictfp { |
| 43341 | - return Strictfp::sample(); /*58:strictfp*/ | |
| 43371 | + return Strictfp::sample(); /*62:strictfp*/ | |
| 43342 | 43372 | } |
| 43343 | 43373 | |
| 43344 | 43374 | /** |
| @@ -43386,7 +43416,7 @@ class Obj5 { | ||
| 43386 | 43416 | * @return StringClass |
| 43387 | 43417 | */ |
| 43388 | 43418 | public static function sampleString(): StringClass { |
| 43389 | - return StringClass::sample(); /*59:string*/ | |
| 43419 | + return StringClass::sample(); /*63:string*/ | |
| 43390 | 43420 | } |
| 43391 | 43421 | |
| 43392 | 43422 | /** |
| @@ -43434,7 +43464,7 @@ class Obj5 { | ||
| 43434 | 43464 | * @return Struct |
| 43435 | 43465 | */ |
| 43436 | 43466 | public static function sampleStruct(): Struct { |
| 43437 | - return Struct::sample(); /*60:struct*/ | |
| 43467 | + return Struct::sample(); /*64:struct*/ | |
| 43438 | 43468 | } |
| 43439 | 43469 | |
| 43440 | 43470 | /** |
| @@ -43482,7 +43512,7 @@ class Obj5 { | ||
| 43482 | 43512 | * @return Subscript |
| 43483 | 43513 | */ |
| 43484 | 43514 | public static function sampleSubscript(): Subscript { |
| 43485 | - return Subscript::sample(); /*61:subscript*/ | |
| 43515 | + return Subscript::sample(); /*65:subscript*/ | |
| 43486 | 43516 | } |
| 43487 | 43517 | |
| 43488 | 43518 | /** |
| @@ -43530,7 +43560,7 @@ class Obj5 { | ||
| 43530 | 43560 | * @return Super |
| 43531 | 43561 | */ |
| 43532 | 43562 | public static function sampleSuper(): Super { |
| 43533 | - return Super::sample(); /*62:super*/ | |
| 43563 | + return Super::sample(); /*66:super*/ | |
| 43534 | 43564 | } |
| 43535 | 43565 | |
| 43536 | 43566 | /** |
| @@ -43578,7 +43608,7 @@ class Obj5 { | ||
| 43578 | 43608 | * @return SwitchClass |
| 43579 | 43609 | */ |
| 43580 | 43610 | public static function sampleSwitch(): SwitchClass { |
| 43581 | - return SwitchClass::sample(); /*63:switch*/ | |
| 43611 | + return SwitchClass::sample(); /*67:switch*/ | |
| 43582 | 43612 | } |
| 43583 | 43613 | |
| 43584 | 43614 | /** |
| @@ -43626,7 +43656,7 @@ class Obj5 { | ||
| 43626 | 43656 | * @return Symbol |
| 43627 | 43657 | */ |
| 43628 | 43658 | public static function sampleSymbol(): Symbol { |
| 43629 | - return Symbol::sample(); /*64:symbol*/ | |
| 43659 | + return Symbol::sample(); /*68:symbol*/ | |
| 43630 | 43660 | } |
| 43631 | 43661 | |
| 43632 | 43662 | /** |
| @@ -43674,7 +43704,7 @@ class Obj5 { | ||
| 43674 | 43704 | * @return Synchronized |
| 43675 | 43705 | */ |
| 43676 | 43706 | public static function sampleSynchronized(): Synchronized { |
| 43677 | - return Synchronized::sample(); /*65:synchronized*/ | |
| 43707 | + return Synchronized::sample(); /*69:synchronized*/ | |
| 43678 | 43708 | } |
| 43679 | 43709 | |
| 43680 | 43710 | /** |
| @@ -43722,7 +43752,7 @@ class Obj5 { | ||
| 43722 | 43752 | * @return System |
| 43723 | 43753 | */ |
| 43724 | 43754 | public static function sampleSystem(): System { |
| 43725 | - return System::sample(); /*66:system*/ | |
| 43755 | + return System::sample(); /*70:system*/ | |
| 43726 | 43756 | } |
| 43727 | 43757 | |
| 43728 | 43758 | /** |
| @@ -43770,7 +43800,7 @@ class Obj5 { | ||
| 43770 | 43800 | * @return Template |
| 43771 | 43801 | */ |
| 43772 | 43802 | public static function sampleTemplate(): Template { |
| 43773 | - return Template::sample(); /*67:template*/ | |
| 43803 | + return Template::sample(); /*71:template*/ | |
| 43774 | 43804 | } |
| 43775 | 43805 | |
| 43776 | 43806 | /** |
| @@ -43818,7 +43848,7 @@ class Obj5 { | ||
| 43818 | 43848 | * @return Then |
| 43819 | 43849 | */ |
| 43820 | 43850 | public static function sampleThen(): Then { |
| 43821 | - return Then::sample(); /*68:then*/ | |
| 43851 | + return Then::sample(); /*72:then*/ | |
| 43822 | 43852 | } |
| 43823 | 43853 | |
| 43824 | 43854 | /** |
| @@ -43866,7 +43896,7 @@ class Obj5 { | ||
| 43866 | 43896 | * @return ThreadLocal |
| 43867 | 43897 | */ |
| 43868 | 43898 | public static function sampleThreadLocal(): ThreadLocal { |
| 43869 | - return ThreadLocal::sample(); /*69:threadLocal*/ | |
| 43899 | + return ThreadLocal::sample(); /*73:threadLocal*/ | |
| 43870 | 43900 | } |
| 43871 | 43901 | |
| 43872 | 43902 | /** |
| @@ -43914,7 +43944,7 @@ class Obj5 { | ||
| 43914 | 43944 | * @return ThrowClass |
| 43915 | 43945 | */ |
| 43916 | 43946 | public static function sampleThrow(): ThrowClass { |
| 43917 | - return ThrowClass::sample(); /*70:throw*/ | |
| 43947 | + return ThrowClass::sample(); /*74:throw*/ | |
| 43918 | 43948 | } |
| 43919 | 43949 | |
| 43920 | 43950 | /** |
| @@ -43962,7 +43992,7 @@ class Obj5 { | ||
| 43962 | 43992 | * @return Throws |
| 43963 | 43993 | */ |
| 43964 | 43994 | public static function sampleThrows(): Throws { |
| 43965 | - return Throws::sample(); /*71:throws*/ | |
| 43995 | + return Throws::sample(); /*75:throws*/ | |
| 43966 | 43996 | } |
| 43967 | 43997 | |
| 43968 | 43998 | /** |
| @@ -44010,7 +44040,7 @@ class Obj5 { | ||
| 44010 | 44040 | * @return TimeOnly |
| 44011 | 44041 | */ |
| 44012 | 44042 | public static function sampleTimeOnly(): TimeOnly { |
| 44013 | - return TimeOnly::sample(); /*72:timeOnly*/ | |
| 44043 | + return TimeOnly::sample(); /*76:timeOnly*/ | |
| 44014 | 44044 | } |
| 44015 | 44045 | |
| 44016 | 44046 | /** |
| @@ -44058,7 +44088,7 @@ class Obj5 { | ||
| 44058 | 44088 | * @return TimeOnlyConverter |
| 44059 | 44089 | */ |
| 44060 | 44090 | public static function sampleTimeOnlyConverter(): TimeOnlyConverter { |
| 44061 | - return TimeOnlyConverter::sample(); /*73:timeOnlyConverter*/ | |
| 44091 | + return TimeOnlyConverter::sample(); /*77:timeOnlyConverter*/ | |
| 44062 | 44092 | } |
| 44063 | 44093 | |
| 44064 | 44094 | /** |
| @@ -44106,7 +44136,7 @@ class Obj5 { | ||
| 44106 | 44136 | * @return TimeZone |
| 44107 | 44137 | */ |
| 44108 | 44138 | public static function sampleTimeZone(): TimeZone { |
| 44109 | - return TimeZone::sample(); /*74:timeZone*/ | |
| 44139 | + return TimeZone::sample(); /*78:timeZone*/ | |
| 44110 | 44140 | } |
| 44111 | 44141 | |
| 44112 | 44142 | /** |
| @@ -44154,7 +44184,7 @@ class Obj5 { | ||
| 44154 | 44184 | * @return ToDict |
| 44155 | 44185 | */ |
| 44156 | 44186 | public static function sampleToDict(): ToDict { |
| 44157 | - return ToDict::sample(); /*75:toDict*/ | |
| 44187 | + return ToDict::sample(); /*79:toDict*/ | |
| 44158 | 44188 | } |
| 44159 | 44189 | |
| 44160 | 44190 | /** |
| @@ -44202,7 +44232,7 @@ class Obj5 { | ||
| 44202 | 44232 | * @return ToJSON |
| 44203 | 44233 | */ |
| 44204 | 44234 | public static function sampleToJSON(): ToJSON { |
| 44205 | - return ToJSON::sample(); /*76:toJSON*/ | |
| 44235 | + return ToJSON::sample(); /*80:toJSON*/ | |
| 44206 | 44236 | } |
| 44207 | 44237 | |
| 44208 | 44238 | /** |
| @@ -44250,7 +44280,7 @@ class Obj5 { | ||
| 44250 | 44280 | * @return ToString |
| 44251 | 44281 | */ |
| 44252 | 44282 | public static function sampleToString(): ToString { |
| 44253 | - return ToString::sample(); /*77:toString*/ | |
| 44283 | + return ToString::sample(); /*81:toString*/ | |
| 44254 | 44284 | } |
| 44255 | 44285 | |
| 44256 | 44286 | /** |
| @@ -44298,7 +44328,7 @@ class Obj5 { | ||
| 44298 | 44328 | * @return TopLevelClass |
| 44299 | 44329 | */ |
| 44300 | 44330 | public static function sampleTopLevel(): TopLevelClass { |
| 44301 | - return TopLevelClass::sample(); /*78:topLevel*/ | |
| 44331 | + return TopLevelClass::sample(); /*82:topLevel*/ | |
| 44302 | 44332 | } |
| 44303 | 44333 | |
| 44304 | 44334 | /** |
| @@ -44346,7 +44376,7 @@ class Obj5 { | ||
| 44346 | 44376 | * @return Transient |
| 44347 | 44377 | */ |
| 44348 | 44378 | public static function sampleTransient(): Transient { |
| 44349 | - return Transient::sample(); /*79:transient*/ | |
| 44379 | + return Transient::sample(); /*83:transient*/ | |
| 44350 | 44380 | } |
| 44351 | 44381 | |
| 44352 | 44382 | /** |
| @@ -44394,7 +44424,7 @@ class Obj5 { | ||
| 44394 | 44424 | * @return TrueClass |
| 44395 | 44425 | */ |
| 44396 | 44426 | public static function sampleTrue(): TrueClass { |
| 44397 | - return TrueClass::sample(); /*80:true*/ | |
| 44427 | + return TrueClass::sample(); /*84:true*/ | |
| 44398 | 44428 | } |
| 44399 | 44429 | |
| 44400 | 44430 | /** |
| @@ -44442,7 +44472,7 @@ class Obj5 { | ||
| 44442 | 44472 | * @return TryClass |
| 44443 | 44473 | */ |
| 44444 | 44474 | public static function sampleTry(): TryClass { |
| 44445 | - return TryClass::sample(); /*81:try*/ | |
| 44475 | + return TryClass::sample(); /*85:try*/ | |
| 44446 | 44476 | } |
| 44447 | 44477 | |
| 44448 | 44478 | /** |
| @@ -44490,7 +44520,7 @@ class Obj5 { | ||
| 44490 | 44520 | * @return Type |
| 44491 | 44521 | */ |
| 44492 | 44522 | public static function sampleType(): Type { |
| 44493 | - return Type::sample(); /*82:type*/ | |
| 44523 | + return Type::sample(); /*86:type*/ | |
| 44494 | 44524 | } |
| 44495 | 44525 | |
| 44496 | 44526 | /** |
| @@ -44538,7 +44568,7 @@ class Obj5 { | ||
| 44538 | 44568 | * @return Typealias |
| 44539 | 44569 | */ |
| 44540 | 44570 | public static function sampleTypealias(): Typealias { |
| 44541 | - return Typealias::sample(); /*83:typealias*/ | |
| 44571 | + return Typealias::sample(); /*87:typealias*/ | |
| 44542 | 44572 | } |
| 44543 | 44573 | |
| 44544 | 44574 | /** |
| @@ -44586,7 +44616,7 @@ class Obj5 { | ||
| 44586 | 44616 | * @return Typedef |
| 44587 | 44617 | */ |
| 44588 | 44618 | public static function sampleTypedef(): Typedef { |
| 44589 | - return Typedef::sample(); /*84:typedef*/ | |
| 44619 | + return Typedef::sample(); /*88:typedef*/ | |
| 44590 | 44620 | } |
| 44591 | 44621 | |
| 44592 | 44622 | /** |
| @@ -44634,7 +44664,7 @@ class Obj5 { | ||
| 44634 | 44664 | * @return Typeid |
| 44635 | 44665 | */ |
| 44636 | 44666 | public static function sampleTypeid(): Typeid { |
| 44637 | - return Typeid::sample(); /*85:typeid*/ | |
| 44667 | + return Typeid::sample(); /*89:typeid*/ | |
| 44638 | 44668 | } |
| 44639 | 44669 | |
| 44640 | 44670 | /** |
| @@ -44682,7 +44712,7 @@ class Obj5 { | ||
| 44682 | 44712 | * @return Typename |
| 44683 | 44713 | */ |
| 44684 | 44714 | public static function sampleTypename(): Typename { |
| 44685 | - return Typename::sample(); /*86:typename*/ | |
| 44715 | + return Typename::sample(); /*90:typename*/ | |
| 44686 | 44716 | } |
| 44687 | 44717 | |
| 44688 | 44718 | /** |
| @@ -44730,7 +44760,7 @@ class Obj5 { | ||
| 44730 | 44760 | * @return Typeof |
| 44731 | 44761 | */ |
| 44732 | 44762 | public static function sampleTypeof(): Typeof { |
| 44733 | - return Typeof::sample(); /*87:typeof*/ | |
| 44763 | + return Typeof::sample(); /*91:typeof*/ | |
| 44734 | 44764 | } |
| 44735 | 44765 | |
| 44736 | 44766 | /** |
| @@ -44778,7 +44808,7 @@ class Obj5 { | ||
| 44778 | 44808 | * @return Uint |
| 44779 | 44809 | */ |
| 44780 | 44810 | public static function sampleUint(): Uint { |
| 44781 | - return Uint::sample(); /*88:uint*/ | |
| 44811 | + return Uint::sample(); /*92:uint*/ | |
| 44782 | 44812 | } |
| 44783 | 44813 | |
| 44784 | 44814 | /** |
| @@ -44826,7 +44856,7 @@ class Obj5 { | ||
| 44826 | 44856 | * @return Ulong |
| 44827 | 44857 | */ |
| 44828 | 44858 | public static function sampleUlong(): Ulong { |
| 44829 | - return Ulong::sample(); /*89:ulong*/ | |
| 44859 | + return Ulong::sample(); /*93:ulong*/ | |
| 44830 | 44860 | } |
| 44831 | 44861 | |
| 44832 | 44862 | /** |
| @@ -44874,7 +44904,7 @@ class Obj5 { | ||
| 44874 | 44904 | * @return Unchecked |
| 44875 | 44905 | */ |
| 44876 | 44906 | public static function sampleUnchecked(): Unchecked { |
| 44877 | - return Unchecked::sample(); /*90:unchecked*/ | |
| 44907 | + return Unchecked::sample(); /*94:unchecked*/ | |
| 44878 | 44908 | } |
| 44879 | 44909 | |
| 44880 | 44910 | /** |
| @@ -44922,247 +44952,7 @@ class Obj5 { | ||
| 44922 | 44952 | * @return Undefined |
| 44923 | 44953 | */ |
| 44924 | 44954 | public static function sampleUndefined(): Undefined { |
| 44925 | - return Undefined::sample(); /*91:undefined*/ | |
| 44926 | - } | |
| 44927 | - | |
| 44928 | - /** | |
| 44929 | - * @param stdClass $value | |
| 44930 | - * @throws Exception | |
| 44931 | - * @return Union | |
| 44932 | - */ | |
| 44933 | - public static function fromUnion(stdClass $value): Union { | |
| 44934 | - return Union::from($value); /*class*/ | |
| 44935 | - } | |
| 44936 | - | |
| 44937 | - /** | |
| 44938 | - * @throws Exception | |
| 44939 | - * @return stdClass | |
| 44940 | - */ | |
| 44941 | - public function toUnion(): stdClass { | |
| 44942 | - if (Obj5::validateUnion($this->union)) { | |
| 44943 | - return $this->union->to(); /*class*/ | |
| 44944 | - } | |
| 44945 | - throw new Exception('never get to this Obj5::union'); | |
| 44946 | - } | |
| 44947 | - | |
| 44948 | - /** | |
| 44949 | - * @param Union | |
| 44950 | - * @return bool | |
| 44951 | - * @throws Exception | |
| 44952 | - */ | |
| 44953 | - public static function validateUnion(Union $value): bool { | |
| 44954 | - $value->validate(); | |
| 44955 | - return true; | |
| 44956 | - } | |
| 44957 | - | |
| 44958 | - /** | |
| 44959 | - * @throws Exception | |
| 44960 | - * @return Union | |
| 44961 | - */ | |
| 44962 | - public function getUnion(): Union { | |
| 44963 | - if (Obj5::validateUnion($this->union)) { | |
| 44964 | - return $this->union; | |
| 44965 | - } | |
| 44966 | - throw new Exception('never get to getUnion Obj5::union'); | |
| 44967 | - } | |
| 44968 | - | |
| 44969 | - /** | |
| 44970 | - * @return Union | |
| 44971 | - */ | |
| 44972 | - public static function sampleUnion(): Union { | |
| 44973 | - return Union::sample(); /*92:union*/ | |
| 44974 | - } | |
| 44975 | - | |
| 44976 | - /** | |
| 44977 | - * @param stdClass $value | |
| 44978 | - * @throws Exception | |
| 44979 | - * @return UnmarshalJSON | |
| 44980 | - */ | |
| 44981 | - public static function fromUnmarshalJSON(stdClass $value): UnmarshalJSON { | |
| 44982 | - return UnmarshalJSON::from($value); /*class*/ | |
| 44983 | - } | |
| 44984 | - | |
| 44985 | - /** | |
| 44986 | - * @throws Exception | |
| 44987 | - * @return stdClass | |
| 44988 | - */ | |
| 44989 | - public function toUnmarshalJSON(): stdClass { | |
| 44990 | - if (Obj5::validateUnmarshalJSON($this->unmarshalJSON)) { | |
| 44991 | - return $this->unmarshalJSON->to(); /*class*/ | |
| 44992 | - } | |
| 44993 | - throw new Exception('never get to this Obj5::unmarshalJSON'); | |
| 44994 | - } | |
| 44995 | - | |
| 44996 | - /** | |
| 44997 | - * @param UnmarshalJSON | |
| 44998 | - * @return bool | |
| 44999 | - * @throws Exception | |
| 45000 | - */ | |
| 45001 | - public static function validateUnmarshalJSON(UnmarshalJSON $value): bool { | |
| 45002 | - $value->validate(); | |
| 45003 | - return true; | |
| 45004 | - } | |
| 45005 | - | |
| 45006 | - /** | |
| 45007 | - * @throws Exception | |
| 45008 | - * @return UnmarshalJSON | |
| 45009 | - */ | |
| 45010 | - public function getUnmarshalJSON(): UnmarshalJSON { | |
| 45011 | - if (Obj5::validateUnmarshalJSON($this->unmarshalJSON)) { | |
| 45012 | - return $this->unmarshalJSON; | |
| 45013 | - } | |
| 45014 | - throw new Exception('never get to getUnmarshalJSON Obj5::unmarshalJSON'); | |
| 45015 | - } | |
| 45016 | - | |
| 45017 | - /** | |
| 45018 | - * @return UnmarshalJSON | |
| 45019 | - */ | |
| 45020 | - public static function sampleUnmarshalJSON(): UnmarshalJSON { | |
| 45021 | - return UnmarshalJSON::sample(); /*93:unmarshalJSON*/ | |
| 45022 | - } | |
| 45023 | - | |
| 45024 | - /** | |
| 45025 | - * @param stdClass $value | |
| 45026 | - * @throws Exception | |
| 45027 | - * @return Unowned | |
| 45028 | - */ | |
| 45029 | - public static function fromUnowned(stdClass $value): Unowned { | |
| 45030 | - return Unowned::from($value); /*class*/ | |
| 45031 | - } | |
| 45032 | - | |
| 45033 | - /** | |
| 45034 | - * @throws Exception | |
| 45035 | - * @return stdClass | |
| 45036 | - */ | |
| 45037 | - public function toUnowned(): stdClass { | |
| 45038 | - if (Obj5::validateUnowned($this->unowned)) { | |
| 45039 | - return $this->unowned->to(); /*class*/ | |
| 45040 | - } | |
| 45041 | - throw new Exception('never get to this Obj5::unowned'); | |
| 45042 | - } | |
| 45043 | - | |
| 45044 | - /** | |
| 45045 | - * @param Unowned | |
| 45046 | - * @return bool | |
| 45047 | - * @throws Exception | |
| 45048 | - */ | |
| 45049 | - public static function validateUnowned(Unowned $value): bool { | |
| 45050 | - $value->validate(); | |
| 45051 | - return true; | |
| 45052 | - } | |
| 45053 | - | |
| 45054 | - /** | |
| 45055 | - * @throws Exception | |
| 45056 | - * @return Unowned | |
| 45057 | - */ | |
| 45058 | - public function getUnowned(): Unowned { | |
| 45059 | - if (Obj5::validateUnowned($this->unowned)) { | |
| 45060 | - return $this->unowned; | |
| 45061 | - } | |
| 45062 | - throw new Exception('never get to getUnowned Obj5::unowned'); | |
| 45063 | - } | |
| 45064 | - | |
| 45065 | - /** | |
| 45066 | - * @return Unowned | |
| 45067 | - */ | |
| 45068 | - public static function sampleUnowned(): Unowned { | |
| 45069 | - return Unowned::sample(); /*94:unowned*/ | |
| 45070 | - } | |
| 45071 | - | |
| 45072 | - /** | |
| 45073 | - * @param stdClass $value | |
| 45074 | - * @throws Exception | |
| 45075 | - * @return Unsafe | |
| 45076 | - */ | |
| 45077 | - public static function fromUnsafe(stdClass $value): Unsafe { | |
| 45078 | - return Unsafe::from($value); /*class*/ | |
| 45079 | - } | |
| 45080 | - | |
| 45081 | - /** | |
| 45082 | - * @throws Exception | |
| 45083 | - * @return stdClass | |
| 45084 | - */ | |
| 45085 | - public function toUnsafe(): stdClass { | |
| 45086 | - if (Obj5::validateUnsafe($this->unsafe)) { | |
| 45087 | - return $this->unsafe->to(); /*class*/ | |
| 45088 | - } | |
| 45089 | - throw new Exception('never get to this Obj5::unsafe'); | |
| 45090 | - } | |
| 45091 | - | |
| 45092 | - /** | |
| 45093 | - * @param Unsafe | |
| 45094 | - * @return bool | |
| 45095 | - * @throws Exception | |
| 45096 | - */ | |
| 45097 | - public static function validateUnsafe(Unsafe $value): bool { | |
| 45098 | - $value->validate(); | |
| 45099 | - return true; | |
| 45100 | - } | |
| 45101 | - | |
| 45102 | - /** | |
| 45103 | - * @throws Exception | |
| 45104 | - * @return Unsafe | |
| 45105 | - */ | |
| 45106 | - public function getUnsafe(): Unsafe { | |
| 45107 | - if (Obj5::validateUnsafe($this->unsafe)) { | |
| 45108 | - return $this->unsafe; | |
| 45109 | - } | |
| 45110 | - throw new Exception('never get to getUnsafe Obj5::unsafe'); | |
| 45111 | - } | |
| 45112 | - | |
| 45113 | - /** | |
| 45114 | - * @return Unsafe | |
| 45115 | - */ | |
| 45116 | - public static function sampleUnsafe(): Unsafe { | |
| 45117 | - return Unsafe::sample(); /*95:unsafe*/ | |
| 45118 | - } | |
| 45119 | - | |
| 45120 | - /** | |
| 45121 | - * @param stdClass $value | |
| 45122 | - * @throws Exception | |
| 45123 | - * @return UseSerializers | |
| 45124 | - */ | |
| 45125 | - public static function fromUseSerializers(stdClass $value): UseSerializers { | |
| 45126 | - return UseSerializers::from($value); /*class*/ | |
| 45127 | - } | |
| 45128 | - | |
| 45129 | - /** | |
| 45130 | - * @throws Exception | |
| 45131 | - * @return stdClass | |
| 45132 | - */ | |
| 45133 | - public function toUseSerializers(): stdClass { | |
| 45134 | - if (Obj5::validateUseSerializers($this->useSerializers)) { | |
| 45135 | - return $this->useSerializers->to(); /*class*/ | |
| 45136 | - } | |
| 45137 | - throw new Exception('never get to this Obj5::useSerializers'); | |
| 45138 | - } | |
| 45139 | - | |
| 45140 | - /** | |
| 45141 | - * @param UseSerializers | |
| 45142 | - * @return bool | |
| 45143 | - * @throws Exception | |
| 45144 | - */ | |
| 45145 | - public static function validateUseSerializers(UseSerializers $value): bool { | |
| 45146 | - $value->validate(); | |
| 45147 | - return true; | |
| 45148 | - } | |
| 45149 | - | |
| 45150 | - /** | |
| 45151 | - * @throws Exception | |
| 45152 | - * @return UseSerializers | |
| 45153 | - */ | |
| 45154 | - public function getUseSerializers(): UseSerializers { | |
| 45155 | - if (Obj5::validateUseSerializers($this->useSerializers)) { | |
| 45156 | - return $this->useSerializers; | |
| 45157 | - } | |
| 45158 | - throw new Exception('never get to getUseSerializers Obj5::useSerializers'); | |
| 45159 | - } | |
| 45160 | - | |
| 45161 | - /** | |
| 45162 | - * @return UseSerializers | |
| 45163 | - */ | |
| 45164 | - public static function sampleUseSerializers(): UseSerializers { | |
| 45165 | - return UseSerializers::sample(); /*96:useSerializers*/ | |
| 44955 | + return Undefined::sample(); /*95:undefined*/ | |
| 45166 | 44956 | } |
| 45167 | 44957 | |
| 45168 | 44958 | /** |
| @@ -45177,6 +44967,10 @@ class Obj5 { | ||
| 45177 | 44967 | || Obj5::validateObj5True($this->obj5True) |
| 45178 | 44968 | || Obj5::validateObj5Type($this->obj5Type) |
| 45179 | 44969 | || Obj5::validatePrimitiveKind($this->primitiveKind) |
| 44970 | + || Obj5::validateS($this->s) | |
| 44971 | + || Obj5::validateSbyte($this->sbyte) | |
| 44972 | + || Obj5::validateSealed($this->sealed) | |
| 44973 | + || Obj5::validateSel($this->sel) | |
| 45180 | 44974 | || Obj5::validateSelect($this->select) |
| 45181 | 44975 | || Obj5::validateSelf($this->self) |
| 45182 | 44976 | || Obj5::validateSendable($this->sendable) |
| @@ -45230,12 +45024,7 @@ class Obj5 { | ||
| 45230 | 45024 | || Obj5::validateUint($this->uint) |
| 45231 | 45025 | || Obj5::validateUlong($this->ulong) |
| 45232 | 45026 | || Obj5::validateUnchecked($this->unchecked) |
| 45233 | - || Obj5::validateUndefined($this->undefined) | |
| 45234 | - || Obj5::validateUnion($this->union) | |
| 45235 | - || Obj5::validateUnmarshalJSON($this->unmarshalJSON) | |
| 45236 | - || Obj5::validateUnowned($this->unowned) | |
| 45237 | - || Obj5::validateUnsafe($this->unsafe) | |
| 45238 | - || Obj5::validateUseSerializers($this->useSerializers); | |
| 45027 | + || Obj5::validateUndefined($this->undefined); | |
| 45239 | 45028 | } |
| 45240 | 45029 | |
| 45241 | 45030 | /** |
| @@ -45251,6 +45040,10 @@ class Obj5 { | ||
| 45251 | 45040 | $out->{'true'} = $this->toObj5True(); |
| 45252 | 45041 | $out->{'type'} = $this->toObj5Type(); |
| 45253 | 45042 | $out->{'PrimitiveKind'} = $this->toPrimitiveKind(); |
| 45043 | + $out->{'s'} = $this->toS(); | |
| 45044 | + $out->{'sbyte'} = $this->toSbyte(); | |
| 45045 | + $out->{'sealed'} = $this->toSealed(); | |
| 45046 | + $out->{'SEL'} = $this->toSel(); | |
| 45254 | 45047 | $out->{'select'} = $this->toSelect(); |
| 45255 | 45048 | $out->{'Self'} = $this->toSelf(); |
| 45256 | 45049 | $out->{'Sendable'} = $this->toSendable(); |
| @@ -45305,11 +45098,6 @@ class Obj5 { | ||
| 45305 | 45098 | $out->{'ulong'} = $this->toUlong(); |
| 45306 | 45099 | $out->{'unchecked'} = $this->toUnchecked(); |
| 45307 | 45100 | $out->{'undefined'} = $this->toUndefined(); |
| 45308 | - $out->{'union'} = $this->toUnion(); | |
| 45309 | - $out->{'UnmarshalJSON'} = $this->toUnmarshalJSON(); | |
| 45310 | - $out->{'unowned'} = $this->toUnowned(); | |
| 45311 | - $out->{'unsafe'} = $this->toUnsafe(); | |
| 45312 | - $out->{'UseSerializers'} = $this->toUseSerializers(); | |
| 45313 | 45101 | return $out; |
| 45314 | 45102 | } |
| 45315 | 45103 | |
| @@ -45340,6 +45128,18 @@ class Obj5 { | ||
| 45340 | 45128 | if (!property_exists($obj, 'PrimitiveKind')) { |
| 45341 | 45129 | throw new Exception("Missing required property"); |
| 45342 | 45130 | } |
| 45131 | + if (!property_exists($obj, 's')) { | |
| 45132 | + throw new Exception("Missing required property"); | |
| 45133 | + } | |
| 45134 | + if (!property_exists($obj, 'sbyte')) { | |
| 45135 | + throw new Exception("Missing required property"); | |
| 45136 | + } | |
| 45137 | + if (!property_exists($obj, 'sealed')) { | |
| 45138 | + throw new Exception("Missing required property"); | |
| 45139 | + } | |
| 45140 | + if (!property_exists($obj, 'SEL')) { | |
| 45141 | + throw new Exception("Missing required property"); | |
| 45142 | + } | |
| 45343 | 45143 | if (!property_exists($obj, 'select')) { |
| 45344 | 45144 | throw new Exception("Missing required property"); |
| 45345 | 45145 | } |
| @@ -45502,176 +45302,866 @@ class Obj5 { | ||
| 45502 | 45302 | if (!property_exists($obj, 'undefined')) { |
| 45503 | 45303 | throw new Exception("Missing required property"); |
| 45504 | 45304 | } |
| 45505 | - if (!property_exists($obj, 'union')) { | |
| 45506 | - throw new Exception("Missing required property"); | |
| 45507 | - } | |
| 45508 | - if (!property_exists($obj, 'UnmarshalJSON')) { | |
| 45509 | - throw new Exception("Missing required property"); | |
| 45510 | - } | |
| 45511 | - if (!property_exists($obj, 'unowned')) { | |
| 45512 | - throw new Exception("Missing required property"); | |
| 45305 | + return new Obj5( | |
| 45306 | + Obj5::fromDummy($obj->{'dummy'}) | |
| 45307 | + ,Obj5::fromKSerializer($obj->{'KSerializer'}) | |
| 45308 | + ,Obj5::fromObj5Self($obj->{'self'}) | |
| 45309 | + ,Obj5::fromObj5This($obj->{'this'}) | |
| 45310 | + ,Obj5::fromObj5True($obj->{'true'}) | |
| 45311 | + ,Obj5::fromObj5Type($obj->{'type'}) | |
| 45312 | + ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'}) | |
| 45313 | + ,Obj5::fromS($obj->{'s'}) | |
| 45314 | + ,Obj5::fromSbyte($obj->{'sbyte'}) | |
| 45315 | + ,Obj5::fromSealed($obj->{'sealed'}) | |
| 45316 | + ,Obj5::fromSel($obj->{'SEL'}) | |
| 45317 | + ,Obj5::fromSelect($obj->{'select'}) | |
| 45318 | + ,Obj5::fromSelf($obj->{'Self'}) | |
| 45319 | + ,Obj5::fromSendable($obj->{'Sendable'}) | |
| 45320 | + ,Obj5::fromSerialDescriptor($obj->{'SerialDescriptor'}) | |
| 45321 | + ,Obj5::fromSerialName($obj->{'SerialName'}) | |
| 45322 | + ,Obj5::fromSerializable($obj->{'Serializable'}) | |
| 45323 | + ,Obj5::fromSerialize($obj->{'serialize'}) | |
| 45324 | + ,Obj5::fromSerializerProvider($obj->{'SerializerProvider'}) | |
| 45325 | + ,Obj5::fromSet($obj->{'set'}) | |
| 45326 | + ,Obj5::fromShort($obj->{'short'}) | |
| 45327 | + ,Obj5::fromSigned($obj->{'signed'}) | |
| 45328 | + ,Obj5::fromSimpleModule($obj->{'SimpleModule'}) | |
| 45329 | + ,Obj5::fromSizeof($obj->{'sizeof'}) | |
| 45330 | + ,Obj5::fromStackalloc($obj->{'stackalloc'}) | |
| 45331 | + ,Obj5::fromStandards($obj->{'Standards'}) | |
| 45332 | + ,Obj5::fromStatic($obj->{'static'}) | |
| 45333 | + ,Obj5::fromStaticAssert($obj->{'static_assert'}) | |
| 45334 | + ,Obj5::fromStaticCast($obj->{'static_cast'}) | |
| 45335 | + ,Obj5::fromStdDeserializer($obj->{'StdDeserializer'}) | |
| 45336 | + ,Obj5::fromStdSerializer($obj->{'StdSerializer'}) | |
| 45337 | + ,Obj5::fromStrictfp($obj->{'strictfp'}) | |
| 45338 | + ,Obj5::fromString($obj->{'string'}) | |
| 45339 | + ,Obj5::fromStruct($obj->{'struct'}) | |
| 45340 | + ,Obj5::fromSubscript($obj->{'subscript'}) | |
| 45341 | + ,Obj5::fromSuper($obj->{'super'}) | |
| 45342 | + ,Obj5::fromSwitch($obj->{'switch'}) | |
| 45343 | + ,Obj5::fromSymbol($obj->{'symbol'}) | |
| 45344 | + ,Obj5::fromSynchronized($obj->{'synchronized'}) | |
| 45345 | + ,Obj5::fromSystem($obj->{'system'}) | |
| 45346 | + ,Obj5::fromTemplate($obj->{'template'}) | |
| 45347 | + ,Obj5::fromThen($obj->{'then'}) | |
| 45348 | + ,Obj5::fromThreadLocal($obj->{'thread_local'}) | |
| 45349 | + ,Obj5::fromThrow($obj->{'throw'}) | |
| 45350 | + ,Obj5::fromThrows($obj->{'throws'}) | |
| 45351 | + ,Obj5::fromTimeOnly($obj->{'TimeOnly'}) | |
| 45352 | + ,Obj5::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'}) | |
| 45353 | + ,Obj5::fromTimeZone($obj->{'TimeZone'}) | |
| 45354 | + ,Obj5::fromToDict($obj->{'to_dict'}) | |
| 45355 | + ,Obj5::fromToJSON($obj->{'to_json'}) | |
| 45356 | + ,Obj5::fromToString($obj->{'toString'}) | |
| 45357 | + ,Obj5::fromTopLevel($obj->{'top_level'}) | |
| 45358 | + ,Obj5::fromTransient($obj->{'transient'}) | |
| 45359 | + ,Obj5::fromTrue($obj->{'True'}) | |
| 45360 | + ,Obj5::fromTry($obj->{'try'}) | |
| 45361 | + ,Obj5::fromType($obj->{'Type'}) | |
| 45362 | + ,Obj5::fromTypealias($obj->{'typealias'}) | |
| 45363 | + ,Obj5::fromTypedef($obj->{'typedef'}) | |
| 45364 | + ,Obj5::fromTypeid($obj->{'typeid'}) | |
| 45365 | + ,Obj5::fromTypename($obj->{'typename'}) | |
| 45366 | + ,Obj5::fromTypeof($obj->{'typeof'}) | |
| 45367 | + ,Obj5::fromUint($obj->{'uint'}) | |
| 45368 | + ,Obj5::fromUlong($obj->{'ulong'}) | |
| 45369 | + ,Obj5::fromUnchecked($obj->{'unchecked'}) | |
| 45370 | + ,Obj5::fromUndefined($obj->{'undefined'}) | |
| 45371 | + ); | |
| 45372 | + } | |
| 45373 | + | |
| 45374 | + /** | |
| 45375 | + * @return Obj5 | |
| 45376 | + */ | |
| 45377 | + public static function sample(): Obj5 { | |
| 45378 | + return new Obj5( | |
| 45379 | + Obj5::sampleDummy() | |
| 45380 | + ,Obj5::sampleKSerializer() | |
| 45381 | + ,Obj5::sampleObj5Self() | |
| 45382 | + ,Obj5::sampleObj5This() | |
| 45383 | + ,Obj5::sampleObj5True() | |
| 45384 | + ,Obj5::sampleObj5Type() | |
| 45385 | + ,Obj5::samplePrimitiveKind() | |
| 45386 | + ,Obj5::sampleS() | |
| 45387 | + ,Obj5::sampleSbyte() | |
| 45388 | + ,Obj5::sampleSealed() | |
| 45389 | + ,Obj5::sampleSel() | |
| 45390 | + ,Obj5::sampleSelect() | |
| 45391 | + ,Obj5::sampleSelf() | |
| 45392 | + ,Obj5::sampleSendable() | |
| 45393 | + ,Obj5::sampleSerialDescriptor() | |
| 45394 | + ,Obj5::sampleSerialName() | |
| 45395 | + ,Obj5::sampleSerializable() | |
| 45396 | + ,Obj5::sampleSerialize() | |
| 45397 | + ,Obj5::sampleSerializerProvider() | |
| 45398 | + ,Obj5::sampleSet() | |
| 45399 | + ,Obj5::sampleShort() | |
| 45400 | + ,Obj5::sampleSigned() | |
| 45401 | + ,Obj5::sampleSimpleModule() | |
| 45402 | + ,Obj5::sampleSizeof() | |
| 45403 | + ,Obj5::sampleStackalloc() | |
| 45404 | + ,Obj5::sampleStandards() | |
| 45405 | + ,Obj5::sampleStatic() | |
| 45406 | + ,Obj5::sampleStaticAssert() | |
| 45407 | + ,Obj5::sampleStaticCast() | |
| 45408 | + ,Obj5::sampleStdDeserializer() | |
| 45409 | + ,Obj5::sampleStdSerializer() | |
| 45410 | + ,Obj5::sampleStrictfp() | |
| 45411 | + ,Obj5::sampleString() | |
| 45412 | + ,Obj5::sampleStruct() | |
| 45413 | + ,Obj5::sampleSubscript() | |
| 45414 | + ,Obj5::sampleSuper() | |
| 45415 | + ,Obj5::sampleSwitch() | |
| 45416 | + ,Obj5::sampleSymbol() | |
| 45417 | + ,Obj5::sampleSynchronized() | |
| 45418 | + ,Obj5::sampleSystem() | |
| 45419 | + ,Obj5::sampleTemplate() | |
| 45420 | + ,Obj5::sampleThen() | |
| 45421 | + ,Obj5::sampleThreadLocal() | |
| 45422 | + ,Obj5::sampleThrow() | |
| 45423 | + ,Obj5::sampleThrows() | |
| 45424 | + ,Obj5::sampleTimeOnly() | |
| 45425 | + ,Obj5::sampleTimeOnlyConverter() | |
| 45426 | + ,Obj5::sampleTimeZone() | |
| 45427 | + ,Obj5::sampleToDict() | |
| 45428 | + ,Obj5::sampleToJSON() | |
| 45429 | + ,Obj5::sampleToString() | |
| 45430 | + ,Obj5::sampleTopLevel() | |
| 45431 | + ,Obj5::sampleTransient() | |
| 45432 | + ,Obj5::sampleTrue() | |
| 45433 | + ,Obj5::sampleTry() | |
| 45434 | + ,Obj5::sampleType() | |
| 45435 | + ,Obj5::sampleTypealias() | |
| 45436 | + ,Obj5::sampleTypedef() | |
| 45437 | + ,Obj5::sampleTypeid() | |
| 45438 | + ,Obj5::sampleTypename() | |
| 45439 | + ,Obj5::sampleTypeof() | |
| 45440 | + ,Obj5::sampleUint() | |
| 45441 | + ,Obj5::sampleUlong() | |
| 45442 | + ,Obj5::sampleUnchecked() | |
| 45443 | + ,Obj5::sampleUndefined() | |
| 45444 | + ); | |
| 45445 | + } | |
| 45446 | +} | |
| 45447 | + | |
| 45448 | +// This is an autogenerated file:KSerializer | |
| 45449 | + | |
| 45450 | +class KSerializer { | |
| 45451 | + private int $kSerializer; // json:KSerializer Required | |
| 45452 | + | |
| 45453 | + /** | |
| 45454 | + * @param int $kSerializer | |
| 45455 | + */ | |
| 45456 | + public function __construct(int $kSerializer) { | |
| 45457 | + $this->kSerializer = $kSerializer; | |
| 45458 | + } | |
| 45459 | + | |
| 45460 | + /** | |
| 45461 | + * @param int $value | |
| 45462 | + * @throws Exception | |
| 45463 | + * @return int | |
| 45464 | + */ | |
| 45465 | + public static function fromKSerializer(int $value): int { | |
| 45466 | + return $value; /*int*/ | |
| 45467 | + } | |
| 45468 | + | |
| 45469 | + /** | |
| 45470 | + * @throws Exception | |
| 45471 | + * @return int | |
| 45472 | + */ | |
| 45473 | + public function toKSerializer(): int { | |
| 45474 | + if (KSerializer::validateKSerializer($this->kSerializer)) { | |
| 45475 | + return $this->kSerializer; /*int*/ | |
| 45476 | + } | |
| 45477 | + throw new Exception('never get to this KSerializer::kSerializer'); | |
| 45478 | + } | |
| 45479 | + | |
| 45480 | + /** | |
| 45481 | + * @param int | |
| 45482 | + * @return bool | |
| 45483 | + * @throws Exception | |
| 45484 | + */ | |
| 45485 | + public static function validateKSerializer(int $value): bool { | |
| 45486 | + return true; | |
| 45487 | + } | |
| 45488 | + | |
| 45489 | + /** | |
| 45490 | + * @throws Exception | |
| 45491 | + * @return int | |
| 45492 | + */ | |
| 45493 | + public function getKSerializer(): int { | |
| 45494 | + if (KSerializer::validateKSerializer($this->kSerializer)) { | |
| 45495 | + return $this->kSerializer; | |
| 45496 | + } | |
| 45497 | + throw new Exception('never get to getKSerializer KSerializer::kSerializer'); | |
| 45498 | + } | |
| 45499 | + | |
| 45500 | + /** | |
| 45501 | + * @return int | |
| 45502 | + */ | |
| 45503 | + public static function sampleKSerializer(): int { | |
| 45504 | + return 31; /*31:kSerializer*/ | |
| 45505 | + } | |
| 45506 | + | |
| 45507 | + /** | |
| 45508 | + * @throws Exception | |
| 45509 | + * @return bool | |
| 45510 | + */ | |
| 45511 | + public function validate(): bool { | |
| 45512 | + return KSerializer::validateKSerializer($this->kSerializer); | |
| 45513 | + } | |
| 45514 | + | |
| 45515 | + /** | |
| 45516 | + * @return stdClass | |
| 45517 | + * @throws Exception | |
| 45518 | + */ | |
| 45519 | + public function to(): stdClass { | |
| 45520 | + $out = new stdClass(); | |
| 45521 | + $out->{'KSerializer'} = $this->toKSerializer(); | |
| 45522 | + return $out; | |
| 45523 | + } | |
| 45524 | + | |
| 45525 | + /** | |
| 45526 | + * @param stdClass $obj | |
| 45527 | + * @return KSerializer | |
| 45528 | + * @throws Exception | |
| 45529 | + */ | |
| 45530 | + public static function from(stdClass $obj): KSerializer { | |
| 45531 | + if (!property_exists($obj, 'KSerializer')) { | |
| 45532 | + throw new Exception("Missing required property"); | |
| 45533 | + } | |
| 45534 | + return new KSerializer( | |
| 45535 | + KSerializer::fromKSerializer($obj->{'KSerializer'}) | |
| 45536 | + ); | |
| 45537 | + } | |
| 45538 | + | |
| 45539 | + /** | |
| 45540 | + * @return KSerializer | |
| 45541 | + */ | |
| 45542 | + public static function sample(): KSerializer { | |
| 45543 | + return new KSerializer( | |
| 45544 | + KSerializer::sampleKSerializer() | |
| 45545 | + ); | |
| 45546 | + } | |
| 45547 | +} | |
| 45548 | + | |
| 45549 | +// This is an autogenerated file:Obj5Self | |
| 45550 | + | |
| 45551 | +class Obj5Self { | |
| 45552 | + private int $self; // json:self Required | |
| 45553 | + | |
| 45554 | + /** | |
| 45555 | + * @param int $self | |
| 45556 | + */ | |
| 45557 | + public function __construct(int $self) { | |
| 45558 | + $this->self = $self; | |
| 45559 | + } | |
| 45560 | + | |
| 45561 | + /** | |
| 45562 | + * @param int $value | |
| 45563 | + * @throws Exception | |
| 45564 | + * @return int | |
| 45565 | + */ | |
| 45566 | + public static function fromSelf(int $value): int { | |
| 45567 | + return $value; /*int*/ | |
| 45568 | + } | |
| 45569 | + | |
| 45570 | + /** | |
| 45571 | + * @throws Exception | |
| 45572 | + * @return int | |
| 45573 | + */ | |
| 45574 | + public function toSelf(): int { | |
| 45575 | + if (Obj5Self::validateSelf($this->self)) { | |
| 45576 | + return $this->self; /*int*/ | |
| 45577 | + } | |
| 45578 | + throw new Exception('never get to this Obj5Self::self'); | |
| 45579 | + } | |
| 45580 | + | |
| 45581 | + /** | |
| 45582 | + * @param int | |
| 45583 | + * @return bool | |
| 45584 | + * @throws Exception | |
| 45585 | + */ | |
| 45586 | + public static function validateSelf(int $value): bool { | |
| 45587 | + return true; | |
| 45588 | + } | |
| 45589 | + | |
| 45590 | + /** | |
| 45591 | + * @throws Exception | |
| 45592 | + * @return int | |
| 45593 | + */ | |
| 45594 | + public function getSelf(): int { | |
| 45595 | + if (Obj5Self::validateSelf($this->self)) { | |
| 45596 | + return $this->self; | |
| 45597 | + } | |
| 45598 | + throw new Exception('never get to getSelf Obj5Self::self'); | |
| 45599 | + } | |
| 45600 | + | |
| 45601 | + /** | |
| 45602 | + * @return int | |
| 45603 | + */ | |
| 45604 | + public static function sampleSelf(): int { | |
| 45605 | + return 31; /*31:self*/ | |
| 45606 | + } | |
| 45607 | + | |
| 45608 | + /** | |
| 45609 | + * @throws Exception | |
| 45610 | + * @return bool | |
| 45611 | + */ | |
| 45612 | + public function validate(): bool { | |
| 45613 | + return Obj5Self::validateSelf($this->self); | |
| 45614 | + } | |
| 45615 | + | |
| 45616 | + /** | |
| 45617 | + * @return stdClass | |
| 45618 | + * @throws Exception | |
| 45619 | + */ | |
| 45620 | + public function to(): stdClass { | |
| 45621 | + $out = new stdClass(); | |
| 45622 | + $out->{'self'} = $this->toSelf(); | |
| 45623 | + return $out; | |
| 45624 | + } | |
| 45625 | + | |
| 45626 | + /** | |
| 45627 | + * @param stdClass $obj | |
| 45628 | + * @return Obj5Self | |
| 45629 | + * @throws Exception | |
| 45630 | + */ | |
| 45631 | + public static function from(stdClass $obj): Obj5Self { | |
| 45632 | + if (!property_exists($obj, 'self')) { | |
| 45633 | + throw new Exception("Missing required property"); | |
| 45634 | + } | |
| 45635 | + return new Obj5Self( | |
| 45636 | + Obj5Self::fromSelf($obj->{'self'}) | |
| 45637 | + ); | |
| 45638 | + } | |
| 45639 | + | |
| 45640 | + /** | |
| 45641 | + * @return Obj5Self | |
| 45642 | + */ | |
| 45643 | + public static function sample(): Obj5Self { | |
| 45644 | + return new Obj5Self( | |
| 45645 | + Obj5Self::sampleSelf() | |
| 45646 | + ); | |
| 45647 | + } | |
| 45648 | +} | |
| 45649 | + | |
| 45650 | +// This is an autogenerated file:This | |
| 45651 | + | |
| 45652 | +class This { | |
| 45653 | + private int $thisThis; // json:this Required | |
| 45654 | + | |
| 45655 | + /** | |
| 45656 | + * @param int $thisThis | |
| 45657 | + */ | |
| 45658 | + public function __construct(int $thisThis) { | |
| 45659 | + $this->thisThis = $thisThis; | |
| 45660 | + } | |
| 45661 | + | |
| 45662 | + /** | |
| 45663 | + * @param int $value | |
| 45664 | + * @throws Exception | |
| 45665 | + * @return int | |
| 45666 | + */ | |
| 45667 | + public static function fromThisThis(int $value): int { | |
| 45668 | + return $value; /*int*/ | |
| 45669 | + } | |
| 45670 | + | |
| 45671 | + /** | |
| 45672 | + * @throws Exception | |
| 45673 | + * @return int | |
| 45674 | + */ | |
| 45675 | + public function toThisThis(): int { | |
| 45676 | + if (This::validateThisThis($this->thisThis)) { | |
| 45677 | + return $this->thisThis; /*int*/ | |
| 45678 | + } | |
| 45679 | + throw new Exception('never get to this This::thisThis'); | |
| 45680 | + } | |
| 45681 | + | |
| 45682 | + /** | |
| 45683 | + * @param int | |
| 45684 | + * @return bool | |
| 45685 | + * @throws Exception | |
| 45686 | + */ | |
| 45687 | + public static function validateThisThis(int $value): bool { | |
| 45688 | + return true; | |
| 45689 | + } | |
| 45690 | + | |
| 45691 | + /** | |
| 45692 | + * @throws Exception | |
| 45693 | + * @return int | |
| 45694 | + */ | |
| 45695 | + public function getThisThis(): int { | |
| 45696 | + if (This::validateThisThis($this->thisThis)) { | |
| 45697 | + return $this->thisThis; | |
| 45698 | + } | |
| 45699 | + throw new Exception('never get to getThisThis This::thisThis'); | |
| 45700 | + } | |
| 45701 | + | |
| 45702 | + /** | |
| 45703 | + * @return int | |
| 45704 | + */ | |
| 45705 | + public static function sampleThisThis(): int { | |
| 45706 | + return 31; /*31:thisThis*/ | |
| 45707 | + } | |
| 45708 | + | |
| 45709 | + /** | |
| 45710 | + * @throws Exception | |
| 45711 | + * @return bool | |
| 45712 | + */ | |
| 45713 | + public function validate(): bool { | |
| 45714 | + return This::validateThisThis($this->thisThis); | |
| 45715 | + } | |
| 45716 | + | |
| 45717 | + /** | |
| 45718 | + * @return stdClass | |
| 45719 | + * @throws Exception | |
| 45720 | + */ | |
| 45721 | + public function to(): stdClass { | |
| 45722 | + $out = new stdClass(); | |
| 45723 | + $out->{'this'} = $this->toThisThis(); | |
| 45724 | + return $out; | |
| 45725 | + } | |
| 45726 | + | |
| 45727 | + /** | |
| 45728 | + * @param stdClass $obj | |
| 45729 | + * @return This | |
| 45730 | + * @throws Exception | |
| 45731 | + */ | |
| 45732 | + public static function from(stdClass $obj): This { | |
| 45733 | + if (!property_exists($obj, 'this')) { | |
| 45734 | + throw new Exception("Missing required property"); | |
| 45735 | + } | |
| 45736 | + return new This( | |
| 45737 | + This::fromThisThis($obj->{'this'}) | |
| 45738 | + ); | |
| 45739 | + } | |
| 45740 | + | |
| 45741 | + /** | |
| 45742 | + * @return This | |
| 45743 | + */ | |
| 45744 | + public static function sample(): This { | |
| 45745 | + return new This( | |
| 45746 | + This::sampleThisThis() | |
| 45747 | + ); | |
| 45748 | + } | |
| 45749 | +} | |
| 45750 | + | |
| 45751 | +// This is an autogenerated file:Obj5True | |
| 45752 | + | |
| 45753 | +class Obj5True { | |
| 45754 | + private int $true; // json:true Required | |
| 45755 | + | |
| 45756 | + /** | |
| 45757 | + * @param int $true | |
| 45758 | + */ | |
| 45759 | + public function __construct(int $true) { | |
| 45760 | + $this->true = $true; | |
| 45761 | + } | |
| 45762 | + | |
| 45763 | + /** | |
| 45764 | + * @param int $value | |
| 45765 | + * @throws Exception | |
| 45766 | + * @return int | |
| 45767 | + */ | |
| 45768 | + public static function fromTrue(int $value): int { | |
| 45769 | + return $value; /*int*/ | |
| 45770 | + } | |
| 45771 | + | |
| 45772 | + /** | |
| 45773 | + * @throws Exception | |
| 45774 | + * @return int | |
| 45775 | + */ | |
| 45776 | + public function toTrue(): int { | |
| 45777 | + if (Obj5True::validateTrue($this->true)) { | |
| 45778 | + return $this->true; /*int*/ | |
| 45779 | + } | |
| 45780 | + throw new Exception('never get to this Obj5True::true'); | |
| 45781 | + } | |
| 45782 | + | |
| 45783 | + /** | |
| 45784 | + * @param int | |
| 45785 | + * @return bool | |
| 45786 | + * @throws Exception | |
| 45787 | + */ | |
| 45788 | + public static function validateTrue(int $value): bool { | |
| 45789 | + return true; | |
| 45790 | + } | |
| 45791 | + | |
| 45792 | + /** | |
| 45793 | + * @throws Exception | |
| 45794 | + * @return int | |
| 45795 | + */ | |
| 45796 | + public function getTrue(): int { | |
| 45797 | + if (Obj5True::validateTrue($this->true)) { | |
| 45798 | + return $this->true; | |
| 45799 | + } | |
| 45800 | + throw new Exception('never get to getTrue Obj5True::true'); | |
| 45801 | + } | |
| 45802 | + | |
| 45803 | + /** | |
| 45804 | + * @return int | |
| 45805 | + */ | |
| 45806 | + public static function sampleTrue(): int { | |
| 45807 | + return 31; /*31:true*/ | |
| 45808 | + } | |
| 45809 | + | |
| 45810 | + /** | |
| 45811 | + * @throws Exception | |
| 45812 | + * @return bool | |
| 45813 | + */ | |
| 45814 | + public function validate(): bool { | |
| 45815 | + return Obj5True::validateTrue($this->true); | |
| 45816 | + } | |
| 45817 | + | |
| 45818 | + /** | |
| 45819 | + * @return stdClass | |
| 45820 | + * @throws Exception | |
| 45821 | + */ | |
| 45822 | + public function to(): stdClass { | |
| 45823 | + $out = new stdClass(); | |
| 45824 | + $out->{'true'} = $this->toTrue(); | |
| 45825 | + return $out; | |
| 45826 | + } | |
| 45827 | + | |
| 45828 | + /** | |
| 45829 | + * @param stdClass $obj | |
| 45830 | + * @return Obj5True | |
| 45831 | + * @throws Exception | |
| 45832 | + */ | |
| 45833 | + public static function from(stdClass $obj): Obj5True { | |
| 45834 | + if (!property_exists($obj, 'true')) { | |
| 45835 | + throw new Exception("Missing required property"); | |
| 45836 | + } | |
| 45837 | + return new Obj5True( | |
| 45838 | + Obj5True::fromTrue($obj->{'true'}) | |
| 45839 | + ); | |
| 45840 | + } | |
| 45841 | + | |
| 45842 | + /** | |
| 45843 | + * @return Obj5True | |
| 45844 | + */ | |
| 45845 | + public static function sample(): Obj5True { | |
| 45846 | + return new Obj5True( | |
| 45847 | + Obj5True::sampleTrue() | |
| 45848 | + ); | |
| 45849 | + } | |
| 45850 | +} | |
| 45851 | + | |
| 45852 | +// This is an autogenerated file:TypeClass | |
| 45853 | + | |
| 45854 | +class TypeClass { | |
| 45855 | + private int $type; // json:type Required | |
| 45856 | + | |
| 45857 | + /** | |
| 45858 | + * @param int $type | |
| 45859 | + */ | |
| 45860 | + public function __construct(int $type) { | |
| 45861 | + $this->type = $type; | |
| 45862 | + } | |
| 45863 | + | |
| 45864 | + /** | |
| 45865 | + * @param int $value | |
| 45866 | + * @throws Exception | |
| 45867 | + * @return int | |
| 45868 | + */ | |
| 45869 | + public static function fromType(int $value): int { | |
| 45870 | + return $value; /*int*/ | |
| 45871 | + } | |
| 45872 | + | |
| 45873 | + /** | |
| 45874 | + * @throws Exception | |
| 45875 | + * @return int | |
| 45876 | + */ | |
| 45877 | + public function toType(): int { | |
| 45878 | + if (TypeClass::validateType($this->type)) { | |
| 45879 | + return $this->type; /*int*/ | |
| 45880 | + } | |
| 45881 | + throw new Exception('never get to this TypeClass::type'); | |
| 45882 | + } | |
| 45883 | + | |
| 45884 | + /** | |
| 45885 | + * @param int | |
| 45886 | + * @return bool | |
| 45887 | + * @throws Exception | |
| 45888 | + */ | |
| 45889 | + public static function validateType(int $value): bool { | |
| 45890 | + return true; | |
| 45891 | + } | |
| 45892 | + | |
| 45893 | + /** | |
| 45894 | + * @throws Exception | |
| 45895 | + * @return int | |
| 45896 | + */ | |
| 45897 | + public function getType(): int { | |
| 45898 | + if (TypeClass::validateType($this->type)) { | |
| 45899 | + return $this->type; | |
| 45900 | + } | |
| 45901 | + throw new Exception('never get to getType TypeClass::type'); | |
| 45902 | + } | |
| 45903 | + | |
| 45904 | + /** | |
| 45905 | + * @return int | |
| 45906 | + */ | |
| 45907 | + public static function sampleType(): int { | |
| 45908 | + return 31; /*31:type*/ | |
| 45909 | + } | |
| 45910 | + | |
| 45911 | + /** | |
| 45912 | + * @throws Exception | |
| 45913 | + * @return bool | |
| 45914 | + */ | |
| 45915 | + public function validate(): bool { | |
| 45916 | + return TypeClass::validateType($this->type); | |
| 45917 | + } | |
| 45918 | + | |
| 45919 | + /** | |
| 45920 | + * @return stdClass | |
| 45921 | + * @throws Exception | |
| 45922 | + */ | |
| 45923 | + public function to(): stdClass { | |
| 45924 | + $out = new stdClass(); | |
| 45925 | + $out->{'type'} = $this->toType(); | |
| 45926 | + return $out; | |
| 45927 | + } | |
| 45928 | + | |
| 45929 | + /** | |
| 45930 | + * @param stdClass $obj | |
| 45931 | + * @return TypeClass | |
| 45932 | + * @throws Exception | |
| 45933 | + */ | |
| 45934 | + public static function from(stdClass $obj): TypeClass { | |
| 45935 | + if (!property_exists($obj, 'type')) { | |
| 45936 | + throw new Exception("Missing required property"); | |
| 45937 | + } | |
| 45938 | + return new TypeClass( | |
| 45939 | + TypeClass::fromType($obj->{'type'}) | |
| 45940 | + ); | |
| 45941 | + } | |
| 45942 | + | |
| 45943 | + /** | |
| 45944 | + * @return TypeClass | |
| 45945 | + */ | |
| 45946 | + public static function sample(): TypeClass { | |
| 45947 | + return new TypeClass( | |
| 45948 | + TypeClass::sampleType() | |
| 45949 | + ); | |
| 45950 | + } | |
| 45951 | +} | |
| 45952 | + | |
| 45953 | +// This is an autogenerated file:PrimitiveKind | |
| 45954 | + | |
| 45955 | +class PrimitiveKind { | |
| 45956 | + private int $primitiveKind; // json:PrimitiveKind Required | |
| 45957 | + | |
| 45958 | + /** | |
| 45959 | + * @param int $primitiveKind | |
| 45960 | + */ | |
| 45961 | + public function __construct(int $primitiveKind) { | |
| 45962 | + $this->primitiveKind = $primitiveKind; | |
| 45963 | + } | |
| 45964 | + | |
| 45965 | + /** | |
| 45966 | + * @param int $value | |
| 45967 | + * @throws Exception | |
| 45968 | + * @return int | |
| 45969 | + */ | |
| 45970 | + public static function fromPrimitiveKind(int $value): int { | |
| 45971 | + return $value; /*int*/ | |
| 45972 | + } | |
| 45973 | + | |
| 45974 | + /** | |
| 45975 | + * @throws Exception | |
| 45976 | + * @return int | |
| 45977 | + */ | |
| 45978 | + public function toPrimitiveKind(): int { | |
| 45979 | + if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) { | |
| 45980 | + return $this->primitiveKind; /*int*/ | |
| 45981 | + } | |
| 45982 | + throw new Exception('never get to this PrimitiveKind::primitiveKind'); | |
| 45983 | + } | |
| 45984 | + | |
| 45985 | + /** | |
| 45986 | + * @param int | |
| 45987 | + * @return bool | |
| 45988 | + * @throws Exception | |
| 45989 | + */ | |
| 45990 | + public static function validatePrimitiveKind(int $value): bool { | |
| 45991 | + return true; | |
| 45992 | + } | |
| 45993 | + | |
| 45994 | + /** | |
| 45995 | + * @throws Exception | |
| 45996 | + * @return int | |
| 45997 | + */ | |
| 45998 | + public function getPrimitiveKind(): int { | |
| 45999 | + if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) { | |
| 46000 | + return $this->primitiveKind; | |
| 46001 | + } | |
| 46002 | + throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind'); | |
| 46003 | + } | |
| 46004 | + | |
| 46005 | + /** | |
| 46006 | + * @return int | |
| 46007 | + */ | |
| 46008 | + public static function samplePrimitiveKind(): int { | |
| 46009 | + return 31; /*31:primitiveKind*/ | |
| 46010 | + } | |
| 46011 | + | |
| 46012 | + /** | |
| 46013 | + * @throws Exception | |
| 46014 | + * @return bool | |
| 46015 | + */ | |
| 46016 | + public function validate(): bool { | |
| 46017 | + return PrimitiveKind::validatePrimitiveKind($this->primitiveKind); | |
| 46018 | + } | |
| 46019 | + | |
| 46020 | + /** | |
| 46021 | + * @return stdClass | |
| 46022 | + * @throws Exception | |
| 46023 | + */ | |
| 46024 | + public function to(): stdClass { | |
| 46025 | + $out = new stdClass(); | |
| 46026 | + $out->{'PrimitiveKind'} = $this->toPrimitiveKind(); | |
| 46027 | + return $out; | |
| 46028 | + } | |
| 46029 | + | |
| 46030 | + /** | |
| 46031 | + * @param stdClass $obj | |
| 46032 | + * @return PrimitiveKind | |
| 46033 | + * @throws Exception | |
| 46034 | + */ | |
| 46035 | + public static function from(stdClass $obj): PrimitiveKind { | |
| 46036 | + if (!property_exists($obj, 'PrimitiveKind')) { | |
| 46037 | + throw new Exception("Missing required property"); | |
| 46038 | + } | |
| 46039 | + return new PrimitiveKind( | |
| 46040 | + PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'}) | |
| 46041 | + ); | |
| 46042 | + } | |
| 46043 | + | |
| 46044 | + /** | |
| 46045 | + * @return PrimitiveKind | |
| 46046 | + */ | |
| 46047 | + public static function sample(): PrimitiveKind { | |
| 46048 | + return new PrimitiveKind( | |
| 46049 | + PrimitiveKind::samplePrimitiveKind() | |
| 46050 | + ); | |
| 46051 | + } | |
| 46052 | +} | |
| 46053 | + | |
| 46054 | +// This is an autogenerated file:S | |
| 46055 | + | |
| 46056 | +class S { | |
| 46057 | + private int $s; // json:s Required | |
| 46058 | + | |
| 46059 | + /** | |
| 46060 | + * @param int $s | |
| 46061 | + */ | |
| 46062 | + public function __construct(int $s) { | |
| 46063 | + $this->s = $s; | |
| 46064 | + } | |
| 46065 | + | |
| 46066 | + /** | |
| 46067 | + * @param int $value | |
| 46068 | + * @throws Exception | |
| 46069 | + * @return int | |
| 46070 | + */ | |
| 46071 | + public static function fromS(int $value): int { | |
| 46072 | + return $value; /*int*/ | |
| 46073 | + } | |
| 46074 | + | |
| 46075 | + /** | |
| 46076 | + * @throws Exception | |
| 46077 | + * @return int | |
| 46078 | + */ | |
| 46079 | + public function toS(): int { | |
| 46080 | + if (S::validateS($this->s)) { | |
| 46081 | + return $this->s; /*int*/ | |
| 45513 | 46082 | } |
| 45514 | - if (!property_exists($obj, 'unsafe')) { | |
| 45515 | - throw new Exception("Missing required property"); | |
| 46083 | + throw new Exception('never get to this S::s'); | |
| 46084 | + } | |
| 46085 | + | |
| 46086 | + /** | |
| 46087 | + * @param int | |
| 46088 | + * @return bool | |
| 46089 | + * @throws Exception | |
| 46090 | + */ | |
| 46091 | + public static function validateS(int $value): bool { | |
| 46092 | + return true; | |
| 46093 | + } | |
| 46094 | + | |
| 46095 | + /** | |
| 46096 | + * @throws Exception | |
| 46097 | + * @return int | |
| 46098 | + */ | |
| 46099 | + public function getS(): int { | |
| 46100 | + if (S::validateS($this->s)) { | |
| 46101 | + return $this->s; | |
| 45516 | 46102 | } |
| 45517 | - if (!property_exists($obj, 'UseSerializers')) { | |
| 46103 | + throw new Exception('never get to getS S::s'); | |
| 46104 | + } | |
| 46105 | + | |
| 46106 | + /** | |
| 46107 | + * @return int | |
| 46108 | + */ | |
| 46109 | + public static function sampleS(): int { | |
| 46110 | + return 31; /*31:s*/ | |
| 46111 | + } | |
| 46112 | + | |
| 46113 | + /** | |
| 46114 | + * @throws Exception | |
| 46115 | + * @return bool | |
| 46116 | + */ | |
| 46117 | + public function validate(): bool { | |
| 46118 | + return S::validateS($this->s); | |
| 46119 | + } | |
| 46120 | + | |
| 46121 | + /** | |
| 46122 | + * @return stdClass | |
| 46123 | + * @throws Exception | |
| 46124 | + */ | |
| 46125 | + public function to(): stdClass { | |
| 46126 | + $out = new stdClass(); | |
| 46127 | + $out->{'s'} = $this->toS(); | |
| 46128 | + return $out; | |
| 46129 | + } | |
| 46130 | + | |
| 46131 | + /** | |
| 46132 | + * @param stdClass $obj | |
| 46133 | + * @return S | |
| 46134 | + * @throws Exception | |
| 46135 | + */ | |
| 46136 | + public static function from(stdClass $obj): S { | |
| 46137 | + if (!property_exists($obj, 's')) { | |
| 45518 | 46138 | throw new Exception("Missing required property"); |
| 45519 | 46139 | } |
| 45520 | - return new Obj5( | |
| 45521 | - Obj5::fromDummy($obj->{'dummy'}) | |
| 45522 | - ,Obj5::fromKSerializer($obj->{'KSerializer'}) | |
| 45523 | - ,Obj5::fromObj5Self($obj->{'self'}) | |
| 45524 | - ,Obj5::fromObj5This($obj->{'this'}) | |
| 45525 | - ,Obj5::fromObj5True($obj->{'true'}) | |
| 45526 | - ,Obj5::fromObj5Type($obj->{'type'}) | |
| 45527 | - ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'}) | |
| 45528 | - ,Obj5::fromSelect($obj->{'select'}) | |
| 45529 | - ,Obj5::fromSelf($obj->{'Self'}) | |
| 45530 | - ,Obj5::fromSendable($obj->{'Sendable'}) | |
| 45531 | - ,Obj5::fromSerialDescriptor($obj->{'SerialDescriptor'}) | |
| 45532 | - ,Obj5::fromSerialName($obj->{'SerialName'}) | |
| 45533 | - ,Obj5::fromSerializable($obj->{'Serializable'}) | |
| 45534 | - ,Obj5::fromSerialize($obj->{'serialize'}) | |
| 45535 | - ,Obj5::fromSerializerProvider($obj->{'SerializerProvider'}) | |
| 45536 | - ,Obj5::fromSet($obj->{'set'}) | |
| 45537 | - ,Obj5::fromShort($obj->{'short'}) | |
| 45538 | - ,Obj5::fromSigned($obj->{'signed'}) | |
| 45539 | - ,Obj5::fromSimpleModule($obj->{'SimpleModule'}) | |
| 45540 | - ,Obj5::fromSizeof($obj->{'sizeof'}) | |
| 45541 | - ,Obj5::fromStackalloc($obj->{'stackalloc'}) | |
| 45542 | - ,Obj5::fromStandards($obj->{'Standards'}) | |
| 45543 | - ,Obj5::fromStatic($obj->{'static'}) | |
| 45544 | - ,Obj5::fromStaticAssert($obj->{'static_assert'}) | |
| 45545 | - ,Obj5::fromStaticCast($obj->{'static_cast'}) | |
| 45546 | - ,Obj5::fromStdDeserializer($obj->{'StdDeserializer'}) | |
| 45547 | - ,Obj5::fromStdSerializer($obj->{'StdSerializer'}) | |
| 45548 | - ,Obj5::fromStrictfp($obj->{'strictfp'}) | |
| 45549 | - ,Obj5::fromString($obj->{'string'}) | |
| 45550 | - ,Obj5::fromStruct($obj->{'struct'}) | |
| 45551 | - ,Obj5::fromSubscript($obj->{'subscript'}) | |
| 45552 | - ,Obj5::fromSuper($obj->{'super'}) | |
| 45553 | - ,Obj5::fromSwitch($obj->{'switch'}) | |
| 45554 | - ,Obj5::fromSymbol($obj->{'symbol'}) | |
| 45555 | - ,Obj5::fromSynchronized($obj->{'synchronized'}) | |
| 45556 | - ,Obj5::fromSystem($obj->{'system'}) | |
| 45557 | - ,Obj5::fromTemplate($obj->{'template'}) | |
| 45558 | - ,Obj5::fromThen($obj->{'then'}) | |
| 45559 | - ,Obj5::fromThreadLocal($obj->{'thread_local'}) | |
| 45560 | - ,Obj5::fromThrow($obj->{'throw'}) | |
| 45561 | - ,Obj5::fromThrows($obj->{'throws'}) | |
| 45562 | - ,Obj5::fromTimeOnly($obj->{'TimeOnly'}) | |
| 45563 | - ,Obj5::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'}) | |
| 45564 | - ,Obj5::fromTimeZone($obj->{'TimeZone'}) | |
| 45565 | - ,Obj5::fromToDict($obj->{'to_dict'}) | |
| 45566 | - ,Obj5::fromToJSON($obj->{'to_json'}) | |
| 45567 | - ,Obj5::fromToString($obj->{'toString'}) | |
| 45568 | - ,Obj5::fromTopLevel($obj->{'top_level'}) | |
| 45569 | - ,Obj5::fromTransient($obj->{'transient'}) | |
| 45570 | - ,Obj5::fromTrue($obj->{'True'}) | |
| 45571 | - ,Obj5::fromTry($obj->{'try'}) | |
| 45572 | - ,Obj5::fromType($obj->{'Type'}) | |
| 45573 | - ,Obj5::fromTypealias($obj->{'typealias'}) | |
| 45574 | - ,Obj5::fromTypedef($obj->{'typedef'}) | |
| 45575 | - ,Obj5::fromTypeid($obj->{'typeid'}) | |
| 45576 | - ,Obj5::fromTypename($obj->{'typename'}) | |
| 45577 | - ,Obj5::fromTypeof($obj->{'typeof'}) | |
| 45578 | - ,Obj5::fromUint($obj->{'uint'}) | |
| 45579 | - ,Obj5::fromUlong($obj->{'ulong'}) | |
| 45580 | - ,Obj5::fromUnchecked($obj->{'unchecked'}) | |
| 45581 | - ,Obj5::fromUndefined($obj->{'undefined'}) | |
| 45582 | - ,Obj5::fromUnion($obj->{'union'}) | |
| 45583 | - ,Obj5::fromUnmarshalJSON($obj->{'UnmarshalJSON'}) | |
| 45584 | - ,Obj5::fromUnowned($obj->{'unowned'}) | |
| 45585 | - ,Obj5::fromUnsafe($obj->{'unsafe'}) | |
| 45586 | - ,Obj5::fromUseSerializers($obj->{'UseSerializers'}) | |
| 46140 | + return new S( | |
| 46141 | + S::fromS($obj->{'s'}) | |
| 45587 | 46142 | ); |
| 45588 | 46143 | } |
| 45589 | 46144 | |
| 45590 | 46145 | /** |
| 45591 | - * @return Obj5 | |
| 46146 | + * @return S | |
| 45592 | 46147 | */ |
| 45593 | - public static function sample(): Obj5 { | |
| 45594 | - return new Obj5( | |
| 45595 | - Obj5::sampleDummy() | |
| 45596 | - ,Obj5::sampleKSerializer() | |
| 45597 | - ,Obj5::sampleObj5Self() | |
| 45598 | - ,Obj5::sampleObj5This() | |
| 45599 | - ,Obj5::sampleObj5True() | |
| 45600 | - ,Obj5::sampleObj5Type() | |
| 45601 | - ,Obj5::samplePrimitiveKind() | |
| 45602 | - ,Obj5::sampleSelect() | |
| 45603 | - ,Obj5::sampleSelf() | |
| 45604 | - ,Obj5::sampleSendable() | |
| 45605 | - ,Obj5::sampleSerialDescriptor() | |
| 45606 | - ,Obj5::sampleSerialName() | |
| 45607 | - ,Obj5::sampleSerializable() | |
| 45608 | - ,Obj5::sampleSerialize() | |
| 45609 | - ,Obj5::sampleSerializerProvider() | |
| 45610 | - ,Obj5::sampleSet() | |
| 45611 | - ,Obj5::sampleShort() | |
| 45612 | - ,Obj5::sampleSigned() | |
| 45613 | - ,Obj5::sampleSimpleModule() | |
| 45614 | - ,Obj5::sampleSizeof() | |
| 45615 | - ,Obj5::sampleStackalloc() | |
| 45616 | - ,Obj5::sampleStandards() | |
| 45617 | - ,Obj5::sampleStatic() | |
| 45618 | - ,Obj5::sampleStaticAssert() | |
| 45619 | - ,Obj5::sampleStaticCast() | |
| 45620 | - ,Obj5::sampleStdDeserializer() | |
| 45621 | - ,Obj5::sampleStdSerializer() | |
| 45622 | - ,Obj5::sampleStrictfp() | |
| 45623 | - ,Obj5::sampleString() | |
| 45624 | - ,Obj5::sampleStruct() | |
| 45625 | - ,Obj5::sampleSubscript() | |
| 45626 | - ,Obj5::sampleSuper() | |
| 45627 | - ,Obj5::sampleSwitch() | |
| 45628 | - ,Obj5::sampleSymbol() | |
| 45629 | - ,Obj5::sampleSynchronized() | |
| 45630 | - ,Obj5::sampleSystem() | |
| 45631 | - ,Obj5::sampleTemplate() | |
| 45632 | - ,Obj5::sampleThen() | |
| 45633 | - ,Obj5::sampleThreadLocal() | |
| 45634 | - ,Obj5::sampleThrow() | |
| 45635 | - ,Obj5::sampleThrows() | |
| 45636 | - ,Obj5::sampleTimeOnly() | |
| 45637 | - ,Obj5::sampleTimeOnlyConverter() | |
| 45638 | - ,Obj5::sampleTimeZone() | |
| 45639 | - ,Obj5::sampleToDict() | |
| 45640 | - ,Obj5::sampleToJSON() | |
| 45641 | - ,Obj5::sampleToString() | |
| 45642 | - ,Obj5::sampleTopLevel() | |
| 45643 | - ,Obj5::sampleTransient() | |
| 45644 | - ,Obj5::sampleTrue() | |
| 45645 | - ,Obj5::sampleTry() | |
| 45646 | - ,Obj5::sampleType() | |
| 45647 | - ,Obj5::sampleTypealias() | |
| 45648 | - ,Obj5::sampleTypedef() | |
| 45649 | - ,Obj5::sampleTypeid() | |
| 45650 | - ,Obj5::sampleTypename() | |
| 45651 | - ,Obj5::sampleTypeof() | |
| 45652 | - ,Obj5::sampleUint() | |
| 45653 | - ,Obj5::sampleUlong() | |
| 45654 | - ,Obj5::sampleUnchecked() | |
| 45655 | - ,Obj5::sampleUndefined() | |
| 45656 | - ,Obj5::sampleUnion() | |
| 45657 | - ,Obj5::sampleUnmarshalJSON() | |
| 45658 | - ,Obj5::sampleUnowned() | |
| 45659 | - ,Obj5::sampleUnsafe() | |
| 45660 | - ,Obj5::sampleUseSerializers() | |
| 46148 | + public static function sample(): S { | |
| 46149 | + return new S( | |
| 46150 | + S::sampleS() | |
| 45661 | 46151 | ); |
| 45662 | 46152 | } |
| 45663 | 46153 | } |
| 45664 | 46154 | |
| 45665 | -// This is an autogenerated file:KSerializer | |
| 46155 | +// This is an autogenerated file:Sbyte | |
| 45666 | 46156 | |
| 45667 | -class KSerializer { | |
| 45668 | - private int $kSerializer; // json:KSerializer Required | |
| 46157 | +class Sbyte { | |
| 46158 | + private int $sbyte; // json:sbyte Required | |
| 45669 | 46159 | |
| 45670 | 46160 | /** |
| 45671 | - * @param int $kSerializer | |
| 46161 | + * @param int $sbyte | |
| 45672 | 46162 | */ |
| 45673 | - public function __construct(int $kSerializer) { | |
| 45674 | - $this->kSerializer = $kSerializer; | |
| 46163 | + public function __construct(int $sbyte) { | |
| 46164 | + $this->sbyte = $sbyte; | |
| 45675 | 46165 | } |
| 45676 | 46166 | |
| 45677 | 46167 | /** |
| @@ -45679,7 +46169,7 @@ class KSerializer { | ||
| 45679 | 46169 | * @throws Exception |
| 45680 | 46170 | * @return int |
| 45681 | 46171 | */ |
| 45682 | - public static function fromKSerializer(int $value): int { | |
| 46172 | + public static function fromSbyte(int $value): int { | |
| 45683 | 46173 | return $value; /*int*/ |
| 45684 | 46174 | } |
| 45685 | 46175 | |
| @@ -45687,11 +46177,11 @@ class KSerializer { | ||
| 45687 | 46177 | * @throws Exception |
| 45688 | 46178 | * @return int |
| 45689 | 46179 | */ |
| 45690 | - public function toKSerializer(): int { | |
| 45691 | - if (KSerializer::validateKSerializer($this->kSerializer)) { | |
| 45692 | - return $this->kSerializer; /*int*/ | |
| 46180 | + public function toSbyte(): int { | |
| 46181 | + if (Sbyte::validateSbyte($this->sbyte)) { | |
| 46182 | + return $this->sbyte; /*int*/ | |
| 45693 | 46183 | } |
| 45694 | - throw new Exception('never get to this KSerializer::kSerializer'); | |
| 46184 | + throw new Exception('never get to this Sbyte::sbyte'); | |
| 45695 | 46185 | } |
| 45696 | 46186 | |
| 45697 | 46187 | /** |
| @@ -45699,7 +46189,7 @@ class KSerializer { | ||
| 45699 | 46189 | * @return bool |
| 45700 | 46190 | * @throws Exception |
| 45701 | 46191 | */ |
| 45702 | - public static function validateKSerializer(int $value): bool { | |
| 46192 | + public static function validateSbyte(int $value): bool { | |
| 45703 | 46193 | return true; |
| 45704 | 46194 | } |
| 45705 | 46195 | |
| @@ -45707,18 +46197,18 @@ class KSerializer { | ||
| 45707 | 46197 | * @throws Exception |
| 45708 | 46198 | * @return int |
| 45709 | 46199 | */ |
| 45710 | - public function getKSerializer(): int { | |
| 45711 | - if (KSerializer::validateKSerializer($this->kSerializer)) { | |
| 45712 | - return $this->kSerializer; | |
| 46200 | + public function getSbyte(): int { | |
| 46201 | + if (Sbyte::validateSbyte($this->sbyte)) { | |
| 46202 | + return $this->sbyte; | |
| 45713 | 46203 | } |
| 45714 | - throw new Exception('never get to getKSerializer KSerializer::kSerializer'); | |
| 46204 | + throw new Exception('never get to getSbyte Sbyte::sbyte'); | |
| 45715 | 46205 | } |
| 45716 | 46206 | |
| 45717 | 46207 | /** |
| 45718 | 46208 | * @return int |
| 45719 | 46209 | */ |
| 45720 | - public static function sampleKSerializer(): int { | |
| 45721 | - return 31; /*31:kSerializer*/ | |
| 46210 | + public static function sampleSbyte(): int { | |
| 46211 | + return 31; /*31:sbyte*/ | |
| 45722 | 46212 | } |
| 45723 | 46213 | |
| 45724 | 46214 | /** |
| @@ -45726,7 +46216,7 @@ class KSerializer { | ||
| 45726 | 46216 | * @return bool |
| 45727 | 46217 | */ |
| 45728 | 46218 | public function validate(): bool { |
| 45729 | - return KSerializer::validateKSerializer($this->kSerializer); | |
| 46219 | + return Sbyte::validateSbyte($this->sbyte); | |
| 45730 | 46220 | } |
| 45731 | 46221 | |
| 45732 | 46222 | /** |
| @@ -45735,44 +46225,44 @@ class KSerializer { | ||
| 45735 | 46225 | */ |
| 45736 | 46226 | public function to(): stdClass { |
| 45737 | 46227 | $out = new stdClass(); |
| 45738 | - $out->{'KSerializer'} = $this->toKSerializer(); | |
| 46228 | + $out->{'sbyte'} = $this->toSbyte(); | |
| 45739 | 46229 | return $out; |
| 45740 | 46230 | } |
| 45741 | 46231 | |
| 45742 | 46232 | /** |
| 45743 | 46233 | * @param stdClass $obj |
| 45744 | - * @return KSerializer | |
| 46234 | + * @return Sbyte | |
| 45745 | 46235 | * @throws Exception |
| 45746 | 46236 | */ |
| 45747 | - public static function from(stdClass $obj): KSerializer { | |
| 45748 | - if (!property_exists($obj, 'KSerializer')) { | |
| 46237 | + public static function from(stdClass $obj): Sbyte { | |
| 46238 | + if (!property_exists($obj, 'sbyte')) { | |
| 45749 | 46239 | throw new Exception("Missing required property"); |
| 45750 | 46240 | } |
| 45751 | - return new KSerializer( | |
| 45752 | - KSerializer::fromKSerializer($obj->{'KSerializer'}) | |
| 46241 | + return new Sbyte( | |
| 46242 | + Sbyte::fromSbyte($obj->{'sbyte'}) | |
| 45753 | 46243 | ); |
| 45754 | 46244 | } |
| 45755 | 46245 | |
| 45756 | 46246 | /** |
| 45757 | - * @return KSerializer | |
| 46247 | + * @return Sbyte | |
| 45758 | 46248 | */ |
| 45759 | - public static function sample(): KSerializer { | |
| 45760 | - return new KSerializer( | |
| 45761 | - KSerializer::sampleKSerializer() | |
| 46249 | + public static function sample(): Sbyte { | |
| 46250 | + return new Sbyte( | |
| 46251 | + Sbyte::sampleSbyte() | |
| 45762 | 46252 | ); |
| 45763 | 46253 | } |
| 45764 | 46254 | } |
| 45765 | 46255 | |
| 45766 | -// This is an autogenerated file:Obj5Self | |
| 46256 | +// This is an autogenerated file:Sealed | |
| 45767 | 46257 | |
| 45768 | -class Obj5Self { | |
| 45769 | - private int $self; // json:self Required | |
| 46258 | +class Sealed { | |
| 46259 | + private int $sealed; // json:sealed Required | |
| 45770 | 46260 | |
| 45771 | 46261 | /** |
| 45772 | - * @param int $self | |
| 46262 | + * @param int $sealed | |
| 45773 | 46263 | */ |
| 45774 | - public function __construct(int $self) { | |
| 45775 | - $this->self = $self; | |
| 46264 | + public function __construct(int $sealed) { | |
| 46265 | + $this->sealed = $sealed; | |
| 45776 | 46266 | } |
| 45777 | 46267 | |
| 45778 | 46268 | /** |
| @@ -45780,7 +46270,7 @@ class Obj5Self { | ||
| 45780 | 46270 | * @throws Exception |
| 45781 | 46271 | * @return int |
| 45782 | 46272 | */ |
| 45783 | - public static function fromSelf(int $value): int { | |
| 46273 | + public static function fromSealed(int $value): int { | |
| 45784 | 46274 | return $value; /*int*/ |
| 45785 | 46275 | } |
| 45786 | 46276 | |
| @@ -45788,11 +46278,11 @@ class Obj5Self { | ||
| 45788 | 46278 | * @throws Exception |
| 45789 | 46279 | * @return int |
| 45790 | 46280 | */ |
| 45791 | - public function toSelf(): int { | |
| 45792 | - if (Obj5Self::validateSelf($this->self)) { | |
| 45793 | - return $this->self; /*int*/ | |
| 46281 | + public function toSealed(): int { | |
| 46282 | + if (Sealed::validateSealed($this->sealed)) { | |
| 46283 | + return $this->sealed; /*int*/ | |
| 45794 | 46284 | } |
| 45795 | - throw new Exception('never get to this Obj5Self::self'); | |
| 46285 | + throw new Exception('never get to this Sealed::sealed'); | |
| 45796 | 46286 | } |
| 45797 | 46287 | |
| 45798 | 46288 | /** |
| @@ -45800,7 +46290,7 @@ class Obj5Self { | ||
| 45800 | 46290 | * @return bool |
| 45801 | 46291 | * @throws Exception |
| 45802 | 46292 | */ |
| 45803 | - public static function validateSelf(int $value): bool { | |
| 46293 | + public static function validateSealed(int $value): bool { | |
| 45804 | 46294 | return true; |
| 45805 | 46295 | } |
| 45806 | 46296 | |
| @@ -45808,18 +46298,18 @@ class Obj5Self { | ||
| 45808 | 46298 | * @throws Exception |
| 45809 | 46299 | * @return int |
| 45810 | 46300 | */ |
| 45811 | - public function getSelf(): int { | |
| 45812 | - if (Obj5Self::validateSelf($this->self)) { | |
| 45813 | - return $this->self; | |
| 46301 | + public function getSealed(): int { | |
| 46302 | + if (Sealed::validateSealed($this->sealed)) { | |
| 46303 | + return $this->sealed; | |
| 45814 | 46304 | } |
| 45815 | - throw new Exception('never get to getSelf Obj5Self::self'); | |
| 46305 | + throw new Exception('never get to getSealed Sealed::sealed'); | |
| 45816 | 46306 | } |
| 45817 | 46307 | |
| 45818 | 46308 | /** |
| 45819 | 46309 | * @return int |
| 45820 | 46310 | */ |
| 45821 | - public static function sampleSelf(): int { | |
| 45822 | - return 31; /*31:self*/ | |
| 46311 | + public static function sampleSealed(): int { | |
| 46312 | + return 31; /*31:sealed*/ | |
| 45823 | 46313 | } |
| 45824 | 46314 | |
| 45825 | 46315 | /** |
| @@ -45827,7 +46317,7 @@ class Obj5Self { | ||
| 45827 | 46317 | * @return bool |
| 45828 | 46318 | */ |
| 45829 | 46319 | public function validate(): bool { |
| 45830 | - return Obj5Self::validateSelf($this->self); | |
| 46320 | + return Sealed::validateSealed($this->sealed); | |
| 45831 | 46321 | } |
| 45832 | 46322 | |
| 45833 | 46323 | /** |
| @@ -45836,44 +46326,44 @@ class Obj5Self { | ||
| 45836 | 46326 | */ |
| 45837 | 46327 | public function to(): stdClass { |
| 45838 | 46328 | $out = new stdClass(); |
| 45839 | - $out->{'self'} = $this->toSelf(); | |
| 46329 | + $out->{'sealed'} = $this->toSealed(); | |
| 45840 | 46330 | return $out; |
| 45841 | 46331 | } |
| 45842 | 46332 | |
| 45843 | 46333 | /** |
| 45844 | 46334 | * @param stdClass $obj |
| 45845 | - * @return Obj5Self | |
| 46335 | + * @return Sealed | |
| 45846 | 46336 | * @throws Exception |
| 45847 | 46337 | */ |
| 45848 | - public static function from(stdClass $obj): Obj5Self { | |
| 45849 | - if (!property_exists($obj, 'self')) { | |
| 46338 | + public static function from(stdClass $obj): Sealed { | |
| 46339 | + if (!property_exists($obj, 'sealed')) { | |
| 45850 | 46340 | throw new Exception("Missing required property"); |
| 45851 | 46341 | } |
| 45852 | - return new Obj5Self( | |
| 45853 | - Obj5Self::fromSelf($obj->{'self'}) | |
| 46342 | + return new Sealed( | |
| 46343 | + Sealed::fromSealed($obj->{'sealed'}) | |
| 45854 | 46344 | ); |
| 45855 | 46345 | } |
| 45856 | 46346 | |
| 45857 | 46347 | /** |
| 45858 | - * @return Obj5Self | |
| 46348 | + * @return Sealed | |
| 45859 | 46349 | */ |
| 45860 | - public static function sample(): Obj5Self { | |
| 45861 | - return new Obj5Self( | |
| 45862 | - Obj5Self::sampleSelf() | |
| 46350 | + public static function sample(): Sealed { | |
| 46351 | + return new Sealed( | |
| 46352 | + Sealed::sampleSealed() | |
| 45863 | 46353 | ); |
| 45864 | 46354 | } |
| 45865 | 46355 | } |
| 45866 | 46356 | |
| 45867 | -// This is an autogenerated file:This | |
| 46357 | +// This is an autogenerated file:Sel | |
| 45868 | 46358 | |
| 45869 | -class This { | |
| 45870 | - private int $thisThis; // json:this Required | |
| 46359 | +class Sel { | |
| 46360 | + private int $sel; // json:SEL Required | |
| 45871 | 46361 | |
| 45872 | 46362 | /** |
| 45873 | - * @param int $thisThis | |
| 46363 | + * @param int $sel | |
| 45874 | 46364 | */ |
| 45875 | - public function __construct(int $thisThis) { | |
| 45876 | - $this->thisThis = $thisThis; | |
| 46365 | + public function __construct(int $sel) { | |
| 46366 | + $this->sel = $sel; | |
| 45877 | 46367 | } |
| 45878 | 46368 | |
| 45879 | 46369 | /** |
| @@ -45881,7 +46371,7 @@ class This { | ||
| 45881 | 46371 | * @throws Exception |
| 45882 | 46372 | * @return int |
| 45883 | 46373 | */ |
| 45884 | - public static function fromThisThis(int $value): int { | |
| 46374 | + public static function fromSel(int $value): int { | |
| 45885 | 46375 | return $value; /*int*/ |
| 45886 | 46376 | } |
| 45887 | 46377 | |
| @@ -45889,11 +46379,11 @@ class This { | ||
| 45889 | 46379 | * @throws Exception |
| 45890 | 46380 | * @return int |
| 45891 | 46381 | */ |
| 45892 | - public function toThisThis(): int { | |
| 45893 | - if (This::validateThisThis($this->thisThis)) { | |
| 45894 | - return $this->thisThis; /*int*/ | |
| 46382 | + public function toSel(): int { | |
| 46383 | + if (Sel::validateSel($this->sel)) { | |
| 46384 | + return $this->sel; /*int*/ | |
| 45895 | 46385 | } |
| 45896 | - throw new Exception('never get to this This::thisThis'); | |
| 46386 | + throw new Exception('never get to this Sel::sel'); | |
| 45897 | 46387 | } |
| 45898 | 46388 | |
| 45899 | 46389 | /** |
| @@ -45901,7 +46391,7 @@ class This { | ||
| 45901 | 46391 | * @return bool |
| 45902 | 46392 | * @throws Exception |
| 45903 | 46393 | */ |
| 45904 | - public static function validateThisThis(int $value): bool { | |
| 46394 | + public static function validateSel(int $value): bool { | |
| 45905 | 46395 | return true; |
| 45906 | 46396 | } |
| 45907 | 46397 | |
| @@ -45909,18 +46399,18 @@ class This { | ||
| 45909 | 46399 | * @throws Exception |
| 45910 | 46400 | * @return int |
| 45911 | 46401 | */ |
| 45912 | - public function getThisThis(): int { | |
| 45913 | - if (This::validateThisThis($this->thisThis)) { | |
| 45914 | - return $this->thisThis; | |
| 46402 | + public function getSel(): int { | |
| 46403 | + if (Sel::validateSel($this->sel)) { | |
| 46404 | + return $this->sel; | |
| 45915 | 46405 | } |
| 45916 | - throw new Exception('never get to getThisThis This::thisThis'); | |
| 46406 | + throw new Exception('never get to getSel Sel::sel'); | |
| 45917 | 46407 | } |
| 45918 | 46408 | |
| 45919 | 46409 | /** |
| 45920 | 46410 | * @return int |
| 45921 | 46411 | */ |
| 45922 | - public static function sampleThisThis(): int { | |
| 45923 | - return 31; /*31:thisThis*/ | |
| 46412 | + public static function sampleSel(): int { | |
| 46413 | + return 31; /*31:sel*/ | |
| 45924 | 46414 | } |
| 45925 | 46415 | |
| 45926 | 46416 | /** |
| @@ -45928,7 +46418,7 @@ class This { | ||
| 45928 | 46418 | * @return bool |
| 45929 | 46419 | */ |
| 45930 | 46420 | public function validate(): bool { |
| 45931 | - return This::validateThisThis($this->thisThis); | |
| 46421 | + return Sel::validateSel($this->sel); | |
| 45932 | 46422 | } |
| 45933 | 46423 | |
| 45934 | 46424 | /** |
| @@ -45937,44 +46427,44 @@ class This { | ||
| 45937 | 46427 | */ |
| 45938 | 46428 | public function to(): stdClass { |
| 45939 | 46429 | $out = new stdClass(); |
| 45940 | - $out->{'this'} = $this->toThisThis(); | |
| 46430 | + $out->{'SEL'} = $this->toSel(); | |
| 45941 | 46431 | return $out; |
| 45942 | 46432 | } |
| 45943 | 46433 | |
| 45944 | 46434 | /** |
| 45945 | 46435 | * @param stdClass $obj |
| 45946 | - * @return This | |
| 46436 | + * @return Sel | |
| 45947 | 46437 | * @throws Exception |
| 45948 | 46438 | */ |
| 45949 | - public static function from(stdClass $obj): This { | |
| 45950 | - if (!property_exists($obj, 'this')) { | |
| 46439 | + public static function from(stdClass $obj): Sel { | |
| 46440 | + if (!property_exists($obj, 'SEL')) { | |
| 45951 | 46441 | throw new Exception("Missing required property"); |
| 45952 | 46442 | } |
| 45953 | - return new This( | |
| 45954 | - This::fromThisThis($obj->{'this'}) | |
| 46443 | + return new Sel( | |
| 46444 | + Sel::fromSel($obj->{'SEL'}) | |
| 45955 | 46445 | ); |
| 45956 | 46446 | } |
| 45957 | 46447 | |
| 45958 | 46448 | /** |
| 45959 | - * @return This | |
| 46449 | + * @return Sel | |
| 45960 | 46450 | */ |
| 45961 | - public static function sample(): This { | |
| 45962 | - return new This( | |
| 45963 | - This::sampleThisThis() | |
| 46451 | + public static function sample(): Sel { | |
| 46452 | + return new Sel( | |
| 46453 | + Sel::sampleSel() | |
| 45964 | 46454 | ); |
| 45965 | 46455 | } |
| 45966 | 46456 | } |
| 45967 | 46457 | |
| 45968 | -// This is an autogenerated file:Obj5True | |
| 46458 | +// This is an autogenerated file:Select | |
| 45969 | 46459 | |
| 45970 | -class Obj5True { | |
| 45971 | - private int $true; // json:true Required | |
| 46460 | +class Select { | |
| 46461 | + private int $select; // json:select Required | |
| 45972 | 46462 | |
| 45973 | 46463 | /** |
| 45974 | - * @param int $true | |
| 46464 | + * @param int $select | |
| 45975 | 46465 | */ |
| 45976 | - public function __construct(int $true) { | |
| 45977 | - $this->true = $true; | |
| 46466 | + public function __construct(int $select) { | |
| 46467 | + $this->select = $select; | |
| 45978 | 46468 | } |
| 45979 | 46469 | |
| 45980 | 46470 | /** |
| @@ -45982,7 +46472,7 @@ class Obj5True { | ||
| 45982 | 46472 | * @throws Exception |
| 45983 | 46473 | * @return int |
| 45984 | 46474 | */ |
| 45985 | - public static function fromTrue(int $value): int { | |
| 46475 | + public static function fromSelect(int $value): int { | |
| 45986 | 46476 | return $value; /*int*/ |
| 45987 | 46477 | } |
| 45988 | 46478 | |
| @@ -45990,11 +46480,11 @@ class Obj5True { | ||
| 45990 | 46480 | * @throws Exception |
| 45991 | 46481 | * @return int |
| 45992 | 46482 | */ |
| 45993 | - public function toTrue(): int { | |
| 45994 | - if (Obj5True::validateTrue($this->true)) { | |
| 45995 | - return $this->true; /*int*/ | |
| 46483 | + public function toSelect(): int { | |
| 46484 | + if (Select::validateSelect($this->select)) { | |
| 46485 | + return $this->select; /*int*/ | |
| 45996 | 46486 | } |
| 45997 | - throw new Exception('never get to this Obj5True::true'); | |
| 46487 | + throw new Exception('never get to this Select::select'); | |
| 45998 | 46488 | } |
| 45999 | 46489 | |
| 46000 | 46490 | /** |
| @@ -46002,7 +46492,7 @@ class Obj5True { | ||
| 46002 | 46492 | * @return bool |
| 46003 | 46493 | * @throws Exception |
| 46004 | 46494 | */ |
| 46005 | - public static function validateTrue(int $value): bool { | |
| 46495 | + public static function validateSelect(int $value): bool { | |
| 46006 | 46496 | return true; |
| 46007 | 46497 | } |
| 46008 | 46498 | |
| @@ -46010,18 +46500,18 @@ class Obj5True { | ||
| 46010 | 46500 | * @throws Exception |
| 46011 | 46501 | * @return int |
| 46012 | 46502 | */ |
| 46013 | - public function getTrue(): int { | |
| 46014 | - if (Obj5True::validateTrue($this->true)) { | |
| 46015 | - return $this->true; | |
| 46503 | + public function getSelect(): int { | |
| 46504 | + if (Select::validateSelect($this->select)) { | |
| 46505 | + return $this->select; | |
| 46016 | 46506 | } |
| 46017 | - throw new Exception('never get to getTrue Obj5True::true'); | |
| 46507 | + throw new Exception('never get to getSelect Select::select'); | |
| 46018 | 46508 | } |
| 46019 | 46509 | |
| 46020 | 46510 | /** |
| 46021 | 46511 | * @return int |
| 46022 | 46512 | */ |
| 46023 | - public static function sampleTrue(): int { | |
| 46024 | - return 31; /*31:true*/ | |
| 46513 | + public static function sampleSelect(): int { | |
| 46514 | + return 31; /*31:select*/ | |
| 46025 | 46515 | } |
| 46026 | 46516 | |
| 46027 | 46517 | /** |
| @@ -46029,7 +46519,7 @@ class Obj5True { | ||
| 46029 | 46519 | * @return bool |
| 46030 | 46520 | */ |
| 46031 | 46521 | public function validate(): bool { |
| 46032 | - return Obj5True::validateTrue($this->true); | |
| 46522 | + return Select::validateSelect($this->select); | |
| 46033 | 46523 | } |
| 46034 | 46524 | |
| 46035 | 46525 | /** |
| @@ -46038,44 +46528,44 @@ class Obj5True { | ||
| 46038 | 46528 | */ |
| 46039 | 46529 | public function to(): stdClass { |
| 46040 | 46530 | $out = new stdClass(); |
| 46041 | - $out->{'true'} = $this->toTrue(); | |
| 46531 | + $out->{'select'} = $this->toSelect(); | |
| 46042 | 46532 | return $out; |
| 46043 | 46533 | } |
| 46044 | 46534 | |
| 46045 | 46535 | /** |
| 46046 | 46536 | * @param stdClass $obj |
| 46047 | - * @return Obj5True | |
| 46537 | + * @return Select | |
| 46048 | 46538 | * @throws Exception |
| 46049 | 46539 | */ |
| 46050 | - public static function from(stdClass $obj): Obj5True { | |
| 46051 | - if (!property_exists($obj, 'true')) { | |
| 46540 | + public static function from(stdClass $obj): Select { | |
| 46541 | + if (!property_exists($obj, 'select')) { | |
| 46052 | 46542 | throw new Exception("Missing required property"); |
| 46053 | 46543 | } |
| 46054 | - return new Obj5True( | |
| 46055 | - Obj5True::fromTrue($obj->{'true'}) | |
| 46544 | + return new Select( | |
| 46545 | + Select::fromSelect($obj->{'select'}) | |
| 46056 | 46546 | ); |
| 46057 | 46547 | } |
| 46058 | 46548 | |
| 46059 | 46549 | /** |
| 46060 | - * @return Obj5True | |
| 46550 | + * @return Select | |
| 46061 | 46551 | */ |
| 46062 | - public static function sample(): Obj5True { | |
| 46063 | - return new Obj5True( | |
| 46064 | - Obj5True::sampleTrue() | |
| 46552 | + public static function sample(): Select { | |
| 46553 | + return new Select( | |
| 46554 | + Select::sampleSelect() | |
| 46065 | 46555 | ); |
| 46066 | 46556 | } |
| 46067 | 46557 | } |
| 46068 | 46558 | |
| 46069 | -// This is an autogenerated file:TypeClass | |
| 46559 | +// This is an autogenerated file:SelfClass | |
| 46070 | 46560 | |
| 46071 | -class TypeClass { | |
| 46072 | - private int $type; // json:type Required | |
| 46561 | +class SelfClass { | |
| 46562 | + private int $self; // json:Self Required | |
| 46073 | 46563 | |
| 46074 | 46564 | /** |
| 46075 | - * @param int $type | |
| 46565 | + * @param int $self | |
| 46076 | 46566 | */ |
| 46077 | - public function __construct(int $type) { | |
| 46078 | - $this->type = $type; | |
| 46567 | + public function __construct(int $self) { | |
| 46568 | + $this->self = $self; | |
| 46079 | 46569 | } |
| 46080 | 46570 | |
| 46081 | 46571 | /** |
| @@ -46083,7 +46573,7 @@ class TypeClass { | ||
| 46083 | 46573 | * @throws Exception |
| 46084 | 46574 | * @return int |
| 46085 | 46575 | */ |
| 46086 | - public static function fromType(int $value): int { | |
| 46576 | + public static function fromSelf(int $value): int { | |
| 46087 | 46577 | return $value; /*int*/ |
| 46088 | 46578 | } |
| 46089 | 46579 | |
| @@ -46091,11 +46581,11 @@ class TypeClass { | ||
| 46091 | 46581 | * @throws Exception |
| 46092 | 46582 | * @return int |
| 46093 | 46583 | */ |
| 46094 | - public function toType(): int { | |
| 46095 | - if (TypeClass::validateType($this->type)) { | |
| 46096 | - return $this->type; /*int*/ | |
| 46584 | + public function toSelf(): int { | |
| 46585 | + if (SelfClass::validateSelf($this->self)) { | |
| 46586 | + return $this->self; /*int*/ | |
| 46097 | 46587 | } |
| 46098 | - throw new Exception('never get to this TypeClass::type'); | |
| 46588 | + throw new Exception('never get to this SelfClass::self'); | |
| 46099 | 46589 | } |
| 46100 | 46590 | |
| 46101 | 46591 | /** |
| @@ -46103,7 +46593,7 @@ class TypeClass { | ||
| 46103 | 46593 | * @return bool |
| 46104 | 46594 | * @throws Exception |
| 46105 | 46595 | */ |
| 46106 | - public static function validateType(int $value): bool { | |
| 46596 | + public static function validateSelf(int $value): bool { | |
| 46107 | 46597 | return true; |
| 46108 | 46598 | } |
| 46109 | 46599 | |
| @@ -46111,18 +46601,18 @@ class TypeClass { | ||
| 46111 | 46601 | * @throws Exception |
| 46112 | 46602 | * @return int |
| 46113 | 46603 | */ |
| 46114 | - public function getType(): int { | |
| 46115 | - if (TypeClass::validateType($this->type)) { | |
| 46116 | - return $this->type; | |
| 46604 | + public function getSelf(): int { | |
| 46605 | + if (SelfClass::validateSelf($this->self)) { | |
| 46606 | + return $this->self; | |
| 46117 | 46607 | } |
| 46118 | - throw new Exception('never get to getType TypeClass::type'); | |
| 46608 | + throw new Exception('never get to getSelf SelfClass::self'); | |
| 46119 | 46609 | } |
| 46120 | 46610 | |
| 46121 | 46611 | /** |
| 46122 | 46612 | * @return int |
| 46123 | 46613 | */ |
| 46124 | - public static function sampleType(): int { | |
| 46125 | - return 31; /*31:type*/ | |
| 46614 | + public static function sampleSelf(): int { | |
| 46615 | + return 31; /*31:self*/ | |
| 46126 | 46616 | } |
| 46127 | 46617 | |
| 46128 | 46618 | /** |
| @@ -46130,7 +46620,7 @@ class TypeClass { | ||
| 46130 | 46620 | * @return bool |
| 46131 | 46621 | */ |
| 46132 | 46622 | public function validate(): bool { |
| 46133 | - return TypeClass::validateType($this->type); | |
| 46623 | + return SelfClass::validateSelf($this->self); | |
| 46134 | 46624 | } |
| 46135 | 46625 | |
| 46136 | 46626 | /** |
| @@ -46139,44 +46629,44 @@ class TypeClass { | ||
| 46139 | 46629 | */ |
| 46140 | 46630 | public function to(): stdClass { |
| 46141 | 46631 | $out = new stdClass(); |
| 46142 | - $out->{'type'} = $this->toType(); | |
| 46632 | + $out->{'Self'} = $this->toSelf(); | |
| 46143 | 46633 | return $out; |
| 46144 | 46634 | } |
| 46145 | 46635 | |
| 46146 | 46636 | /** |
| 46147 | 46637 | * @param stdClass $obj |
| 46148 | - * @return TypeClass | |
| 46638 | + * @return SelfClass | |
| 46149 | 46639 | * @throws Exception |
| 46150 | 46640 | */ |
| 46151 | - public static function from(stdClass $obj): TypeClass { | |
| 46152 | - if (!property_exists($obj, 'type')) { | |
| 46641 | + public static function from(stdClass $obj): SelfClass { | |
| 46642 | + if (!property_exists($obj, 'Self')) { | |
| 46153 | 46643 | throw new Exception("Missing required property"); |
| 46154 | 46644 | } |
| 46155 | - return new TypeClass( | |
| 46156 | - TypeClass::fromType($obj->{'type'}) | |
| 46645 | + return new SelfClass( | |
| 46646 | + SelfClass::fromSelf($obj->{'Self'}) | |
| 46157 | 46647 | ); |
| 46158 | 46648 | } |
| 46159 | 46649 | |
| 46160 | 46650 | /** |
| 46161 | - * @return TypeClass | |
| 46651 | + * @return SelfClass | |
| 46162 | 46652 | */ |
| 46163 | - public static function sample(): TypeClass { | |
| 46164 | - return new TypeClass( | |
| 46165 | - TypeClass::sampleType() | |
| 46653 | + public static function sample(): SelfClass { | |
| 46654 | + return new SelfClass( | |
| 46655 | + SelfClass::sampleSelf() | |
| 46166 | 46656 | ); |
| 46167 | 46657 | } |
| 46168 | 46658 | } |
| 46169 | 46659 | |
| 46170 | -// This is an autogenerated file:PrimitiveKind | |
| 46660 | +// This is an autogenerated file:Sendable | |
| 46171 | 46661 | |
| 46172 | -class PrimitiveKind { | |
| 46173 | - private int $primitiveKind; // json:PrimitiveKind Required | |
| 46662 | +class Sendable { | |
| 46663 | + private int $sendable; // json:Sendable Required | |
| 46174 | 46664 | |
| 46175 | 46665 | /** |
| 46176 | - * @param int $primitiveKind | |
| 46666 | + * @param int $sendable | |
| 46177 | 46667 | */ |
| 46178 | - public function __construct(int $primitiveKind) { | |
| 46179 | - $this->primitiveKind = $primitiveKind; | |
| 46668 | + public function __construct(int $sendable) { | |
| 46669 | + $this->sendable = $sendable; | |
| 46180 | 46670 | } |
| 46181 | 46671 | |
| 46182 | 46672 | /** |
| @@ -46184,7 +46674,7 @@ class PrimitiveKind { | ||
| 46184 | 46674 | * @throws Exception |
| 46185 | 46675 | * @return int |
| 46186 | 46676 | */ |
| 46187 | - public static function fromPrimitiveKind(int $value): int { | |
| 46677 | + public static function fromSendable(int $value): int { | |
| 46188 | 46678 | return $value; /*int*/ |
| 46189 | 46679 | } |
| 46190 | 46680 | |
| @@ -46192,11 +46682,11 @@ class PrimitiveKind { | ||
| 46192 | 46682 | * @throws Exception |
| 46193 | 46683 | * @return int |
| 46194 | 46684 | */ |
| 46195 | - public function toPrimitiveKind(): int { | |
| 46196 | - if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) { | |
| 46197 | - return $this->primitiveKind; /*int*/ | |
| 46685 | + public function toSendable(): int { | |
| 46686 | + if (Sendable::validateSendable($this->sendable)) { | |
| 46687 | + return $this->sendable; /*int*/ | |
| 46198 | 46688 | } |
| 46199 | - throw new Exception('never get to this PrimitiveKind::primitiveKind'); | |
| 46689 | + throw new Exception('never get to this Sendable::sendable'); | |
| 46200 | 46690 | } |
| 46201 | 46691 | |
| 46202 | 46692 | /** |
| @@ -46204,7 +46694,7 @@ class PrimitiveKind { | ||
| 46204 | 46694 | * @return bool |
| 46205 | 46695 | * @throws Exception |
| 46206 | 46696 | */ |
| 46207 | - public static function validatePrimitiveKind(int $value): bool { | |
| 46697 | + public static function validateSendable(int $value): bool { | |
| 46208 | 46698 | return true; |
| 46209 | 46699 | } |
| 46210 | 46700 | |
| @@ -46212,18 +46702,18 @@ class PrimitiveKind { | ||
| 46212 | 46702 | * @throws Exception |
| 46213 | 46703 | * @return int |
| 46214 | 46704 | */ |
| 46215 | - public function getPrimitiveKind(): int { | |
| 46216 | - if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) { | |
| 46217 | - return $this->primitiveKind; | |
| 46705 | + public function getSendable(): int { | |
| 46706 | + if (Sendable::validateSendable($this->sendable)) { | |
| 46707 | + return $this->sendable; | |
| 46218 | 46708 | } |
| 46219 | - throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind'); | |
| 46709 | + throw new Exception('never get to getSendable Sendable::sendable'); | |
| 46220 | 46710 | } |
| 46221 | 46711 | |
| 46222 | 46712 | /** |
| 46223 | 46713 | * @return int |
| 46224 | 46714 | */ |
| 46225 | - public static function samplePrimitiveKind(): int { | |
| 46226 | - return 31; /*31:primitiveKind*/ | |
| 46715 | + public static function sampleSendable(): int { | |
| 46716 | + return 31; /*31:sendable*/ | |
| 46227 | 46717 | } |
| 46228 | 46718 | |
| 46229 | 46719 | /** |
| @@ -46231,7 +46721,7 @@ class PrimitiveKind { | ||
| 46231 | 46721 | * @return bool |
| 46232 | 46722 | */ |
| 46233 | 46723 | public function validate(): bool { |
| 46234 | - return PrimitiveKind::validatePrimitiveKind($this->primitiveKind); | |
| 46724 | + return Sendable::validateSendable($this->sendable); | |
| 46235 | 46725 | } |
| 46236 | 46726 | |
| 46237 | 46727 | /** |
| @@ -46240,44 +46730,44 @@ class PrimitiveKind { | ||
| 46240 | 46730 | */ |
| 46241 | 46731 | public function to(): stdClass { |
| 46242 | 46732 | $out = new stdClass(); |
| 46243 | - $out->{'PrimitiveKind'} = $this->toPrimitiveKind(); | |
| 46733 | + $out->{'Sendable'} = $this->toSendable(); | |
| 46244 | 46734 | return $out; |
| 46245 | 46735 | } |
| 46246 | 46736 | |
| 46247 | 46737 | /** |
| 46248 | 46738 | * @param stdClass $obj |
| 46249 | - * @return PrimitiveKind | |
| 46739 | + * @return Sendable | |
| 46250 | 46740 | * @throws Exception |
| 46251 | 46741 | */ |
| 46252 | - public static function from(stdClass $obj): PrimitiveKind { | |
| 46253 | - if (!property_exists($obj, 'PrimitiveKind')) { | |
| 46742 | + public static function from(stdClass $obj): Sendable { | |
| 46743 | + if (!property_exists($obj, 'Sendable')) { | |
| 46254 | 46744 | throw new Exception("Missing required property"); |
| 46255 | 46745 | } |
| 46256 | - return new PrimitiveKind( | |
| 46257 | - PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'}) | |
| 46746 | + return new Sendable( | |
| 46747 | + Sendable::fromSendable($obj->{'Sendable'}) | |
| 46258 | 46748 | ); |
| 46259 | 46749 | } |
| 46260 | 46750 | |
| 46261 | 46751 | /** |
| 46262 | - * @return PrimitiveKind | |
| 46752 | + * @return Sendable | |
| 46263 | 46753 | */ |
| 46264 | - public static function sample(): PrimitiveKind { | |
| 46265 | - return new PrimitiveKind( | |
| 46266 | - PrimitiveKind::samplePrimitiveKind() | |
| 46754 | + public static function sample(): Sendable { | |
| 46755 | + return new Sendable( | |
| 46756 | + Sendable::sampleSendable() | |
| 46267 | 46757 | ); |
| 46268 | 46758 | } |
| 46269 | 46759 | } |
| 46270 | 46760 | |
| 46271 | -// This is an autogenerated file:Select | |
| 46761 | +// This is an autogenerated file:SerialDescriptor | |
| 46272 | 46762 | |
| 46273 | -class Select { | |
| 46274 | - private int $select; // json:select Required | |
| 46763 | +class SerialDescriptor { | |
| 46764 | + private int $serialDescriptor; // json:SerialDescriptor Required | |
| 46275 | 46765 | |
| 46276 | 46766 | /** |
| 46277 | - * @param int $select | |
| 46767 | + * @param int $serialDescriptor | |
| 46278 | 46768 | */ |
| 46279 | - public function __construct(int $select) { | |
| 46280 | - $this->select = $select; | |
| 46769 | + public function __construct(int $serialDescriptor) { | |
| 46770 | + $this->serialDescriptor = $serialDescriptor; | |
| 46281 | 46771 | } |
| 46282 | 46772 | |
| 46283 | 46773 | /** |
| @@ -46285,7 +46775,7 @@ class Select { | ||
| 46285 | 46775 | * @throws Exception |
| 46286 | 46776 | * @return int |
| 46287 | 46777 | */ |
| 46288 | - public static function fromSelect(int $value): int { | |
| 46778 | + public static function fromSerialDescriptor(int $value): int { | |
| 46289 | 46779 | return $value; /*int*/ |
| 46290 | 46780 | } |
| 46291 | 46781 | |
| @@ -46293,11 +46783,11 @@ class Select { | ||
| 46293 | 46783 | * @throws Exception |
| 46294 | 46784 | * @return int |
| 46295 | 46785 | */ |
| 46296 | - public function toSelect(): int { | |
| 46297 | - if (Select::validateSelect($this->select)) { | |
| 46298 | - return $this->select; /*int*/ | |
| 46786 | + public function toSerialDescriptor(): int { | |
| 46787 | + if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) { | |
| 46788 | + return $this->serialDescriptor; /*int*/ | |
| 46299 | 46789 | } |
| 46300 | - throw new Exception('never get to this Select::select'); | |
| 46790 | + throw new Exception('never get to this SerialDescriptor::serialDescriptor'); | |
| 46301 | 46791 | } |
| 46302 | 46792 | |
| 46303 | 46793 | /** |
| @@ -46305,7 +46795,7 @@ class Select { | ||
| 46305 | 46795 | * @return bool |
| 46306 | 46796 | * @throws Exception |
| 46307 | 46797 | */ |
| 46308 | - public static function validateSelect(int $value): bool { | |
| 46798 | + public static function validateSerialDescriptor(int $value): bool { | |
| 46309 | 46799 | return true; |
| 46310 | 46800 | } |
| 46311 | 46801 | |
| @@ -46313,18 +46803,18 @@ class Select { | ||
| 46313 | 46803 | * @throws Exception |
| 46314 | 46804 | * @return int |
| 46315 | 46805 | */ |
| 46316 | - public function getSelect(): int { | |
| 46317 | - if (Select::validateSelect($this->select)) { | |
| 46318 | - return $this->select; | |
| 46806 | + public function getSerialDescriptor(): int { | |
| 46807 | + if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) { | |
| 46808 | + return $this->serialDescriptor; | |
| 46319 | 46809 | } |
| 46320 | - throw new Exception('never get to getSelect Select::select'); | |
| 46810 | + throw new Exception('never get to getSerialDescriptor SerialDescriptor::serialDescriptor'); | |
| 46321 | 46811 | } |
| 46322 | 46812 | |
| 46323 | 46813 | /** |
| 46324 | 46814 | * @return int |
| 46325 | 46815 | */ |
| 46326 | - public static function sampleSelect(): int { | |
| 46327 | - return 31; /*31:select*/ | |
| 46816 | + public static function sampleSerialDescriptor(): int { | |
| 46817 | + return 31; /*31:serialDescriptor*/ | |
| 46328 | 46818 | } |
| 46329 | 46819 | |
| 46330 | 46820 | /** |
| @@ -46332,7 +46822,7 @@ class Select { | ||
| 46332 | 46822 | * @return bool |
| 46333 | 46823 | */ |
| 46334 | 46824 | public function validate(): bool { |
| 46335 | - return Select::validateSelect($this->select); | |
| 46825 | + return SerialDescriptor::validateSerialDescriptor($this->serialDescriptor); | |
| 46336 | 46826 | } |
| 46337 | 46827 | |
| 46338 | 46828 | /** |
| @@ -46341,44 +46831,44 @@ class Select { | ||
| 46341 | 46831 | */ |
| 46342 | 46832 | public function to(): stdClass { |
| 46343 | 46833 | $out = new stdClass(); |
| 46344 | - $out->{'select'} = $this->toSelect(); | |
| 46834 | + $out->{'SerialDescriptor'} = $this->toSerialDescriptor(); | |
| 46345 | 46835 | return $out; |
| 46346 | 46836 | } |
| 46347 | 46837 | |
| 46348 | 46838 | /** |
| 46349 | 46839 | * @param stdClass $obj |
| 46350 | - * @return Select | |
| 46840 | + * @return SerialDescriptor | |
| 46351 | 46841 | * @throws Exception |
| 46352 | 46842 | */ |
| 46353 | - public static function from(stdClass $obj): Select { | |
| 46354 | - if (!property_exists($obj, 'select')) { | |
| 46843 | + public static function from(stdClass $obj): SerialDescriptor { | |
| 46844 | + if (!property_exists($obj, 'SerialDescriptor')) { | |
| 46355 | 46845 | throw new Exception("Missing required property"); |
| 46356 | 46846 | } |
| 46357 | - return new Select( | |
| 46358 | - Select::fromSelect($obj->{'select'}) | |
| 46847 | + return new SerialDescriptor( | |
| 46848 | + SerialDescriptor::fromSerialDescriptor($obj->{'SerialDescriptor'}) | |
| 46359 | 46849 | ); |
| 46360 | 46850 | } |
| 46361 | 46851 | |
| 46362 | 46852 | /** |
| 46363 | - * @return Select | |
| 46853 | + * @return SerialDescriptor | |
| 46364 | 46854 | */ |
| 46365 | - public static function sample(): Select { | |
| 46366 | - return new Select( | |
| 46367 | - Select::sampleSelect() | |
| 46855 | + public static function sample(): SerialDescriptor { | |
| 46856 | + return new SerialDescriptor( | |
| 46857 | + SerialDescriptor::sampleSerialDescriptor() | |
| 46368 | 46858 | ); |
| 46369 | 46859 | } |
| 46370 | 46860 | } |
| 46371 | 46861 | |
| 46372 | -// This is an autogenerated file:SelfClass | |
| 46862 | +// This is an autogenerated file:SerialName | |
| 46373 | 46863 | |
| 46374 | -class SelfClass { | |
| 46375 | - private int $self; // json:Self Required | |
| 46864 | +class SerialName { | |
| 46865 | + private int $serialName; // json:SerialName Required | |
| 46376 | 46866 | |
| 46377 | 46867 | /** |
| 46378 | - * @param int $self | |
| 46868 | + * @param int $serialName | |
| 46379 | 46869 | */ |
| 46380 | - public function __construct(int $self) { | |
| 46381 | - $this->self = $self; | |
| 46870 | + public function __construct(int $serialName) { | |
| 46871 | + $this->serialName = $serialName; | |
| 46382 | 46872 | } |
| 46383 | 46873 | |
| 46384 | 46874 | /** |
| @@ -46386,7 +46876,7 @@ class SelfClass { | ||
| 46386 | 46876 | * @throws Exception |
| 46387 | 46877 | * @return int |
| 46388 | 46878 | */ |
| 46389 | - public static function fromSelf(int $value): int { | |
| 46879 | + public static function fromSerialName(int $value): int { | |
| 46390 | 46880 | return $value; /*int*/ |
| 46391 | 46881 | } |
| 46392 | 46882 | |
| @@ -46394,11 +46884,11 @@ class SelfClass { | ||
| 46394 | 46884 | * @throws Exception |
| 46395 | 46885 | * @return int |
| 46396 | 46886 | */ |
| 46397 | - public function toSelf(): int { | |
| 46398 | - if (SelfClass::validateSelf($this->self)) { | |
| 46399 | - return $this->self; /*int*/ | |
| 46887 | + public function toSerialName(): int { | |
| 46888 | + if (SerialName::validateSerialName($this->serialName)) { | |
| 46889 | + return $this->serialName; /*int*/ | |
| 46400 | 46890 | } |
| 46401 | - throw new Exception('never get to this SelfClass::self'); | |
| 46891 | + throw new Exception('never get to this SerialName::serialName'); | |
| 46402 | 46892 | } |
| 46403 | 46893 | |
| 46404 | 46894 | /** |
| @@ -46406,7 +46896,7 @@ class SelfClass { | ||
| 46406 | 46896 | * @return bool |
| 46407 | 46897 | * @throws Exception |
| 46408 | 46898 | */ |
| 46409 | - public static function validateSelf(int $value): bool { | |
| 46899 | + public static function validateSerialName(int $value): bool { | |
| 46410 | 46900 | return true; |
| 46411 | 46901 | } |
| 46412 | 46902 | |
| @@ -46414,18 +46904,18 @@ class SelfClass { | ||
| 46414 | 46904 | * @throws Exception |
| 46415 | 46905 | * @return int |
| 46416 | 46906 | */ |
| 46417 | - public function getSelf(): int { | |
| 46418 | - if (SelfClass::validateSelf($this->self)) { | |
| 46419 | - return $this->self; | |
| 46907 | + public function getSerialName(): int { | |
| 46908 | + if (SerialName::validateSerialName($this->serialName)) { | |
| 46909 | + return $this->serialName; | |
| 46420 | 46910 | } |
| 46421 | - throw new Exception('never get to getSelf SelfClass::self'); | |
| 46911 | + throw new Exception('never get to getSerialName SerialName::serialName'); | |
| 46422 | 46912 | } |
| 46423 | 46913 | |
| 46424 | 46914 | /** |
| 46425 | 46915 | * @return int |
| 46426 | 46916 | */ |
| 46427 | - public static function sampleSelf(): int { | |
| 46428 | - return 31; /*31:self*/ | |
| 46917 | + public static function sampleSerialName(): int { | |
| 46918 | + return 31; /*31:serialName*/ | |
| 46429 | 46919 | } |
| 46430 | 46920 | |
| 46431 | 46921 | /** |
| @@ -46433,7 +46923,7 @@ class SelfClass { | ||
| 46433 | 46923 | * @return bool |
| 46434 | 46924 | */ |
| 46435 | 46925 | public function validate(): bool { |
| 46436 | - return SelfClass::validateSelf($this->self); | |
| 46926 | + return SerialName::validateSerialName($this->serialName); | |
| 46437 | 46927 | } |
| 46438 | 46928 | |
| 46439 | 46929 | /** |
| @@ -46442,44 +46932,44 @@ class SelfClass { | ||
| 46442 | 46932 | */ |
| 46443 | 46933 | public function to(): stdClass { |
| 46444 | 46934 | $out = new stdClass(); |
| 46445 | - $out->{'Self'} = $this->toSelf(); | |
| 46935 | + $out->{'SerialName'} = $this->toSerialName(); | |
| 46446 | 46936 | return $out; |
| 46447 | 46937 | } |
| 46448 | 46938 | |
| 46449 | 46939 | /** |
| 46450 | 46940 | * @param stdClass $obj |
| 46451 | - * @return SelfClass | |
| 46941 | + * @return SerialName | |
| 46452 | 46942 | * @throws Exception |
| 46453 | 46943 | */ |
| 46454 | - public static function from(stdClass $obj): SelfClass { | |
| 46455 | - if (!property_exists($obj, 'Self')) { | |
| 46944 | + public static function from(stdClass $obj): SerialName { | |
| 46945 | + if (!property_exists($obj, 'SerialName')) { | |
| 46456 | 46946 | throw new Exception("Missing required property"); |
| 46457 | 46947 | } |
| 46458 | - return new SelfClass( | |
| 46459 | - SelfClass::fromSelf($obj->{'Self'}) | |
| 46948 | + return new SerialName( | |
| 46949 | + SerialName::fromSerialName($obj->{'SerialName'}) | |
| 46460 | 46950 | ); |
| 46461 | 46951 | } |
| 46462 | 46952 | |
| 46463 | 46953 | /** |
| 46464 | - * @return SelfClass | |
| 46954 | + * @return SerialName | |
| 46465 | 46955 | */ |
| 46466 | - public static function sample(): SelfClass { | |
| 46467 | - return new SelfClass( | |
| 46468 | - SelfClass::sampleSelf() | |
| 46956 | + public static function sample(): SerialName { | |
| 46957 | + return new SerialName( | |
| 46958 | + SerialName::sampleSerialName() | |
| 46469 | 46959 | ); |
| 46470 | 46960 | } |
| 46471 | 46961 | } |
| 46472 | 46962 | |
| 46473 | -// This is an autogenerated file:Sendable | |
| 46963 | +// This is an autogenerated file:SerializableClass | |
| 46474 | 46964 | |
| 46475 | -class Sendable { | |
| 46476 | - private int $sendable; // json:Sendable Required | |
| 46965 | +class SerializableClass { | |
| 46966 | + private int $serializable; // json:Serializable Required | |
| 46477 | 46967 | |
| 46478 | 46968 | /** |
| 46479 | - * @param int $sendable | |
| 46969 | + * @param int $serializable | |
| 46480 | 46970 | */ |
| 46481 | - public function __construct(int $sendable) { | |
| 46482 | - $this->sendable = $sendable; | |
| 46971 | + public function __construct(int $serializable) { | |
| 46972 | + $this->serializable = $serializable; | |
| 46483 | 46973 | } |
| 46484 | 46974 | |
| 46485 | 46975 | /** |
| @@ -46487,7 +46977,7 @@ class Sendable { | ||
| 46487 | 46977 | * @throws Exception |
| 46488 | 46978 | * @return int |
| 46489 | 46979 | */ |
| 46490 | - public static function fromSendable(int $value): int { | |
| 46980 | + public static function fromSerializable(int $value): int { | |
| 46491 | 46981 | return $value; /*int*/ |
| 46492 | 46982 | } |
| 46493 | 46983 | |
| @@ -46495,11 +46985,11 @@ class Sendable { | ||
| 46495 | 46985 | * @throws Exception |
| 46496 | 46986 | * @return int |
| 46497 | 46987 | */ |
| 46498 | - public function toSendable(): int { | |
| 46499 | - if (Sendable::validateSendable($this->sendable)) { | |
| 46500 | - return $this->sendable; /*int*/ | |
| 46988 | + public function toSerializable(): int { | |
| 46989 | + if (SerializableClass::validateSerializable($this->serializable)) { | |
| 46990 | + return $this->serializable; /*int*/ | |
| 46501 | 46991 | } |
| 46502 | - throw new Exception('never get to this Sendable::sendable'); | |
| 46992 | + throw new Exception('never get to this SerializableClass::serializable'); | |
| 46503 | 46993 | } |
| 46504 | 46994 | |
| 46505 | 46995 | /** |
| @@ -46507,7 +46997,7 @@ class Sendable { | ||
| 46507 | 46997 | * @return bool |
| 46508 | 46998 | * @throws Exception |
| 46509 | 46999 | */ |
| 46510 | - public static function validateSendable(int $value): bool { | |
| 47000 | + public static function validateSerializable(int $value): bool { | |
| 46511 | 47001 | return true; |
| 46512 | 47002 | } |
| 46513 | 47003 | |
| @@ -46515,18 +47005,18 @@ class Sendable { | ||
| 46515 | 47005 | * @throws Exception |
| 46516 | 47006 | * @return int |
| 46517 | 47007 | */ |
| 46518 | - public function getSendable(): int { | |
| 46519 | - if (Sendable::validateSendable($this->sendable)) { | |
| 46520 | - return $this->sendable; | |
| 47008 | + public function getSerializable(): int { | |
| 47009 | + if (SerializableClass::validateSerializable($this->serializable)) { | |
| 47010 | + return $this->serializable; | |
| 46521 | 47011 | } |
| 46522 | - throw new Exception('never get to getSendable Sendable::sendable'); | |
| 47012 | + throw new Exception('never get to getSerializable SerializableClass::serializable'); | |
| 46523 | 47013 | } |
| 46524 | 47014 | |
| 46525 | 47015 | /** |
| 46526 | 47016 | * @return int |
| 46527 | 47017 | */ |
| 46528 | - public static function sampleSendable(): int { | |
| 46529 | - return 31; /*31:sendable*/ | |
| 47018 | + public static function sampleSerializable(): int { | |
| 47019 | + return 31; /*31:serializable*/ | |
| 46530 | 47020 | } |
| 46531 | 47021 | |
| 46532 | 47022 | /** |
| @@ -46534,7 +47024,7 @@ class Sendable { | ||
| 46534 | 47024 | * @return bool |
| 46535 | 47025 | */ |
| 46536 | 47026 | public function validate(): bool { |
| 46537 | - return Sendable::validateSendable($this->sendable); | |
| 47027 | + return SerializableClass::validateSerializable($this->serializable); | |
| 46538 | 47028 | } |
| 46539 | 47029 | |
| 46540 | 47030 | /** |
| @@ -46543,44 +47033,44 @@ class Sendable { | ||
| 46543 | 47033 | */ |
| 46544 | 47034 | public function to(): stdClass { |
| 46545 | 47035 | $out = new stdClass(); |
| 46546 | - $out->{'Sendable'} = $this->toSendable(); | |
| 47036 | + $out->{'Serializable'} = $this->toSerializable(); | |
| 46547 | 47037 | return $out; |
| 46548 | 47038 | } |
| 46549 | 47039 | |
| 46550 | 47040 | /** |
| 46551 | 47041 | * @param stdClass $obj |
| 46552 | - * @return Sendable | |
| 47042 | + * @return SerializableClass | |
| 46553 | 47043 | * @throws Exception |
| 46554 | 47044 | */ |
| 46555 | - public static function from(stdClass $obj): Sendable { | |
| 46556 | - if (!property_exists($obj, 'Sendable')) { | |
| 47045 | + public static function from(stdClass $obj): SerializableClass { | |
| 47046 | + if (!property_exists($obj, 'Serializable')) { | |
| 46557 | 47047 | throw new Exception("Missing required property"); |
| 46558 | 47048 | } |
| 46559 | - return new Sendable( | |
| 46560 | - Sendable::fromSendable($obj->{'Sendable'}) | |
| 47049 | + return new SerializableClass( | |
| 47050 | + SerializableClass::fromSerializable($obj->{'Serializable'}) | |
| 46561 | 47051 | ); |
| 46562 | 47052 | } |
| 46563 | 47053 | |
| 46564 | 47054 | /** |
| 46565 | - * @return Sendable | |
| 47055 | + * @return SerializableClass | |
| 46566 | 47056 | */ |
| 46567 | - public static function sample(): Sendable { | |
| 46568 | - return new Sendable( | |
| 46569 | - Sendable::sampleSendable() | |
| 47057 | + public static function sample(): SerializableClass { | |
| 47058 | + return new SerializableClass( | |
| 47059 | + SerializableClass::sampleSerializable() | |
| 46570 | 47060 | ); |
| 46571 | 47061 | } |
| 46572 | 47062 | } |
| 46573 | 47063 | |
| 46574 | -// This is an autogenerated file:SerialDescriptor | |
| 47064 | +// This is an autogenerated file:Serialize | |
| 46575 | 47065 | |
| 46576 | -class SerialDescriptor { | |
| 46577 | - private int $serialDescriptor; // json:SerialDescriptor Required | |
| 47066 | +class Serialize { | |
| 47067 | + private int $serialize; // json:serialize Required | |
| 46578 | 47068 | |
| 46579 | 47069 | /** |
| 46580 | - * @param int $serialDescriptor | |
| 47070 | + * @param int $serialize | |
| 46581 | 47071 | */ |
| 46582 | - public function __construct(int $serialDescriptor) { | |
| 46583 | - $this->serialDescriptor = $serialDescriptor; | |
| 47072 | + public function __construct(int $serialize) { | |
| 47073 | + $this->serialize = $serialize; | |
| 46584 | 47074 | } |
| 46585 | 47075 | |
| 46586 | 47076 | /** |
| @@ -46588,7 +47078,7 @@ class SerialDescriptor { | ||
| 46588 | 47078 | * @throws Exception |
| 46589 | 47079 | * @return int |
| 46590 | 47080 | */ |
| 46591 | - public static function fromSerialDescriptor(int $value): int { | |
| 47081 | + public static function fromSerialize(int $value): int { | |
| 46592 | 47082 | return $value; /*int*/ |
| 46593 | 47083 | } |
| 46594 | 47084 | |
| @@ -46596,11 +47086,11 @@ class SerialDescriptor { | ||
| 46596 | 47086 | * @throws Exception |
| 46597 | 47087 | * @return int |
| 46598 | 47088 | */ |
| 46599 | - public function toSerialDescriptor(): int { | |
| 46600 | - if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) { | |
| 46601 | - return $this->serialDescriptor; /*int*/ | |
| 47089 | + public function toSerialize(): int { | |
| 47090 | + if (Serialize::validateSerialize($this->serialize)) { | |
| 47091 | + return $this->serialize; /*int*/ | |
| 46602 | 47092 | } |
| 46603 | - throw new Exception('never get to this SerialDescriptor::serialDescriptor'); | |
| 47093 | + throw new Exception('never get to this Serialize::serialize'); | |
| 46604 | 47094 | } |
| 46605 | 47095 | |
| 46606 | 47096 | /** |
| @@ -46608,7 +47098,7 @@ class SerialDescriptor { | ||
| 46608 | 47098 | * @return bool |
| 46609 | 47099 | * @throws Exception |
| 46610 | 47100 | */ |
| 46611 | - public static function validateSerialDescriptor(int $value): bool { | |
| 47101 | + public static function validateSerialize(int $value): bool { | |
| 46612 | 47102 | return true; |
| 46613 | 47103 | } |
| 46614 | 47104 | |
| @@ -46616,18 +47106,18 @@ class SerialDescriptor { | ||
| 46616 | 47106 | * @throws Exception |
| 46617 | 47107 | * @return int |
| 46618 | 47108 | */ |
| 46619 | - public function getSerialDescriptor(): int { | |
| 46620 | - if (SerialDescriptor::validateSerialDescriptor($this->serialDescriptor)) { | |
| 46621 | - return $this->serialDescriptor; | |
| 47109 | + public function getSerialize(): int { | |
| 47110 | + if (Serialize::validateSerialize($this->serialize)) { | |
| 47111 | + return $this->serialize; | |
| 46622 | 47112 | } |
| 46623 | - throw new Exception('never get to getSerialDescriptor SerialDescriptor::serialDescriptor'); | |
| 47113 | + throw new Exception('never get to getSerialize Serialize::serialize'); | |
| 46624 | 47114 | } |
| 46625 | 47115 | |
| 46626 | 47116 | /** |
| 46627 | 47117 | * @return int |
| 46628 | 47118 | */ |
| 46629 | - public static function sampleSerialDescriptor(): int { | |
| 46630 | - return 31; /*31:serialDescriptor*/ | |
| 47119 | + public static function sampleSerialize(): int { | |
| 47120 | + return 31; /*31:serialize*/ | |
| 46631 | 47121 | } |
| 46632 | 47122 | |
| 46633 | 47123 | /** |
| @@ -46635,7 +47125,7 @@ class SerialDescriptor { | ||
| 46635 | 47125 | * @return bool |
| 46636 | 47126 | */ |
| 46637 | 47127 | public function validate(): bool { |
| 46638 | - return SerialDescriptor::validateSerialDescriptor($this->serialDescriptor); | |
| 47128 | + return Serialize::validateSerialize($this->serialize); | |
| 46639 | 47129 | } |
| 46640 | 47130 | |
| 46641 | 47131 | /** |
| @@ -46644,44 +47134,44 @@ class SerialDescriptor { | ||
| 46644 | 47134 | */ |
| 46645 | 47135 | public function to(): stdClass { |
| 46646 | 47136 | $out = new stdClass(); |
| 46647 | - $out->{'SerialDescriptor'} = $this->toSerialDescriptor(); | |
| 47137 | + $out->{'serialize'} = $this->toSerialize(); | |
| 46648 | 47138 | return $out; |
| 46649 | 47139 | } |
| 46650 | 47140 | |
| 46651 | 47141 | /** |
| 46652 | 47142 | * @param stdClass $obj |
| 46653 | - * @return SerialDescriptor | |
| 47143 | + * @return Serialize | |
| 46654 | 47144 | * @throws Exception |
| 46655 | 47145 | */ |
| 46656 | - public static function from(stdClass $obj): SerialDescriptor { | |
| 46657 | - if (!property_exists($obj, 'SerialDescriptor')) { | |
| 47146 | + public static function from(stdClass $obj): Serialize { | |
| 47147 | + if (!property_exists($obj, 'serialize')) { | |
| 46658 | 47148 | throw new Exception("Missing required property"); |
| 46659 | 47149 | } |
| 46660 | - return new SerialDescriptor( | |
| 46661 | - SerialDescriptor::fromSerialDescriptor($obj->{'SerialDescriptor'}) | |
| 47150 | + return new Serialize( | |
| 47151 | + Serialize::fromSerialize($obj->{'serialize'}) | |
| 46662 | 47152 | ); |
| 46663 | 47153 | } |
| 46664 | 47154 | |
| 46665 | 47155 | /** |
| 46666 | - * @return SerialDescriptor | |
| 46667 | - */ | |
| 46668 | - public static function sample(): SerialDescriptor { | |
| 46669 | - return new SerialDescriptor( | |
| 46670 | - SerialDescriptor::sampleSerialDescriptor() | |
| 47156 | + * @return Serialize | |
| 47157 | + */ | |
| 47158 | + public static function sample(): Serialize { | |
| 47159 | + return new Serialize( | |
| 47160 | + Serialize::sampleSerialize() | |
| 46671 | 47161 | ); |
| 46672 | 47162 | } |
| 46673 | 47163 | } |
| 46674 | 47164 | |
| 46675 | -// This is an autogenerated file:SerialName | |
| 47165 | +// This is an autogenerated file:SerializerProvider | |
| 46676 | 47166 | |
| 46677 | -class SerialName { | |
| 46678 | - private int $serialName; // json:SerialName Required | |
| 47167 | +class SerializerProvider { | |
| 47168 | + private int $serializerProvider; // json:SerializerProvider Required | |
| 46679 | 47169 | |
| 46680 | 47170 | /** |
| 46681 | - * @param int $serialName | |
| 47171 | + * @param int $serializerProvider | |
| 46682 | 47172 | */ |
| 46683 | - public function __construct(int $serialName) { | |
| 46684 | - $this->serialName = $serialName; | |
| 47173 | + public function __construct(int $serializerProvider) { | |
| 47174 | + $this->serializerProvider = $serializerProvider; | |
| 46685 | 47175 | } |
| 46686 | 47176 | |
| 46687 | 47177 | /** |
| @@ -46689,7 +47179,7 @@ class SerialName { | ||
| 46689 | 47179 | * @throws Exception |
| 46690 | 47180 | * @return int |
| 46691 | 47181 | */ |
| 46692 | - public static function fromSerialName(int $value): int { | |
| 47182 | + public static function fromSerializerProvider(int $value): int { | |
| 46693 | 47183 | return $value; /*int*/ |
| 46694 | 47184 | } |
| 46695 | 47185 | |
| @@ -46697,11 +47187,11 @@ class SerialName { | ||
| 46697 | 47187 | * @throws Exception |
| 46698 | 47188 | * @return int |
| 46699 | 47189 | */ |
| 46700 | - public function toSerialName(): int { | |
| 46701 | - if (SerialName::validateSerialName($this->serialName)) { | |
| 46702 | - return $this->serialName; /*int*/ | |
| 47190 | + public function toSerializerProvider(): int { | |
| 47191 | + if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) { | |
| 47192 | + return $this->serializerProvider; /*int*/ | |
| 46703 | 47193 | } |
| 46704 | - throw new Exception('never get to this SerialName::serialName'); | |
| 47194 | + throw new Exception('never get to this SerializerProvider::serializerProvider'); | |
| 46705 | 47195 | } |
| 46706 | 47196 | |
| 46707 | 47197 | /** |
| @@ -46709,7 +47199,7 @@ class SerialName { | ||
| 46709 | 47199 | * @return bool |
| 46710 | 47200 | * @throws Exception |
| 46711 | 47201 | */ |
| 46712 | - public static function validateSerialName(int $value): bool { | |
| 47202 | + public static function validateSerializerProvider(int $value): bool { | |
| 46713 | 47203 | return true; |
| 46714 | 47204 | } |
| 46715 | 47205 | |
| @@ -46717,18 +47207,18 @@ class SerialName { | ||
| 46717 | 47207 | * @throws Exception |
| 46718 | 47208 | * @return int |
| 46719 | 47209 | */ |
| 46720 | - public function getSerialName(): int { | |
| 46721 | - if (SerialName::validateSerialName($this->serialName)) { | |
| 46722 | - return $this->serialName; | |
| 47210 | + public function getSerializerProvider(): int { | |
| 47211 | + if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) { | |
| 47212 | + return $this->serializerProvider; | |
| 46723 | 47213 | } |
| 46724 | - throw new Exception('never get to getSerialName SerialName::serialName'); | |
| 47214 | + throw new Exception('never get to getSerializerProvider SerializerProvider::serializerProvider'); | |
| 46725 | 47215 | } |
| 46726 | 47216 | |
| 46727 | 47217 | /** |
| 46728 | 47218 | * @return int |
| 46729 | 47219 | */ |
| 46730 | - public static function sampleSerialName(): int { | |
| 46731 | - return 31; /*31:serialName*/ | |
| 47220 | + public static function sampleSerializerProvider(): int { | |
| 47221 | + return 31; /*31:serializerProvider*/ | |
| 46732 | 47222 | } |
| 46733 | 47223 | |
| 46734 | 47224 | /** |
| @@ -46736,7 +47226,7 @@ class SerialName { | ||
| 46736 | 47226 | * @return bool |
| 46737 | 47227 | */ |
| 46738 | 47228 | public function validate(): bool { |
| 46739 | - return SerialName::validateSerialName($this->serialName); | |
| 47229 | + return SerializerProvider::validateSerializerProvider($this->serializerProvider); | |
| 46740 | 47230 | } |
| 46741 | 47231 | |
| 46742 | 47232 | /** |
| @@ -46745,44 +47235,44 @@ class SerialName { | ||
| 46745 | 47235 | */ |
| 46746 | 47236 | public function to(): stdClass { |
| 46747 | 47237 | $out = new stdClass(); |
| 46748 | - $out->{'SerialName'} = $this->toSerialName(); | |
| 47238 | + $out->{'SerializerProvider'} = $this->toSerializerProvider(); | |
| 46749 | 47239 | return $out; |
| 46750 | 47240 | } |
| 46751 | 47241 | |
| 46752 | 47242 | /** |
| 46753 | 47243 | * @param stdClass $obj |
| 46754 | - * @return SerialName | |
| 47244 | + * @return SerializerProvider | |
| 46755 | 47245 | * @throws Exception |
| 46756 | 47246 | */ |
| 46757 | - public static function from(stdClass $obj): SerialName { | |
| 46758 | - if (!property_exists($obj, 'SerialName')) { | |
| 47247 | + public static function from(stdClass $obj): SerializerProvider { | |
| 47248 | + if (!property_exists($obj, 'SerializerProvider')) { | |
| 46759 | 47249 | throw new Exception("Missing required property"); |
| 46760 | 47250 | } |
| 46761 | - return new SerialName( | |
| 46762 | - SerialName::fromSerialName($obj->{'SerialName'}) | |
| 47251 | + return new SerializerProvider( | |
| 47252 | + SerializerProvider::fromSerializerProvider($obj->{'SerializerProvider'}) | |
| 46763 | 47253 | ); |
| 46764 | 47254 | } |
| 46765 | 47255 | |
| 46766 | 47256 | /** |
| 46767 | - * @return SerialName | |
| 47257 | + * @return SerializerProvider | |
| 46768 | 47258 | */ |
| 46769 | - public static function sample(): SerialName { | |
| 46770 | - return new SerialName( | |
| 46771 | - SerialName::sampleSerialName() | |
| 47259 | + public static function sample(): SerializerProvider { | |
| 47260 | + return new SerializerProvider( | |
| 47261 | + SerializerProvider::sampleSerializerProvider() | |
| 46772 | 47262 | ); |
| 46773 | 47263 | } |
| 46774 | 47264 | } |
| 46775 | 47265 | |
| 46776 | -// This is an autogenerated file:SerializableClass | |
| 47266 | +// This is an autogenerated file:Set | |
| 46777 | 47267 | |
| 46778 | -class SerializableClass { | |
| 46779 | - private int $serializable; // json:Serializable Required | |
| 47268 | +class Set { | |
| 47269 | + private int $set; // json:set Required | |
| 46780 | 47270 | |
| 46781 | 47271 | /** |
| 46782 | - * @param int $serializable | |
| 47272 | + * @param int $set | |
| 46783 | 47273 | */ |
| 46784 | - public function __construct(int $serializable) { | |
| 46785 | - $this->serializable = $serializable; | |
| 47274 | + public function __construct(int $set) { | |
| 47275 | + $this->set = $set; | |
| 46786 | 47276 | } |
| 46787 | 47277 | |
| 46788 | 47278 | /** |
| @@ -46790,7 +47280,7 @@ class SerializableClass { | ||
| 46790 | 47280 | * @throws Exception |
| 46791 | 47281 | * @return int |
| 46792 | 47282 | */ |
| 46793 | - public static function fromSerializable(int $value): int { | |
| 47283 | + public static function fromSet(int $value): int { | |
| 46794 | 47284 | return $value; /*int*/ |
| 46795 | 47285 | } |
| 46796 | 47286 | |
| @@ -46798,11 +47288,11 @@ class SerializableClass { | ||
| 46798 | 47288 | * @throws Exception |
| 46799 | 47289 | * @return int |
| 46800 | 47290 | */ |
| 46801 | - public function toSerializable(): int { | |
| 46802 | - if (SerializableClass::validateSerializable($this->serializable)) { | |
| 46803 | - return $this->serializable; /*int*/ | |
| 47291 | + public function toSet(): int { | |
| 47292 | + if (Set::validateSet($this->set)) { | |
| 47293 | + return $this->set; /*int*/ | |
| 46804 | 47294 | } |
| 46805 | - throw new Exception('never get to this SerializableClass::serializable'); | |
| 47295 | + throw new Exception('never get to this Set::set'); | |
| 46806 | 47296 | } |
| 46807 | 47297 | |
| 46808 | 47298 | /** |
| @@ -46810,7 +47300,7 @@ class SerializableClass { | ||
| 46810 | 47300 | * @return bool |
| 46811 | 47301 | * @throws Exception |
| 46812 | 47302 | */ |
| 46813 | - public static function validateSerializable(int $value): bool { | |
| 47303 | + public static function validateSet(int $value): bool { | |
| 46814 | 47304 | return true; |
| 46815 | 47305 | } |
| 46816 | 47306 | |
| @@ -46818,18 +47308,18 @@ class SerializableClass { | ||
| 46818 | 47308 | * @throws Exception |
| 46819 | 47309 | * @return int |
| 46820 | 47310 | */ |
| 46821 | - public function getSerializable(): int { | |
| 46822 | - if (SerializableClass::validateSerializable($this->serializable)) { | |
| 46823 | - return $this->serializable; | |
| 47311 | + public function getSet(): int { | |
| 47312 | + if (Set::validateSet($this->set)) { | |
| 47313 | + return $this->set; | |
| 46824 | 47314 | } |
| 46825 | - throw new Exception('never get to getSerializable SerializableClass::serializable'); | |
| 47315 | + throw new Exception('never get to getSet Set::set'); | |
| 46826 | 47316 | } |
| 46827 | 47317 | |
| 46828 | 47318 | /** |
| 46829 | 47319 | * @return int |
| 46830 | 47320 | */ |
| 46831 | - public static function sampleSerializable(): int { | |
| 46832 | - return 31; /*31:serializable*/ | |
| 47321 | + public static function sampleSet(): int { | |
| 47322 | + return 31; /*31:set*/ | |
| 46833 | 47323 | } |
| 46834 | 47324 | |
| 46835 | 47325 | /** |
| @@ -46837,7 +47327,7 @@ class SerializableClass { | ||
| 46837 | 47327 | * @return bool |
| 46838 | 47328 | */ |
| 46839 | 47329 | public function validate(): bool { |
| 46840 | - return SerializableClass::validateSerializable($this->serializable); | |
| 47330 | + return Set::validateSet($this->set); | |
| 46841 | 47331 | } |
| 46842 | 47332 | |
| 46843 | 47333 | /** |
| @@ -46846,44 +47336,44 @@ class SerializableClass { | ||
| 46846 | 47336 | */ |
| 46847 | 47337 | public function to(): stdClass { |
| 46848 | 47338 | $out = new stdClass(); |
| 46849 | - $out->{'Serializable'} = $this->toSerializable(); | |
| 47339 | + $out->{'set'} = $this->toSet(); | |
| 46850 | 47340 | return $out; |
| 46851 | 47341 | } |
| 46852 | 47342 | |
| 46853 | 47343 | /** |
| 46854 | 47344 | * @param stdClass $obj |
| 46855 | - * @return SerializableClass | |
| 47345 | + * @return Set | |
| 46856 | 47346 | * @throws Exception |
| 46857 | 47347 | */ |
| 46858 | - public static function from(stdClass $obj): SerializableClass { | |
| 46859 | - if (!property_exists($obj, 'Serializable')) { | |
| 47348 | + public static function from(stdClass $obj): Set { | |
| 47349 | + if (!property_exists($obj, 'set')) { | |
| 46860 | 47350 | throw new Exception("Missing required property"); |
| 46861 | 47351 | } |
| 46862 | - return new SerializableClass( | |
| 46863 | - SerializableClass::fromSerializable($obj->{'Serializable'}) | |
| 47352 | + return new Set( | |
| 47353 | + Set::fromSet($obj->{'set'}) | |
| 46864 | 47354 | ); |
| 46865 | 47355 | } |
| 46866 | 47356 | |
| 46867 | 47357 | /** |
| 46868 | - * @return SerializableClass | |
| 47358 | + * @return Set | |
| 46869 | 47359 | */ |
| 46870 | - public static function sample(): SerializableClass { | |
| 46871 | - return new SerializableClass( | |
| 46872 | - SerializableClass::sampleSerializable() | |
| 47360 | + public static function sample(): Set { | |
| 47361 | + return new Set( | |
| 47362 | + Set::sampleSet() | |
| 46873 | 47363 | ); |
| 46874 | 47364 | } |
| 46875 | 47365 | } |
| 46876 | 47366 | |
| 46877 | -// This is an autogenerated file:Serialize | |
| 47367 | +// This is an autogenerated file:Short | |
| 46878 | 47368 | |
| 46879 | -class Serialize { | |
| 46880 | - private int $serialize; // json:serialize Required | |
| 47369 | +class Short { | |
| 47370 | + private int $short; // json:short Required | |
| 46881 | 47371 | |
| 46882 | 47372 | /** |
| 46883 | - * @param int $serialize | |
| 47373 | + * @param int $short | |
| 46884 | 47374 | */ |
| 46885 | - public function __construct(int $serialize) { | |
| 46886 | - $this->serialize = $serialize; | |
| 47375 | + public function __construct(int $short) { | |
| 47376 | + $this->short = $short; | |
| 46887 | 47377 | } |
| 46888 | 47378 | |
| 46889 | 47379 | /** |
| @@ -46891,7 +47381,7 @@ class Serialize { | ||
| 46891 | 47381 | * @throws Exception |
| 46892 | 47382 | * @return int |
| 46893 | 47383 | */ |
| 46894 | - public static function fromSerialize(int $value): int { | |
| 47384 | + public static function fromShort(int $value): int { | |
| 46895 | 47385 | return $value; /*int*/ |
| 46896 | 47386 | } |
| 46897 | 47387 | |
| @@ -46899,11 +47389,11 @@ class Serialize { | ||
| 46899 | 47389 | * @throws Exception |
| 46900 | 47390 | * @return int |
| 46901 | 47391 | */ |
| 46902 | - public function toSerialize(): int { | |
| 46903 | - if (Serialize::validateSerialize($this->serialize)) { | |
| 46904 | - return $this->serialize; /*int*/ | |
| 47392 | + public function toShort(): int { | |
| 47393 | + if (Short::validateShort($this->short)) { | |
| 47394 | + return $this->short; /*int*/ | |
| 46905 | 47395 | } |
| 46906 | - throw new Exception('never get to this Serialize::serialize'); | |
| 47396 | + throw new Exception('never get to this Short::short'); | |
| 46907 | 47397 | } |
| 46908 | 47398 | |
| 46909 | 47399 | /** |
| @@ -46911,7 +47401,7 @@ class Serialize { | ||
| 46911 | 47401 | * @return bool |
| 46912 | 47402 | * @throws Exception |
| 46913 | 47403 | */ |
| 46914 | - public static function validateSerialize(int $value): bool { | |
| 47404 | + public static function validateShort(int $value): bool { | |
| 46915 | 47405 | return true; |
| 46916 | 47406 | } |
| 46917 | 47407 | |
| @@ -46919,18 +47409,18 @@ class Serialize { | ||
| 46919 | 47409 | * @throws Exception |
| 46920 | 47410 | * @return int |
| 46921 | 47411 | */ |
| 46922 | - public function getSerialize(): int { | |
| 46923 | - if (Serialize::validateSerialize($this->serialize)) { | |
| 46924 | - return $this->serialize; | |
| 47412 | + public function getShort(): int { | |
| 47413 | + if (Short::validateShort($this->short)) { | |
| 47414 | + return $this->short; | |
| 46925 | 47415 | } |
| 46926 | - throw new Exception('never get to getSerialize Serialize::serialize'); | |
| 47416 | + throw new Exception('never get to getShort Short::short'); | |
| 46927 | 47417 | } |
| 46928 | 47418 | |
| 46929 | 47419 | /** |
| 46930 | 47420 | * @return int |
| 46931 | 47421 | */ |
| 46932 | - public static function sampleSerialize(): int { | |
| 46933 | - return 31; /*31:serialize*/ | |
| 47422 | + public static function sampleShort(): int { | |
| 47423 | + return 31; /*31:short*/ | |
| 46934 | 47424 | } |
| 46935 | 47425 | |
| 46936 | 47426 | /** |
| @@ -46938,7 +47428,7 @@ class Serialize { | ||
| 46938 | 47428 | * @return bool |
| 46939 | 47429 | */ |
| 46940 | 47430 | public function validate(): bool { |
| 46941 | - return Serialize::validateSerialize($this->serialize); | |
| 47431 | + return Short::validateShort($this->short); | |
| 46942 | 47432 | } |
| 46943 | 47433 | |
| 46944 | 47434 | /** |
| @@ -46947,44 +47437,44 @@ class Serialize { | ||
| 46947 | 47437 | */ |
| 46948 | 47438 | public function to(): stdClass { |
| 46949 | 47439 | $out = new stdClass(); |
| 46950 | - $out->{'serialize'} = $this->toSerialize(); | |
| 47440 | + $out->{'short'} = $this->toShort(); | |
| 46951 | 47441 | return $out; |
| 46952 | 47442 | } |
| 46953 | 47443 | |
| 46954 | 47444 | /** |
| 46955 | 47445 | * @param stdClass $obj |
| 46956 | - * @return Serialize | |
| 47446 | + * @return Short | |
| 46957 | 47447 | * @throws Exception |
| 46958 | 47448 | */ |
| 46959 | - public static function from(stdClass $obj): Serialize { | |
| 46960 | - if (!property_exists($obj, 'serialize')) { | |
| 47449 | + public static function from(stdClass $obj): Short { | |
| 47450 | + if (!property_exists($obj, 'short')) { | |
| 46961 | 47451 | throw new Exception("Missing required property"); |
| 46962 | 47452 | } |
| 46963 | - return new Serialize( | |
| 46964 | - Serialize::fromSerialize($obj->{'serialize'}) | |
| 47453 | + return new Short( | |
| 47454 | + Short::fromShort($obj->{'short'}) | |
| 46965 | 47455 | ); |
| 46966 | 47456 | } |
| 46967 | 47457 | |
| 46968 | 47458 | /** |
| 46969 | - * @return Serialize | |
| 47459 | + * @return Short | |
| 46970 | 47460 | */ |
| 46971 | - public static function sample(): Serialize { | |
| 46972 | - return new Serialize( | |
| 46973 | - Serialize::sampleSerialize() | |
| 47461 | + public static function sample(): Short { | |
| 47462 | + return new Short( | |
| 47463 | + Short::sampleShort() | |
| 46974 | 47464 | ); |
| 46975 | 47465 | } |
| 46976 | 47466 | } |
| 46977 | 47467 | |
| 46978 | -// This is an autogenerated file:SerializerProvider | |
| 47468 | +// This is an autogenerated file:Signed | |
| 46979 | 47469 | |
| 46980 | -class SerializerProvider { | |
| 46981 | - private int $serializerProvider; // json:SerializerProvider Required | |
| 47470 | +class Signed { | |
| 47471 | + private int $signed; // json:signed Required | |
| 46982 | 47472 | |
| 46983 | 47473 | /** |
| 46984 | - * @param int $serializerProvider | |
| 47474 | + * @param int $signed | |
| 46985 | 47475 | */ |
| 46986 | - public function __construct(int $serializerProvider) { | |
| 46987 | - $this->serializerProvider = $serializerProvider; | |
| 47476 | + public function __construct(int $signed) { | |
| 47477 | + $this->signed = $signed; | |
| 46988 | 47478 | } |
| 46989 | 47479 | |
| 46990 | 47480 | /** |
| @@ -46992,7 +47482,7 @@ class SerializerProvider { | ||
| 46992 | 47482 | * @throws Exception |
| 46993 | 47483 | * @return int |
| 46994 | 47484 | */ |
| 46995 | - public static function fromSerializerProvider(int $value): int { | |
| 47485 | + public static function fromSigned(int $value): int { | |
| 46996 | 47486 | return $value; /*int*/ |
| 46997 | 47487 | } |
| 46998 | 47488 | |
| @@ -47000,11 +47490,11 @@ class SerializerProvider { | ||
| 47000 | 47490 | * @throws Exception |
| 47001 | 47491 | * @return int |
| 47002 | 47492 | */ |
| 47003 | - public function toSerializerProvider(): int { | |
| 47004 | - if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) { | |
| 47005 | - return $this->serializerProvider; /*int*/ | |
| 47493 | + public function toSigned(): int { | |
| 47494 | + if (Signed::validateSigned($this->signed)) { | |
| 47495 | + return $this->signed; /*int*/ | |
| 47006 | 47496 | } |
| 47007 | - throw new Exception('never get to this SerializerProvider::serializerProvider'); | |
| 47497 | + throw new Exception('never get to this Signed::signed'); | |
| 47008 | 47498 | } |
| 47009 | 47499 | |
| 47010 | 47500 | /** |
| @@ -47012,7 +47502,7 @@ class SerializerProvider { | ||
| 47012 | 47502 | * @return bool |
| 47013 | 47503 | * @throws Exception |
| 47014 | 47504 | */ |
| 47015 | - public static function validateSerializerProvider(int $value): bool { | |
| 47505 | + public static function validateSigned(int $value): bool { | |
| 47016 | 47506 | return true; |
| 47017 | 47507 | } |
| 47018 | 47508 | |
| @@ -47020,18 +47510,18 @@ class SerializerProvider { | ||
| 47020 | 47510 | * @throws Exception |
| 47021 | 47511 | * @return int |
| 47022 | 47512 | */ |
| 47023 | - public function getSerializerProvider(): int { | |
| 47024 | - if (SerializerProvider::validateSerializerProvider($this->serializerProvider)) { | |
| 47025 | - return $this->serializerProvider; | |
| 47513 | + public function getSigned(): int { | |
| 47514 | + if (Signed::validateSigned($this->signed)) { | |
| 47515 | + return $this->signed; | |
| 47026 | 47516 | } |
| 47027 | - throw new Exception('never get to getSerializerProvider SerializerProvider::serializerProvider'); | |
| 47517 | + throw new Exception('never get to getSigned Signed::signed'); | |
| 47028 | 47518 | } |
| 47029 | 47519 | |
| 47030 | 47520 | /** |
| 47031 | 47521 | * @return int |
| 47032 | 47522 | */ |
| 47033 | - public static function sampleSerializerProvider(): int { | |
| 47034 | - return 31; /*31:serializerProvider*/ | |
| 47523 | + public static function sampleSigned(): int { | |
| 47524 | + return 31; /*31:signed*/ | |
| 47035 | 47525 | } |
| 47036 | 47526 | |
| 47037 | 47527 | /** |
| @@ -47039,7 +47529,7 @@ class SerializerProvider { | ||
| 47039 | 47529 | * @return bool |
| 47040 | 47530 | */ |
| 47041 | 47531 | public function validate(): bool { |
| 47042 | - return SerializerProvider::validateSerializerProvider($this->serializerProvider); | |
| 47532 | + return Signed::validateSigned($this->signed); | |
| 47043 | 47533 | } |
| 47044 | 47534 | |
| 47045 | 47535 | /** |
| @@ -47048,44 +47538,44 @@ class SerializerProvider { | ||
| 47048 | 47538 | */ |
| 47049 | 47539 | public function to(): stdClass { |
| 47050 | 47540 | $out = new stdClass(); |
| 47051 | - $out->{'SerializerProvider'} = $this->toSerializerProvider(); | |
| 47541 | + $out->{'signed'} = $this->toSigned(); | |
| 47052 | 47542 | return $out; |
| 47053 | 47543 | } |
| 47054 | 47544 | |
| 47055 | 47545 | /** |
| 47056 | 47546 | * @param stdClass $obj |
| 47057 | - * @return SerializerProvider | |
| 47547 | + * @return Signed | |
| 47058 | 47548 | * @throws Exception |
| 47059 | 47549 | */ |
| 47060 | - public static function from(stdClass $obj): SerializerProvider { | |
| 47061 | - if (!property_exists($obj, 'SerializerProvider')) { | |
| 47550 | + public static function from(stdClass $obj): Signed { | |
| 47551 | + if (!property_exists($obj, 'signed')) { | |
| 47062 | 47552 | throw new Exception("Missing required property"); |
| 47063 | 47553 | } |
| 47064 | - return new SerializerProvider( | |
| 47065 | - SerializerProvider::fromSerializerProvider($obj->{'SerializerProvider'}) | |
| 47554 | + return new Signed( | |
| 47555 | + Signed::fromSigned($obj->{'signed'}) | |
| 47066 | 47556 | ); |
| 47067 | 47557 | } |
| 47068 | 47558 | |
| 47069 | 47559 | /** |
| 47070 | - * @return SerializerProvider | |
| 47560 | + * @return Signed | |
| 47071 | 47561 | */ |
| 47072 | - public static function sample(): SerializerProvider { | |
| 47073 | - return new SerializerProvider( | |
| 47074 | - SerializerProvider::sampleSerializerProvider() | |
| 47562 | + public static function sample(): Signed { | |
| 47563 | + return new Signed( | |
| 47564 | + Signed::sampleSigned() | |
| 47075 | 47565 | ); |
| 47076 | 47566 | } |
| 47077 | 47567 | } |
| 47078 | 47568 | |
| 47079 | -// This is an autogenerated file:Set | |
| 47569 | +// This is an autogenerated file:SimpleModule | |
| 47080 | 47570 | |
| 47081 | -class Set { | |
| 47082 | - private int $set; // json:set Required | |
| 47571 | +class SimpleModule { | |
| 47572 | + private int $simpleModule; // json:SimpleModule Required | |
| 47083 | 47573 | |
| 47084 | 47574 | /** |
| 47085 | - * @param int $set | |
| 47575 | + * @param int $simpleModule | |
| 47086 | 47576 | */ |
| 47087 | - public function __construct(int $set) { | |
| 47088 | - $this->set = $set; | |
| 47577 | + public function __construct(int $simpleModule) { | |
| 47578 | + $this->simpleModule = $simpleModule; | |
| 47089 | 47579 | } |
| 47090 | 47580 | |
| 47091 | 47581 | /** |
| @@ -47093,19 +47583,19 @@ class Set { | ||
| 47093 | 47583 | * @throws Exception |
| 47094 | 47584 | * @return int |
| 47095 | 47585 | */ |
| 47096 | - public static function fromSet(int $value): int { | |
| 47586 | + public static function fromSimpleModule(int $value): int { | |
| 47097 | 47587 | return $value; /*int*/ |
| 47098 | 47588 | } |
| 47099 | 47589 | |
| 47100 | 47590 | /** |
| 47101 | 47591 | * @throws Exception |
| 47102 | - * @return int | |
| 47103 | - */ | |
| 47104 | - public function toSet(): int { | |
| 47105 | - if (Set::validateSet($this->set)) { | |
| 47106 | - return $this->set; /*int*/ | |
| 47592 | + * @return int | |
| 47593 | + */ | |
| 47594 | + public function toSimpleModule(): int { | |
| 47595 | + if (SimpleModule::validateSimpleModule($this->simpleModule)) { | |
| 47596 | + return $this->simpleModule; /*int*/ | |
| 47107 | 47597 | } |
| 47108 | - throw new Exception('never get to this Set::set'); | |
| 47598 | + throw new Exception('never get to this SimpleModule::simpleModule'); | |
| 47109 | 47599 | } |
| 47110 | 47600 | |
| 47111 | 47601 | /** |
| @@ -47113,7 +47603,7 @@ class Set { | ||
| 47113 | 47603 | * @return bool |
| 47114 | 47604 | * @throws Exception |
| 47115 | 47605 | */ |
| 47116 | - public static function validateSet(int $value): bool { | |
| 47606 | + public static function validateSimpleModule(int $value): bool { | |
| 47117 | 47607 | return true; |
| 47118 | 47608 | } |
| 47119 | 47609 | |
| @@ -47121,18 +47611,18 @@ class Set { | ||
| 47121 | 47611 | * @throws Exception |
| 47122 | 47612 | * @return int |
| 47123 | 47613 | */ |
| 47124 | - public function getSet(): int { | |
| 47125 | - if (Set::validateSet($this->set)) { | |
| 47126 | - return $this->set; | |
| 47614 | + public function getSimpleModule(): int { | |
| 47615 | + if (SimpleModule::validateSimpleModule($this->simpleModule)) { | |
| 47616 | + return $this->simpleModule; | |
| 47127 | 47617 | } |
| 47128 | - throw new Exception('never get to getSet Set::set'); | |
| 47618 | + throw new Exception('never get to getSimpleModule SimpleModule::simpleModule'); | |
| 47129 | 47619 | } |
| 47130 | 47620 | |
| 47131 | 47621 | /** |
| 47132 | 47622 | * @return int |
| 47133 | 47623 | */ |
| 47134 | - public static function sampleSet(): int { | |
| 47135 | - return 31; /*31:set*/ | |
| 47624 | + public static function sampleSimpleModule(): int { | |
| 47625 | + return 31; /*31:simpleModule*/ | |
| 47136 | 47626 | } |
| 47137 | 47627 | |
| 47138 | 47628 | /** |
| @@ -47140,7 +47630,7 @@ class Set { | ||
| 47140 | 47630 | * @return bool |
| 47141 | 47631 | */ |
| 47142 | 47632 | public function validate(): bool { |
| 47143 | - return Set::validateSet($this->set); | |
| 47633 | + return SimpleModule::validateSimpleModule($this->simpleModule); | |
| 47144 | 47634 | } |
| 47145 | 47635 | |
| 47146 | 47636 | /** |
| @@ -47149,44 +47639,44 @@ class Set { | ||
| 47149 | 47639 | */ |
| 47150 | 47640 | public function to(): stdClass { |
| 47151 | 47641 | $out = new stdClass(); |
| 47152 | - $out->{'set'} = $this->toSet(); | |
| 47642 | + $out->{'SimpleModule'} = $this->toSimpleModule(); | |
| 47153 | 47643 | return $out; |
| 47154 | 47644 | } |
| 47155 | 47645 | |
| 47156 | 47646 | /** |
| 47157 | 47647 | * @param stdClass $obj |
| 47158 | - * @return Set | |
| 47648 | + * @return SimpleModule | |
| 47159 | 47649 | * @throws Exception |
| 47160 | 47650 | */ |
| 47161 | - public static function from(stdClass $obj): Set { | |
| 47162 | - if (!property_exists($obj, 'set')) { | |
| 47651 | + public static function from(stdClass $obj): SimpleModule { | |
| 47652 | + if (!property_exists($obj, 'SimpleModule')) { | |
| 47163 | 47653 | throw new Exception("Missing required property"); |
| 47164 | 47654 | } |
| 47165 | - return new Set( | |
| 47166 | - Set::fromSet($obj->{'set'}) | |
| 47655 | + return new SimpleModule( | |
| 47656 | + SimpleModule::fromSimpleModule($obj->{'SimpleModule'}) | |
| 47167 | 47657 | ); |
| 47168 | 47658 | } |
| 47169 | 47659 | |
| 47170 | 47660 | /** |
| 47171 | - * @return Set | |
| 47661 | + * @return SimpleModule | |
| 47172 | 47662 | */ |
| 47173 | - public static function sample(): Set { | |
| 47174 | - return new Set( | |
| 47175 | - Set::sampleSet() | |
| 47663 | + public static function sample(): SimpleModule { | |
| 47664 | + return new SimpleModule( | |
| 47665 | + SimpleModule::sampleSimpleModule() | |
| 47176 | 47666 | ); |
| 47177 | 47667 | } |
| 47178 | 47668 | } |
| 47179 | 47669 | |
| 47180 | -// This is an autogenerated file:Short | |
| 47670 | +// This is an autogenerated file:Sizeof | |
| 47181 | 47671 | |
| 47182 | -class Short { | |
| 47183 | - private int $short; // json:short Required | |
| 47672 | +class Sizeof { | |
| 47673 | + private int $sizeof; // json:sizeof Required | |
| 47184 | 47674 | |
| 47185 | 47675 | /** |
| 47186 | - * @param int $short | |
| 47676 | + * @param int $sizeof | |
| 47187 | 47677 | */ |
| 47188 | - public function __construct(int $short) { | |
| 47189 | - $this->short = $short; | |
| 47678 | + public function __construct(int $sizeof) { | |
| 47679 | + $this->sizeof = $sizeof; | |
| 47190 | 47680 | } |
| 47191 | 47681 | |
| 47192 | 47682 | /** |
| @@ -47194,7 +47684,7 @@ class Short { | ||
| 47194 | 47684 | * @throws Exception |
| 47195 | 47685 | * @return int |
| 47196 | 47686 | */ |
| 47197 | - public static function fromShort(int $value): int { | |
| 47687 | + public static function fromSizeof(int $value): int { | |
| 47198 | 47688 | return $value; /*int*/ |
| 47199 | 47689 | } |
| 47200 | 47690 | |
| @@ -47202,11 +47692,11 @@ class Short { | ||
| 47202 | 47692 | * @throws Exception |
| 47203 | 47693 | * @return int |
| 47204 | 47694 | */ |
| 47205 | - public function toShort(): int { | |
| 47206 | - if (Short::validateShort($this->short)) { | |
| 47207 | - return $this->short; /*int*/ | |
| 47695 | + public function toSizeof(): int { | |
| 47696 | + if (Sizeof::validateSizeof($this->sizeof)) { | |
| 47697 | + return $this->sizeof; /*int*/ | |
| 47208 | 47698 | } |
| 47209 | - throw new Exception('never get to this Short::short'); | |
| 47699 | + throw new Exception('never get to this Sizeof::sizeof'); | |
| 47210 | 47700 | } |
| 47211 | 47701 | |
| 47212 | 47702 | /** |
| @@ -47214,7 +47704,7 @@ class Short { | ||
| 47214 | 47704 | * @return bool |
| 47215 | 47705 | * @throws Exception |
| 47216 | 47706 | */ |
| 47217 | - public static function validateShort(int $value): bool { | |
| 47707 | + public static function validateSizeof(int $value): bool { | |
| 47218 | 47708 | return true; |
| 47219 | 47709 | } |
| 47220 | 47710 | |
| @@ -47222,18 +47712,18 @@ class Short { | ||
| 47222 | 47712 | * @throws Exception |
| 47223 | 47713 | * @return int |
| 47224 | 47714 | */ |
| 47225 | - public function getShort(): int { | |
| 47226 | - if (Short::validateShort($this->short)) { | |
| 47227 | - return $this->short; | |
| 47715 | + public function getSizeof(): int { | |
| 47716 | + if (Sizeof::validateSizeof($this->sizeof)) { | |
| 47717 | + return $this->sizeof; | |
| 47228 | 47718 | } |
| 47229 | - throw new Exception('never get to getShort Short::short'); | |
| 47719 | + throw new Exception('never get to getSizeof Sizeof::sizeof'); | |
| 47230 | 47720 | } |
| 47231 | 47721 | |
| 47232 | 47722 | /** |
| 47233 | 47723 | * @return int |
| 47234 | 47724 | */ |
| 47235 | - public static function sampleShort(): int { | |
| 47236 | - return 31; /*31:short*/ | |
| 47725 | + public static function sampleSizeof(): int { | |
| 47726 | + return 31; /*31:sizeof*/ | |
| 47237 | 47727 | } |
| 47238 | 47728 | |
| 47239 | 47729 | /** |
| @@ -47241,7 +47731,7 @@ class Short { | ||
| 47241 | 47731 | * @return bool |
| 47242 | 47732 | */ |
| 47243 | 47733 | public function validate(): bool { |
| 47244 | - return Short::validateShort($this->short); | |
| 47734 | + return Sizeof::validateSizeof($this->sizeof); | |
| 47245 | 47735 | } |
| 47246 | 47736 | |
| 47247 | 47737 | /** |
| @@ -47250,44 +47740,44 @@ class Short { | ||
| 47250 | 47740 | */ |
| 47251 | 47741 | public function to(): stdClass { |
| 47252 | 47742 | $out = new stdClass(); |
| 47253 | - $out->{'short'} = $this->toShort(); | |
| 47743 | + $out->{'sizeof'} = $this->toSizeof(); | |
| 47254 | 47744 | return $out; |
| 47255 | 47745 | } |
| 47256 | 47746 | |
| 47257 | 47747 | /** |
| 47258 | 47748 | * @param stdClass $obj |
| 47259 | - * @return Short | |
| 47749 | + * @return Sizeof | |
| 47260 | 47750 | * @throws Exception |
| 47261 | 47751 | */ |
| 47262 | - public static function from(stdClass $obj): Short { | |
| 47263 | - if (!property_exists($obj, 'short')) { | |
| 47752 | + public static function from(stdClass $obj): Sizeof { | |
| 47753 | + if (!property_exists($obj, 'sizeof')) { | |
| 47264 | 47754 | throw new Exception("Missing required property"); |
| 47265 | 47755 | } |
| 47266 | - return new Short( | |
| 47267 | - Short::fromShort($obj->{'short'}) | |
| 47756 | + return new Sizeof( | |
| 47757 | + Sizeof::fromSizeof($obj->{'sizeof'}) | |
| 47268 | 47758 | ); |
| 47269 | 47759 | } |
| 47270 | 47760 | |
| 47271 | 47761 | /** |
| 47272 | - * @return Short | |
| 47762 | + * @return Sizeof | |
| 47273 | 47763 | */ |
| 47274 | - public static function sample(): Short { | |
| 47275 | - return new Short( | |
| 47276 | - Short::sampleShort() | |
| 47764 | + public static function sample(): Sizeof { | |
| 47765 | + return new Sizeof( | |
| 47766 | + Sizeof::sampleSizeof() | |
| 47277 | 47767 | ); |
| 47278 | 47768 | } |
| 47279 | 47769 | } |
| 47280 | 47770 | |
| 47281 | -// This is an autogenerated file:Signed | |
| 47771 | +// This is an autogenerated file:Stackalloc | |
| 47282 | 47772 | |
| 47283 | -class Signed { | |
| 47284 | - private int $signed; // json:signed Required | |
| 47773 | +class Stackalloc { | |
| 47774 | + private int $stackalloc; // json:stackalloc Required | |
| 47285 | 47775 | |
| 47286 | 47776 | /** |
| 47287 | - * @param int $signed | |
| 47777 | + * @param int $stackalloc | |
| 47288 | 47778 | */ |
| 47289 | - public function __construct(int $signed) { | |
| 47290 | - $this->signed = $signed; | |
| 47779 | + public function __construct(int $stackalloc) { | |
| 47780 | + $this->stackalloc = $stackalloc; | |
| 47291 | 47781 | } |
| 47292 | 47782 | |
| 47293 | 47783 | /** |
| @@ -47295,7 +47785,7 @@ class Signed { | ||
| 47295 | 47785 | * @throws Exception |
| 47296 | 47786 | * @return int |
| 47297 | 47787 | */ |
| 47298 | - public static function fromSigned(int $value): int { | |
| 47788 | + public static function fromStackalloc(int $value): int { | |
| 47299 | 47789 | return $value; /*int*/ |
| 47300 | 47790 | } |
| 47301 | 47791 | |
| @@ -47303,11 +47793,11 @@ class Signed { | ||
| 47303 | 47793 | * @throws Exception |
| 47304 | 47794 | * @return int |
| 47305 | 47795 | */ |
| 47306 | - public function toSigned(): int { | |
| 47307 | - if (Signed::validateSigned($this->signed)) { | |
| 47308 | - return $this->signed; /*int*/ | |
| 47796 | + public function toStackalloc(): int { | |
| 47797 | + if (Stackalloc::validateStackalloc($this->stackalloc)) { | |
| 47798 | + return $this->stackalloc; /*int*/ | |
| 47309 | 47799 | } |
| 47310 | - throw new Exception('never get to this Signed::signed'); | |
| 47800 | + throw new Exception('never get to this Stackalloc::stackalloc'); | |
| 47311 | 47801 | } |
| 47312 | 47802 | |
| 47313 | 47803 | /** |
| @@ -47315,7 +47805,7 @@ class Signed { | ||
| 47315 | 47805 | * @return bool |
| 47316 | 47806 | * @throws Exception |
| 47317 | 47807 | */ |
| 47318 | - public static function validateSigned(int $value): bool { | |
| 47808 | + public static function validateStackalloc(int $value): bool { | |
| 47319 | 47809 | return true; |
| 47320 | 47810 | } |
| 47321 | 47811 | |
| @@ -47323,18 +47813,18 @@ class Signed { | ||
| 47323 | 47813 | * @throws Exception |
| 47324 | 47814 | * @return int |
| 47325 | 47815 | */ |
| 47326 | - public function getSigned(): int { | |
| 47327 | - if (Signed::validateSigned($this->signed)) { | |
| 47328 | - return $this->signed; | |
| 47816 | + public function getStackalloc(): int { | |
| 47817 | + if (Stackalloc::validateStackalloc($this->stackalloc)) { | |
| 47818 | + return $this->stackalloc; | |
| 47329 | 47819 | } |
| 47330 | - throw new Exception('never get to getSigned Signed::signed'); | |
| 47820 | + throw new Exception('never get to getStackalloc Stackalloc::stackalloc'); | |
| 47331 | 47821 | } |
| 47332 | 47822 | |
| 47333 | 47823 | /** |
| 47334 | 47824 | * @return int |
| 47335 | 47825 | */ |
| 47336 | - public static function sampleSigned(): int { | |
| 47337 | - return 31; /*31:signed*/ | |
| 47826 | + public static function sampleStackalloc(): int { | |
| 47827 | + return 31; /*31:stackalloc*/ | |
| 47338 | 47828 | } |
| 47339 | 47829 | |
| 47340 | 47830 | /** |
| @@ -47342,7 +47832,7 @@ class Signed { | ||
| 47342 | 47832 | * @return bool |
| 47343 | 47833 | */ |
| 47344 | 47834 | public function validate(): bool { |
| 47345 | - return Signed::validateSigned($this->signed); | |
| 47835 | + return Stackalloc::validateStackalloc($this->stackalloc); | |
| 47346 | 47836 | } |
| 47347 | 47837 | |
| 47348 | 47838 | /** |
| @@ -47351,44 +47841,44 @@ class Signed { | ||
| 47351 | 47841 | */ |
| 47352 | 47842 | public function to(): stdClass { |
| 47353 | 47843 | $out = new stdClass(); |
| 47354 | - $out->{'signed'} = $this->toSigned(); | |
| 47844 | + $out->{'stackalloc'} = $this->toStackalloc(); | |
| 47355 | 47845 | return $out; |
| 47356 | 47846 | } |
| 47357 | 47847 | |
| 47358 | 47848 | /** |
| 47359 | 47849 | * @param stdClass $obj |
| 47360 | - * @return Signed | |
| 47850 | + * @return Stackalloc | |
| 47361 | 47851 | * @throws Exception |
| 47362 | 47852 | */ |
| 47363 | - public static function from(stdClass $obj): Signed { | |
| 47364 | - if (!property_exists($obj, 'signed')) { | |
| 47853 | + public static function from(stdClass $obj): Stackalloc { | |
| 47854 | + if (!property_exists($obj, 'stackalloc')) { | |
| 47365 | 47855 | throw new Exception("Missing required property"); |
| 47366 | 47856 | } |
| 47367 | - return new Signed( | |
| 47368 | - Signed::fromSigned($obj->{'signed'}) | |
| 47857 | + return new Stackalloc( | |
| 47858 | + Stackalloc::fromStackalloc($obj->{'stackalloc'}) | |
| 47369 | 47859 | ); |
| 47370 | 47860 | } |
| 47371 | 47861 | |
| 47372 | 47862 | /** |
| 47373 | - * @return Signed | |
| 47863 | + * @return Stackalloc | |
| 47374 | 47864 | */ |
| 47375 | - public static function sample(): Signed { | |
| 47376 | - return new Signed( | |
| 47377 | - Signed::sampleSigned() | |
| 47865 | + public static function sample(): Stackalloc { | |
| 47866 | + return new Stackalloc( | |
| 47867 | + Stackalloc::sampleStackalloc() | |
| 47378 | 47868 | ); |
| 47379 | 47869 | } |
| 47380 | 47870 | } |
| 47381 | 47871 | |
| 47382 | -// This is an autogenerated file:SimpleModule | |
| 47872 | +// This is an autogenerated file:Standards | |
| 47383 | 47873 | |
| 47384 | -class SimpleModule { | |
| 47385 | - private int $simpleModule; // json:SimpleModule Required | |
| 47874 | +class Standards { | |
| 47875 | + private int $standards; // json:Standards Required | |
| 47386 | 47876 | |
| 47387 | 47877 | /** |
| 47388 | - * @param int $simpleModule | |
| 47878 | + * @param int $standards | |
| 47389 | 47879 | */ |
| 47390 | - public function __construct(int $simpleModule) { | |
| 47391 | - $this->simpleModule = $simpleModule; | |
| 47880 | + public function __construct(int $standards) { | |
| 47881 | + $this->standards = $standards; | |
| 47392 | 47882 | } |
| 47393 | 47883 | |
| 47394 | 47884 | /** |
| @@ -47396,7 +47886,7 @@ class SimpleModule { | ||
| 47396 | 47886 | * @throws Exception |
| 47397 | 47887 | * @return int |
| 47398 | 47888 | */ |
| 47399 | - public static function fromSimpleModule(int $value): int { | |
| 47889 | + public static function fromStandards(int $value): int { | |
| 47400 | 47890 | return $value; /*int*/ |
| 47401 | 47891 | } |
| 47402 | 47892 | |
| @@ -47404,11 +47894,11 @@ class SimpleModule { | ||
| 47404 | 47894 | * @throws Exception |
| 47405 | 47895 | * @return int |
| 47406 | 47896 | */ |
| 47407 | - public function toSimpleModule(): int { | |
| 47408 | - if (SimpleModule::validateSimpleModule($this->simpleModule)) { | |
| 47409 | - return $this->simpleModule; /*int*/ | |
| 47897 | + public function toStandards(): int { | |
| 47898 | + if (Standards::validateStandards($this->standards)) { | |
| 47899 | + return $this->standards; /*int*/ | |
| 47410 | 47900 | } |
| 47411 | - throw new Exception('never get to this SimpleModule::simpleModule'); | |
| 47901 | + throw new Exception('never get to this Standards::standards'); | |
| 47412 | 47902 | } |
| 47413 | 47903 | |
| 47414 | 47904 | /** |
| @@ -47416,7 +47906,7 @@ class SimpleModule { | ||
| 47416 | 47906 | * @return bool |
| 47417 | 47907 | * @throws Exception |
| 47418 | 47908 | */ |
| 47419 | - public static function validateSimpleModule(int $value): bool { | |
| 47909 | + public static function validateStandards(int $value): bool { | |
| 47420 | 47910 | return true; |
| 47421 | 47911 | } |
| 47422 | 47912 | |
| @@ -47424,18 +47914,18 @@ class SimpleModule { | ||
| 47424 | 47914 | * @throws Exception |
| 47425 | 47915 | * @return int |
| 47426 | 47916 | */ |
| 47427 | - public function getSimpleModule(): int { | |
| 47428 | - if (SimpleModule::validateSimpleModule($this->simpleModule)) { | |
| 47429 | - return $this->simpleModule; | |
| 47917 | + public function getStandards(): int { | |
| 47918 | + if (Standards::validateStandards($this->standards)) { | |
| 47919 | + return $this->standards; | |
| 47430 | 47920 | } |
| 47431 | - throw new Exception('never get to getSimpleModule SimpleModule::simpleModule'); | |
| 47921 | + throw new Exception('never get to getStandards Standards::standards'); | |
| 47432 | 47922 | } |
| 47433 | 47923 | |
| 47434 | 47924 | /** |
| 47435 | 47925 | * @return int |
| 47436 | 47926 | */ |
| 47437 | - public static function sampleSimpleModule(): int { | |
| 47438 | - return 31; /*31:simpleModule*/ | |
| 47927 | + public static function sampleStandards(): int { | |
| 47928 | + return 31; /*31:standards*/ | |
| 47439 | 47929 | } |
| 47440 | 47930 | |
| 47441 | 47931 | /** |
| @@ -47443,7 +47933,7 @@ class SimpleModule { | ||
| 47443 | 47933 | * @return bool |
| 47444 | 47934 | */ |
| 47445 | 47935 | public function validate(): bool { |
| 47446 | - return SimpleModule::validateSimpleModule($this->simpleModule); | |
| 47936 | + return Standards::validateStandards($this->standards); | |
| 47447 | 47937 | } |
| 47448 | 47938 | |
| 47449 | 47939 | /** |
| @@ -47452,44 +47942,44 @@ class SimpleModule { | ||
| 47452 | 47942 | */ |
| 47453 | 47943 | public function to(): stdClass { |
| 47454 | 47944 | $out = new stdClass(); |
| 47455 | - $out->{'SimpleModule'} = $this->toSimpleModule(); | |
| 47945 | + $out->{'Standards'} = $this->toStandards(); | |
| 47456 | 47946 | return $out; |
| 47457 | 47947 | } |
| 47458 | 47948 | |
| 47459 | 47949 | /** |
| 47460 | 47950 | * @param stdClass $obj |
| 47461 | - * @return SimpleModule | |
| 47951 | + * @return Standards | |
| 47462 | 47952 | * @throws Exception |
| 47463 | 47953 | */ |
| 47464 | - public static function from(stdClass $obj): SimpleModule { | |
| 47465 | - if (!property_exists($obj, 'SimpleModule')) { | |
| 47954 | + public static function from(stdClass $obj): Standards { | |
| 47955 | + if (!property_exists($obj, 'Standards')) { | |
| 47466 | 47956 | throw new Exception("Missing required property"); |
| 47467 | 47957 | } |
| 47468 | - return new SimpleModule( | |
| 47469 | - SimpleModule::fromSimpleModule($obj->{'SimpleModule'}) | |
| 47958 | + return new Standards( | |
| 47959 | + Standards::fromStandards($obj->{'Standards'}) | |
| 47470 | 47960 | ); |
| 47471 | 47961 | } |
| 47472 | 47962 | |
| 47473 | 47963 | /** |
| 47474 | - * @return SimpleModule | |
| 47964 | + * @return Standards | |
| 47475 | 47965 | */ |
| 47476 | - public static function sample(): SimpleModule { | |
| 47477 | - return new SimpleModule( | |
| 47478 | - SimpleModule::sampleSimpleModule() | |
| 47966 | + public static function sample(): Standards { | |
| 47967 | + return new Standards( | |
| 47968 | + Standards::sampleStandards() | |
| 47479 | 47969 | ); |
| 47480 | 47970 | } |
| 47481 | 47971 | } |
| 47482 | 47972 | |
| 47483 | -// This is an autogenerated file:Sizeof | |
| 47973 | +// This is an autogenerated file:StaticClass | |
| 47484 | 47974 | |
| 47485 | -class Sizeof { | |
| 47486 | - private int $sizeof; // json:sizeof Required | |
| 47975 | +class StaticClass { | |
| 47976 | + private int $static; // json:static Required | |
| 47487 | 47977 | |
| 47488 | 47978 | /** |
| 47489 | - * @param int $sizeof | |
| 47979 | + * @param int $static | |
| 47490 | 47980 | */ |
| 47491 | - public function __construct(int $sizeof) { | |
| 47492 | - $this->sizeof = $sizeof; | |
| 47981 | + public function __construct(int $static) { | |
| 47982 | + $this->static = $static; | |
| 47493 | 47983 | } |
| 47494 | 47984 | |
| 47495 | 47985 | /** |
| @@ -47497,7 +47987,7 @@ class Sizeof { | ||
| 47497 | 47987 | * @throws Exception |
| 47498 | 47988 | * @return int |
| 47499 | 47989 | */ |
| 47500 | - public static function fromSizeof(int $value): int { | |
| 47990 | + public static function fromStatic(int $value): int { | |
| 47501 | 47991 | return $value; /*int*/ |
| 47502 | 47992 | } |
| 47503 | 47993 | |
| @@ -47505,11 +47995,11 @@ class Sizeof { | ||
| 47505 | 47995 | * @throws Exception |
| 47506 | 47996 | * @return int |
| 47507 | 47997 | */ |
| 47508 | - public function toSizeof(): int { | |
| 47509 | - if (Sizeof::validateSizeof($this->sizeof)) { | |
| 47510 | - return $this->sizeof; /*int*/ | |
| 47998 | + public function toStatic(): int { | |
| 47999 | + if (StaticClass::validateStatic($this->static)) { | |
| 48000 | + return $this->static; /*int*/ | |
| 47511 | 48001 | } |
| 47512 | - throw new Exception('never get to this Sizeof::sizeof'); | |
| 48002 | + throw new Exception('never get to this StaticClass::static'); | |
| 47513 | 48003 | } |
| 47514 | 48004 | |
| 47515 | 48005 | /** |
| @@ -47517,7 +48007,7 @@ class Sizeof { | ||
| 47517 | 48007 | * @return bool |
| 47518 | 48008 | * @throws Exception |
| 47519 | 48009 | */ |
| 47520 | - public static function validateSizeof(int $value): bool { | |
| 48010 | + public static function validateStatic(int $value): bool { | |
| 47521 | 48011 | return true; |
| 47522 | 48012 | } |
| 47523 | 48013 | |
| @@ -47525,18 +48015,18 @@ class Sizeof { | ||
| 47525 | 48015 | * @throws Exception |
| 47526 | 48016 | * @return int |
| 47527 | 48017 | */ |
| 47528 | - public function getSizeof(): int { | |
| 47529 | - if (Sizeof::validateSizeof($this->sizeof)) { | |
| 47530 | - return $this->sizeof; | |
| 48018 | + public function getStatic(): int { | |
| 48019 | + if (StaticClass::validateStatic($this->static)) { | |
| 48020 | + return $this->static; | |
| 47531 | 48021 | } |
| 47532 | - throw new Exception('never get to getSizeof Sizeof::sizeof'); | |
| 48022 | + throw new Exception('never get to getStatic StaticClass::static'); | |
| 47533 | 48023 | } |
| 47534 | 48024 | |
| 47535 | 48025 | /** |
| 47536 | 48026 | * @return int |
| 47537 | 48027 | */ |
| 47538 | - public static function sampleSizeof(): int { | |
| 47539 | - return 31; /*31:sizeof*/ | |
| 48028 | + public static function sampleStatic(): int { | |
| 48029 | + return 31; /*31:static*/ | |
| 47540 | 48030 | } |
| 47541 | 48031 | |
| 47542 | 48032 | /** |
| @@ -47544,7 +48034,7 @@ class Sizeof { | ||
| 47544 | 48034 | * @return bool |
| 47545 | 48035 | */ |
| 47546 | 48036 | public function validate(): bool { |
| 47547 | - return Sizeof::validateSizeof($this->sizeof); | |
| 48037 | + return StaticClass::validateStatic($this->static); | |
| 47548 | 48038 | } |
| 47549 | 48039 | |
| 47550 | 48040 | /** |
| @@ -47553,44 +48043,44 @@ class Sizeof { | ||
| 47553 | 48043 | */ |
| 47554 | 48044 | public function to(): stdClass { |
| 47555 | 48045 | $out = new stdClass(); |
| 47556 | - $out->{'sizeof'} = $this->toSizeof(); | |
| 48046 | + $out->{'static'} = $this->toStatic(); | |
| 47557 | 48047 | return $out; |
| 47558 | 48048 | } |
| 47559 | 48049 | |
| 47560 | 48050 | /** |
| 47561 | 48051 | * @param stdClass $obj |
| 47562 | - * @return Sizeof | |
| 48052 | + * @return StaticClass | |
| 47563 | 48053 | * @throws Exception |
| 47564 | 48054 | */ |
| 47565 | - public static function from(stdClass $obj): Sizeof { | |
| 47566 | - if (!property_exists($obj, 'sizeof')) { | |
| 48055 | + public static function from(stdClass $obj): StaticClass { | |
| 48056 | + if (!property_exists($obj, 'static')) { | |
| 47567 | 48057 | throw new Exception("Missing required property"); |
| 47568 | 48058 | } |
| 47569 | - return new Sizeof( | |
| 47570 | - Sizeof::fromSizeof($obj->{'sizeof'}) | |
| 48059 | + return new StaticClass( | |
| 48060 | + StaticClass::fromStatic($obj->{'static'}) | |
| 47571 | 48061 | ); |
| 47572 | 48062 | } |
| 47573 | 48063 | |
| 47574 | 48064 | /** |
| 47575 | - * @return Sizeof | |
| 48065 | + * @return StaticClass | |
| 47576 | 48066 | */ |
| 47577 | - public static function sample(): Sizeof { | |
| 47578 | - return new Sizeof( | |
| 47579 | - Sizeof::sampleSizeof() | |
| 48067 | + public static function sample(): StaticClass { | |
| 48068 | + return new StaticClass( | |
| 48069 | + StaticClass::sampleStatic() | |
| 47580 | 48070 | ); |
| 47581 | 48071 | } |
| 47582 | 48072 | } |
| 47583 | 48073 | |
| 47584 | -// This is an autogenerated file:Stackalloc | |
| 48074 | +// This is an autogenerated file:StaticAssert | |
| 47585 | 48075 | |
| 47586 | -class Stackalloc { | |
| 47587 | - private int $stackalloc; // json:stackalloc Required | |
| 48076 | +class StaticAssert { | |
| 48077 | + private int $staticAssert; // json:static_assert Required | |
| 47588 | 48078 | |
| 47589 | 48079 | /** |
| 47590 | - * @param int $stackalloc | |
| 48080 | + * @param int $staticAssert | |
| 47591 | 48081 | */ |
| 47592 | - public function __construct(int $stackalloc) { | |
| 47593 | - $this->stackalloc = $stackalloc; | |
| 48082 | + public function __construct(int $staticAssert) { | |
| 48083 | + $this->staticAssert = $staticAssert; | |
| 47594 | 48084 | } |
| 47595 | 48085 | |
| 47596 | 48086 | /** |
| @@ -47598,7 +48088,7 @@ class Stackalloc { | ||
| 47598 | 48088 | * @throws Exception |
| 47599 | 48089 | * @return int |
| 47600 | 48090 | */ |
| 47601 | - public static function fromStackalloc(int $value): int { | |
| 48091 | + public static function fromStaticAssert(int $value): int { | |
| 47602 | 48092 | return $value; /*int*/ |
| 47603 | 48093 | } |
| 47604 | 48094 | |
| @@ -47606,11 +48096,11 @@ class Stackalloc { | ||
| 47606 | 48096 | * @throws Exception |
| 47607 | 48097 | * @return int |
| 47608 | 48098 | */ |
| 47609 | - public function toStackalloc(): int { | |
| 47610 | - if (Stackalloc::validateStackalloc($this->stackalloc)) { | |
| 47611 | - return $this->stackalloc; /*int*/ | |
| 48099 | + public function toStaticAssert(): int { | |
| 48100 | + if (StaticAssert::validateStaticAssert($this->staticAssert)) { | |
| 48101 | + return $this->staticAssert; /*int*/ | |
| 47612 | 48102 | } |
| 47613 | - throw new Exception('never get to this Stackalloc::stackalloc'); | |
| 48103 | + throw new Exception('never get to this StaticAssert::staticAssert'); | |
| 47614 | 48104 | } |
| 47615 | 48105 | |
| 47616 | 48106 | /** |
| @@ -47618,7 +48108,7 @@ class Stackalloc { | ||
| 47618 | 48108 | * @return bool |
| 47619 | 48109 | * @throws Exception |
| 47620 | 48110 | */ |
| 47621 | - public static function validateStackalloc(int $value): bool { | |
| 48111 | + public static function validateStaticAssert(int $value): bool { | |
| 47622 | 48112 | return true; |
| 47623 | 48113 | } |
| 47624 | 48114 | |
| @@ -47626,18 +48116,18 @@ class Stackalloc { | ||
| 47626 | 48116 | * @throws Exception |
| 47627 | 48117 | * @return int |
| 47628 | 48118 | */ |
| 47629 | - public function getStackalloc(): int { | |
| 47630 | - if (Stackalloc::validateStackalloc($this->stackalloc)) { | |
| 47631 | - return $this->stackalloc; | |
| 48119 | + public function getStaticAssert(): int { | |
| 48120 | + if (StaticAssert::validateStaticAssert($this->staticAssert)) { | |
| 48121 | + return $this->staticAssert; | |
| 47632 | 48122 | } |
| 47633 | - throw new Exception('never get to getStackalloc Stackalloc::stackalloc'); | |
| 48123 | + throw new Exception('never get to getStaticAssert StaticAssert::staticAssert'); | |
| 47634 | 48124 | } |
| 47635 | 48125 | |
| 47636 | 48126 | /** |
| 47637 | 48127 | * @return int |
| 47638 | 48128 | */ |
| 47639 | - public static function sampleStackalloc(): int { | |
| 47640 | - return 31; /*31:stackalloc*/ | |
| 48129 | + public static function sampleStaticAssert(): int { | |
| 48130 | + return 31; /*31:staticAssert*/ | |
| 47641 | 48131 | } |
| 47642 | 48132 | |
| 47643 | 48133 | /** |
| @@ -47645,7 +48135,7 @@ class Stackalloc { | ||
| 47645 | 48135 | * @return bool |
| 47646 | 48136 | */ |
| 47647 | 48137 | public function validate(): bool { |
| 47648 | - return Stackalloc::validateStackalloc($this->stackalloc); | |
| 48138 | + return StaticAssert::validateStaticAssert($this->staticAssert); | |
| 47649 | 48139 | } |
| 47650 | 48140 | |
| 47651 | 48141 | /** |
| @@ -47654,44 +48144,44 @@ class Stackalloc { | ||
| 47654 | 48144 | */ |
| 47655 | 48145 | public function to(): stdClass { |
| 47656 | 48146 | $out = new stdClass(); |
| 47657 | - $out->{'stackalloc'} = $this->toStackalloc(); | |
| 48147 | + $out->{'static_assert'} = $this->toStaticAssert(); | |
| 47658 | 48148 | return $out; |
| 47659 | 48149 | } |
| 47660 | 48150 | |
| 47661 | 48151 | /** |
| 47662 | 48152 | * @param stdClass $obj |
| 47663 | - * @return Stackalloc | |
| 48153 | + * @return StaticAssert | |
| 47664 | 48154 | * @throws Exception |
| 47665 | 48155 | */ |
| 47666 | - public static function from(stdClass $obj): Stackalloc { | |
| 47667 | - if (!property_exists($obj, 'stackalloc')) { | |
| 48156 | + public static function from(stdClass $obj): StaticAssert { | |
| 48157 | + if (!property_exists($obj, 'static_assert')) { | |
| 47668 | 48158 | throw new Exception("Missing required property"); |
| 47669 | 48159 | } |
| 47670 | - return new Stackalloc( | |
| 47671 | - Stackalloc::fromStackalloc($obj->{'stackalloc'}) | |
| 48160 | + return new StaticAssert( | |
| 48161 | + StaticAssert::fromStaticAssert($obj->{'static_assert'}) | |
| 47672 | 48162 | ); |
| 47673 | 48163 | } |
| 47674 | 48164 | |
| 47675 | 48165 | /** |
| 47676 | - * @return Stackalloc | |
| 48166 | + * @return StaticAssert | |
| 47677 | 48167 | */ |
| 47678 | - public static function sample(): Stackalloc { | |
| 47679 | - return new Stackalloc( | |
| 47680 | - Stackalloc::sampleStackalloc() | |
| 48168 | + public static function sample(): StaticAssert { | |
| 48169 | + return new StaticAssert( | |
| 48170 | + StaticAssert::sampleStaticAssert() | |
| 47681 | 48171 | ); |
| 47682 | 48172 | } |
| 47683 | 48173 | } |
| 47684 | 48174 | |
| 47685 | -// This is an autogenerated file:Standards | |
| 48175 | +// This is an autogenerated file:StaticCast | |
| 47686 | 48176 | |
| 47687 | -class Standards { | |
| 47688 | - private int $standards; // json:Standards Required | |
| 48177 | +class StaticCast { | |
| 48178 | + private int $staticCast; // json:static_cast Required | |
| 47689 | 48179 | |
| 47690 | 48180 | /** |
| 47691 | - * @param int $standards | |
| 48181 | + * @param int $staticCast | |
| 47692 | 48182 | */ |
| 47693 | - public function __construct(int $standards) { | |
| 47694 | - $this->standards = $standards; | |
| 48183 | + public function __construct(int $staticCast) { | |
| 48184 | + $this->staticCast = $staticCast; | |
| 47695 | 48185 | } |
| 47696 | 48186 | |
| 47697 | 48187 | /** |
| @@ -47699,7 +48189,7 @@ class Standards { | ||
| 47699 | 48189 | * @throws Exception |
| 47700 | 48190 | * @return int |
| 47701 | 48191 | */ |
| 47702 | - public static function fromStandards(int $value): int { | |
| 48192 | + public static function fromStaticCast(int $value): int { | |
| 47703 | 48193 | return $value; /*int*/ |
| 47704 | 48194 | } |
| 47705 | 48195 | |
| @@ -47707,11 +48197,11 @@ class Standards { | ||
| 47707 | 48197 | * @throws Exception |
| 47708 | 48198 | * @return int |
| 47709 | 48199 | */ |
| 47710 | - public function toStandards(): int { | |
| 47711 | - if (Standards::validateStandards($this->standards)) { | |
| 47712 | - return $this->standards; /*int*/ | |
| 48200 | + public function toStaticCast(): int { | |
| 48201 | + if (StaticCast::validateStaticCast($this->staticCast)) { | |
| 48202 | + return $this->staticCast; /*int*/ | |
| 47713 | 48203 | } |
| 47714 | - throw new Exception('never get to this Standards::standards'); | |
| 48204 | + throw new Exception('never get to this StaticCast::staticCast'); | |
| 47715 | 48205 | } |
| 47716 | 48206 | |
| 47717 | 48207 | /** |
| @@ -47719,7 +48209,7 @@ class Standards { | ||
| 47719 | 48209 | * @return bool |
| 47720 | 48210 | * @throws Exception |
| 47721 | 48211 | */ |
| 47722 | - public static function validateStandards(int $value): bool { | |
| 48212 | + public static function validateStaticCast(int $value): bool { | |
| 47723 | 48213 | return true; |
| 47724 | 48214 | } |
| 47725 | 48215 | |
| @@ -47727,18 +48217,18 @@ class Standards { | ||
| 47727 | 48217 | * @throws Exception |
| 47728 | 48218 | * @return int |
| 47729 | 48219 | */ |
| 47730 | - public function getStandards(): int { | |
| 47731 | - if (Standards::validateStandards($this->standards)) { | |
| 47732 | - return $this->standards; | |
| 48220 | + public function getStaticCast(): int { | |
| 48221 | + if (StaticCast::validateStaticCast($this->staticCast)) { | |
| 48222 | + return $this->staticCast; | |
| 47733 | 48223 | } |
| 47734 | - throw new Exception('never get to getStandards Standards::standards'); | |
| 48224 | + throw new Exception('never get to getStaticCast StaticCast::staticCast'); | |
| 47735 | 48225 | } |
| 47736 | 48226 | |
| 47737 | 48227 | /** |
| 47738 | 48228 | * @return int |
| 47739 | 48229 | */ |
| 47740 | - public static function sampleStandards(): int { | |
| 47741 | - return 31; /*31:standards*/ | |
| 48230 | + public static function sampleStaticCast(): int { | |
| 48231 | + return 31; /*31:staticCast*/ | |
| 47742 | 48232 | } |
| 47743 | 48233 | |
| 47744 | 48234 | /** |
| @@ -47746,7 +48236,7 @@ class Standards { | ||
| 47746 | 48236 | * @return bool |
| 47747 | 48237 | */ |
| 47748 | 48238 | public function validate(): bool { |
| 47749 | - return Standards::validateStandards($this->standards); | |
| 48239 | + return StaticCast::validateStaticCast($this->staticCast); | |
| 47750 | 48240 | } |
| 47751 | 48241 | |
| 47752 | 48242 | /** |
| @@ -47755,44 +48245,44 @@ class Standards { | ||
| 47755 | 48245 | */ |
| 47756 | 48246 | public function to(): stdClass { |
| 47757 | 48247 | $out = new stdClass(); |
| 47758 | - $out->{'Standards'} = $this->toStandards(); | |
| 48248 | + $out->{'static_cast'} = $this->toStaticCast(); | |
| 47759 | 48249 | return $out; |
| 47760 | 48250 | } |
| 47761 | 48251 | |
| 47762 | 48252 | /** |
| 47763 | 48253 | * @param stdClass $obj |
| 47764 | - * @return Standards | |
| 48254 | + * @return StaticCast | |
| 47765 | 48255 | * @throws Exception |
| 47766 | 48256 | */ |
| 47767 | - public static function from(stdClass $obj): Standards { | |
| 47768 | - if (!property_exists($obj, 'Standards')) { | |
| 48257 | + public static function from(stdClass $obj): StaticCast { | |
| 48258 | + if (!property_exists($obj, 'static_cast')) { | |
| 47769 | 48259 | throw new Exception("Missing required property"); |
| 47770 | 48260 | } |
| 47771 | - return new Standards( | |
| 47772 | - Standards::fromStandards($obj->{'Standards'}) | |
| 48261 | + return new StaticCast( | |
| 48262 | + StaticCast::fromStaticCast($obj->{'static_cast'}) | |
| 47773 | 48263 | ); |
| 47774 | 48264 | } |
| 47775 | 48265 | |
| 47776 | 48266 | /** |
| 47777 | - * @return Standards | |
| 48267 | + * @return StaticCast | |
| 47778 | 48268 | */ |
| 47779 | - public static function sample(): Standards { | |
| 47780 | - return new Standards( | |
| 47781 | - Standards::sampleStandards() | |
| 48269 | + public static function sample(): StaticCast { | |
| 48270 | + return new StaticCast( | |
| 48271 | + StaticCast::sampleStaticCast() | |
| 47782 | 48272 | ); |
| 47783 | 48273 | } |
| 47784 | 48274 | } |
| 47785 | 48275 | |
| 47786 | -// This is an autogenerated file:StaticClass | |
| 48276 | +// This is an autogenerated file:StdDeserializer | |
| 47787 | 48277 | |
| 47788 | -class StaticClass { | |
| 47789 | - private int $static; // json:static Required | |
| 48278 | +class StdDeserializer { | |
| 48279 | + private int $stdDeserializer; // json:StdDeserializer Required | |
| 47790 | 48280 | |
| 47791 | 48281 | /** |
| 47792 | - * @param int $static | |
| 48282 | + * @param int $stdDeserializer | |
| 47793 | 48283 | */ |
| 47794 | - public function __construct(int $static) { | |
| 47795 | - $this->static = $static; | |
| 48284 | + public function __construct(int $stdDeserializer) { | |
| 48285 | + $this->stdDeserializer = $stdDeserializer; | |
| 47796 | 48286 | } |
| 47797 | 48287 | |
| 47798 | 48288 | /** |
| @@ -47800,7 +48290,7 @@ class StaticClass { | ||
| 47800 | 48290 | * @throws Exception |
| 47801 | 48291 | * @return int |
| 47802 | 48292 | */ |
| 47803 | - public static function fromStatic(int $value): int { | |
| 48293 | + public static function fromStdDeserializer(int $value): int { | |
| 47804 | 48294 | return $value; /*int*/ |
| 47805 | 48295 | } |
| 47806 | 48296 | |
| @@ -47808,11 +48298,11 @@ class StaticClass { | ||
| 47808 | 48298 | * @throws Exception |
| 47809 | 48299 | * @return int |
| 47810 | 48300 | */ |
| 47811 | - public function toStatic(): int { | |
| 47812 | - if (StaticClass::validateStatic($this->static)) { | |
| 47813 | - return $this->static; /*int*/ | |
| 48301 | + public function toStdDeserializer(): int { | |
| 48302 | + if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) { | |
| 48303 | + return $this->stdDeserializer; /*int*/ | |
| 47814 | 48304 | } |
| 47815 | - throw new Exception('never get to this StaticClass::static'); | |
| 48305 | + throw new Exception('never get to this StdDeserializer::stdDeserializer'); | |
| 47816 | 48306 | } |
| 47817 | 48307 | |
| 47818 | 48308 | /** |
| @@ -47820,7 +48310,7 @@ class StaticClass { | ||
| 47820 | 48310 | * @return bool |
| 47821 | 48311 | * @throws Exception |
| 47822 | 48312 | */ |
| 47823 | - public static function validateStatic(int $value): bool { | |
| 48313 | + public static function validateStdDeserializer(int $value): bool { | |
| 47824 | 48314 | return true; |
| 47825 | 48315 | } |
| 47826 | 48316 | |
| @@ -47828,18 +48318,18 @@ class StaticClass { | ||
| 47828 | 48318 | * @throws Exception |
| 47829 | 48319 | * @return int |
| 47830 | 48320 | */ |
| 47831 | - public function getStatic(): int { | |
| 47832 | - if (StaticClass::validateStatic($this->static)) { | |
| 47833 | - return $this->static; | |
| 48321 | + public function getStdDeserializer(): int { | |
| 48322 | + if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) { | |
| 48323 | + return $this->stdDeserializer; | |
| 47834 | 48324 | } |
| 47835 | - throw new Exception('never get to getStatic StaticClass::static'); | |
| 48325 | + throw new Exception('never get to getStdDeserializer StdDeserializer::stdDeserializer'); | |
| 47836 | 48326 | } |
| 47837 | 48327 | |
| 47838 | 48328 | /** |
| 47839 | 48329 | * @return int |
| 47840 | 48330 | */ |
| 47841 | - public static function sampleStatic(): int { | |
| 47842 | - return 31; /*31:static*/ | |
| 48331 | + public static function sampleStdDeserializer(): int { | |
| 48332 | + return 31; /*31:stdDeserializer*/ | |
| 47843 | 48333 | } |
| 47844 | 48334 | |
| 47845 | 48335 | /** |
| @@ -47847,7 +48337,7 @@ class StaticClass { | ||
| 47847 | 48337 | * @return bool |
| 47848 | 48338 | */ |
| 47849 | 48339 | public function validate(): bool { |
| 47850 | - return StaticClass::validateStatic($this->static); | |
| 48340 | + return StdDeserializer::validateStdDeserializer($this->stdDeserializer); | |
| 47851 | 48341 | } |
| 47852 | 48342 | |
| 47853 | 48343 | /** |
| @@ -47856,44 +48346,44 @@ class StaticClass { | ||
| 47856 | 48346 | */ |
| 47857 | 48347 | public function to(): stdClass { |
| 47858 | 48348 | $out = new stdClass(); |
| 47859 | - $out->{'static'} = $this->toStatic(); | |
| 48349 | + $out->{'StdDeserializer'} = $this->toStdDeserializer(); | |
| 47860 | 48350 | return $out; |
| 47861 | 48351 | } |
| 47862 | 48352 | |
| 47863 | 48353 | /** |
| 47864 | 48354 | * @param stdClass $obj |
| 47865 | - * @return StaticClass | |
| 48355 | + * @return StdDeserializer | |
| 47866 | 48356 | * @throws Exception |
| 47867 | 48357 | */ |
| 47868 | - public static function from(stdClass $obj): StaticClass { | |
| 47869 | - if (!property_exists($obj, 'static')) { | |
| 48358 | + public static function from(stdClass $obj): StdDeserializer { | |
| 48359 | + if (!property_exists($obj, 'StdDeserializer')) { | |
| 47870 | 48360 | throw new Exception("Missing required property"); |
| 47871 | 48361 | } |
| 47872 | - return new StaticClass( | |
| 47873 | - StaticClass::fromStatic($obj->{'static'}) | |
| 48362 | + return new StdDeserializer( | |
| 48363 | + StdDeserializer::fromStdDeserializer($obj->{'StdDeserializer'}) | |
| 47874 | 48364 | ); |
| 47875 | 48365 | } |
| 47876 | 48366 | |
| 47877 | 48367 | /** |
| 47878 | - * @return StaticClass | |
| 48368 | + * @return StdDeserializer | |
| 47879 | 48369 | */ |
| 47880 | - public static function sample(): StaticClass { | |
| 47881 | - return new StaticClass( | |
| 47882 | - StaticClass::sampleStatic() | |
| 48370 | + public static function sample(): StdDeserializer { | |
| 48371 | + return new StdDeserializer( | |
| 48372 | + StdDeserializer::sampleStdDeserializer() | |
| 47883 | 48373 | ); |
| 47884 | 48374 | } |
| 47885 | 48375 | } |
| 47886 | 48376 | |
| 47887 | -// This is an autogenerated file:StaticAssert | |
| 48377 | +// This is an autogenerated file:StdSerializer | |
| 47888 | 48378 | |
| 47889 | -class StaticAssert { | |
| 47890 | - private int $staticAssert; // json:static_assert Required | |
| 48379 | +class StdSerializer { | |
| 48380 | + private int $stdSerializer; // json:StdSerializer Required | |
| 47891 | 48381 | |
| 47892 | 48382 | /** |
| 47893 | - * @param int $staticAssert | |
| 48383 | + * @param int $stdSerializer | |
| 47894 | 48384 | */ |
| 47895 | - public function __construct(int $staticAssert) { | |
| 47896 | - $this->staticAssert = $staticAssert; | |
| 48385 | + public function __construct(int $stdSerializer) { | |
| 48386 | + $this->stdSerializer = $stdSerializer; | |
| 47897 | 48387 | } |
| 47898 | 48388 | |
| 47899 | 48389 | /** |
| @@ -47901,7 +48391,7 @@ class StaticAssert { | ||
| 47901 | 48391 | * @throws Exception |
| 47902 | 48392 | * @return int |
| 47903 | 48393 | */ |
| 47904 | - public static function fromStaticAssert(int $value): int { | |
| 48394 | + public static function fromStdSerializer(int $value): int { | |
| 47905 | 48395 | return $value; /*int*/ |
| 47906 | 48396 | } |
| 47907 | 48397 | |
| @@ -47909,11 +48399,11 @@ class StaticAssert { | ||
| 47909 | 48399 | * @throws Exception |
| 47910 | 48400 | * @return int |
| 47911 | 48401 | */ |
| 47912 | - public function toStaticAssert(): int { | |
| 47913 | - if (StaticAssert::validateStaticAssert($this->staticAssert)) { | |
| 47914 | - return $this->staticAssert; /*int*/ | |
| 48402 | + public function toStdSerializer(): int { | |
| 48403 | + if (StdSerializer::validateStdSerializer($this->stdSerializer)) { | |
| 48404 | + return $this->stdSerializer; /*int*/ | |
| 47915 | 48405 | } |
| 47916 | - throw new Exception('never get to this StaticAssert::staticAssert'); | |
| 48406 | + throw new Exception('never get to this StdSerializer::stdSerializer'); | |
| 47917 | 48407 | } |
| 47918 | 48408 | |
| 47919 | 48409 | /** |
| @@ -47921,7 +48411,7 @@ class StaticAssert { | ||
| 47921 | 48411 | * @return bool |
| 47922 | 48412 | * @throws Exception |
| 47923 | 48413 | */ |
| 47924 | - public static function validateStaticAssert(int $value): bool { | |
| 48414 | + public static function validateStdSerializer(int $value): bool { | |
| 47925 | 48415 | return true; |
| 47926 | 48416 | } |
| 47927 | 48417 | |
| @@ -47929,18 +48419,18 @@ class StaticAssert { | ||
| 47929 | 48419 | * @throws Exception |
| 47930 | 48420 | * @return int |
| 47931 | 48421 | */ |
| 47932 | - public function getStaticAssert(): int { | |
| 47933 | - if (StaticAssert::validateStaticAssert($this->staticAssert)) { | |
| 47934 | - return $this->staticAssert; | |
| 48422 | + public function getStdSerializer(): int { | |
| 48423 | + if (StdSerializer::validateStdSerializer($this->stdSerializer)) { | |
| 48424 | + return $this->stdSerializer; | |
| 47935 | 48425 | } |
| 47936 | - throw new Exception('never get to getStaticAssert StaticAssert::staticAssert'); | |
| 48426 | + throw new Exception('never get to getStdSerializer StdSerializer::stdSerializer'); | |
| 47937 | 48427 | } |
| 47938 | 48428 | |
| 47939 | 48429 | /** |
| 47940 | 48430 | * @return int |
| 47941 | 48431 | */ |
| 47942 | - public static function sampleStaticAssert(): int { | |
| 47943 | - return 31; /*31:staticAssert*/ | |
| 48432 | + public static function sampleStdSerializer(): int { | |
| 48433 | + return 31; /*31:stdSerializer*/ | |
| 47944 | 48434 | } |
| 47945 | 48435 | |
| 47946 | 48436 | /** |
| @@ -47948,7 +48438,7 @@ class StaticAssert { | ||
| 47948 | 48438 | * @return bool |
| 47949 | 48439 | */ |
| 47950 | 48440 | public function validate(): bool { |
| 47951 | - return StaticAssert::validateStaticAssert($this->staticAssert); | |
| 48441 | + return StdSerializer::validateStdSerializer($this->stdSerializer); | |
| 47952 | 48442 | } |
| 47953 | 48443 | |
| 47954 | 48444 | /** |
| @@ -47957,44 +48447,44 @@ class StaticAssert { | ||
| 47957 | 48447 | */ |
| 47958 | 48448 | public function to(): stdClass { |
| 47959 | 48449 | $out = new stdClass(); |
| 47960 | - $out->{'static_assert'} = $this->toStaticAssert(); | |
| 48450 | + $out->{'StdSerializer'} = $this->toStdSerializer(); | |
| 47961 | 48451 | return $out; |
| 47962 | 48452 | } |
| 47963 | 48453 | |
| 47964 | 48454 | /** |
| 47965 | 48455 | * @param stdClass $obj |
| 47966 | - * @return StaticAssert | |
| 48456 | + * @return StdSerializer | |
| 47967 | 48457 | * @throws Exception |
| 47968 | 48458 | */ |
| 47969 | - public static function from(stdClass $obj): StaticAssert { | |
| 47970 | - if (!property_exists($obj, 'static_assert')) { | |
| 48459 | + public static function from(stdClass $obj): StdSerializer { | |
| 48460 | + if (!property_exists($obj, 'StdSerializer')) { | |
| 47971 | 48461 | throw new Exception("Missing required property"); |
| 47972 | 48462 | } |
| 47973 | - return new StaticAssert( | |
| 47974 | - StaticAssert::fromStaticAssert($obj->{'static_assert'}) | |
| 48463 | + return new StdSerializer( | |
| 48464 | + StdSerializer::fromStdSerializer($obj->{'StdSerializer'}) | |
| 47975 | 48465 | ); |
| 47976 | 48466 | } |
| 47977 | 48467 | |
| 47978 | 48468 | /** |
| 47979 | - * @return StaticAssert | |
| 48469 | + * @return StdSerializer | |
| 47980 | 48470 | */ |
| 47981 | - public static function sample(): StaticAssert { | |
| 47982 | - return new StaticAssert( | |
| 47983 | - StaticAssert::sampleStaticAssert() | |
| 48471 | + public static function sample(): StdSerializer { | |
| 48472 | + return new StdSerializer( | |
| 48473 | + StdSerializer::sampleStdSerializer() | |
| 47984 | 48474 | ); |
| 47985 | 48475 | } |
| 47986 | 48476 | } |
| 47987 | 48477 | |
| 47988 | -// This is an autogenerated file:StaticCast | |
| 47989 | - | |
| 47990 | -class StaticCast { | |
| 47991 | - private int $staticCast; // json:static_cast Required | |
| 48478 | +// This is an autogenerated file:Strictfp | |
| 48479 | + | |
| 48480 | +class Strictfp { | |
| 48481 | + private int $strictfp; // json:strictfp Required | |
| 47992 | 48482 | |
| 47993 | 48483 | /** |
| 47994 | - * @param int $staticCast | |
| 48484 | + * @param int $strictfp | |
| 47995 | 48485 | */ |
| 47996 | - public function __construct(int $staticCast) { | |
| 47997 | - $this->staticCast = $staticCast; | |
| 48486 | + public function __construct(int $strictfp) { | |
| 48487 | + $this->strictfp = $strictfp; | |
| 47998 | 48488 | } |
| 47999 | 48489 | |
| 48000 | 48490 | /** |
| @@ -48002,7 +48492,7 @@ class StaticCast { | ||
| 48002 | 48492 | * @throws Exception |
| 48003 | 48493 | * @return int |
| 48004 | 48494 | */ |
| 48005 | - public static function fromStaticCast(int $value): int { | |
| 48495 | + public static function fromStrictfp(int $value): int { | |
| 48006 | 48496 | return $value; /*int*/ |
| 48007 | 48497 | } |
| 48008 | 48498 | |
| @@ -48010,11 +48500,11 @@ class StaticCast { | ||
| 48010 | 48500 | * @throws Exception |
| 48011 | 48501 | * @return int |
| 48012 | 48502 | */ |
| 48013 | - public function toStaticCast(): int { | |
| 48014 | - if (StaticCast::validateStaticCast($this->staticCast)) { | |
| 48015 | - return $this->staticCast; /*int*/ | |
| 48503 | + public function toStrictfp(): int { | |
| 48504 | + if (Strictfp::validateStrictfp($this->strictfp)) { | |
| 48505 | + return $this->strictfp; /*int*/ | |
| 48016 | 48506 | } |
| 48017 | - throw new Exception('never get to this StaticCast::staticCast'); | |
| 48507 | + throw new Exception('never get to this Strictfp::strictfp'); | |
| 48018 | 48508 | } |
| 48019 | 48509 | |
| 48020 | 48510 | /** |
| @@ -48022,7 +48512,7 @@ class StaticCast { | ||
| 48022 | 48512 | * @return bool |
| 48023 | 48513 | * @throws Exception |
| 48024 | 48514 | */ |
| 48025 | - public static function validateStaticCast(int $value): bool { | |
| 48515 | + public static function validateStrictfp(int $value): bool { | |
| 48026 | 48516 | return true; |
| 48027 | 48517 | } |
| 48028 | 48518 | |
| @@ -48030,18 +48520,18 @@ class StaticCast { | ||
| 48030 | 48520 | * @throws Exception |
| 48031 | 48521 | * @return int |
| 48032 | 48522 | */ |
| 48033 | - public function getStaticCast(): int { | |
| 48034 | - if (StaticCast::validateStaticCast($this->staticCast)) { | |
| 48035 | - return $this->staticCast; | |
| 48523 | + public function getStrictfp(): int { | |
| 48524 | + if (Strictfp::validateStrictfp($this->strictfp)) { | |
| 48525 | + return $this->strictfp; | |
| 48036 | 48526 | } |
| 48037 | - throw new Exception('never get to getStaticCast StaticCast::staticCast'); | |
| 48527 | + throw new Exception('never get to getStrictfp Strictfp::strictfp'); | |
| 48038 | 48528 | } |
| 48039 | 48529 | |
| 48040 | 48530 | /** |
| 48041 | 48531 | * @return int |
| 48042 | 48532 | */ |
| 48043 | - public static function sampleStaticCast(): int { | |
| 48044 | - return 31; /*31:staticCast*/ | |
| 48533 | + public static function sampleStrictfp(): int { | |
| 48534 | + return 31; /*31:strictfp*/ | |
| 48045 | 48535 | } |
| 48046 | 48536 | |
| 48047 | 48537 | /** |
| @@ -48049,7 +48539,7 @@ class StaticCast { | ||
| 48049 | 48539 | * @return bool |
| 48050 | 48540 | */ |
| 48051 | 48541 | public function validate(): bool { |
| 48052 | - return StaticCast::validateStaticCast($this->staticCast); | |
| 48542 | + return Strictfp::validateStrictfp($this->strictfp); | |
| 48053 | 48543 | } |
| 48054 | 48544 | |
| 48055 | 48545 | /** |
| @@ -48058,44 +48548,44 @@ class StaticCast { | ||
| 48058 | 48548 | */ |
| 48059 | 48549 | public function to(): stdClass { |
| 48060 | 48550 | $out = new stdClass(); |
| 48061 | - $out->{'static_cast'} = $this->toStaticCast(); | |
| 48551 | + $out->{'strictfp'} = $this->toStrictfp(); | |
| 48062 | 48552 | return $out; |
| 48063 | 48553 | } |
| 48064 | 48554 | |
| 48065 | 48555 | /** |
| 48066 | 48556 | * @param stdClass $obj |
| 48067 | - * @return StaticCast | |
| 48557 | + * @return Strictfp | |
| 48068 | 48558 | * @throws Exception |
| 48069 | 48559 | */ |
| 48070 | - public static function from(stdClass $obj): StaticCast { | |
| 48071 | - if (!property_exists($obj, 'static_cast')) { | |
| 48560 | + public static function from(stdClass $obj): Strictfp { | |
| 48561 | + if (!property_exists($obj, 'strictfp')) { | |
| 48072 | 48562 | throw new Exception("Missing required property"); |
| 48073 | 48563 | } |
| 48074 | - return new StaticCast( | |
| 48075 | - StaticCast::fromStaticCast($obj->{'static_cast'}) | |
| 48564 | + return new Strictfp( | |
| 48565 | + Strictfp::fromStrictfp($obj->{'strictfp'}) | |
| 48076 | 48566 | ); |
| 48077 | 48567 | } |
| 48078 | 48568 | |
| 48079 | 48569 | /** |
| 48080 | - * @return StaticCast | |
| 48570 | + * @return Strictfp | |
| 48081 | 48571 | */ |
| 48082 | - public static function sample(): StaticCast { | |
| 48083 | - return new StaticCast( | |
| 48084 | - StaticCast::sampleStaticCast() | |
| 48572 | + public static function sample(): Strictfp { | |
| 48573 | + return new Strictfp( | |
| 48574 | + Strictfp::sampleStrictfp() | |
| 48085 | 48575 | ); |
| 48086 | 48576 | } |
| 48087 | 48577 | } |
| 48088 | 48578 | |
| 48089 | -// This is an autogenerated file:StdDeserializer | |
| 48579 | +// This is an autogenerated file:StringClass | |
| 48090 | 48580 | |
| 48091 | -class StdDeserializer { | |
| 48092 | - private int $stdDeserializer; // json:StdDeserializer Required | |
| 48581 | +class StringClass { | |
| 48582 | + private int $string; // json:string Required | |
| 48093 | 48583 | |
| 48094 | 48584 | /** |
| 48095 | - * @param int $stdDeserializer | |
| 48585 | + * @param int $string | |
| 48096 | 48586 | */ |
| 48097 | - public function __construct(int $stdDeserializer) { | |
| 48098 | - $this->stdDeserializer = $stdDeserializer; | |
| 48587 | + public function __construct(int $string) { | |
| 48588 | + $this->string = $string; | |
| 48099 | 48589 | } |
| 48100 | 48590 | |
| 48101 | 48591 | /** |
| @@ -48103,7 +48593,7 @@ class StdDeserializer { | ||
| 48103 | 48593 | * @throws Exception |
| 48104 | 48594 | * @return int |
| 48105 | 48595 | */ |
| 48106 | - public static function fromStdDeserializer(int $value): int { | |
| 48596 | + public static function fromString(int $value): int { | |
| 48107 | 48597 | return $value; /*int*/ |
| 48108 | 48598 | } |
| 48109 | 48599 | |
| @@ -48111,11 +48601,11 @@ class StdDeserializer { | ||
| 48111 | 48601 | * @throws Exception |
| 48112 | 48602 | * @return int |
| 48113 | 48603 | */ |
| 48114 | - public function toStdDeserializer(): int { | |
| 48115 | - if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) { | |
| 48116 | - return $this->stdDeserializer; /*int*/ | |
| 48604 | + public function toString(): int { | |
| 48605 | + if (StringClass::validateString($this->string)) { | |
| 48606 | + return $this->string; /*int*/ | |
| 48117 | 48607 | } |
| 48118 | - throw new Exception('never get to this StdDeserializer::stdDeserializer'); | |
| 48608 | + throw new Exception('never get to this StringClass::string'); | |
| 48119 | 48609 | } |
| 48120 | 48610 | |
| 48121 | 48611 | /** |
| @@ -48123,7 +48613,7 @@ class StdDeserializer { | ||
| 48123 | 48613 | * @return bool |
| 48124 | 48614 | * @throws Exception |
| 48125 | 48615 | */ |
| 48126 | - public static function validateStdDeserializer(int $value): bool { | |
| 48616 | + public static function validateString(int $value): bool { | |
| 48127 | 48617 | return true; |
| 48128 | 48618 | } |
| 48129 | 48619 | |
| @@ -48131,18 +48621,18 @@ class StdDeserializer { | ||
| 48131 | 48621 | * @throws Exception |
| 48132 | 48622 | * @return int |
| 48133 | 48623 | */ |
| 48134 | - public function getStdDeserializer(): int { | |
| 48135 | - if (StdDeserializer::validateStdDeserializer($this->stdDeserializer)) { | |
| 48136 | - return $this->stdDeserializer; | |
| 48624 | + public function getString(): int { | |
| 48625 | + if (StringClass::validateString($this->string)) { | |
| 48626 | + return $this->string; | |
| 48137 | 48627 | } |
| 48138 | - throw new Exception('never get to getStdDeserializer StdDeserializer::stdDeserializer'); | |
| 48628 | + throw new Exception('never get to getString StringClass::string'); | |
| 48139 | 48629 | } |
| 48140 | 48630 | |
| 48141 | 48631 | /** |
| 48142 | 48632 | * @return int |
| 48143 | 48633 | */ |
| 48144 | - public static function sampleStdDeserializer(): int { | |
| 48145 | - return 31; /*31:stdDeserializer*/ | |
| 48634 | + public static function sampleString(): int { | |
| 48635 | + return 31; /*31:string*/ | |
| 48146 | 48636 | } |
| 48147 | 48637 | |
| 48148 | 48638 | /** |
| @@ -48150,7 +48640,7 @@ class StdDeserializer { | ||
| 48150 | 48640 | * @return bool |
| 48151 | 48641 | */ |
| 48152 | 48642 | public function validate(): bool { |
| 48153 | - return StdDeserializer::validateStdDeserializer($this->stdDeserializer); | |
| 48643 | + return StringClass::validateString($this->string); | |
| 48154 | 48644 | } |
| 48155 | 48645 | |
| 48156 | 48646 | /** |
| @@ -48159,44 +48649,44 @@ class StdDeserializer { | ||
| 48159 | 48649 | */ |
| 48160 | 48650 | public function to(): stdClass { |
| 48161 | 48651 | $out = new stdClass(); |
| 48162 | - $out->{'StdDeserializer'} = $this->toStdDeserializer(); | |
| 48652 | + $out->{'string'} = $this->toString(); | |
| 48163 | 48653 | return $out; |
| 48164 | 48654 | } |
| 48165 | 48655 | |
| 48166 | 48656 | /** |
| 48167 | 48657 | * @param stdClass $obj |
| 48168 | - * @return StdDeserializer | |
| 48658 | + * @return StringClass | |
| 48169 | 48659 | * @throws Exception |
| 48170 | 48660 | */ |
| 48171 | - public static function from(stdClass $obj): StdDeserializer { | |
| 48172 | - if (!property_exists($obj, 'StdDeserializer')) { | |
| 48661 | + public static function from(stdClass $obj): StringClass { | |
| 48662 | + if (!property_exists($obj, 'string')) { | |
| 48173 | 48663 | throw new Exception("Missing required property"); |
| 48174 | 48664 | } |
| 48175 | - return new StdDeserializer( | |
| 48176 | - StdDeserializer::fromStdDeserializer($obj->{'StdDeserializer'}) | |
| 48665 | + return new StringClass( | |
| 48666 | + StringClass::fromString($obj->{'string'}) | |
| 48177 | 48667 | ); |
| 48178 | 48668 | } |
| 48179 | 48669 | |
| 48180 | 48670 | /** |
| 48181 | - * @return StdDeserializer | |
| 48671 | + * @return StringClass | |
| 48182 | 48672 | */ |
| 48183 | - public static function sample(): StdDeserializer { | |
| 48184 | - return new StdDeserializer( | |
| 48185 | - StdDeserializer::sampleStdDeserializer() | |
| 48673 | + public static function sample(): StringClass { | |
| 48674 | + return new StringClass( | |
| 48675 | + StringClass::sampleString() | |
| 48186 | 48676 | ); |
| 48187 | 48677 | } |
| 48188 | 48678 | } |
| 48189 | 48679 | |
| 48190 | -// This is an autogenerated file:StdSerializer | |
| 48680 | +// This is an autogenerated file:Struct | |
| 48191 | 48681 | |
| 48192 | -class StdSerializer { | |
| 48193 | - private int $stdSerializer; // json:StdSerializer Required | |
| 48682 | +class Struct { | |
| 48683 | + private int $struct; // json:struct Required | |
| 48194 | 48684 | |
| 48195 | 48685 | /** |
| 48196 | - * @param int $stdSerializer | |
| 48686 | + * @param int $struct | |
| 48197 | 48687 | */ |
| 48198 | - public function __construct(int $stdSerializer) { | |
| 48199 | - $this->stdSerializer = $stdSerializer; | |
| 48688 | + public function __construct(int $struct) { | |
| 48689 | + $this->struct = $struct; | |
| 48200 | 48690 | } |
| 48201 | 48691 | |
| 48202 | 48692 | /** |
| @@ -48204,7 +48694,7 @@ class StdSerializer { | ||
| 48204 | 48694 | * @throws Exception |
| 48205 | 48695 | * @return int |
| 48206 | 48696 | */ |
| 48207 | - public static function fromStdSerializer(int $value): int { | |
| 48697 | + public static function fromStruct(int $value): int { | |
| 48208 | 48698 | return $value; /*int*/ |
| 48209 | 48699 | } |
| 48210 | 48700 | |
| @@ -48212,11 +48702,11 @@ class StdSerializer { | ||
| 48212 | 48702 | * @throws Exception |
| 48213 | 48703 | * @return int |
| 48214 | 48704 | */ |
| 48215 | - public function toStdSerializer(): int { | |
| 48216 | - if (StdSerializer::validateStdSerializer($this->stdSerializer)) { | |
| 48217 | - return $this->stdSerializer; /*int*/ | |
| 48705 | + public function toStruct(): int { | |
| 48706 | + if (Struct::validateStruct($this->struct)) { | |
| 48707 | + return $this->struct; /*int*/ | |
| 48218 | 48708 | } |
| 48219 | - throw new Exception('never get to this StdSerializer::stdSerializer'); | |
| 48709 | + throw new Exception('never get to this Struct::struct'); | |
| 48220 | 48710 | } |
| 48221 | 48711 | |
| 48222 | 48712 | /** |
| @@ -48224,7 +48714,7 @@ class StdSerializer { | ||
| 48224 | 48714 | * @return bool |
| 48225 | 48715 | * @throws Exception |
| 48226 | 48716 | */ |
| 48227 | - public static function validateStdSerializer(int $value): bool { | |
| 48717 | + public static function validateStruct(int $value): bool { | |
| 48228 | 48718 | return true; |
| 48229 | 48719 | } |
| 48230 | 48720 | |
| @@ -48232,18 +48722,18 @@ class StdSerializer { | ||
| 48232 | 48722 | * @throws Exception |
| 48233 | 48723 | * @return int |
| 48234 | 48724 | */ |
| 48235 | - public function getStdSerializer(): int { | |
| 48236 | - if (StdSerializer::validateStdSerializer($this->stdSerializer)) { | |
| 48237 | - return $this->stdSerializer; | |
| 48725 | + public function getStruct(): int { | |
| 48726 | + if (Struct::validateStruct($this->struct)) { | |
| 48727 | + return $this->struct; | |
| 48238 | 48728 | } |
| 48239 | - throw new Exception('never get to getStdSerializer StdSerializer::stdSerializer'); | |
| 48729 | + throw new Exception('never get to getStruct Struct::struct'); | |
| 48240 | 48730 | } |
| 48241 | 48731 | |
| 48242 | 48732 | /** |
| 48243 | 48733 | * @return int |
| 48244 | 48734 | */ |
| 48245 | - public static function sampleStdSerializer(): int { | |
| 48246 | - return 31; /*31:stdSerializer*/ | |
| 48735 | + public static function sampleStruct(): int { | |
| 48736 | + return 31; /*31:struct*/ | |
| 48247 | 48737 | } |
| 48248 | 48738 | |
| 48249 | 48739 | /** |
| @@ -48251,7 +48741,7 @@ class StdSerializer { | ||
| 48251 | 48741 | * @return bool |
| 48252 | 48742 | */ |
| 48253 | 48743 | public function validate(): bool { |
| 48254 | - return StdSerializer::validateStdSerializer($this->stdSerializer); | |
| 48744 | + return Struct::validateStruct($this->struct); | |
| 48255 | 48745 | } |
| 48256 | 48746 | |
| 48257 | 48747 | /** |
| @@ -48260,44 +48750,44 @@ class StdSerializer { | ||
| 48260 | 48750 | */ |
| 48261 | 48751 | public function to(): stdClass { |
| 48262 | 48752 | $out = new stdClass(); |
| 48263 | - $out->{'StdSerializer'} = $this->toStdSerializer(); | |
| 48753 | + $out->{'struct'} = $this->toStruct(); | |
| 48264 | 48754 | return $out; |
| 48265 | 48755 | } |
| 48266 | 48756 | |
| 48267 | 48757 | /** |
| 48268 | 48758 | * @param stdClass $obj |
| 48269 | - * @return StdSerializer | |
| 48759 | + * @return Struct | |
| 48270 | 48760 | * @throws Exception |
| 48271 | 48761 | */ |
| 48272 | - public static function from(stdClass $obj): StdSerializer { | |
| 48273 | - if (!property_exists($obj, 'StdSerializer')) { | |
| 48762 | + public static function from(stdClass $obj): Struct { | |
| 48763 | + if (!property_exists($obj, 'struct')) { | |
| 48274 | 48764 | throw new Exception("Missing required property"); |
| 48275 | 48765 | } |
| 48276 | - return new StdSerializer( | |
| 48277 | - StdSerializer::fromStdSerializer($obj->{'StdSerializer'}) | |
| 48766 | + return new Struct( | |
| 48767 | + Struct::fromStruct($obj->{'struct'}) | |
| 48278 | 48768 | ); |
| 48279 | 48769 | } |
| 48280 | 48770 | |
| 48281 | 48771 | /** |
| 48282 | - * @return StdSerializer | |
| 48772 | + * @return Struct | |
| 48283 | 48773 | */ |
| 48284 | - public static function sample(): StdSerializer { | |
| 48285 | - return new StdSerializer( | |
| 48286 | - StdSerializer::sampleStdSerializer() | |
| 48774 | + public static function sample(): Struct { | |
| 48775 | + return new Struct( | |
| 48776 | + Struct::sampleStruct() | |
| 48287 | 48777 | ); |
| 48288 | 48778 | } |
| 48289 | 48779 | } |
| 48290 | 48780 | |
| 48291 | -// This is an autogenerated file:Strictfp | |
| 48781 | +// This is an autogenerated file:Subscript | |
| 48292 | 48782 | |
| 48293 | -class Strictfp { | |
| 48294 | - private int $strictfp; // json:strictfp Required | |
| 48783 | +class Subscript { | |
| 48784 | + private int $subscript; // json:subscript Required | |
| 48295 | 48785 | |
| 48296 | 48786 | /** |
| 48297 | - * @param int $strictfp | |
| 48787 | + * @param int $subscript | |
| 48298 | 48788 | */ |
| 48299 | - public function __construct(int $strictfp) { | |
| 48300 | - $this->strictfp = $strictfp; | |
| 48789 | + public function __construct(int $subscript) { | |
| 48790 | + $this->subscript = $subscript; | |
| 48301 | 48791 | } |
| 48302 | 48792 | |
| 48303 | 48793 | /** |
| @@ -48305,7 +48795,7 @@ class Strictfp { | ||
| 48305 | 48795 | * @throws Exception |
| 48306 | 48796 | * @return int |
| 48307 | 48797 | */ |
| 48308 | - public static function fromStrictfp(int $value): int { | |
| 48798 | + public static function fromSubscript(int $value): int { | |
| 48309 | 48799 | return $value; /*int*/ |
| 48310 | 48800 | } |
| 48311 | 48801 | |
| @@ -48313,11 +48803,11 @@ class Strictfp { | ||
| 48313 | 48803 | * @throws Exception |
| 48314 | 48804 | * @return int |
| 48315 | 48805 | */ |
| 48316 | - public function toStrictfp(): int { | |
| 48317 | - if (Strictfp::validateStrictfp($this->strictfp)) { | |
| 48318 | - return $this->strictfp; /*int*/ | |
| 48806 | + public function toSubscript(): int { | |
| 48807 | + if (Subscript::validateSubscript($this->subscript)) { | |
| 48808 | + return $this->subscript; /*int*/ | |
| 48319 | 48809 | } |
| 48320 | - throw new Exception('never get to this Strictfp::strictfp'); | |
| 48810 | + throw new Exception('never get to this Subscript::subscript'); | |
| 48321 | 48811 | } |
| 48322 | 48812 | |
| 48323 | 48813 | /** |
| @@ -48325,7 +48815,7 @@ class Strictfp { | ||
| 48325 | 48815 | * @return bool |
| 48326 | 48816 | * @throws Exception |
| 48327 | 48817 | */ |
| 48328 | - public static function validateStrictfp(int $value): bool { | |
| 48818 | + public static function validateSubscript(int $value): bool { | |
| 48329 | 48819 | return true; |
| 48330 | 48820 | } |
| 48331 | 48821 | |
| @@ -48333,18 +48823,18 @@ class Strictfp { | ||
| 48333 | 48823 | * @throws Exception |
| 48334 | 48824 | * @return int |
| 48335 | 48825 | */ |
| 48336 | - public function getStrictfp(): int { | |
| 48337 | - if (Strictfp::validateStrictfp($this->strictfp)) { | |
| 48338 | - return $this->strictfp; | |
| 48826 | + public function getSubscript(): int { | |
| 48827 | + if (Subscript::validateSubscript($this->subscript)) { | |
| 48828 | + return $this->subscript; | |
| 48339 | 48829 | } |
| 48340 | - throw new Exception('never get to getStrictfp Strictfp::strictfp'); | |
| 48830 | + throw new Exception('never get to getSubscript Subscript::subscript'); | |
| 48341 | 48831 | } |
| 48342 | 48832 | |
| 48343 | 48833 | /** |
| 48344 | 48834 | * @return int |
| 48345 | 48835 | */ |
| 48346 | - public static function sampleStrictfp(): int { | |
| 48347 | - return 31; /*31:strictfp*/ | |
| 48836 | + public static function sampleSubscript(): int { | |
| 48837 | + return 31; /*31:subscript*/ | |
| 48348 | 48838 | } |
| 48349 | 48839 | |
| 48350 | 48840 | /** |
| @@ -48352,7 +48842,7 @@ class Strictfp { | ||
| 48352 | 48842 | * @return bool |
| 48353 | 48843 | */ |
| 48354 | 48844 | public function validate(): bool { |
| 48355 | - return Strictfp::validateStrictfp($this->strictfp); | |
| 48845 | + return Subscript::validateSubscript($this->subscript); | |
| 48356 | 48846 | } |
| 48357 | 48847 | |
| 48358 | 48848 | /** |
| @@ -48361,44 +48851,44 @@ class Strictfp { | ||
| 48361 | 48851 | */ |
| 48362 | 48852 | public function to(): stdClass { |
| 48363 | 48853 | $out = new stdClass(); |
| 48364 | - $out->{'strictfp'} = $this->toStrictfp(); | |
| 48854 | + $out->{'subscript'} = $this->toSubscript(); | |
| 48365 | 48855 | return $out; |
| 48366 | 48856 | } |
| 48367 | 48857 | |
| 48368 | 48858 | /** |
| 48369 | 48859 | * @param stdClass $obj |
| 48370 | - * @return Strictfp | |
| 48860 | + * @return Subscript | |
| 48371 | 48861 | * @throws Exception |
| 48372 | 48862 | */ |
| 48373 | - public static function from(stdClass $obj): Strictfp { | |
| 48374 | - if (!property_exists($obj, 'strictfp')) { | |
| 48863 | + public static function from(stdClass $obj): Subscript { | |
| 48864 | + if (!property_exists($obj, 'subscript')) { | |
| 48375 | 48865 | throw new Exception("Missing required property"); |
| 48376 | 48866 | } |
| 48377 | - return new Strictfp( | |
| 48378 | - Strictfp::fromStrictfp($obj->{'strictfp'}) | |
| 48867 | + return new Subscript( | |
| 48868 | + Subscript::fromSubscript($obj->{'subscript'}) | |
| 48379 | 48869 | ); |
| 48380 | 48870 | } |
| 48381 | 48871 | |
| 48382 | 48872 | /** |
| 48383 | - * @return Strictfp | |
| 48873 | + * @return Subscript | |
| 48384 | 48874 | */ |
| 48385 | - public static function sample(): Strictfp { | |
| 48386 | - return new Strictfp( | |
| 48387 | - Strictfp::sampleStrictfp() | |
| 48875 | + public static function sample(): Subscript { | |
| 48876 | + return new Subscript( | |
| 48877 | + Subscript::sampleSubscript() | |
| 48388 | 48878 | ); |
| 48389 | 48879 | } |
| 48390 | 48880 | } |
| 48391 | 48881 | |
| 48392 | -// This is an autogenerated file:StringClass | |
| 48882 | +// This is an autogenerated file:Super | |
| 48393 | 48883 | |
| 48394 | -class StringClass { | |
| 48395 | - private int $string; // json:string Required | |
| 48884 | +class Super { | |
| 48885 | + private int $super; // json:super Required | |
| 48396 | 48886 | |
| 48397 | 48887 | /** |
| 48398 | - * @param int $string | |
| 48888 | + * @param int $super | |
| 48399 | 48889 | */ |
| 48400 | - public function __construct(int $string) { | |
| 48401 | - $this->string = $string; | |
| 48890 | + public function __construct(int $super) { | |
| 48891 | + $this->super = $super; | |
| 48402 | 48892 | } |
| 48403 | 48893 | |
| 48404 | 48894 | /** |
| @@ -48406,7 +48896,7 @@ class StringClass { | ||
| 48406 | 48896 | * @throws Exception |
| 48407 | 48897 | * @return int |
| 48408 | 48898 | */ |
| 48409 | - public static function fromString(int $value): int { | |
| 48899 | + public static function fromSuper(int $value): int { | |
| 48410 | 48900 | return $value; /*int*/ |
| 48411 | 48901 | } |
| 48412 | 48902 | |
| @@ -48414,11 +48904,11 @@ class StringClass { | ||
| 48414 | 48904 | * @throws Exception |
| 48415 | 48905 | * @return int |
| 48416 | 48906 | */ |
| 48417 | - public function toString(): int { | |
| 48418 | - if (StringClass::validateString($this->string)) { | |
| 48419 | - return $this->string; /*int*/ | |
| 48907 | + public function toSuper(): int { | |
| 48908 | + if (Super::validateSuper($this->super)) { | |
| 48909 | + return $this->super; /*int*/ | |
| 48420 | 48910 | } |
| 48421 | - throw new Exception('never get to this StringClass::string'); | |
| 48911 | + throw new Exception('never get to this Super::super'); | |
| 48422 | 48912 | } |
| 48423 | 48913 | |
| 48424 | 48914 | /** |
| @@ -48426,7 +48916,7 @@ class StringClass { | ||
| 48426 | 48916 | * @return bool |
| 48427 | 48917 | * @throws Exception |
| 48428 | 48918 | */ |
| 48429 | - public static function validateString(int $value): bool { | |
| 48919 | + public static function validateSuper(int $value): bool { | |
| 48430 | 48920 | return true; |
| 48431 | 48921 | } |
| 48432 | 48922 | |
| @@ -48434,18 +48924,18 @@ class StringClass { | ||
| 48434 | 48924 | * @throws Exception |
| 48435 | 48925 | * @return int |
| 48436 | 48926 | */ |
| 48437 | - public function getString(): int { | |
| 48438 | - if (StringClass::validateString($this->string)) { | |
| 48439 | - return $this->string; | |
| 48927 | + public function getSuper(): int { | |
| 48928 | + if (Super::validateSuper($this->super)) { | |
| 48929 | + return $this->super; | |
| 48440 | 48930 | } |
| 48441 | - throw new Exception('never get to getString StringClass::string'); | |
| 48931 | + throw new Exception('never get to getSuper Super::super'); | |
| 48442 | 48932 | } |
| 48443 | 48933 | |
| 48444 | 48934 | /** |
| 48445 | 48935 | * @return int |
| 48446 | 48936 | */ |
| 48447 | - public static function sampleString(): int { | |
| 48448 | - return 31; /*31:string*/ | |
| 48937 | + public static function sampleSuper(): int { | |
| 48938 | + return 31; /*31:super*/ | |
| 48449 | 48939 | } |
| 48450 | 48940 | |
| 48451 | 48941 | /** |
| @@ -48453,7 +48943,7 @@ class StringClass { | ||
| 48453 | 48943 | * @return bool |
| 48454 | 48944 | */ |
| 48455 | 48945 | public function validate(): bool { |
| 48456 | - return StringClass::validateString($this->string); | |
| 48946 | + return Super::validateSuper($this->super); | |
| 48457 | 48947 | } |
| 48458 | 48948 | |
| 48459 | 48949 | /** |
| @@ -48462,44 +48952,44 @@ class StringClass { | ||
| 48462 | 48952 | */ |
| 48463 | 48953 | public function to(): stdClass { |
| 48464 | 48954 | $out = new stdClass(); |
| 48465 | - $out->{'string'} = $this->toString(); | |
| 48955 | + $out->{'super'} = $this->toSuper(); | |
| 48466 | 48956 | return $out; |
| 48467 | 48957 | } |
| 48468 | 48958 | |
| 48469 | 48959 | /** |
| 48470 | 48960 | * @param stdClass $obj |
| 48471 | - * @return StringClass | |
| 48961 | + * @return Super | |
| 48472 | 48962 | * @throws Exception |
| 48473 | 48963 | */ |
| 48474 | - public static function from(stdClass $obj): StringClass { | |
| 48475 | - if (!property_exists($obj, 'string')) { | |
| 48964 | + public static function from(stdClass $obj): Super { | |
| 48965 | + if (!property_exists($obj, 'super')) { | |
| 48476 | 48966 | throw new Exception("Missing required property"); |
| 48477 | 48967 | } |
| 48478 | - return new StringClass( | |
| 48479 | - StringClass::fromString($obj->{'string'}) | |
| 48968 | + return new Super( | |
| 48969 | + Super::fromSuper($obj->{'super'}) | |
| 48480 | 48970 | ); |
| 48481 | 48971 | } |
| 48482 | 48972 | |
| 48483 | 48973 | /** |
| 48484 | - * @return StringClass | |
| 48974 | + * @return Super | |
| 48485 | 48975 | */ |
| 48486 | - public static function sample(): StringClass { | |
| 48487 | - return new StringClass( | |
| 48488 | - StringClass::sampleString() | |
| 48976 | + public static function sample(): Super { | |
| 48977 | + return new Super( | |
| 48978 | + Super::sampleSuper() | |
| 48489 | 48979 | ); |
| 48490 | 48980 | } |
| 48491 | 48981 | } |
| 48492 | 48982 | |
| 48493 | -// This is an autogenerated file:Struct | |
| 48983 | +// This is an autogenerated file:SwitchClass | |
| 48494 | 48984 | |
| 48495 | -class Struct { | |
| 48496 | - private int $struct; // json:struct Required | |
| 48985 | +class SwitchClass { | |
| 48986 | + private int $switch; // json:switch Required | |
| 48497 | 48987 | |
| 48498 | 48988 | /** |
| 48499 | - * @param int $struct | |
| 48989 | + * @param int $switch | |
| 48500 | 48990 | */ |
| 48501 | - public function __construct(int $struct) { | |
| 48502 | - $this->struct = $struct; | |
| 48991 | + public function __construct(int $switch) { | |
| 48992 | + $this->switch = $switch; | |
| 48503 | 48993 | } |
| 48504 | 48994 | |
| 48505 | 48995 | /** |
| @@ -48507,7 +48997,7 @@ class Struct { | ||
| 48507 | 48997 | * @throws Exception |
| 48508 | 48998 | * @return int |
| 48509 | 48999 | */ |
| 48510 | - public static function fromStruct(int $value): int { | |
| 49000 | + public static function fromSwitch(int $value): int { | |
| 48511 | 49001 | return $value; /*int*/ |
| 48512 | 49002 | } |
| 48513 | 49003 | |
| @@ -48515,11 +49005,11 @@ class Struct { | ||
| 48515 | 49005 | * @throws Exception |
| 48516 | 49006 | * @return int |
| 48517 | 49007 | */ |
| 48518 | - public function toStruct(): int { | |
| 48519 | - if (Struct::validateStruct($this->struct)) { | |
| 48520 | - return $this->struct; /*int*/ | |
| 49008 | + public function toSwitch(): int { | |
| 49009 | + if (SwitchClass::validateSwitch($this->switch)) { | |
| 49010 | + return $this->switch; /*int*/ | |
| 48521 | 49011 | } |
| 48522 | - throw new Exception('never get to this Struct::struct'); | |
| 49012 | + throw new Exception('never get to this SwitchClass::switch'); | |
| 48523 | 49013 | } |
| 48524 | 49014 | |
| 48525 | 49015 | /** |
| @@ -48527,7 +49017,7 @@ class Struct { | ||
| 48527 | 49017 | * @return bool |
| 48528 | 49018 | * @throws Exception |
| 48529 | 49019 | */ |
| 48530 | - public static function validateStruct(int $value): bool { | |
| 49020 | + public static function validateSwitch(int $value): bool { | |
| 48531 | 49021 | return true; |
| 48532 | 49022 | } |
| 48533 | 49023 | |
| @@ -48535,18 +49025,18 @@ class Struct { | ||
| 48535 | 49025 | * @throws Exception |
| 48536 | 49026 | * @return int |
| 48537 | 49027 | */ |
| 48538 | - public function getStruct(): int { | |
| 48539 | - if (Struct::validateStruct($this->struct)) { | |
| 48540 | - return $this->struct; | |
| 49028 | + public function getSwitch(): int { | |
| 49029 | + if (SwitchClass::validateSwitch($this->switch)) { | |
| 49030 | + return $this->switch; | |
| 48541 | 49031 | } |
| 48542 | - throw new Exception('never get to getStruct Struct::struct'); | |
| 49032 | + throw new Exception('never get to getSwitch SwitchClass::switch'); | |
| 48543 | 49033 | } |
| 48544 | 49034 | |
| 48545 | 49035 | /** |
| 48546 | 49036 | * @return int |
| 48547 | 49037 | */ |
| 48548 | - public static function sampleStruct(): int { | |
| 48549 | - return 31; /*31:struct*/ | |
| 49038 | + public static function sampleSwitch(): int { | |
| 49039 | + return 31; /*31:switch*/ | |
| 48550 | 49040 | } |
| 48551 | 49041 | |
| 48552 | 49042 | /** |
| @@ -48554,7 +49044,7 @@ class Struct { | ||
| 48554 | 49044 | * @return bool |
| 48555 | 49045 | */ |
| 48556 | 49046 | public function validate(): bool { |
| 48557 | - return Struct::validateStruct($this->struct); | |
| 49047 | + return SwitchClass::validateSwitch($this->switch); | |
| 48558 | 49048 | } |
| 48559 | 49049 | |
| 48560 | 49050 | /** |
| @@ -48563,44 +49053,44 @@ class Struct { | ||
| 48563 | 49053 | */ |
| 48564 | 49054 | public function to(): stdClass { |
| 48565 | 49055 | $out = new stdClass(); |
| 48566 | - $out->{'struct'} = $this->toStruct(); | |
| 49056 | + $out->{'switch'} = $this->toSwitch(); | |
| 48567 | 49057 | return $out; |
| 48568 | 49058 | } |
| 48569 | 49059 | |
| 48570 | 49060 | /** |
| 48571 | 49061 | * @param stdClass $obj |
| 48572 | - * @return Struct | |
| 49062 | + * @return SwitchClass | |
| 48573 | 49063 | * @throws Exception |
| 48574 | 49064 | */ |
| 48575 | - public static function from(stdClass $obj): Struct { | |
| 48576 | - if (!property_exists($obj, 'struct')) { | |
| 49065 | + public static function from(stdClass $obj): SwitchClass { | |
| 49066 | + if (!property_exists($obj, 'switch')) { | |
| 48577 | 49067 | throw new Exception("Missing required property"); |
| 48578 | 49068 | } |
| 48579 | - return new Struct( | |
| 48580 | - Struct::fromStruct($obj->{'struct'}) | |
| 49069 | + return new SwitchClass( | |
| 49070 | + SwitchClass::fromSwitch($obj->{'switch'}) | |
| 48581 | 49071 | ); |
| 48582 | 49072 | } |
| 48583 | 49073 | |
| 48584 | 49074 | /** |
| 48585 | - * @return Struct | |
| 49075 | + * @return SwitchClass | |
| 48586 | 49076 | */ |
| 48587 | - public static function sample(): Struct { | |
| 48588 | - return new Struct( | |
| 48589 | - Struct::sampleStruct() | |
| 49077 | + public static function sample(): SwitchClass { | |
| 49078 | + return new SwitchClass( | |
| 49079 | + SwitchClass::sampleSwitch() | |
| 48590 | 49080 | ); |
| 48591 | 49081 | } |
| 48592 | 49082 | } |
| 48593 | 49083 | |
| 48594 | -// This is an autogenerated file:Subscript | |
| 49084 | +// This is an autogenerated file:Symbol | |
| 48595 | 49085 | |
| 48596 | -class Subscript { | |
| 48597 | - private int $subscript; // json:subscript Required | |
| 49086 | +class Symbol { | |
| 49087 | + private int $symbol; // json:symbol Required | |
| 48598 | 49088 | |
| 48599 | 49089 | /** |
| 48600 | - * @param int $subscript | |
| 49090 | + * @param int $symbol | |
| 48601 | 49091 | */ |
| 48602 | - public function __construct(int $subscript) { | |
| 48603 | - $this->subscript = $subscript; | |
| 49092 | + public function __construct(int $symbol) { | |
| 49093 | + $this->symbol = $symbol; | |
| 48604 | 49094 | } |
| 48605 | 49095 | |
| 48606 | 49096 | /** |
| @@ -48608,7 +49098,7 @@ class Subscript { | ||
| 48608 | 49098 | * @throws Exception |
| 48609 | 49099 | * @return int |
| 48610 | 49100 | */ |
| 48611 | - public static function fromSubscript(int $value): int { | |
| 49101 | + public static function fromSymbol(int $value): int { | |
| 48612 | 49102 | return $value; /*int*/ |
| 48613 | 49103 | } |
| 48614 | 49104 | |
| @@ -48616,11 +49106,11 @@ class Subscript { | ||
| 48616 | 49106 | * @throws Exception |
| 48617 | 49107 | * @return int |
| 48618 | 49108 | */ |
| 48619 | - public function toSubscript(): int { | |
| 48620 | - if (Subscript::validateSubscript($this->subscript)) { | |
| 48621 | - return $this->subscript; /*int*/ | |
| 49109 | + public function toSymbol(): int { | |
| 49110 | + if (Symbol::validateSymbol($this->symbol)) { | |
| 49111 | + return $this->symbol; /*int*/ | |
| 48622 | 49112 | } |
| 48623 | - throw new Exception('never get to this Subscript::subscript'); | |
| 49113 | + throw new Exception('never get to this Symbol::symbol'); | |
| 48624 | 49114 | } |
| 48625 | 49115 | |
| 48626 | 49116 | /** |
| @@ -48628,7 +49118,7 @@ class Subscript { | ||
| 48628 | 49118 | * @return bool |
| 48629 | 49119 | * @throws Exception |
| 48630 | 49120 | */ |
| 48631 | - public static function validateSubscript(int $value): bool { | |
| 49121 | + public static function validateSymbol(int $value): bool { | |
| 48632 | 49122 | return true; |
| 48633 | 49123 | } |
| 48634 | 49124 | |
| @@ -48636,18 +49126,18 @@ class Subscript { | ||
| 48636 | 49126 | * @throws Exception |
| 48637 | 49127 | * @return int |
| 48638 | 49128 | */ |
| 48639 | - public function getSubscript(): int { | |
| 48640 | - if (Subscript::validateSubscript($this->subscript)) { | |
| 48641 | - return $this->subscript; | |
| 49129 | + public function getSymbol(): int { | |
| 49130 | + if (Symbol::validateSymbol($this->symbol)) { | |
| 49131 | + return $this->symbol; | |
| 48642 | 49132 | } |
| 48643 | - throw new Exception('never get to getSubscript Subscript::subscript'); | |
| 49133 | + throw new Exception('never get to getSymbol Symbol::symbol'); | |
| 48644 | 49134 | } |
| 48645 | 49135 | |
| 48646 | 49136 | /** |
| 48647 | 49137 | * @return int |
| 48648 | 49138 | */ |
| 48649 | - public static function sampleSubscript(): int { | |
| 48650 | - return 31; /*31:subscript*/ | |
| 49139 | + public static function sampleSymbol(): int { | |
| 49140 | + return 31; /*31:symbol*/ | |
| 48651 | 49141 | } |
| 48652 | 49142 | |
| 48653 | 49143 | /** |
| @@ -48655,7 +49145,7 @@ class Subscript { | ||
| 48655 | 49145 | * @return bool |
| 48656 | 49146 | */ |
| 48657 | 49147 | public function validate(): bool { |
| 48658 | - return Subscript::validateSubscript($this->subscript); | |
| 49148 | + return Symbol::validateSymbol($this->symbol); | |
| 48659 | 49149 | } |
| 48660 | 49150 | |
| 48661 | 49151 | /** |
| @@ -48664,44 +49154,44 @@ class Subscript { | ||
| 48664 | 49154 | */ |
| 48665 | 49155 | public function to(): stdClass { |
| 48666 | 49156 | $out = new stdClass(); |
| 48667 | - $out->{'subscript'} = $this->toSubscript(); | |
| 49157 | + $out->{'symbol'} = $this->toSymbol(); | |
| 48668 | 49158 | return $out; |
| 48669 | 49159 | } |
| 48670 | 49160 | |
| 48671 | 49161 | /** |
| 48672 | 49162 | * @param stdClass $obj |
| 48673 | - * @return Subscript | |
| 49163 | + * @return Symbol | |
| 48674 | 49164 | * @throws Exception |
| 48675 | 49165 | */ |
| 48676 | - public static function from(stdClass $obj): Subscript { | |
| 48677 | - if (!property_exists($obj, 'subscript')) { | |
| 49166 | + public static function from(stdClass $obj): Symbol { | |
| 49167 | + if (!property_exists($obj, 'symbol')) { | |
| 48678 | 49168 | throw new Exception("Missing required property"); |
| 48679 | 49169 | } |
| 48680 | - return new Subscript( | |
| 48681 | - Subscript::fromSubscript($obj->{'subscript'}) | |
| 49170 | + return new Symbol( | |
| 49171 | + Symbol::fromSymbol($obj->{'symbol'}) | |
| 48682 | 49172 | ); |
| 48683 | 49173 | } |
| 48684 | 49174 | |
| 48685 | 49175 | /** |
| 48686 | - * @return Subscript | |
| 49176 | + * @return Symbol | |
| 48687 | 49177 | */ |
| 48688 | - public static function sample(): Subscript { | |
| 48689 | - return new Subscript( | |
| 48690 | - Subscript::sampleSubscript() | |
| 49178 | + public static function sample(): Symbol { | |
| 49179 | + return new Symbol( | |
| 49180 | + Symbol::sampleSymbol() | |
| 48691 | 49181 | ); |
| 48692 | 49182 | } |
| 48693 | 49183 | } |
| 48694 | 49184 | |
| 48695 | -// This is an autogenerated file:Super | |
| 49185 | +// This is an autogenerated file:Synchronized | |
| 48696 | 49186 | |
| 48697 | -class Super { | |
| 48698 | - private int $super; // json:super Required | |
| 49187 | +class Synchronized { | |
| 49188 | + private int $synchronized; // json:synchronized Required | |
| 48699 | 49189 | |
| 48700 | 49190 | /** |
| 48701 | - * @param int $super | |
| 49191 | + * @param int $synchronized | |
| 48702 | 49192 | */ |
| 48703 | - public function __construct(int $super) { | |
| 48704 | - $this->super = $super; | |
| 49193 | + public function __construct(int $synchronized) { | |
| 49194 | + $this->synchronized = $synchronized; | |
| 48705 | 49195 | } |
| 48706 | 49196 | |
| 48707 | 49197 | /** |
| @@ -48709,7 +49199,7 @@ class Super { | ||
| 48709 | 49199 | * @throws Exception |
| 48710 | 49200 | * @return int |
| 48711 | 49201 | */ |
| 48712 | - public static function fromSuper(int $value): int { | |
| 49202 | + public static function fromSynchronized(int $value): int { | |
| 48713 | 49203 | return $value; /*int*/ |
| 48714 | 49204 | } |
| 48715 | 49205 | |
| @@ -48717,11 +49207,11 @@ class Super { | ||
| 48717 | 49207 | * @throws Exception |
| 48718 | 49208 | * @return int |
| 48719 | 49209 | */ |
| 48720 | - public function toSuper(): int { | |
| 48721 | - if (Super::validateSuper($this->super)) { | |
| 48722 | - return $this->super; /*int*/ | |
| 49210 | + public function toSynchronized(): int { | |
| 49211 | + if (Synchronized::validateSynchronized($this->synchronized)) { | |
| 49212 | + return $this->synchronized; /*int*/ | |
| 48723 | 49213 | } |
| 48724 | - throw new Exception('never get to this Super::super'); | |
| 49214 | + throw new Exception('never get to this Synchronized::synchronized'); | |
| 48725 | 49215 | } |
| 48726 | 49216 | |
| 48727 | 49217 | /** |
| @@ -48729,7 +49219,7 @@ class Super { | ||
| 48729 | 49219 | * @return bool |
| 48730 | 49220 | * @throws Exception |
| 48731 | 49221 | */ |
| 48732 | - public static function validateSuper(int $value): bool { | |
| 49222 | + public static function validateSynchronized(int $value): bool { | |
| 48733 | 49223 | return true; |
| 48734 | 49224 | } |
| 48735 | 49225 | |
| @@ -48737,18 +49227,18 @@ class Super { | ||
| 48737 | 49227 | * @throws Exception |
| 48738 | 49228 | * @return int |
| 48739 | 49229 | */ |
| 48740 | - public function getSuper(): int { | |
| 48741 | - if (Super::validateSuper($this->super)) { | |
| 48742 | - return $this->super; | |
| 49230 | + public function getSynchronized(): int { | |
| 49231 | + if (Synchronized::validateSynchronized($this->synchronized)) { | |
| 49232 | + return $this->synchronized; | |
| 48743 | 49233 | } |
| 48744 | - throw new Exception('never get to getSuper Super::super'); | |
| 49234 | + throw new Exception('never get to getSynchronized Synchronized::synchronized'); | |
| 48745 | 49235 | } |
| 48746 | 49236 | |
| 48747 | 49237 | /** |
| 48748 | 49238 | * @return int |
| 48749 | 49239 | */ |
| 48750 | - public static function sampleSuper(): int { | |
| 48751 | - return 31; /*31:super*/ | |
| 49240 | + public static function sampleSynchronized(): int { | |
| 49241 | + return 31; /*31:synchronized*/ | |
| 48752 | 49242 | } |
| 48753 | 49243 | |
| 48754 | 49244 | /** |
| @@ -48756,7 +49246,7 @@ class Super { | ||
| 48756 | 49246 | * @return bool |
| 48757 | 49247 | */ |
| 48758 | 49248 | public function validate(): bool { |
| 48759 | - return Super::validateSuper($this->super); | |
| 49249 | + return Synchronized::validateSynchronized($this->synchronized); | |
| 48760 | 49250 | } |
| 48761 | 49251 | |
| 48762 | 49252 | /** |
| @@ -48765,44 +49255,44 @@ class Super { | ||
| 48765 | 49255 | */ |
| 48766 | 49256 | public function to(): stdClass { |
| 48767 | 49257 | $out = new stdClass(); |
| 48768 | - $out->{'super'} = $this->toSuper(); | |
| 49258 | + $out->{'synchronized'} = $this->toSynchronized(); | |
| 48769 | 49259 | return $out; |
| 48770 | 49260 | } |
| 48771 | 49261 | |
| 48772 | 49262 | /** |
| 48773 | 49263 | * @param stdClass $obj |
| 48774 | - * @return Super | |
| 49264 | + * @return Synchronized | |
| 48775 | 49265 | * @throws Exception |
| 48776 | 49266 | */ |
| 48777 | - public static function from(stdClass $obj): Super { | |
| 48778 | - if (!property_exists($obj, 'super')) { | |
| 49267 | + public static function from(stdClass $obj): Synchronized { | |
| 49268 | + if (!property_exists($obj, 'synchronized')) { | |
| 48779 | 49269 | throw new Exception("Missing required property"); |
| 48780 | 49270 | } |
| 48781 | - return new Super( | |
| 48782 | - Super::fromSuper($obj->{'super'}) | |
| 49271 | + return new Synchronized( | |
| 49272 | + Synchronized::fromSynchronized($obj->{'synchronized'}) | |
| 48783 | 49273 | ); |
| 48784 | 49274 | } |
| 48785 | 49275 | |
| 48786 | 49276 | /** |
| 48787 | - * @return Super | |
| 49277 | + * @return Synchronized | |
| 48788 | 49278 | */ |
| 48789 | - public static function sample(): Super { | |
| 48790 | - return new Super( | |
| 48791 | - Super::sampleSuper() | |
| 49279 | + public static function sample(): Synchronized { | |
| 49280 | + return new Synchronized( | |
| 49281 | + Synchronized::sampleSynchronized() | |
| 48792 | 49282 | ); |
| 48793 | 49283 | } |
| 48794 | 49284 | } |
| 48795 | 49285 | |
| 48796 | -// This is an autogenerated file:SwitchClass | |
| 49286 | +// This is an autogenerated file:System | |
| 48797 | 49287 | |
| 48798 | -class SwitchClass { | |
| 48799 | - private int $switch; // json:switch Required | |
| 49288 | +class System { | |
| 49289 | + private int $system; // json:system Required | |
| 48800 | 49290 | |
| 48801 | 49291 | /** |
| 48802 | - * @param int $switch | |
| 49292 | + * @param int $system | |
| 48803 | 49293 | */ |
| 48804 | - public function __construct(int $switch) { | |
| 48805 | - $this->switch = $switch; | |
| 49294 | + public function __construct(int $system) { | |
| 49295 | + $this->system = $system; | |
| 48806 | 49296 | } |
| 48807 | 49297 | |
| 48808 | 49298 | /** |
| @@ -48810,7 +49300,7 @@ class SwitchClass { | ||
| 48810 | 49300 | * @throws Exception |
| 48811 | 49301 | * @return int |
| 48812 | 49302 | */ |
| 48813 | - public static function fromSwitch(int $value): int { | |
| 49303 | + public static function fromSystem(int $value): int { | |
| 48814 | 49304 | return $value; /*int*/ |
| 48815 | 49305 | } |
| 48816 | 49306 | |
| @@ -48818,11 +49308,11 @@ class SwitchClass { | ||
| 48818 | 49308 | * @throws Exception |
| 48819 | 49309 | * @return int |
| 48820 | 49310 | */ |
| 48821 | - public function toSwitch(): int { | |
| 48822 | - if (SwitchClass::validateSwitch($this->switch)) { | |
| 48823 | - return $this->switch; /*int*/ | |
| 49311 | + public function toSystem(): int { | |
| 49312 | + if (System::validateSystem($this->system)) { | |
| 49313 | + return $this->system; /*int*/ | |
| 48824 | 49314 | } |
| 48825 | - throw new Exception('never get to this SwitchClass::switch'); | |
| 49315 | + throw new Exception('never get to this System::system'); | |
| 48826 | 49316 | } |
| 48827 | 49317 | |
| 48828 | 49318 | /** |
| @@ -48830,7 +49320,7 @@ class SwitchClass { | ||
| 48830 | 49320 | * @return bool |
| 48831 | 49321 | * @throws Exception |
| 48832 | 49322 | */ |
| 48833 | - public static function validateSwitch(int $value): bool { | |
| 49323 | + public static function validateSystem(int $value): bool { | |
| 48834 | 49324 | return true; |
| 48835 | 49325 | } |
| 48836 | 49326 | |
| @@ -48838,18 +49328,18 @@ class SwitchClass { | ||
| 48838 | 49328 | * @throws Exception |
| 48839 | 49329 | * @return int |
| 48840 | 49330 | */ |
| 48841 | - public function getSwitch(): int { | |
| 48842 | - if (SwitchClass::validateSwitch($this->switch)) { | |
| 48843 | - return $this->switch; | |
| 49331 | + public function getSystem(): int { | |
| 49332 | + if (System::validateSystem($this->system)) { | |
| 49333 | + return $this->system; | |
| 48844 | 49334 | } |
| 48845 | - throw new Exception('never get to getSwitch SwitchClass::switch'); | |
| 49335 | + throw new Exception('never get to getSystem System::system'); | |
| 48846 | 49336 | } |
| 48847 | 49337 | |
| 48848 | 49338 | /** |
| 48849 | 49339 | * @return int |
| 48850 | 49340 | */ |
| 48851 | - public static function sampleSwitch(): int { | |
| 48852 | - return 31; /*31:switch*/ | |
| 49341 | + public static function sampleSystem(): int { | |
| 49342 | + return 31; /*31:system*/ | |
| 48853 | 49343 | } |
| 48854 | 49344 | |
| 48855 | 49345 | /** |
| @@ -48857,7 +49347,7 @@ class SwitchClass { | ||
| 48857 | 49347 | * @return bool |
| 48858 | 49348 | */ |
| 48859 | 49349 | public function validate(): bool { |
| 48860 | - return SwitchClass::validateSwitch($this->switch); | |
| 49350 | + return System::validateSystem($this->system); | |
| 48861 | 49351 | } |
| 48862 | 49352 | |
| 48863 | 49353 | /** |
| @@ -48866,44 +49356,44 @@ class SwitchClass { | ||
| 48866 | 49356 | */ |
| 48867 | 49357 | public function to(): stdClass { |
| 48868 | 49358 | $out = new stdClass(); |
| 48869 | - $out->{'switch'} = $this->toSwitch(); | |
| 49359 | + $out->{'system'} = $this->toSystem(); | |
| 48870 | 49360 | return $out; |
| 48871 | 49361 | } |
| 48872 | 49362 | |
| 48873 | 49363 | /** |
| 48874 | 49364 | * @param stdClass $obj |
| 48875 | - * @return SwitchClass | |
| 49365 | + * @return System | |
| 48876 | 49366 | * @throws Exception |
| 48877 | 49367 | */ |
| 48878 | - public static function from(stdClass $obj): SwitchClass { | |
| 48879 | - if (!property_exists($obj, 'switch')) { | |
| 49368 | + public static function from(stdClass $obj): System { | |
| 49369 | + if (!property_exists($obj, 'system')) { | |
| 48880 | 49370 | throw new Exception("Missing required property"); |
| 48881 | 49371 | } |
| 48882 | - return new SwitchClass( | |
| 48883 | - SwitchClass::fromSwitch($obj->{'switch'}) | |
| 49372 | + return new System( | |
| 49373 | + System::fromSystem($obj->{'system'}) | |
| 48884 | 49374 | ); |
| 48885 | 49375 | } |
| 48886 | 49376 | |
| 48887 | 49377 | /** |
| 48888 | - * @return SwitchClass | |
| 49378 | + * @return System | |
| 48889 | 49379 | */ |
| 48890 | - public static function sample(): SwitchClass { | |
| 48891 | - return new SwitchClass( | |
| 48892 | - SwitchClass::sampleSwitch() | |
| 49380 | + public static function sample(): System { | |
| 49381 | + return new System( | |
| 49382 | + System::sampleSystem() | |
| 48893 | 49383 | ); |
| 48894 | 49384 | } |
| 48895 | 49385 | } |
| 48896 | 49386 | |
| 48897 | -// This is an autogenerated file:Symbol | |
| 49387 | +// This is an autogenerated file:Template | |
| 48898 | 49388 | |
| 48899 | -class Symbol { | |
| 48900 | - private int $symbol; // json:symbol Required | |
| 49389 | +class Template { | |
| 49390 | + private int $template; // json:template Required | |
| 48901 | 49391 | |
| 48902 | 49392 | /** |
| 48903 | - * @param int $symbol | |
| 49393 | + * @param int $template | |
| 48904 | 49394 | */ |
| 48905 | - public function __construct(int $symbol) { | |
| 48906 | - $this->symbol = $symbol; | |
| 49395 | + public function __construct(int $template) { | |
| 49396 | + $this->template = $template; | |
| 48907 | 49397 | } |
| 48908 | 49398 | |
| 48909 | 49399 | /** |
| @@ -48911,7 +49401,7 @@ class Symbol { | ||
| 48911 | 49401 | * @throws Exception |
| 48912 | 49402 | * @return int |
| 48913 | 49403 | */ |
| 48914 | - public static function fromSymbol(int $value): int { | |
| 49404 | + public static function fromTemplate(int $value): int { | |
| 48915 | 49405 | return $value; /*int*/ |
| 48916 | 49406 | } |
| 48917 | 49407 | |
| @@ -48919,11 +49409,11 @@ class Symbol { | ||
| 48919 | 49409 | * @throws Exception |
| 48920 | 49410 | * @return int |
| 48921 | 49411 | */ |
| 48922 | - public function toSymbol(): int { | |
| 48923 | - if (Symbol::validateSymbol($this->symbol)) { | |
| 48924 | - return $this->symbol; /*int*/ | |
| 49412 | + public function toTemplate(): int { | |
| 49413 | + if (Template::validateTemplate($this->template)) { | |
| 49414 | + return $this->template; /*int*/ | |
| 48925 | 49415 | } |
| 48926 | - throw new Exception('never get to this Symbol::symbol'); | |
| 49416 | + throw new Exception('never get to this Template::template'); | |
| 48927 | 49417 | } |
| 48928 | 49418 | |
| 48929 | 49419 | /** |
| @@ -48931,7 +49421,7 @@ class Symbol { | ||
| 48931 | 49421 | * @return bool |
| 48932 | 49422 | * @throws Exception |
| 48933 | 49423 | */ |
| 48934 | - public static function validateSymbol(int $value): bool { | |
| 49424 | + public static function validateTemplate(int $value): bool { | |
| 48935 | 49425 | return true; |
| 48936 | 49426 | } |
| 48937 | 49427 | |
| @@ -48939,18 +49429,18 @@ class Symbol { | ||
| 48939 | 49429 | * @throws Exception |
| 48940 | 49430 | * @return int |
| 48941 | 49431 | */ |
| 48942 | - public function getSymbol(): int { | |
| 48943 | - if (Symbol::validateSymbol($this->symbol)) { | |
| 48944 | - return $this->symbol; | |
| 49432 | + public function getTemplate(): int { | |
| 49433 | + if (Template::validateTemplate($this->template)) { | |
| 49434 | + return $this->template; | |
| 48945 | 49435 | } |
| 48946 | - throw new Exception('never get to getSymbol Symbol::symbol'); | |
| 49436 | + throw new Exception('never get to getTemplate Template::template'); | |
| 48947 | 49437 | } |
| 48948 | 49438 | |
| 48949 | 49439 | /** |
| 48950 | 49440 | * @return int |
| 48951 | 49441 | */ |
| 48952 | - public static function sampleSymbol(): int { | |
| 48953 | - return 31; /*31:symbol*/ | |
| 49442 | + public static function sampleTemplate(): int { | |
| 49443 | + return 31; /*31:template*/ | |
| 48954 | 49444 | } |
| 48955 | 49445 | |
| 48956 | 49446 | /** |
| @@ -48958,7 +49448,7 @@ class Symbol { | ||
| 48958 | 49448 | * @return bool |
| 48959 | 49449 | */ |
| 48960 | 49450 | public function validate(): bool { |
| 48961 | - return Symbol::validateSymbol($this->symbol); | |
| 49451 | + return Template::validateTemplate($this->template); | |
| 48962 | 49452 | } |
| 48963 | 49453 | |
| 48964 | 49454 | /** |
| @@ -48967,44 +49457,44 @@ class Symbol { | ||
| 48967 | 49457 | */ |
| 48968 | 49458 | public function to(): stdClass { |
| 48969 | 49459 | $out = new stdClass(); |
| 48970 | - $out->{'symbol'} = $this->toSymbol(); | |
| 49460 | + $out->{'template'} = $this->toTemplate(); | |
| 48971 | 49461 | return $out; |
| 48972 | 49462 | } |
| 48973 | 49463 | |
| 48974 | 49464 | /** |
| 48975 | 49465 | * @param stdClass $obj |
| 48976 | - * @return Symbol | |
| 49466 | + * @return Template | |
| 48977 | 49467 | * @throws Exception |
| 48978 | 49468 | */ |
| 48979 | - public static function from(stdClass $obj): Symbol { | |
| 48980 | - if (!property_exists($obj, 'symbol')) { | |
| 49469 | + public static function from(stdClass $obj): Template { | |
| 49470 | + if (!property_exists($obj, 'template')) { | |
| 48981 | 49471 | throw new Exception("Missing required property"); |
| 48982 | 49472 | } |
| 48983 | - return new Symbol( | |
| 48984 | - Symbol::fromSymbol($obj->{'symbol'}) | |
| 49473 | + return new Template( | |
| 49474 | + Template::fromTemplate($obj->{'template'}) | |
| 48985 | 49475 | ); |
| 48986 | 49476 | } |
| 48987 | 49477 | |
| 48988 | 49478 | /** |
| 48989 | - * @return Symbol | |
| 49479 | + * @return Template | |
| 48990 | 49480 | */ |
| 48991 | - public static function sample(): Symbol { | |
| 48992 | - return new Symbol( | |
| 48993 | - Symbol::sampleSymbol() | |
| 49481 | + public static function sample(): Template { | |
| 49482 | + return new Template( | |
| 49483 | + Template::sampleTemplate() | |
| 48994 | 49484 | ); |
| 48995 | 49485 | } |
| 48996 | 49486 | } |
| 48997 | 49487 | |
| 48998 | -// This is an autogenerated file:Synchronized | |
| 49488 | +// This is an autogenerated file:Then | |
| 48999 | 49489 | |
| 49000 | -class Synchronized { | |
| 49001 | - private int $synchronized; // json:synchronized Required | |
| 49490 | +class Then { | |
| 49491 | + private int $then; // json:then Required | |
| 49002 | 49492 | |
| 49003 | 49493 | /** |
| 49004 | - * @param int $synchronized | |
| 49494 | + * @param int $then | |
| 49005 | 49495 | */ |
| 49006 | - public function __construct(int $synchronized) { | |
| 49007 | - $this->synchronized = $synchronized; | |
| 49496 | + public function __construct(int $then) { | |
| 49497 | + $this->then = $then; | |
| 49008 | 49498 | } |
| 49009 | 49499 | |
| 49010 | 49500 | /** |
| @@ -49012,7 +49502,7 @@ class Synchronized { | ||
| 49012 | 49502 | * @throws Exception |
| 49013 | 49503 | * @return int |
| 49014 | 49504 | */ |
| 49015 | - public static function fromSynchronized(int $value): int { | |
| 49505 | + public static function fromThen(int $value): int { | |
| 49016 | 49506 | return $value; /*int*/ |
| 49017 | 49507 | } |
| 49018 | 49508 | |
| @@ -49020,11 +49510,11 @@ class Synchronized { | ||
| 49020 | 49510 | * @throws Exception |
| 49021 | 49511 | * @return int |
| 49022 | 49512 | */ |
| 49023 | - public function toSynchronized(): int { | |
| 49024 | - if (Synchronized::validateSynchronized($this->synchronized)) { | |
| 49025 | - return $this->synchronized; /*int*/ | |
| 49513 | + public function toThen(): int { | |
| 49514 | + if (Then::validateThen($this->then)) { | |
| 49515 | + return $this->then; /*int*/ | |
| 49026 | 49516 | } |
| 49027 | - throw new Exception('never get to this Synchronized::synchronized'); | |
| 49517 | + throw new Exception('never get to this Then::then'); | |
| 49028 | 49518 | } |
| 49029 | 49519 | |
| 49030 | 49520 | /** |
| @@ -49032,7 +49522,7 @@ class Synchronized { | ||
| 49032 | 49522 | * @return bool |
| 49033 | 49523 | * @throws Exception |
| 49034 | 49524 | */ |
| 49035 | - public static function validateSynchronized(int $value): bool { | |
| 49525 | + public static function validateThen(int $value): bool { | |
| 49036 | 49526 | return true; |
| 49037 | 49527 | } |
| 49038 | 49528 | |
| @@ -49040,18 +49530,18 @@ class Synchronized { | ||
| 49040 | 49530 | * @throws Exception |
| 49041 | 49531 | * @return int |
| 49042 | 49532 | */ |
| 49043 | - public function getSynchronized(): int { | |
| 49044 | - if (Synchronized::validateSynchronized($this->synchronized)) { | |
| 49045 | - return $this->synchronized; | |
| 49533 | + public function getThen(): int { | |
| 49534 | + if (Then::validateThen($this->then)) { | |
| 49535 | + return $this->then; | |
| 49046 | 49536 | } |
| 49047 | - throw new Exception('never get to getSynchronized Synchronized::synchronized'); | |
| 49537 | + throw new Exception('never get to getThen Then::then'); | |
| 49048 | 49538 | } |
| 49049 | 49539 | |
| 49050 | 49540 | /** |
| 49051 | 49541 | * @return int |
| 49052 | 49542 | */ |
| 49053 | - public static function sampleSynchronized(): int { | |
| 49054 | - return 31; /*31:synchronized*/ | |
| 49543 | + public static function sampleThen(): int { | |
| 49544 | + return 31; /*31:then*/ | |
| 49055 | 49545 | } |
| 49056 | 49546 | |
| 49057 | 49547 | /** |
| @@ -49059,7 +49549,7 @@ class Synchronized { | ||
| 49059 | 49549 | * @return bool |
| 49060 | 49550 | */ |
| 49061 | 49551 | public function validate(): bool { |
| 49062 | - return Synchronized::validateSynchronized($this->synchronized); | |
| 49552 | + return Then::validateThen($this->then); | |
| 49063 | 49553 | } |
| 49064 | 49554 | |
| 49065 | 49555 | /** |
| @@ -49068,44 +49558,44 @@ class Synchronized { | ||
| 49068 | 49558 | */ |
| 49069 | 49559 | public function to(): stdClass { |
| 49070 | 49560 | $out = new stdClass(); |
| 49071 | - $out->{'synchronized'} = $this->toSynchronized(); | |
| 49561 | + $out->{'then'} = $this->toThen(); | |
| 49072 | 49562 | return $out; |
| 49073 | 49563 | } |
| 49074 | 49564 | |
| 49075 | 49565 | /** |
| 49076 | 49566 | * @param stdClass $obj |
| 49077 | - * @return Synchronized | |
| 49567 | + * @return Then | |
| 49078 | 49568 | * @throws Exception |
| 49079 | 49569 | */ |
| 49080 | - public static function from(stdClass $obj): Synchronized { | |
| 49081 | - if (!property_exists($obj, 'synchronized')) { | |
| 49570 | + public static function from(stdClass $obj): Then { | |
| 49571 | + if (!property_exists($obj, 'then')) { | |
| 49082 | 49572 | throw new Exception("Missing required property"); |
| 49083 | 49573 | } |
| 49084 | - return new Synchronized( | |
| 49085 | - Synchronized::fromSynchronized($obj->{'synchronized'}) | |
| 49574 | + return new Then( | |
| 49575 | + Then::fromThen($obj->{'then'}) | |
| 49086 | 49576 | ); |
| 49087 | 49577 | } |
| 49088 | 49578 | |
| 49089 | 49579 | /** |
| 49090 | - * @return Synchronized | |
| 49580 | + * @return Then | |
| 49091 | 49581 | */ |
| 49092 | - public static function sample(): Synchronized { | |
| 49093 | - return new Synchronized( | |
| 49094 | - Synchronized::sampleSynchronized() | |
| 49582 | + public static function sample(): Then { | |
| 49583 | + return new Then( | |
| 49584 | + Then::sampleThen() | |
| 49095 | 49585 | ); |
| 49096 | 49586 | } |
| 49097 | 49587 | } |
| 49098 | 49588 | |
| 49099 | -// This is an autogenerated file:System | |
| 49589 | +// This is an autogenerated file:ThreadLocal | |
| 49100 | 49590 | |
| 49101 | -class System { | |
| 49102 | - private int $system; // json:system Required | |
| 49591 | +class ThreadLocal { | |
| 49592 | + private int $threadLocal; // json:thread_local Required | |
| 49103 | 49593 | |
| 49104 | 49594 | /** |
| 49105 | - * @param int $system | |
| 49595 | + * @param int $threadLocal | |
| 49106 | 49596 | */ |
| 49107 | - public function __construct(int $system) { | |
| 49108 | - $this->system = $system; | |
| 49597 | + public function __construct(int $threadLocal) { | |
| 49598 | + $this->threadLocal = $threadLocal; | |
| 49109 | 49599 | } |
| 49110 | 49600 | |
| 49111 | 49601 | /** |
| @@ -49113,7 +49603,7 @@ class System { | ||
| 49113 | 49603 | * @throws Exception |
| 49114 | 49604 | * @return int |
| 49115 | 49605 | */ |
| 49116 | - public static function fromSystem(int $value): int { | |
| 49606 | + public static function fromThreadLocal(int $value): int { | |
| 49117 | 49607 | return $value; /*int*/ |
| 49118 | 49608 | } |
| 49119 | 49609 | |
| @@ -49121,11 +49611,11 @@ class System { | ||
| 49121 | 49611 | * @throws Exception |
| 49122 | 49612 | * @return int |
| 49123 | 49613 | */ |
| 49124 | - public function toSystem(): int { | |
| 49125 | - if (System::validateSystem($this->system)) { | |
| 49126 | - return $this->system; /*int*/ | |
| 49614 | + public function toThreadLocal(): int { | |
| 49615 | + if (ThreadLocal::validateThreadLocal($this->threadLocal)) { | |
| 49616 | + return $this->threadLocal; /*int*/ | |
| 49127 | 49617 | } |
| 49128 | - throw new Exception('never get to this System::system'); | |
| 49618 | + throw new Exception('never get to this ThreadLocal::threadLocal'); | |
| 49129 | 49619 | } |
| 49130 | 49620 | |
| 49131 | 49621 | /** |
| @@ -49133,7 +49623,7 @@ class System { | ||
| 49133 | 49623 | * @return bool |
| 49134 | 49624 | * @throws Exception |
| 49135 | 49625 | */ |
| 49136 | - public static function validateSystem(int $value): bool { | |
| 49626 | + public static function validateThreadLocal(int $value): bool { | |
| 49137 | 49627 | return true; |
| 49138 | 49628 | } |
| 49139 | 49629 | |
| @@ -49141,18 +49631,18 @@ class System { | ||
| 49141 | 49631 | * @throws Exception |
| 49142 | 49632 | * @return int |
| 49143 | 49633 | */ |
| 49144 | - public function getSystem(): int { | |
| 49145 | - if (System::validateSystem($this->system)) { | |
| 49146 | - return $this->system; | |
| 49634 | + public function getThreadLocal(): int { | |
| 49635 | + if (ThreadLocal::validateThreadLocal($this->threadLocal)) { | |
| 49636 | + return $this->threadLocal; | |
| 49147 | 49637 | } |
| 49148 | - throw new Exception('never get to getSystem System::system'); | |
| 49638 | + throw new Exception('never get to getThreadLocal ThreadLocal::threadLocal'); | |
| 49149 | 49639 | } |
| 49150 | 49640 | |
| 49151 | 49641 | /** |
| 49152 | 49642 | * @return int |
| 49153 | 49643 | */ |
| 49154 | - public static function sampleSystem(): int { | |
| 49155 | - return 31; /*31:system*/ | |
| 49644 | + public static function sampleThreadLocal(): int { | |
| 49645 | + return 31; /*31:threadLocal*/ | |
| 49156 | 49646 | } |
| 49157 | 49647 | |
| 49158 | 49648 | /** |
| @@ -49160,7 +49650,7 @@ class System { | ||
| 49160 | 49650 | * @return bool |
| 49161 | 49651 | */ |
| 49162 | 49652 | public function validate(): bool { |
| 49163 | - return System::validateSystem($this->system); | |
| 49653 | + return ThreadLocal::validateThreadLocal($this->threadLocal); | |
| 49164 | 49654 | } |
| 49165 | 49655 | |
| 49166 | 49656 | /** |
| @@ -49169,44 +49659,44 @@ class System { | ||
| 49169 | 49659 | */ |
| 49170 | 49660 | public function to(): stdClass { |
| 49171 | 49661 | $out = new stdClass(); |
| 49172 | - $out->{'system'} = $this->toSystem(); | |
| 49662 | + $out->{'thread_local'} = $this->toThreadLocal(); | |
| 49173 | 49663 | return $out; |
| 49174 | 49664 | } |
| 49175 | 49665 | |
| 49176 | 49666 | /** |
| 49177 | 49667 | * @param stdClass $obj |
| 49178 | - * @return System | |
| 49668 | + * @return ThreadLocal | |
| 49179 | 49669 | * @throws Exception |
| 49180 | 49670 | */ |
| 49181 | - public static function from(stdClass $obj): System { | |
| 49182 | - if (!property_exists($obj, 'system')) { | |
| 49671 | + public static function from(stdClass $obj): ThreadLocal { | |
| 49672 | + if (!property_exists($obj, 'thread_local')) { | |
| 49183 | 49673 | throw new Exception("Missing required property"); |
| 49184 | 49674 | } |
| 49185 | - return new System( | |
| 49186 | - System::fromSystem($obj->{'system'}) | |
| 49675 | + return new ThreadLocal( | |
| 49676 | + ThreadLocal::fromThreadLocal($obj->{'thread_local'}) | |
| 49187 | 49677 | ); |
| 49188 | 49678 | } |
| 49189 | 49679 | |
| 49190 | 49680 | /** |
| 49191 | - * @return System | |
| 49681 | + * @return ThreadLocal | |
| 49192 | 49682 | */ |
| 49193 | - public static function sample(): System { | |
| 49194 | - return new System( | |
| 49195 | - System::sampleSystem() | |
| 49683 | + public static function sample(): ThreadLocal { | |
| 49684 | + return new ThreadLocal( | |
| 49685 | + ThreadLocal::sampleThreadLocal() | |
| 49196 | 49686 | ); |
| 49197 | 49687 | } |
| 49198 | 49688 | } |
| 49199 | 49689 | |
| 49200 | -// This is an autogenerated file:Template | |
| 49690 | +// This is an autogenerated file:ThrowClass | |
| 49201 | 49691 | |
| 49202 | -class Template { | |
| 49203 | - private int $template; // json:template Required | |
| 49692 | +class ThrowClass { | |
| 49693 | + private int $throw; // json:throw Required | |
| 49204 | 49694 | |
| 49205 | 49695 | /** |
| 49206 | - * @param int $template | |
| 49696 | + * @param int $throw | |
| 49207 | 49697 | */ |
| 49208 | - public function __construct(int $template) { | |
| 49209 | - $this->template = $template; | |
| 49698 | + public function __construct(int $throw) { | |
| 49699 | + $this->throw = $throw; | |
| 49210 | 49700 | } |
| 49211 | 49701 | |
| 49212 | 49702 | /** |
| @@ -49214,7 +49704,7 @@ class Template { | ||
| 49214 | 49704 | * @throws Exception |
| 49215 | 49705 | * @return int |
| 49216 | 49706 | */ |
| 49217 | - public static function fromTemplate(int $value): int { | |
| 49707 | + public static function fromThrow(int $value): int { | |
| 49218 | 49708 | return $value; /*int*/ |
| 49219 | 49709 | } |
| 49220 | 49710 | |
| @@ -49222,11 +49712,11 @@ class Template { | ||
| 49222 | 49712 | * @throws Exception |
| 49223 | 49713 | * @return int |
| 49224 | 49714 | */ |
| 49225 | - public function toTemplate(): int { | |
| 49226 | - if (Template::validateTemplate($this->template)) { | |
| 49227 | - return $this->template; /*int*/ | |
| 49715 | + public function toThrow(): int { | |
| 49716 | + if (ThrowClass::validateThrow($this->throw)) { | |
| 49717 | + return $this->throw; /*int*/ | |
| 49228 | 49718 | } |
| 49229 | - throw new Exception('never get to this Template::template'); | |
| 49719 | + throw new Exception('never get to this ThrowClass::throw'); | |
| 49230 | 49720 | } |
| 49231 | 49721 | |
| 49232 | 49722 | /** |
| @@ -49234,7 +49724,7 @@ class Template { | ||
| 49234 | 49724 | * @return bool |
| 49235 | 49725 | * @throws Exception |
| 49236 | 49726 | */ |
| 49237 | - public static function validateTemplate(int $value): bool { | |
| 49727 | + public static function validateThrow(int $value): bool { | |
| 49238 | 49728 | return true; |
| 49239 | 49729 | } |
| 49240 | 49730 | |
| @@ -49242,18 +49732,18 @@ class Template { | ||
| 49242 | 49732 | * @throws Exception |
| 49243 | 49733 | * @return int |
| 49244 | 49734 | */ |
| 49245 | - public function getTemplate(): int { | |
| 49246 | - if (Template::validateTemplate($this->template)) { | |
| 49247 | - return $this->template; | |
| 49735 | + public function getThrow(): int { | |
| 49736 | + if (ThrowClass::validateThrow($this->throw)) { | |
| 49737 | + return $this->throw; | |
| 49248 | 49738 | } |
| 49249 | - throw new Exception('never get to getTemplate Template::template'); | |
| 49739 | + throw new Exception('never get to getThrow ThrowClass::throw'); | |
| 49250 | 49740 | } |
| 49251 | 49741 | |
| 49252 | 49742 | /** |
| 49253 | 49743 | * @return int |
| 49254 | 49744 | */ |
| 49255 | - public static function sampleTemplate(): int { | |
| 49256 | - return 31; /*31:template*/ | |
| 49745 | + public static function sampleThrow(): int { | |
| 49746 | + return 31; /*31:throw*/ | |
| 49257 | 49747 | } |
| 49258 | 49748 | |
| 49259 | 49749 | /** |
| @@ -49261,7 +49751,7 @@ class Template { | ||
| 49261 | 49751 | * @return bool |
| 49262 | 49752 | */ |
| 49263 | 49753 | public function validate(): bool { |
| 49264 | - return Template::validateTemplate($this->template); | |
| 49754 | + return ThrowClass::validateThrow($this->throw); | |
| 49265 | 49755 | } |
| 49266 | 49756 | |
| 49267 | 49757 | /** |
| @@ -49270,44 +49760,44 @@ class Template { | ||
| 49270 | 49760 | */ |
| 49271 | 49761 | public function to(): stdClass { |
| 49272 | 49762 | $out = new stdClass(); |
| 49273 | - $out->{'template'} = $this->toTemplate(); | |
| 49763 | + $out->{'throw'} = $this->toThrow(); | |
| 49274 | 49764 | return $out; |
| 49275 | 49765 | } |
| 49276 | 49766 | |
| 49277 | 49767 | /** |
| 49278 | 49768 | * @param stdClass $obj |
| 49279 | - * @return Template | |
| 49769 | + * @return ThrowClass | |
| 49280 | 49770 | * @throws Exception |
| 49281 | 49771 | */ |
| 49282 | - public static function from(stdClass $obj): Template { | |
| 49283 | - if (!property_exists($obj, 'template')) { | |
| 49772 | + public static function from(stdClass $obj): ThrowClass { | |
| 49773 | + if (!property_exists($obj, 'throw')) { | |
| 49284 | 49774 | throw new Exception("Missing required property"); |
| 49285 | 49775 | } |
| 49286 | - return new Template( | |
| 49287 | - Template::fromTemplate($obj->{'template'}) | |
| 49776 | + return new ThrowClass( | |
| 49777 | + ThrowClass::fromThrow($obj->{'throw'}) | |
| 49288 | 49778 | ); |
| 49289 | 49779 | } |
| 49290 | 49780 | |
| 49291 | 49781 | /** |
| 49292 | - * @return Template | |
| 49782 | + * @return ThrowClass | |
| 49293 | 49783 | */ |
| 49294 | - public static function sample(): Template { | |
| 49295 | - return new Template( | |
| 49296 | - Template::sampleTemplate() | |
| 49784 | + public static function sample(): ThrowClass { | |
| 49785 | + return new ThrowClass( | |
| 49786 | + ThrowClass::sampleThrow() | |
| 49297 | 49787 | ); |
| 49298 | 49788 | } |
| 49299 | 49789 | } |
| 49300 | 49790 | |
| 49301 | -// This is an autogenerated file:Then | |
| 49791 | +// This is an autogenerated file:Throws | |
| 49302 | 49792 | |
| 49303 | -class Then { | |
| 49304 | - private int $then; // json:then Required | |
| 49793 | +class Throws { | |
| 49794 | + private int $throws; // json:throws Required | |
| 49305 | 49795 | |
| 49306 | 49796 | /** |
| 49307 | - * @param int $then | |
| 49797 | + * @param int $throws | |
| 49308 | 49798 | */ |
| 49309 | - public function __construct(int $then) { | |
| 49310 | - $this->then = $then; | |
| 49799 | + public function __construct(int $throws) { | |
| 49800 | + $this->throws = $throws; | |
| 49311 | 49801 | } |
| 49312 | 49802 | |
| 49313 | 49803 | /** |
| @@ -49315,7 +49805,7 @@ class Then { | ||
| 49315 | 49805 | * @throws Exception |
| 49316 | 49806 | * @return int |
| 49317 | 49807 | */ |
| 49318 | - public static function fromThen(int $value): int { | |
| 49808 | + public static function fromThrows(int $value): int { | |
| 49319 | 49809 | return $value; /*int*/ |
| 49320 | 49810 | } |
| 49321 | 49811 | |
| @@ -49323,11 +49813,11 @@ class Then { | ||
| 49323 | 49813 | * @throws Exception |
| 49324 | 49814 | * @return int |
| 49325 | 49815 | */ |
| 49326 | - public function toThen(): int { | |
| 49327 | - if (Then::validateThen($this->then)) { | |
| 49328 | - return $this->then; /*int*/ | |
| 49816 | + public function toThrows(): int { | |
| 49817 | + if (Throws::validateThrows($this->throws)) { | |
| 49818 | + return $this->throws; /*int*/ | |
| 49329 | 49819 | } |
| 49330 | - throw new Exception('never get to this Then::then'); | |
| 49820 | + throw new Exception('never get to this Throws::throws'); | |
| 49331 | 49821 | } |
| 49332 | 49822 | |
| 49333 | 49823 | /** |
| @@ -49335,7 +49825,7 @@ class Then { | ||
| 49335 | 49825 | * @return bool |
| 49336 | 49826 | * @throws Exception |
| 49337 | 49827 | */ |
| 49338 | - public static function validateThen(int $value): bool { | |
| 49828 | + public static function validateThrows(int $value): bool { | |
| 49339 | 49829 | return true; |
| 49340 | 49830 | } |
| 49341 | 49831 | |
| @@ -49343,18 +49833,18 @@ class Then { | ||
| 49343 | 49833 | * @throws Exception |
| 49344 | 49834 | * @return int |
| 49345 | 49835 | */ |
| 49346 | - public function getThen(): int { | |
| 49347 | - if (Then::validateThen($this->then)) { | |
| 49348 | - return $this->then; | |
| 49836 | + public function getThrows(): int { | |
| 49837 | + if (Throws::validateThrows($this->throws)) { | |
| 49838 | + return $this->throws; | |
| 49349 | 49839 | } |
| 49350 | - throw new Exception('never get to getThen Then::then'); | |
| 49840 | + throw new Exception('never get to getThrows Throws::throws'); | |
| 49351 | 49841 | } |
| 49352 | 49842 | |
| 49353 | 49843 | /** |
| 49354 | 49844 | * @return int |
| 49355 | 49845 | */ |
| 49356 | - public static function sampleThen(): int { | |
| 49357 | - return 31; /*31:then*/ | |
| 49846 | + public static function sampleThrows(): int { | |
| 49847 | + return 31; /*31:throws*/ | |
| 49358 | 49848 | } |
| 49359 | 49849 | |
| 49360 | 49850 | /** |
| @@ -49362,7 +49852,7 @@ class Then { | ||
| 49362 | 49852 | * @return bool |
| 49363 | 49853 | */ |
| 49364 | 49854 | public function validate(): bool { |
| 49365 | - return Then::validateThen($this->then); | |
| 49855 | + return Throws::validateThrows($this->throws); | |
| 49366 | 49856 | } |
| 49367 | 49857 | |
| 49368 | 49858 | /** |
| @@ -49371,44 +49861,44 @@ class Then { | ||
| 49371 | 49861 | */ |
| 49372 | 49862 | public function to(): stdClass { |
| 49373 | 49863 | $out = new stdClass(); |
| 49374 | - $out->{'then'} = $this->toThen(); | |
| 49864 | + $out->{'throws'} = $this->toThrows(); | |
| 49375 | 49865 | return $out; |
| 49376 | 49866 | } |
| 49377 | 49867 | |
| 49378 | 49868 | /** |
| 49379 | 49869 | * @param stdClass $obj |
| 49380 | - * @return Then | |
| 49870 | + * @return Throws | |
| 49381 | 49871 | * @throws Exception |
| 49382 | 49872 | */ |
| 49383 | - public static function from(stdClass $obj): Then { | |
| 49384 | - if (!property_exists($obj, 'then')) { | |
| 49873 | + public static function from(stdClass $obj): Throws { | |
| 49874 | + if (!property_exists($obj, 'throws')) { | |
| 49385 | 49875 | throw new Exception("Missing required property"); |
| 49386 | 49876 | } |
| 49387 | - return new Then( | |
| 49388 | - Then::fromThen($obj->{'then'}) | |
| 49877 | + return new Throws( | |
| 49878 | + Throws::fromThrows($obj->{'throws'}) | |
| 49389 | 49879 | ); |
| 49390 | 49880 | } |
| 49391 | 49881 | |
| 49392 | 49882 | /** |
| 49393 | - * @return Then | |
| 49883 | + * @return Throws | |
| 49394 | 49884 | */ |
| 49395 | - public static function sample(): Then { | |
| 49396 | - return new Then( | |
| 49397 | - Then::sampleThen() | |
| 49885 | + public static function sample(): Throws { | |
| 49886 | + return new Throws( | |
| 49887 | + Throws::sampleThrows() | |
| 49398 | 49888 | ); |
| 49399 | 49889 | } |
| 49400 | 49890 | } |
| 49401 | 49891 | |
| 49402 | -// This is an autogenerated file:ThreadLocal | |
| 49892 | +// This is an autogenerated file:TimeOnly | |
| 49403 | 49893 | |
| 49404 | -class ThreadLocal { | |
| 49405 | - private int $threadLocal; // json:thread_local Required | |
| 49894 | +class TimeOnly { | |
| 49895 | + private int $timeOnly; // json:TimeOnly Required | |
| 49406 | 49896 | |
| 49407 | 49897 | /** |
| 49408 | - * @param int $threadLocal | |
| 49898 | + * @param int $timeOnly | |
| 49409 | 49899 | */ |
| 49410 | - public function __construct(int $threadLocal) { | |
| 49411 | - $this->threadLocal = $threadLocal; | |
| 49900 | + public function __construct(int $timeOnly) { | |
| 49901 | + $this->timeOnly = $timeOnly; | |
| 49412 | 49902 | } |
| 49413 | 49903 | |
| 49414 | 49904 | /** |
| @@ -49416,7 +49906,7 @@ class ThreadLocal { | ||
| 49416 | 49906 | * @throws Exception |
| 49417 | 49907 | * @return int |
| 49418 | 49908 | */ |
| 49419 | - public static function fromThreadLocal(int $value): int { | |
| 49909 | + public static function fromTimeOnly(int $value): int { | |
| 49420 | 49910 | return $value; /*int*/ |
| 49421 | 49911 | } |
| 49422 | 49912 | |
| @@ -49424,11 +49914,11 @@ class ThreadLocal { | ||
| 49424 | 49914 | * @throws Exception |
| 49425 | 49915 | * @return int |
| 49426 | 49916 | */ |
| 49427 | - public function toThreadLocal(): int { | |
| 49428 | - if (ThreadLocal::validateThreadLocal($this->threadLocal)) { | |
| 49429 | - return $this->threadLocal; /*int*/ | |
| 49917 | + public function toTimeOnly(): int { | |
| 49918 | + if (TimeOnly::validateTimeOnly($this->timeOnly)) { | |
| 49919 | + return $this->timeOnly; /*int*/ | |
| 49430 | 49920 | } |
| 49431 | - throw new Exception('never get to this ThreadLocal::threadLocal'); | |
| 49921 | + throw new Exception('never get to this TimeOnly::timeOnly'); | |
| 49432 | 49922 | } |
| 49433 | 49923 | |
| 49434 | 49924 | /** |
| @@ -49436,7 +49926,7 @@ class ThreadLocal { | ||
| 49436 | 49926 | * @return bool |
| 49437 | 49927 | * @throws Exception |
| 49438 | 49928 | */ |
| 49439 | - public static function validateThreadLocal(int $value): bool { | |
| 49929 | + public static function validateTimeOnly(int $value): bool { | |
| 49440 | 49930 | return true; |
| 49441 | 49931 | } |
| 49442 | 49932 | |
| @@ -49444,18 +49934,18 @@ class ThreadLocal { | ||
| 49444 | 49934 | * @throws Exception |
| 49445 | 49935 | * @return int |
| 49446 | 49936 | */ |
| 49447 | - public function getThreadLocal(): int { | |
| 49448 | - if (ThreadLocal::validateThreadLocal($this->threadLocal)) { | |
| 49449 | - return $this->threadLocal; | |
| 49937 | + public function getTimeOnly(): int { | |
| 49938 | + if (TimeOnly::validateTimeOnly($this->timeOnly)) { | |
| 49939 | + return $this->timeOnly; | |
| 49450 | 49940 | } |
| 49451 | - throw new Exception('never get to getThreadLocal ThreadLocal::threadLocal'); | |
| 49941 | + throw new Exception('never get to getTimeOnly TimeOnly::timeOnly'); | |
| 49452 | 49942 | } |
| 49453 | 49943 | |
| 49454 | 49944 | /** |
| 49455 | 49945 | * @return int |
| 49456 | 49946 | */ |
| 49457 | - public static function sampleThreadLocal(): int { | |
| 49458 | - return 31; /*31:threadLocal*/ | |
| 49947 | + public static function sampleTimeOnly(): int { | |
| 49948 | + return 31; /*31:timeOnly*/ | |
| 49459 | 49949 | } |
| 49460 | 49950 | |
| 49461 | 49951 | /** |
| @@ -49463,7 +49953,7 @@ class ThreadLocal { | ||
| 49463 | 49953 | * @return bool |
| 49464 | 49954 | */ |
| 49465 | 49955 | public function validate(): bool { |
| 49466 | - return ThreadLocal::validateThreadLocal($this->threadLocal); | |
| 49956 | + return TimeOnly::validateTimeOnly($this->timeOnly); | |
| 49467 | 49957 | } |
| 49468 | 49958 | |
| 49469 | 49959 | /** |
| @@ -49472,44 +49962,44 @@ class ThreadLocal { | ||
| 49472 | 49962 | */ |
| 49473 | 49963 | public function to(): stdClass { |
| 49474 | 49964 | $out = new stdClass(); |
| 49475 | - $out->{'thread_local'} = $this->toThreadLocal(); | |
| 49965 | + $out->{'TimeOnly'} = $this->toTimeOnly(); | |
| 49476 | 49966 | return $out; |
| 49477 | 49967 | } |
| 49478 | 49968 | |
| 49479 | 49969 | /** |
| 49480 | 49970 | * @param stdClass $obj |
| 49481 | - * @return ThreadLocal | |
| 49971 | + * @return TimeOnly | |
| 49482 | 49972 | * @throws Exception |
| 49483 | 49973 | */ |
| 49484 | - public static function from(stdClass $obj): ThreadLocal { | |
| 49485 | - if (!property_exists($obj, 'thread_local')) { | |
| 49974 | + public static function from(stdClass $obj): TimeOnly { | |
| 49975 | + if (!property_exists($obj, 'TimeOnly')) { | |
| 49486 | 49976 | throw new Exception("Missing required property"); |
| 49487 | 49977 | } |
| 49488 | - return new ThreadLocal( | |
| 49489 | - ThreadLocal::fromThreadLocal($obj->{'thread_local'}) | |
| 49978 | + return new TimeOnly( | |
| 49979 | + TimeOnly::fromTimeOnly($obj->{'TimeOnly'}) | |
| 49490 | 49980 | ); |
| 49491 | 49981 | } |
| 49492 | 49982 | |
| 49493 | 49983 | /** |
| 49494 | - * @return ThreadLocal | |
| 49984 | + * @return TimeOnly | |
| 49495 | 49985 | */ |
| 49496 | - public static function sample(): ThreadLocal { | |
| 49497 | - return new ThreadLocal( | |
| 49498 | - ThreadLocal::sampleThreadLocal() | |
| 49986 | + public static function sample(): TimeOnly { | |
| 49987 | + return new TimeOnly( | |
| 49988 | + TimeOnly::sampleTimeOnly() | |
| 49499 | 49989 | ); |
| 49500 | 49990 | } |
| 49501 | 49991 | } |
| 49502 | 49992 | |
| 49503 | -// This is an autogenerated file:ThrowClass | |
| 49993 | +// This is an autogenerated file:TimeOnlyConverter | |
| 49504 | 49994 | |
| 49505 | -class ThrowClass { | |
| 49506 | - private int $throw; // json:throw Required | |
| 49995 | +class TimeOnlyConverter { | |
| 49996 | + private int $timeOnlyConverter; // json:TimeOnlyConverter Required | |
| 49507 | 49997 | |
| 49508 | 49998 | /** |
| 49509 | - * @param int $throw | |
| 49999 | + * @param int $timeOnlyConverter | |
| 49510 | 50000 | */ |
| 49511 | - public function __construct(int $throw) { | |
| 49512 | - $this->throw = $throw; | |
| 50001 | + public function __construct(int $timeOnlyConverter) { | |
| 50002 | + $this->timeOnlyConverter = $timeOnlyConverter; | |
| 49513 | 50003 | } |
| 49514 | 50004 | |
| 49515 | 50005 | /** |
| @@ -49517,7 +50007,7 @@ class ThrowClass { | ||
| 49517 | 50007 | * @throws Exception |
| 49518 | 50008 | * @return int |
| 49519 | 50009 | */ |
| 49520 | - public static function fromThrow(int $value): int { | |
| 50010 | + public static function fromTimeOnlyConverter(int $value): int { | |
| 49521 | 50011 | return $value; /*int*/ |
| 49522 | 50012 | } |
| 49523 | 50013 | |
| @@ -49525,11 +50015,11 @@ class ThrowClass { | ||
| 49525 | 50015 | * @throws Exception |
| 49526 | 50016 | * @return int |
| 49527 | 50017 | */ |
| 49528 | - public function toThrow(): int { | |
| 49529 | - if (ThrowClass::validateThrow($this->throw)) { | |
| 49530 | - return $this->throw; /*int*/ | |
| 50018 | + public function toTimeOnlyConverter(): int { | |
| 50019 | + if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) { | |
| 50020 | + return $this->timeOnlyConverter; /*int*/ | |
| 49531 | 50021 | } |
| 49532 | - throw new Exception('never get to this ThrowClass::throw'); | |
| 50022 | + throw new Exception('never get to this TimeOnlyConverter::timeOnlyConverter'); | |
| 49533 | 50023 | } |
| 49534 | 50024 | |
| 49535 | 50025 | /** |
| @@ -49537,7 +50027,7 @@ class ThrowClass { | ||
| 49537 | 50027 | * @return bool |
| 49538 | 50028 | * @throws Exception |
| 49539 | 50029 | */ |
| 49540 | - public static function validateThrow(int $value): bool { | |
| 50030 | + public static function validateTimeOnlyConverter(int $value): bool { | |
| 49541 | 50031 | return true; |
| 49542 | 50032 | } |
| 49543 | 50033 | |
| @@ -49545,18 +50035,18 @@ class ThrowClass { | ||
| 49545 | 50035 | * @throws Exception |
| 49546 | 50036 | * @return int |
| 49547 | 50037 | */ |
| 49548 | - public function getThrow(): int { | |
| 49549 | - if (ThrowClass::validateThrow($this->throw)) { | |
| 49550 | - return $this->throw; | |
| 50038 | + public function getTimeOnlyConverter(): int { | |
| 50039 | + if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) { | |
| 50040 | + return $this->timeOnlyConverter; | |
| 49551 | 50041 | } |
| 49552 | - throw new Exception('never get to getThrow ThrowClass::throw'); | |
| 50042 | + throw new Exception('never get to getTimeOnlyConverter TimeOnlyConverter::timeOnlyConverter'); | |
| 49553 | 50043 | } |
| 49554 | 50044 | |
| 49555 | 50045 | /** |
| 49556 | 50046 | * @return int |
| 49557 | 50047 | */ |
| 49558 | - public static function sampleThrow(): int { | |
| 49559 | - return 31; /*31:throw*/ | |
| 50048 | + public static function sampleTimeOnlyConverter(): int { | |
| 50049 | + return 31; /*31:timeOnlyConverter*/ | |
| 49560 | 50050 | } |
| 49561 | 50051 | |
| 49562 | 50052 | /** |
| @@ -49564,7 +50054,7 @@ class ThrowClass { | ||
| 49564 | 50054 | * @return bool |
| 49565 | 50055 | */ |
| 49566 | 50056 | public function validate(): bool { |
| 49567 | - return ThrowClass::validateThrow($this->throw); | |
| 50057 | + return TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter); | |
| 49568 | 50058 | } |
| 49569 | 50059 | |
| 49570 | 50060 | /** |
| @@ -49573,44 +50063,44 @@ class ThrowClass { | ||
| 49573 | 50063 | */ |
| 49574 | 50064 | public function to(): stdClass { |
| 49575 | 50065 | $out = new stdClass(); |
| 49576 | - $out->{'throw'} = $this->toThrow(); | |
| 50066 | + $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter(); | |
| 49577 | 50067 | return $out; |
| 49578 | 50068 | } |
| 49579 | 50069 | |
| 49580 | 50070 | /** |
| 49581 | 50071 | * @param stdClass $obj |
| 49582 | - * @return ThrowClass | |
| 50072 | + * @return TimeOnlyConverter | |
| 49583 | 50073 | * @throws Exception |
| 49584 | 50074 | */ |
| 49585 | - public static function from(stdClass $obj): ThrowClass { | |
| 49586 | - if (!property_exists($obj, 'throw')) { | |
| 50075 | + public static function from(stdClass $obj): TimeOnlyConverter { | |
| 50076 | + if (!property_exists($obj, 'TimeOnlyConverter')) { | |
| 49587 | 50077 | throw new Exception("Missing required property"); |
| 49588 | 50078 | } |
| 49589 | - return new ThrowClass( | |
| 49590 | - ThrowClass::fromThrow($obj->{'throw'}) | |
| 50079 | + return new TimeOnlyConverter( | |
| 50080 | + TimeOnlyConverter::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'}) | |
| 49591 | 50081 | ); |
| 49592 | 50082 | } |
| 49593 | 50083 | |
| 49594 | 50084 | /** |
| 49595 | - * @return ThrowClass | |
| 50085 | + * @return TimeOnlyConverter | |
| 49596 | 50086 | */ |
| 49597 | - public static function sample(): ThrowClass { | |
| 49598 | - return new ThrowClass( | |
| 49599 | - ThrowClass::sampleThrow() | |
| 50087 | + public static function sample(): TimeOnlyConverter { | |
| 50088 | + return new TimeOnlyConverter( | |
| 50089 | + TimeOnlyConverter::sampleTimeOnlyConverter() | |
| 49600 | 50090 | ); |
| 49601 | 50091 | } |
| 49602 | 50092 | } |
| 49603 | 50093 | |
| 49604 | -// This is an autogenerated file:Throws | |
| 50094 | +// This is an autogenerated file:TimeZone | |
| 49605 | 50095 | |
| 49606 | -class Throws { | |
| 49607 | - private int $throws; // json:throws Required | |
| 50096 | +class TimeZone { | |
| 50097 | + private int $timeZone; // json:TimeZone Required | |
| 49608 | 50098 | |
| 49609 | 50099 | /** |
| 49610 | - * @param int $throws | |
| 50100 | + * @param int $timeZone | |
| 49611 | 50101 | */ |
| 49612 | - public function __construct(int $throws) { | |
| 49613 | - $this->throws = $throws; | |
| 50102 | + public function __construct(int $timeZone) { | |
| 50103 | + $this->timeZone = $timeZone; | |
| 49614 | 50104 | } |
| 49615 | 50105 | |
| 49616 | 50106 | /** |
| @@ -49618,7 +50108,7 @@ class Throws { | ||
| 49618 | 50108 | * @throws Exception |
| 49619 | 50109 | * @return int |
| 49620 | 50110 | */ |
| 49621 | - public static function fromThrows(int $value): int { | |
| 50111 | + public static function fromTimeZone(int $value): int { | |
| 49622 | 50112 | return $value; /*int*/ |
| 49623 | 50113 | } |
| 49624 | 50114 | |
| @@ -49626,11 +50116,11 @@ class Throws { | ||
| 49626 | 50116 | * @throws Exception |
| 49627 | 50117 | * @return int |
| 49628 | 50118 | */ |
| 49629 | - public function toThrows(): int { | |
| 49630 | - if (Throws::validateThrows($this->throws)) { | |
| 49631 | - return $this->throws; /*int*/ | |
| 50119 | + public function toTimeZone(): int { | |
| 50120 | + if (TimeZone::validateTimeZone($this->timeZone)) { | |
| 50121 | + return $this->timeZone; /*int*/ | |
| 49632 | 50122 | } |
| 49633 | - throw new Exception('never get to this Throws::throws'); | |
| 50123 | + throw new Exception('never get to this TimeZone::timeZone'); | |
| 49634 | 50124 | } |
| 49635 | 50125 | |
| 49636 | 50126 | /** |
| @@ -49638,7 +50128,7 @@ class Throws { | ||
| 49638 | 50128 | * @return bool |
| 49639 | 50129 | * @throws Exception |
| 49640 | 50130 | */ |
| 49641 | - public static function validateThrows(int $value): bool { | |
| 50131 | + public static function validateTimeZone(int $value): bool { | |
| 49642 | 50132 | return true; |
| 49643 | 50133 | } |
| 49644 | 50134 | |
| @@ -49646,18 +50136,18 @@ class Throws { | ||
| 49646 | 50136 | * @throws Exception |
| 49647 | 50137 | * @return int |
| 49648 | 50138 | */ |
| 49649 | - public function getThrows(): int { | |
| 49650 | - if (Throws::validateThrows($this->throws)) { | |
| 49651 | - return $this->throws; | |
| 50139 | + public function getTimeZone(): int { | |
| 50140 | + if (TimeZone::validateTimeZone($this->timeZone)) { | |
| 50141 | + return $this->timeZone; | |
| 49652 | 50142 | } |
| 49653 | - throw new Exception('never get to getThrows Throws::throws'); | |
| 50143 | + throw new Exception('never get to getTimeZone TimeZone::timeZone'); | |
| 49654 | 50144 | } |
| 49655 | 50145 | |
| 49656 | 50146 | /** |
| 49657 | 50147 | * @return int |
| 49658 | 50148 | */ |
| 49659 | - public static function sampleThrows(): int { | |
| 49660 | - return 31; /*31:throws*/ | |
| 50149 | + public static function sampleTimeZone(): int { | |
| 50150 | + return 31; /*31:timeZone*/ | |
| 49661 | 50151 | } |
| 49662 | 50152 | |
| 49663 | 50153 | /** |
| @@ -49665,7 +50155,7 @@ class Throws { | ||
| 49665 | 50155 | * @return bool |
| 49666 | 50156 | */ |
| 49667 | 50157 | public function validate(): bool { |
| 49668 | - return Throws::validateThrows($this->throws); | |
| 50158 | + return TimeZone::validateTimeZone($this->timeZone); | |
| 49669 | 50159 | } |
| 49670 | 50160 | |
| 49671 | 50161 | /** |
| @@ -49674,44 +50164,44 @@ class Throws { | ||
| 49674 | 50164 | */ |
| 49675 | 50165 | public function to(): stdClass { |
| 49676 | 50166 | $out = new stdClass(); |
| 49677 | - $out->{'throws'} = $this->toThrows(); | |
| 50167 | + $out->{'TimeZone'} = $this->toTimeZone(); | |
| 49678 | 50168 | return $out; |
| 49679 | 50169 | } |
| 49680 | 50170 | |
| 49681 | 50171 | /** |
| 49682 | 50172 | * @param stdClass $obj |
| 49683 | - * @return Throws | |
| 50173 | + * @return TimeZone | |
| 49684 | 50174 | * @throws Exception |
| 49685 | 50175 | */ |
| 49686 | - public static function from(stdClass $obj): Throws { | |
| 49687 | - if (!property_exists($obj, 'throws')) { | |
| 50176 | + public static function from(stdClass $obj): TimeZone { | |
| 50177 | + if (!property_exists($obj, 'TimeZone')) { | |
| 49688 | 50178 | throw new Exception("Missing required property"); |
| 49689 | 50179 | } |
| 49690 | - return new Throws( | |
| 49691 | - Throws::fromThrows($obj->{'throws'}) | |
| 50180 | + return new TimeZone( | |
| 50181 | + TimeZone::fromTimeZone($obj->{'TimeZone'}) | |
| 49692 | 50182 | ); |
| 49693 | 50183 | } |
| 49694 | 50184 | |
| 49695 | 50185 | /** |
| 49696 | - * @return Throws | |
| 50186 | + * @return TimeZone | |
| 49697 | 50187 | */ |
| 49698 | - public static function sample(): Throws { | |
| 49699 | - return new Throws( | |
| 49700 | - Throws::sampleThrows() | |
| 50188 | + public static function sample(): TimeZone { | |
| 50189 | + return new TimeZone( | |
| 50190 | + TimeZone::sampleTimeZone() | |
| 49701 | 50191 | ); |
| 49702 | 50192 | } |
| 49703 | 50193 | } |
| 49704 | 50194 | |
| 49705 | -// This is an autogenerated file:TimeOnly | |
| 50195 | +// This is an autogenerated file:ToDict | |
| 49706 | 50196 | |
| 49707 | -class TimeOnly { | |
| 49708 | - private int $timeOnly; // json:TimeOnly Required | |
| 50197 | +class ToDict { | |
| 50198 | + private int $toDict; // json:to_dict Required | |
| 49709 | 50199 | |
| 49710 | 50200 | /** |
| 49711 | - * @param int $timeOnly | |
| 50201 | + * @param int $toDict | |
| 49712 | 50202 | */ |
| 49713 | - public function __construct(int $timeOnly) { | |
| 49714 | - $this->timeOnly = $timeOnly; | |
| 50203 | + public function __construct(int $toDict) { | |
| 50204 | + $this->toDict = $toDict; | |
| 49715 | 50205 | } |
| 49716 | 50206 | |
| 49717 | 50207 | /** |
| @@ -49719,7 +50209,7 @@ class TimeOnly { | ||
| 49719 | 50209 | * @throws Exception |
| 49720 | 50210 | * @return int |
| 49721 | 50211 | */ |
| 49722 | - public static function fromTimeOnly(int $value): int { | |
| 50212 | + public static function fromToDict(int $value): int { | |
| 49723 | 50213 | return $value; /*int*/ |
| 49724 | 50214 | } |
| 49725 | 50215 | |
| @@ -49727,11 +50217,11 @@ class TimeOnly { | ||
| 49727 | 50217 | * @throws Exception |
| 49728 | 50218 | * @return int |
| 49729 | 50219 | */ |
| 49730 | - public function toTimeOnly(): int { | |
| 49731 | - if (TimeOnly::validateTimeOnly($this->timeOnly)) { | |
| 49732 | - return $this->timeOnly; /*int*/ | |
| 50220 | + public function toToDict(): int { | |
| 50221 | + if (ToDict::validateToDict($this->toDict)) { | |
| 50222 | + return $this->toDict; /*int*/ | |
| 49733 | 50223 | } |
| 49734 | - throw new Exception('never get to this TimeOnly::timeOnly'); | |
| 50224 | + throw new Exception('never get to this ToDict::toDict'); | |
| 49735 | 50225 | } |
| 49736 | 50226 | |
| 49737 | 50227 | /** |
| @@ -49739,7 +50229,7 @@ class TimeOnly { | ||
| 49739 | 50229 | * @return bool |
| 49740 | 50230 | * @throws Exception |
| 49741 | 50231 | */ |
| 49742 | - public static function validateTimeOnly(int $value): bool { | |
| 50232 | + public static function validateToDict(int $value): bool { | |
| 49743 | 50233 | return true; |
| 49744 | 50234 | } |
| 49745 | 50235 | |
| @@ -49747,18 +50237,18 @@ class TimeOnly { | ||
| 49747 | 50237 | * @throws Exception |
| 49748 | 50238 | * @return int |
| 49749 | 50239 | */ |
| 49750 | - public function getTimeOnly(): int { | |
| 49751 | - if (TimeOnly::validateTimeOnly($this->timeOnly)) { | |
| 49752 | - return $this->timeOnly; | |
| 50240 | + public function getToDict(): int { | |
| 50241 | + if (ToDict::validateToDict($this->toDict)) { | |
| 50242 | + return $this->toDict; | |
| 49753 | 50243 | } |
| 49754 | - throw new Exception('never get to getTimeOnly TimeOnly::timeOnly'); | |
| 50244 | + throw new Exception('never get to getToDict ToDict::toDict'); | |
| 49755 | 50245 | } |
| 49756 | 50246 | |
| 49757 | 50247 | /** |
| 49758 | 50248 | * @return int |
| 49759 | 50249 | */ |
| 49760 | - public static function sampleTimeOnly(): int { | |
| 49761 | - return 31; /*31:timeOnly*/ | |
| 50250 | + public static function sampleToDict(): int { | |
| 50251 | + return 31; /*31:toDict*/ | |
| 49762 | 50252 | } |
| 49763 | 50253 | |
| 49764 | 50254 | /** |
| @@ -49766,7 +50256,7 @@ class TimeOnly { | ||
| 49766 | 50256 | * @return bool |
| 49767 | 50257 | */ |
| 49768 | 50258 | public function validate(): bool { |
| 49769 | - return TimeOnly::validateTimeOnly($this->timeOnly); | |
| 50259 | + return ToDict::validateToDict($this->toDict); | |
| 49770 | 50260 | } |
| 49771 | 50261 | |
| 49772 | 50262 | /** |
| @@ -49775,44 +50265,44 @@ class TimeOnly { | ||
| 49775 | 50265 | */ |
| 49776 | 50266 | public function to(): stdClass { |
| 49777 | 50267 | $out = new stdClass(); |
| 49778 | - $out->{'TimeOnly'} = $this->toTimeOnly(); | |
| 50268 | + $out->{'to_dict'} = $this->toToDict(); | |
| 49779 | 50269 | return $out; |
| 49780 | 50270 | } |
| 49781 | 50271 | |
| 49782 | 50272 | /** |
| 49783 | 50273 | * @param stdClass $obj |
| 49784 | - * @return TimeOnly | |
| 50274 | + * @return ToDict | |
| 49785 | 50275 | * @throws Exception |
| 49786 | 50276 | */ |
| 49787 | - public static function from(stdClass $obj): TimeOnly { | |
| 49788 | - if (!property_exists($obj, 'TimeOnly')) { | |
| 50277 | + public static function from(stdClass $obj): ToDict { | |
| 50278 | + if (!property_exists($obj, 'to_dict')) { | |
| 49789 | 50279 | throw new Exception("Missing required property"); |
| 49790 | 50280 | } |
| 49791 | - return new TimeOnly( | |
| 49792 | - TimeOnly::fromTimeOnly($obj->{'TimeOnly'}) | |
| 50281 | + return new ToDict( | |
| 50282 | + ToDict::fromToDict($obj->{'to_dict'}) | |
| 49793 | 50283 | ); |
| 49794 | 50284 | } |
| 49795 | 50285 | |
| 49796 | 50286 | /** |
| 49797 | - * @return TimeOnly | |
| 50287 | + * @return ToDict | |
| 49798 | 50288 | */ |
| 49799 | - public static function sample(): TimeOnly { | |
| 49800 | - return new TimeOnly( | |
| 49801 | - TimeOnly::sampleTimeOnly() | |
| 50289 | + public static function sample(): ToDict { | |
| 50290 | + return new ToDict( | |
| 50291 | + ToDict::sampleToDict() | |
| 49802 | 50292 | ); |
| 49803 | 50293 | } |
| 49804 | 50294 | } |
| 49805 | 50295 | |
| 49806 | -// This is an autogenerated file:TimeOnlyConverter | |
| 50296 | +// This is an autogenerated file:ToJSON | |
| 49807 | 50297 | |
| 49808 | -class TimeOnlyConverter { | |
| 49809 | - private int $timeOnlyConverter; // json:TimeOnlyConverter Required | |
| 50298 | +class ToJSON { | |
| 50299 | + private int $toJSON; // json:to_json Required | |
| 49810 | 50300 | |
| 49811 | 50301 | /** |
| 49812 | - * @param int $timeOnlyConverter | |
| 50302 | + * @param int $toJSON | |
| 49813 | 50303 | */ |
| 49814 | - public function __construct(int $timeOnlyConverter) { | |
| 49815 | - $this->timeOnlyConverter = $timeOnlyConverter; | |
| 50304 | + public function __construct(int $toJSON) { | |
| 50305 | + $this->toJSON = $toJSON; | |
| 49816 | 50306 | } |
| 49817 | 50307 | |
| 49818 | 50308 | /** |
| @@ -49820,7 +50310,7 @@ class TimeOnlyConverter { | ||
| 49820 | 50310 | * @throws Exception |
| 49821 | 50311 | * @return int |
| 49822 | 50312 | */ |
| 49823 | - public static function fromTimeOnlyConverter(int $value): int { | |
| 50313 | + public static function fromToJSON(int $value): int { | |
| 49824 | 50314 | return $value; /*int*/ |
| 49825 | 50315 | } |
| 49826 | 50316 | |
| @@ -49828,11 +50318,11 @@ class TimeOnlyConverter { | ||
| 49828 | 50318 | * @throws Exception |
| 49829 | 50319 | * @return int |
| 49830 | 50320 | */ |
| 49831 | - public function toTimeOnlyConverter(): int { | |
| 49832 | - if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) { | |
| 49833 | - return $this->timeOnlyConverter; /*int*/ | |
| 50321 | + public function toToJSON(): int { | |
| 50322 | + if (ToJSON::validateToJSON($this->toJSON)) { | |
| 50323 | + return $this->toJSON; /*int*/ | |
| 49834 | 50324 | } |
| 49835 | - throw new Exception('never get to this TimeOnlyConverter::timeOnlyConverter'); | |
| 50325 | + throw new Exception('never get to this ToJSON::toJSON'); | |
| 49836 | 50326 | } |
| 49837 | 50327 | |
| 49838 | 50328 | /** |
| @@ -49840,7 +50330,7 @@ class TimeOnlyConverter { | ||
| 49840 | 50330 | * @return bool |
| 49841 | 50331 | * @throws Exception |
| 49842 | 50332 | */ |
| 49843 | - public static function validateTimeOnlyConverter(int $value): bool { | |
| 50333 | + public static function validateToJSON(int $value): bool { | |
| 49844 | 50334 | return true; |
| 49845 | 50335 | } |
| 49846 | 50336 | |
| @@ -49848,18 +50338,18 @@ class TimeOnlyConverter { | ||
| 49848 | 50338 | * @throws Exception |
| 49849 | 50339 | * @return int |
| 49850 | 50340 | */ |
| 49851 | - public function getTimeOnlyConverter(): int { | |
| 49852 | - if (TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter)) { | |
| 49853 | - return $this->timeOnlyConverter; | |
| 50341 | + public function getToJSON(): int { | |
| 50342 | + if (ToJSON::validateToJSON($this->toJSON)) { | |
| 50343 | + return $this->toJSON; | |
| 49854 | 50344 | } |
| 49855 | - throw new Exception('never get to getTimeOnlyConverter TimeOnlyConverter::timeOnlyConverter'); | |
| 50345 | + throw new Exception('never get to getToJSON ToJSON::toJSON'); | |
| 49856 | 50346 | } |
| 49857 | 50347 | |
| 49858 | 50348 | /** |
| 49859 | 50349 | * @return int |
| 49860 | 50350 | */ |
| 49861 | - public static function sampleTimeOnlyConverter(): int { | |
| 49862 | - return 31; /*31:timeOnlyConverter*/ | |
| 50351 | + public static function sampleToJSON(): int { | |
| 50352 | + return 31; /*31:toJSON*/ | |
| 49863 | 50353 | } |
| 49864 | 50354 | |
| 49865 | 50355 | /** |
| @@ -49867,7 +50357,7 @@ class TimeOnlyConverter { | ||
| 49867 | 50357 | * @return bool |
| 49868 | 50358 | */ |
| 49869 | 50359 | public function validate(): bool { |
| 49870 | - return TimeOnlyConverter::validateTimeOnlyConverter($this->timeOnlyConverter); | |
| 50360 | + return ToJSON::validateToJSON($this->toJSON); | |
| 49871 | 50361 | } |
| 49872 | 50362 | |
| 49873 | 50363 | /** |
| @@ -49876,44 +50366,44 @@ class TimeOnlyConverter { | ||
| 49876 | 50366 | */ |
| 49877 | 50367 | public function to(): stdClass { |
| 49878 | 50368 | $out = new stdClass(); |
| 49879 | - $out->{'TimeOnlyConverter'} = $this->toTimeOnlyConverter(); | |
| 50369 | + $out->{'to_json'} = $this->toToJSON(); | |
| 49880 | 50370 | return $out; |
| 49881 | 50371 | } |
| 49882 | 50372 | |
| 49883 | 50373 | /** |
| 49884 | 50374 | * @param stdClass $obj |
| 49885 | - * @return TimeOnlyConverter | |
| 50375 | + * @return ToJSON | |
| 49886 | 50376 | * @throws Exception |
| 49887 | 50377 | */ |
| 49888 | - public static function from(stdClass $obj): TimeOnlyConverter { | |
| 49889 | - if (!property_exists($obj, 'TimeOnlyConverter')) { | |
| 50378 | + public static function from(stdClass $obj): ToJSON { | |
| 50379 | + if (!property_exists($obj, 'to_json')) { | |
| 49890 | 50380 | throw new Exception("Missing required property"); |
| 49891 | 50381 | } |
| 49892 | - return new TimeOnlyConverter( | |
| 49893 | - TimeOnlyConverter::fromTimeOnlyConverter($obj->{'TimeOnlyConverter'}) | |
| 50382 | + return new ToJSON( | |
| 50383 | + ToJSON::fromToJSON($obj->{'to_json'}) | |
| 49894 | 50384 | ); |
| 49895 | 50385 | } |
| 49896 | 50386 | |
| 49897 | 50387 | /** |
| 49898 | - * @return TimeOnlyConverter | |
| 50388 | + * @return ToJSON | |
| 49899 | 50389 | */ |
| 49900 | - public static function sample(): TimeOnlyConverter { | |
| 49901 | - return new TimeOnlyConverter( | |
| 49902 | - TimeOnlyConverter::sampleTimeOnlyConverter() | |
| 50390 | + public static function sample(): ToJSON { | |
| 50391 | + return new ToJSON( | |
| 50392 | + ToJSON::sampleToJSON() | |
| 49903 | 50393 | ); |
| 49904 | 50394 | } |
| 49905 | 50395 | } |
| 49906 | 50396 | |
| 49907 | -// This is an autogenerated file:TimeZone | |
| 50397 | +// This is an autogenerated file:ToString | |
| 49908 | 50398 | |
| 49909 | -class TimeZone { | |
| 49910 | - private int $timeZone; // json:TimeZone Required | |
| 50399 | +class ToString { | |
| 50400 | + private int $toString; // json:toString Required | |
| 49911 | 50401 | |
| 49912 | 50402 | /** |
| 49913 | - * @param int $timeZone | |
| 50403 | + * @param int $toString | |
| 49914 | 50404 | */ |
| 49915 | - public function __construct(int $timeZone) { | |
| 49916 | - $this->timeZone = $timeZone; | |
| 50405 | + public function __construct(int $toString) { | |
| 50406 | + $this->toString = $toString; | |
| 49917 | 50407 | } |
| 49918 | 50408 | |
| 49919 | 50409 | /** |
| @@ -49921,7 +50411,7 @@ class TimeZone { | ||
| 49921 | 50411 | * @throws Exception |
| 49922 | 50412 | * @return int |
| 49923 | 50413 | */ |
| 49924 | - public static function fromTimeZone(int $value): int { | |
| 50414 | + public static function fromToString(int $value): int { | |
| 49925 | 50415 | return $value; /*int*/ |
| 49926 | 50416 | } |
| 49927 | 50417 | |
| @@ -49929,11 +50419,11 @@ class TimeZone { | ||
| 49929 | 50419 | * @throws Exception |
| 49930 | 50420 | * @return int |
| 49931 | 50421 | */ |
| 49932 | - public function toTimeZone(): int { | |
| 49933 | - if (TimeZone::validateTimeZone($this->timeZone)) { | |
| 49934 | - return $this->timeZone; /*int*/ | |
| 50422 | + public function toToString(): int { | |
| 50423 | + if (ToString::validateToString($this->toString)) { | |
| 50424 | + return $this->toString; /*int*/ | |
| 49935 | 50425 | } |
| 49936 | - throw new Exception('never get to this TimeZone::timeZone'); | |
| 50426 | + throw new Exception('never get to this ToString::toString'); | |
| 49937 | 50427 | } |
| 49938 | 50428 | |
| 49939 | 50429 | /** |
| @@ -49941,7 +50431,7 @@ class TimeZone { | ||
| 49941 | 50431 | * @return bool |
| 49942 | 50432 | * @throws Exception |
| 49943 | 50433 | */ |
| 49944 | - public static function validateTimeZone(int $value): bool { | |
| 50434 | + public static function validateToString(int $value): bool { | |
| 49945 | 50435 | return true; |
| 49946 | 50436 | } |
| 49947 | 50437 | |
| @@ -49949,18 +50439,18 @@ class TimeZone { | ||
| 49949 | 50439 | * @throws Exception |
| 49950 | 50440 | * @return int |
| 49951 | 50441 | */ |
| 49952 | - public function getTimeZone(): int { | |
| 49953 | - if (TimeZone::validateTimeZone($this->timeZone)) { | |
| 49954 | - return $this->timeZone; | |
| 50442 | + public function getToString(): int { | |
| 50443 | + if (ToString::validateToString($this->toString)) { | |
| 50444 | + return $this->toString; | |
| 49955 | 50445 | } |
| 49956 | - throw new Exception('never get to getTimeZone TimeZone::timeZone'); | |
| 50446 | + throw new Exception('never get to getToString ToString::toString'); | |
| 49957 | 50447 | } |
| 49958 | 50448 | |
| 49959 | 50449 | /** |
| 49960 | 50450 | * @return int |
| 49961 | 50451 | */ |
| 49962 | - public static function sampleTimeZone(): int { | |
| 49963 | - return 31; /*31:timeZone*/ | |
| 50452 | + public static function sampleToString(): int { | |
| 50453 | + return 31; /*31:toString*/ | |
| 49964 | 50454 | } |
| 49965 | 50455 | |
| 49966 | 50456 | /** |
| @@ -49968,7 +50458,7 @@ class TimeZone { | ||
| 49968 | 50458 | * @return bool |
| 49969 | 50459 | */ |
| 49970 | 50460 | public function validate(): bool { |
| 49971 | - return TimeZone::validateTimeZone($this->timeZone); | |
| 50461 | + return ToString::validateToString($this->toString); | |
| 49972 | 50462 | } |
| 49973 | 50463 | |
| 49974 | 50464 | /** |
| @@ -49977,44 +50467,44 @@ class TimeZone { | ||
| 49977 | 50467 | */ |
| 49978 | 50468 | public function to(): stdClass { |
| 49979 | 50469 | $out = new stdClass(); |
| 49980 | - $out->{'TimeZone'} = $this->toTimeZone(); | |
| 50470 | + $out->{'toString'} = $this->toToString(); | |
| 49981 | 50471 | return $out; |
| 49982 | 50472 | } |
| 49983 | 50473 | |
| 49984 | 50474 | /** |
| 49985 | 50475 | * @param stdClass $obj |
| 49986 | - * @return TimeZone | |
| 50476 | + * @return ToString | |
| 49987 | 50477 | * @throws Exception |
| 49988 | 50478 | */ |
| 49989 | - public static function from(stdClass $obj): TimeZone { | |
| 49990 | - if (!property_exists($obj, 'TimeZone')) { | |
| 50479 | + public static function from(stdClass $obj): ToString { | |
| 50480 | + if (!property_exists($obj, 'toString')) { | |
| 49991 | 50481 | throw new Exception("Missing required property"); |
| 49992 | 50482 | } |
| 49993 | - return new TimeZone( | |
| 49994 | - TimeZone::fromTimeZone($obj->{'TimeZone'}) | |
| 50483 | + return new ToString( | |
| 50484 | + ToString::fromToString($obj->{'toString'}) | |
| 49995 | 50485 | ); |
| 49996 | 50486 | } |
| 49997 | 50487 | |
| 49998 | 50488 | /** |
| 49999 | - * @return TimeZone | |
| 50489 | + * @return ToString | |
| 50000 | 50490 | */ |
| 50001 | - public static function sample(): TimeZone { | |
| 50002 | - return new TimeZone( | |
| 50003 | - TimeZone::sampleTimeZone() | |
| 50491 | + public static function sample(): ToString { | |
| 50492 | + return new ToString( | |
| 50493 | + ToString::sampleToString() | |
| 50004 | 50494 | ); |
| 50005 | 50495 | } |
| 50006 | 50496 | } |
| 50007 | 50497 | |
| 50008 | -// This is an autogenerated file:ToDict | |
| 50498 | +// This is an autogenerated file:TopLevelClass | |
| 50009 | 50499 | |
| 50010 | -class ToDict { | |
| 50011 | - private int $toDict; // json:to_dict Required | |
| 50500 | +class TopLevelClass { | |
| 50501 | + private int $topLevel; // json:top_level Required | |
| 50012 | 50502 | |
| 50013 | 50503 | /** |
| 50014 | - * @param int $toDict | |
| 50504 | + * @param int $topLevel | |
| 50015 | 50505 | */ |
| 50016 | - public function __construct(int $toDict) { | |
| 50017 | - $this->toDict = $toDict; | |
| 50506 | + public function __construct(int $topLevel) { | |
| 50507 | + $this->topLevel = $topLevel; | |
| 50018 | 50508 | } |
| 50019 | 50509 | |
| 50020 | 50510 | /** |
| @@ -50022,7 +50512,7 @@ class ToDict { | ||
| 50022 | 50512 | * @throws Exception |
| 50023 | 50513 | * @return int |
| 50024 | 50514 | */ |
| 50025 | - public static function fromToDict(int $value): int { | |
| 50515 | + public static function fromTopLevel(int $value): int { | |
| 50026 | 50516 | return $value; /*int*/ |
| 50027 | 50517 | } |
| 50028 | 50518 | |
| @@ -50030,11 +50520,11 @@ class ToDict { | ||
| 50030 | 50520 | * @throws Exception |
| 50031 | 50521 | * @return int |
| 50032 | 50522 | */ |
| 50033 | - public function toToDict(): int { | |
| 50034 | - if (ToDict::validateToDict($this->toDict)) { | |
| 50035 | - return $this->toDict; /*int*/ | |
| 50523 | + public function toTopLevel(): int { | |
| 50524 | + if (TopLevelClass::validateTopLevel($this->topLevel)) { | |
| 50525 | + return $this->topLevel; /*int*/ | |
| 50036 | 50526 | } |
| 50037 | - throw new Exception('never get to this ToDict::toDict'); | |
| 50527 | + throw new Exception('never get to this TopLevelClass::topLevel'); | |
| 50038 | 50528 | } |
| 50039 | 50529 | |
| 50040 | 50530 | /** |
| @@ -50042,7 +50532,7 @@ class ToDict { | ||
| 50042 | 50532 | * @return bool |
| 50043 | 50533 | * @throws Exception |
| 50044 | 50534 | */ |
| 50045 | - public static function validateToDict(int $value): bool { | |
| 50535 | + public static function validateTopLevel(int $value): bool { | |
| 50046 | 50536 | return true; |
| 50047 | 50537 | } |
| 50048 | 50538 | |
| @@ -50050,18 +50540,18 @@ class ToDict { | ||
| 50050 | 50540 | * @throws Exception |
| 50051 | 50541 | * @return int |
| 50052 | 50542 | */ |
| 50053 | - public function getToDict(): int { | |
| 50054 | - if (ToDict::validateToDict($this->toDict)) { | |
| 50055 | - return $this->toDict; | |
| 50543 | + public function getTopLevel(): int { | |
| 50544 | + if (TopLevelClass::validateTopLevel($this->topLevel)) { | |
| 50545 | + return $this->topLevel; | |
| 50056 | 50546 | } |
| 50057 | - throw new Exception('never get to getToDict ToDict::toDict'); | |
| 50547 | + throw new Exception('never get to getTopLevel TopLevelClass::topLevel'); | |
| 50058 | 50548 | } |
| 50059 | 50549 | |
| 50060 | 50550 | /** |
| 50061 | 50551 | * @return int |
| 50062 | 50552 | */ |
| 50063 | - public static function sampleToDict(): int { | |
| 50064 | - return 31; /*31:toDict*/ | |
| 50553 | + public static function sampleTopLevel(): int { | |
| 50554 | + return 31; /*31:topLevel*/ | |
| 50065 | 50555 | } |
| 50066 | 50556 | |
| 50067 | 50557 | /** |
| @@ -50069,7 +50559,7 @@ class ToDict { | ||
| 50069 | 50559 | * @return bool |
| 50070 | 50560 | */ |
| 50071 | 50561 | public function validate(): bool { |
| 50072 | - return ToDict::validateToDict($this->toDict); | |
| 50562 | + return TopLevelClass::validateTopLevel($this->topLevel); | |
| 50073 | 50563 | } |
| 50074 | 50564 | |
| 50075 | 50565 | /** |
| @@ -50078,44 +50568,44 @@ class ToDict { | ||
| 50078 | 50568 | */ |
| 50079 | 50569 | public function to(): stdClass { |
| 50080 | 50570 | $out = new stdClass(); |
| 50081 | - $out->{'to_dict'} = $this->toToDict(); | |
| 50571 | + $out->{'top_level'} = $this->toTopLevel(); | |
| 50082 | 50572 | return $out; |
| 50083 | 50573 | } |
| 50084 | 50574 | |
| 50085 | 50575 | /** |
| 50086 | 50576 | * @param stdClass $obj |
| 50087 | - * @return ToDict | |
| 50577 | + * @return TopLevelClass | |
| 50088 | 50578 | * @throws Exception |
| 50089 | 50579 | */ |
| 50090 | - public static function from(stdClass $obj): ToDict { | |
| 50091 | - if (!property_exists($obj, 'to_dict')) { | |
| 50580 | + public static function from(stdClass $obj): TopLevelClass { | |
| 50581 | + if (!property_exists($obj, 'top_level')) { | |
| 50092 | 50582 | throw new Exception("Missing required property"); |
| 50093 | 50583 | } |
| 50094 | - return new ToDict( | |
| 50095 | - ToDict::fromToDict($obj->{'to_dict'}) | |
| 50584 | + return new TopLevelClass( | |
| 50585 | + TopLevelClass::fromTopLevel($obj->{'top_level'}) | |
| 50096 | 50586 | ); |
| 50097 | 50587 | } |
| 50098 | 50588 | |
| 50099 | 50589 | /** |
| 50100 | - * @return ToDict | |
| 50590 | + * @return TopLevelClass | |
| 50101 | 50591 | */ |
| 50102 | - public static function sample(): ToDict { | |
| 50103 | - return new ToDict( | |
| 50104 | - ToDict::sampleToDict() | |
| 50592 | + public static function sample(): TopLevelClass { | |
| 50593 | + return new TopLevelClass( | |
| 50594 | + TopLevelClass::sampleTopLevel() | |
| 50105 | 50595 | ); |
| 50106 | 50596 | } |
| 50107 | 50597 | } |
| 50108 | 50598 | |
| 50109 | -// This is an autogenerated file:ToJSON | |
| 50599 | +// This is an autogenerated file:Transient | |
| 50110 | 50600 | |
| 50111 | -class ToJSON { | |
| 50112 | - private int $toJSON; // json:to_json Required | |
| 50601 | +class Transient { | |
| 50602 | + private int $transient; // json:transient Required | |
| 50113 | 50603 | |
| 50114 | 50604 | /** |
| 50115 | - * @param int $toJSON | |
| 50605 | + * @param int $transient | |
| 50116 | 50606 | */ |
| 50117 | - public function __construct(int $toJSON) { | |
| 50118 | - $this->toJSON = $toJSON; | |
| 50607 | + public function __construct(int $transient) { | |
| 50608 | + $this->transient = $transient; | |
| 50119 | 50609 | } |
| 50120 | 50610 | |
| 50121 | 50611 | /** |
| @@ -50123,7 +50613,7 @@ class ToJSON { | ||
| 50123 | 50613 | * @throws Exception |
| 50124 | 50614 | * @return int |
| 50125 | 50615 | */ |
| 50126 | - public static function fromToJSON(int $value): int { | |
| 50616 | + public static function fromTransient(int $value): int { | |
| 50127 | 50617 | return $value; /*int*/ |
| 50128 | 50618 | } |
| 50129 | 50619 | |
| @@ -50131,11 +50621,11 @@ class ToJSON { | ||
| 50131 | 50621 | * @throws Exception |
| 50132 | 50622 | * @return int |
| 50133 | 50623 | */ |
| 50134 | - public function toToJSON(): int { | |
| 50135 | - if (ToJSON::validateToJSON($this->toJSON)) { | |
| 50136 | - return $this->toJSON; /*int*/ | |
| 50624 | + public function toTransient(): int { | |
| 50625 | + if (Transient::validateTransient($this->transient)) { | |
| 50626 | + return $this->transient; /*int*/ | |
| 50137 | 50627 | } |
| 50138 | - throw new Exception('never get to this ToJSON::toJSON'); | |
| 50628 | + throw new Exception('never get to this Transient::transient'); | |
| 50139 | 50629 | } |
| 50140 | 50630 | |
| 50141 | 50631 | /** |
| @@ -50143,7 +50633,7 @@ class ToJSON { | ||
| 50143 | 50633 | * @return bool |
| 50144 | 50634 | * @throws Exception |
| 50145 | 50635 | */ |
| 50146 | - public static function validateToJSON(int $value): bool { | |
| 50636 | + public static function validateTransient(int $value): bool { | |
| 50147 | 50637 | return true; |
| 50148 | 50638 | } |
| 50149 | 50639 | |
| @@ -50151,18 +50641,18 @@ class ToJSON { | ||
| 50151 | 50641 | * @throws Exception |
| 50152 | 50642 | * @return int |
| 50153 | 50643 | */ |
| 50154 | - public function getToJSON(): int { | |
| 50155 | - if (ToJSON::validateToJSON($this->toJSON)) { | |
| 50156 | - return $this->toJSON; | |
| 50644 | + public function getTransient(): int { | |
| 50645 | + if (Transient::validateTransient($this->transient)) { | |
| 50646 | + return $this->transient; | |
| 50157 | 50647 | } |
| 50158 | - throw new Exception('never get to getToJSON ToJSON::toJSON'); | |
| 50648 | + throw new Exception('never get to getTransient Transient::transient'); | |
| 50159 | 50649 | } |
| 50160 | 50650 | |
| 50161 | 50651 | /** |
| 50162 | 50652 | * @return int |
| 50163 | 50653 | */ |
| 50164 | - public static function sampleToJSON(): int { | |
| 50165 | - return 31; /*31:toJSON*/ | |
| 50654 | + public static function sampleTransient(): int { | |
| 50655 | + return 31; /*31:transient*/ | |
| 50166 | 50656 | } |
| 50167 | 50657 | |
| 50168 | 50658 | /** |
| @@ -50170,7 +50660,7 @@ class ToJSON { | ||
| 50170 | 50660 | * @return bool |
| 50171 | 50661 | */ |
| 50172 | 50662 | public function validate(): bool { |
| 50173 | - return ToJSON::validateToJSON($this->toJSON); | |
| 50663 | + return Transient::validateTransient($this->transient); | |
| 50174 | 50664 | } |
| 50175 | 50665 | |
| 50176 | 50666 | /** |
| @@ -50179,44 +50669,44 @@ class ToJSON { | ||
| 50179 | 50669 | */ |
| 50180 | 50670 | public function to(): stdClass { |
| 50181 | 50671 | $out = new stdClass(); |
| 50182 | - $out->{'to_json'} = $this->toToJSON(); | |
| 50672 | + $out->{'transient'} = $this->toTransient(); | |
| 50183 | 50673 | return $out; |
| 50184 | 50674 | } |
| 50185 | 50675 | |
| 50186 | 50676 | /** |
| 50187 | 50677 | * @param stdClass $obj |
| 50188 | - * @return ToJSON | |
| 50678 | + * @return Transient | |
| 50189 | 50679 | * @throws Exception |
| 50190 | 50680 | */ |
| 50191 | - public static function from(stdClass $obj): ToJSON { | |
| 50192 | - if (!property_exists($obj, 'to_json')) { | |
| 50681 | + public static function from(stdClass $obj): Transient { | |
| 50682 | + if (!property_exists($obj, 'transient')) { | |
| 50193 | 50683 | throw new Exception("Missing required property"); |
| 50194 | 50684 | } |
| 50195 | - return new ToJSON( | |
| 50196 | - ToJSON::fromToJSON($obj->{'to_json'}) | |
| 50685 | + return new Transient( | |
| 50686 | + Transient::fromTransient($obj->{'transient'}) | |
| 50197 | 50687 | ); |
| 50198 | 50688 | } |
| 50199 | 50689 | |
| 50200 | 50690 | /** |
| 50201 | - * @return ToJSON | |
| 50691 | + * @return Transient | |
| 50202 | 50692 | */ |
| 50203 | - public static function sample(): ToJSON { | |
| 50204 | - return new ToJSON( | |
| 50205 | - ToJSON::sampleToJSON() | |
| 50693 | + public static function sample(): Transient { | |
| 50694 | + return new Transient( | |
| 50695 | + Transient::sampleTransient() | |
| 50206 | 50696 | ); |
| 50207 | 50697 | } |
| 50208 | 50698 | } |
| 50209 | 50699 | |
| 50210 | -// This is an autogenerated file:ToString | |
| 50700 | +// This is an autogenerated file:TrueClass | |
| 50211 | 50701 | |
| 50212 | -class ToString { | |
| 50213 | - private int $toString; // json:toString Required | |
| 50702 | +class TrueClass { | |
| 50703 | + private int $true; // json:True Required | |
| 50214 | 50704 | |
| 50215 | 50705 | /** |
| 50216 | - * @param int $toString | |
| 50706 | + * @param int $true | |
| 50217 | 50707 | */ |
| 50218 | - public function __construct(int $toString) { | |
| 50219 | - $this->toString = $toString; | |
| 50708 | + public function __construct(int $true) { | |
| 50709 | + $this->true = $true; | |
| 50220 | 50710 | } |
| 50221 | 50711 | |
| 50222 | 50712 | /** |
| @@ -50224,7 +50714,7 @@ class ToString { | ||
| 50224 | 50714 | * @throws Exception |
| 50225 | 50715 | * @return int |
| 50226 | 50716 | */ |
| 50227 | - public static function fromToString(int $value): int { | |
| 50717 | + public static function fromTrue(int $value): int { | |
| 50228 | 50718 | return $value; /*int*/ |
| 50229 | 50719 | } |
| 50230 | 50720 | |
| @@ -50232,11 +50722,11 @@ class ToString { | ||
| 50232 | 50722 | * @throws Exception |
| 50233 | 50723 | * @return int |
| 50234 | 50724 | */ |
| 50235 | - public function toToString(): int { | |
| 50236 | - if (ToString::validateToString($this->toString)) { | |
| 50237 | - return $this->toString; /*int*/ | |
| 50725 | + public function toTrue(): int { | |
| 50726 | + if (TrueClass::validateTrue($this->true)) { | |
| 50727 | + return $this->true; /*int*/ | |
| 50238 | 50728 | } |
| 50239 | - throw new Exception('never get to this ToString::toString'); | |
| 50729 | + throw new Exception('never get to this TrueClass::true'); | |
| 50240 | 50730 | } |
| 50241 | 50731 | |
| 50242 | 50732 | /** |
| @@ -50244,7 +50734,7 @@ class ToString { | ||
| 50244 | 50734 | * @return bool |
| 50245 | 50735 | * @throws Exception |
| 50246 | 50736 | */ |
| 50247 | - public static function validateToString(int $value): bool { | |
| 50737 | + public static function validateTrue(int $value): bool { | |
| 50248 | 50738 | return true; |
| 50249 | 50739 | } |
| 50250 | 50740 | |
| @@ -50252,18 +50742,18 @@ class ToString { | ||
| 50252 | 50742 | * @throws Exception |
| 50253 | 50743 | * @return int |
| 50254 | 50744 | */ |
| 50255 | - public function getToString(): int { | |
| 50256 | - if (ToString::validateToString($this->toString)) { | |
| 50257 | - return $this->toString; | |
| 50745 | + public function getTrue(): int { | |
| 50746 | + if (TrueClass::validateTrue($this->true)) { | |
| 50747 | + return $this->true; | |
| 50258 | 50748 | } |
| 50259 | - throw new Exception('never get to getToString ToString::toString'); | |
| 50749 | + throw new Exception('never get to getTrue TrueClass::true'); | |
| 50260 | 50750 | } |
| 50261 | 50751 | |
| 50262 | 50752 | /** |
| 50263 | 50753 | * @return int |
| 50264 | 50754 | */ |
| 50265 | - public static function sampleToString(): int { | |
| 50266 | - return 31; /*31:toString*/ | |
| 50755 | + public static function sampleTrue(): int { | |
| 50756 | + return 31; /*31:true*/ | |
| 50267 | 50757 | } |
| 50268 | 50758 | |
| 50269 | 50759 | /** |
| @@ -50271,7 +50761,7 @@ class ToString { | ||
| 50271 | 50761 | * @return bool |
| 50272 | 50762 | */ |
| 50273 | 50763 | public function validate(): bool { |
| 50274 | - return ToString::validateToString($this->toString); | |
| 50764 | + return TrueClass::validateTrue($this->true); | |
| 50275 | 50765 | } |
| 50276 | 50766 | |
| 50277 | 50767 | /** |
| @@ -50280,44 +50770,44 @@ class ToString { | ||
| 50280 | 50770 | */ |
| 50281 | 50771 | public function to(): stdClass { |
| 50282 | 50772 | $out = new stdClass(); |
| 50283 | - $out->{'toString'} = $this->toToString(); | |
| 50773 | + $out->{'True'} = $this->toTrue(); | |
| 50284 | 50774 | return $out; |
| 50285 | 50775 | } |
| 50286 | 50776 | |
| 50287 | 50777 | /** |
| 50288 | 50778 | * @param stdClass $obj |
| 50289 | - * @return ToString | |
| 50779 | + * @return TrueClass | |
| 50290 | 50780 | * @throws Exception |
| 50291 | 50781 | */ |
| 50292 | - public static function from(stdClass $obj): ToString { | |
| 50293 | - if (!property_exists($obj, 'toString')) { | |
| 50782 | + public static function from(stdClass $obj): TrueClass { | |
| 50783 | + if (!property_exists($obj, 'True')) { | |
| 50294 | 50784 | throw new Exception("Missing required property"); |
| 50295 | 50785 | } |
| 50296 | - return new ToString( | |
| 50297 | - ToString::fromToString($obj->{'toString'}) | |
| 50786 | + return new TrueClass( | |
| 50787 | + TrueClass::fromTrue($obj->{'True'}) | |
| 50298 | 50788 | ); |
| 50299 | 50789 | } |
| 50300 | 50790 | |
| 50301 | 50791 | /** |
| 50302 | - * @return ToString | |
| 50792 | + * @return TrueClass | |
| 50303 | 50793 | */ |
| 50304 | - public static function sample(): ToString { | |
| 50305 | - return new ToString( | |
| 50306 | - ToString::sampleToString() | |
| 50794 | + public static function sample(): TrueClass { | |
| 50795 | + return new TrueClass( | |
| 50796 | + TrueClass::sampleTrue() | |
| 50307 | 50797 | ); |
| 50308 | 50798 | } |
| 50309 | 50799 | } |
| 50310 | 50800 | |
| 50311 | -// This is an autogenerated file:TopLevelClass | |
| 50801 | +// This is an autogenerated file:TryClass | |
| 50312 | 50802 | |
| 50313 | -class TopLevelClass { | |
| 50314 | - private int $topLevel; // json:top_level Required | |
| 50803 | +class TryClass { | |
| 50804 | + private int $try; // json:try Required | |
| 50315 | 50805 | |
| 50316 | 50806 | /** |
| 50317 | - * @param int $topLevel | |
| 50807 | + * @param int $try | |
| 50318 | 50808 | */ |
| 50319 | - public function __construct(int $topLevel) { | |
| 50320 | - $this->topLevel = $topLevel; | |
| 50809 | + public function __construct(int $try) { | |
| 50810 | + $this->try = $try; | |
| 50321 | 50811 | } |
| 50322 | 50812 | |
| 50323 | 50813 | /** |
| @@ -50325,7 +50815,7 @@ class TopLevelClass { | ||
| 50325 | 50815 | * @throws Exception |
| 50326 | 50816 | * @return int |
| 50327 | 50817 | */ |
| 50328 | - public static function fromTopLevel(int $value): int { | |
| 50818 | + public static function fromTry(int $value): int { | |
| 50329 | 50819 | return $value; /*int*/ |
| 50330 | 50820 | } |
| 50331 | 50821 | |
| @@ -50333,11 +50823,11 @@ class TopLevelClass { | ||
| 50333 | 50823 | * @throws Exception |
| 50334 | 50824 | * @return int |
| 50335 | 50825 | */ |
| 50336 | - public function toTopLevel(): int { | |
| 50337 | - if (TopLevelClass::validateTopLevel($this->topLevel)) { | |
| 50338 | - return $this->topLevel; /*int*/ | |
| 50826 | + public function toTry(): int { | |
| 50827 | + if (TryClass::validateTry($this->try)) { | |
| 50828 | + return $this->try; /*int*/ | |
| 50339 | 50829 | } |
| 50340 | - throw new Exception('never get to this TopLevelClass::topLevel'); | |
| 50830 | + throw new Exception('never get to this TryClass::try'); | |
| 50341 | 50831 | } |
| 50342 | 50832 | |
| 50343 | 50833 | /** |
| @@ -50345,7 +50835,7 @@ class TopLevelClass { | ||
| 50345 | 50835 | * @return bool |
| 50346 | 50836 | * @throws Exception |
| 50347 | 50837 | */ |
| 50348 | - public static function validateTopLevel(int $value): bool { | |
| 50838 | + public static function validateTry(int $value): bool { | |
| 50349 | 50839 | return true; |
| 50350 | 50840 | } |
| 50351 | 50841 | |
| @@ -50353,18 +50843,18 @@ class TopLevelClass { | ||
| 50353 | 50843 | * @throws Exception |
| 50354 | 50844 | * @return int |
| 50355 | 50845 | */ |
| 50356 | - public function getTopLevel(): int { | |
| 50357 | - if (TopLevelClass::validateTopLevel($this->topLevel)) { | |
| 50358 | - return $this->topLevel; | |
| 50846 | + public function getTry(): int { | |
| 50847 | + if (TryClass::validateTry($this->try)) { | |
| 50848 | + return $this->try; | |
| 50359 | 50849 | } |
| 50360 | - throw new Exception('never get to getTopLevel TopLevelClass::topLevel'); | |
| 50850 | + throw new Exception('never get to getTry TryClass::try'); | |
| 50361 | 50851 | } |
| 50362 | 50852 | |
| 50363 | 50853 | /** |
| 50364 | 50854 | * @return int |
| 50365 | 50855 | */ |
| 50366 | - public static function sampleTopLevel(): int { | |
| 50367 | - return 31; /*31:topLevel*/ | |
| 50856 | + public static function sampleTry(): int { | |
| 50857 | + return 31; /*31:try*/ | |
| 50368 | 50858 | } |
| 50369 | 50859 | |
| 50370 | 50860 | /** |
| @@ -50372,7 +50862,7 @@ class TopLevelClass { | ||
| 50372 | 50862 | * @return bool |
| 50373 | 50863 | */ |
| 50374 | 50864 | public function validate(): bool { |
| 50375 | - return TopLevelClass::validateTopLevel($this->topLevel); | |
| 50865 | + return TryClass::validateTry($this->try); | |
| 50376 | 50866 | } |
| 50377 | 50867 | |
| 50378 | 50868 | /** |
| @@ -50381,44 +50871,44 @@ class TopLevelClass { | ||
| 50381 | 50871 | */ |
| 50382 | 50872 | public function to(): stdClass { |
| 50383 | 50873 | $out = new stdClass(); |
| 50384 | - $out->{'top_level'} = $this->toTopLevel(); | |
| 50874 | + $out->{'try'} = $this->toTry(); | |
| 50385 | 50875 | return $out; |
| 50386 | 50876 | } |
| 50387 | 50877 | |
| 50388 | 50878 | /** |
| 50389 | 50879 | * @param stdClass $obj |
| 50390 | - * @return TopLevelClass | |
| 50880 | + * @return TryClass | |
| 50391 | 50881 | * @throws Exception |
| 50392 | 50882 | */ |
| 50393 | - public static function from(stdClass $obj): TopLevelClass { | |
| 50394 | - if (!property_exists($obj, 'top_level')) { | |
| 50883 | + public static function from(stdClass $obj): TryClass { | |
| 50884 | + if (!property_exists($obj, 'try')) { | |
| 50395 | 50885 | throw new Exception("Missing required property"); |
| 50396 | 50886 | } |
| 50397 | - return new TopLevelClass( | |
| 50398 | - TopLevelClass::fromTopLevel($obj->{'top_level'}) | |
| 50887 | + return new TryClass( | |
| 50888 | + TryClass::fromTry($obj->{'try'}) | |
| 50399 | 50889 | ); |
| 50400 | 50890 | } |
| 50401 | 50891 | |
| 50402 | 50892 | /** |
| 50403 | - * @return TopLevelClass | |
| 50893 | + * @return TryClass | |
| 50404 | 50894 | */ |
| 50405 | - public static function sample(): TopLevelClass { | |
| 50406 | - return new TopLevelClass( | |
| 50407 | - TopLevelClass::sampleTopLevel() | |
| 50895 | + public static function sample(): TryClass { | |
| 50896 | + return new TryClass( | |
| 50897 | + TryClass::sampleTry() | |
| 50408 | 50898 | ); |
| 50409 | 50899 | } |
| 50410 | 50900 | } |
| 50411 | 50901 | |
| 50412 | -// This is an autogenerated file:Transient | |
| 50902 | +// This is an autogenerated file:Type | |
| 50413 | 50903 | |
| 50414 | -class Transient { | |
| 50415 | - private int $transient; // json:transient Required | |
| 50904 | +class Type { | |
| 50905 | + private int $type; // json:Type Required | |
| 50416 | 50906 | |
| 50417 | 50907 | /** |
| 50418 | - * @param int $transient | |
| 50908 | + * @param int $type | |
| 50419 | 50909 | */ |
| 50420 | - public function __construct(int $transient) { | |
| 50421 | - $this->transient = $transient; | |
| 50910 | + public function __construct(int $type) { | |
| 50911 | + $this->type = $type; | |
| 50422 | 50912 | } |
| 50423 | 50913 | |
| 50424 | 50914 | /** |
| @@ -50426,7 +50916,7 @@ class Transient { | ||
| 50426 | 50916 | * @throws Exception |
| 50427 | 50917 | * @return int |
| 50428 | 50918 | */ |
| 50429 | - public static function fromTransient(int $value): int { | |
| 50919 | + public static function fromType(int $value): int { | |
| 50430 | 50920 | return $value; /*int*/ |
| 50431 | 50921 | } |
| 50432 | 50922 | |
| @@ -50434,11 +50924,11 @@ class Transient { | ||
| 50434 | 50924 | * @throws Exception |
| 50435 | 50925 | * @return int |
| 50436 | 50926 | */ |
| 50437 | - public function toTransient(): int { | |
| 50438 | - if (Transient::validateTransient($this->transient)) { | |
| 50439 | - return $this->transient; /*int*/ | |
| 50927 | + public function toType(): int { | |
| 50928 | + if (Type::validateType($this->type)) { | |
| 50929 | + return $this->type; /*int*/ | |
| 50440 | 50930 | } |
| 50441 | - throw new Exception('never get to this Transient::transient'); | |
| 50931 | + throw new Exception('never get to this Type::type'); | |
| 50442 | 50932 | } |
| 50443 | 50933 | |
| 50444 | 50934 | /** |
| @@ -50446,7 +50936,7 @@ class Transient { | ||
| 50446 | 50936 | * @return bool |
| 50447 | 50937 | * @throws Exception |
| 50448 | 50938 | */ |
| 50449 | - public static function validateTransient(int $value): bool { | |
| 50939 | + public static function validateType(int $value): bool { | |
| 50450 | 50940 | return true; |
| 50451 | 50941 | } |
| 50452 | 50942 | |
| @@ -50454,18 +50944,18 @@ class Transient { | ||
| 50454 | 50944 | * @throws Exception |
| 50455 | 50945 | * @return int |
| 50456 | 50946 | */ |
| 50457 | - public function getTransient(): int { | |
| 50458 | - if (Transient::validateTransient($this->transient)) { | |
| 50459 | - return $this->transient; | |
| 50947 | + public function getType(): int { | |
| 50948 | + if (Type::validateType($this->type)) { | |
| 50949 | + return $this->type; | |
| 50460 | 50950 | } |
| 50461 | - throw new Exception('never get to getTransient Transient::transient'); | |
| 50951 | + throw new Exception('never get to getType Type::type'); | |
| 50462 | 50952 | } |
| 50463 | 50953 | |
| 50464 | 50954 | /** |
| 50465 | 50955 | * @return int |
| 50466 | 50956 | */ |
| 50467 | - public static function sampleTransient(): int { | |
| 50468 | - return 31; /*31:transient*/ | |
| 50957 | + public static function sampleType(): int { | |
| 50958 | + return 31; /*31:type*/ | |
| 50469 | 50959 | } |
| 50470 | 50960 | |
| 50471 | 50961 | /** |
| @@ -50473,7 +50963,7 @@ class Transient { | ||
| 50473 | 50963 | * @return bool |
| 50474 | 50964 | */ |
| 50475 | 50965 | public function validate(): bool { |
| 50476 | - return Transient::validateTransient($this->transient); | |
| 50966 | + return Type::validateType($this->type); | |
| 50477 | 50967 | } |
| 50478 | 50968 | |
| 50479 | 50969 | /** |
| @@ -50482,44 +50972,44 @@ class Transient { | ||
| 50482 | 50972 | */ |
| 50483 | 50973 | public function to(): stdClass { |
| 50484 | 50974 | $out = new stdClass(); |
| 50485 | - $out->{'transient'} = $this->toTransient(); | |
| 50975 | + $out->{'Type'} = $this->toType(); | |
| 50486 | 50976 | return $out; |
| 50487 | 50977 | } |
| 50488 | 50978 | |
| 50489 | 50979 | /** |
| 50490 | 50980 | * @param stdClass $obj |
| 50491 | - * @return Transient | |
| 50981 | + * @return Type | |
| 50492 | 50982 | * @throws Exception |
| 50493 | 50983 | */ |
| 50494 | - public static function from(stdClass $obj): Transient { | |
| 50495 | - if (!property_exists($obj, 'transient')) { | |
| 50984 | + public static function from(stdClass $obj): Type { | |
| 50985 | + if (!property_exists($obj, 'Type')) { | |
| 50496 | 50986 | throw new Exception("Missing required property"); |
| 50497 | 50987 | } |
| 50498 | - return new Transient( | |
| 50499 | - Transient::fromTransient($obj->{'transient'}) | |
| 50988 | + return new Type( | |
| 50989 | + Type::fromType($obj->{'Type'}) | |
| 50500 | 50990 | ); |
| 50501 | 50991 | } |
| 50502 | 50992 | |
| 50503 | 50993 | /** |
| 50504 | - * @return Transient | |
| 50994 | + * @return Type | |
| 50505 | 50995 | */ |
| 50506 | - public static function sample(): Transient { | |
| 50507 | - return new Transient( | |
| 50508 | - Transient::sampleTransient() | |
| 50996 | + public static function sample(): Type { | |
| 50997 | + return new Type( | |
| 50998 | + Type::sampleType() | |
| 50509 | 50999 | ); |
| 50510 | 51000 | } |
| 50511 | 51001 | } |
| 50512 | 51002 | |
| 50513 | -// This is an autogenerated file:TrueClass | |
| 51003 | +// This is an autogenerated file:Typealias | |
| 50514 | 51004 | |
| 50515 | -class TrueClass { | |
| 50516 | - private int $true; // json:True Required | |
| 51005 | +class Typealias { | |
| 51006 | + private int $typealias; // json:typealias Required | |
| 50517 | 51007 | |
| 50518 | 51008 | /** |
| 50519 | - * @param int $true | |
| 51009 | + * @param int $typealias | |
| 50520 | 51010 | */ |
| 50521 | - public function __construct(int $true) { | |
| 50522 | - $this->true = $true; | |
| 51011 | + public function __construct(int $typealias) { | |
| 51012 | + $this->typealias = $typealias; | |
| 50523 | 51013 | } |
| 50524 | 51014 | |
| 50525 | 51015 | /** |
| @@ -50527,7 +51017,7 @@ class TrueClass { | ||
| 50527 | 51017 | * @throws Exception |
| 50528 | 51018 | * @return int |
| 50529 | 51019 | */ |
| 50530 | - public static function fromTrue(int $value): int { | |
| 51020 | + public static function fromTypealias(int $value): int { | |
| 50531 | 51021 | return $value; /*int*/ |
| 50532 | 51022 | } |
| 50533 | 51023 | |
| @@ -50535,11 +51025,11 @@ class TrueClass { | ||
| 50535 | 51025 | * @throws Exception |
| 50536 | 51026 | * @return int |
| 50537 | 51027 | */ |
| 50538 | - public function toTrue(): int { | |
| 50539 | - if (TrueClass::validateTrue($this->true)) { | |
| 50540 | - return $this->true; /*int*/ | |
| 51028 | + public function toTypealias(): int { | |
| 51029 | + if (Typealias::validateTypealias($this->typealias)) { | |
| 51030 | + return $this->typealias; /*int*/ | |
| 50541 | 51031 | } |
| 50542 | - throw new Exception('never get to this TrueClass::true'); | |
| 51032 | + throw new Exception('never get to this Typealias::typealias'); | |
| 50543 | 51033 | } |
| 50544 | 51034 | |
| 50545 | 51035 | /** |
| @@ -50547,7 +51037,7 @@ class TrueClass { | ||
| 50547 | 51037 | * @return bool |
| 50548 | 51038 | * @throws Exception |
| 50549 | 51039 | */ |
| 50550 | - public static function validateTrue(int $value): bool { | |
| 51040 | + public static function validateTypealias(int $value): bool { | |
| 50551 | 51041 | return true; |
| 50552 | 51042 | } |
| 50553 | 51043 | |
| @@ -50555,18 +51045,18 @@ class TrueClass { | ||
| 50555 | 51045 | * @throws Exception |
| 50556 | 51046 | * @return int |
| 50557 | 51047 | */ |
| 50558 | - public function getTrue(): int { | |
| 50559 | - if (TrueClass::validateTrue($this->true)) { | |
| 50560 | - return $this->true; | |
| 51048 | + public function getTypealias(): int { | |
| 51049 | + if (Typealias::validateTypealias($this->typealias)) { | |
| 51050 | + return $this->typealias; | |
| 50561 | 51051 | } |
| 50562 | - throw new Exception('never get to getTrue TrueClass::true'); | |
| 51052 | + throw new Exception('never get to getTypealias Typealias::typealias'); | |
| 50563 | 51053 | } |
| 50564 | 51054 | |
| 50565 | 51055 | /** |
| 50566 | 51056 | * @return int |
| 50567 | 51057 | */ |
| 50568 | - public static function sampleTrue(): int { | |
| 50569 | - return 31; /*31:true*/ | |
| 51058 | + public static function sampleTypealias(): int { | |
| 51059 | + return 31; /*31:typealias*/ | |
| 50570 | 51060 | } |
| 50571 | 51061 | |
| 50572 | 51062 | /** |
| @@ -50574,7 +51064,7 @@ class TrueClass { | ||
| 50574 | 51064 | * @return bool |
| 50575 | 51065 | */ |
| 50576 | 51066 | public function validate(): bool { |
| 50577 | - return TrueClass::validateTrue($this->true); | |
| 51067 | + return Typealias::validateTypealias($this->typealias); | |
| 50578 | 51068 | } |
| 50579 | 51069 | |
| 50580 | 51070 | /** |
| @@ -50583,44 +51073,44 @@ class TrueClass { | ||
| 50583 | 51073 | */ |
| 50584 | 51074 | public function to(): stdClass { |
| 50585 | 51075 | $out = new stdClass(); |
| 50586 | - $out->{'True'} = $this->toTrue(); | |
| 51076 | + $out->{'typealias'} = $this->toTypealias(); | |
| 50587 | 51077 | return $out; |
| 50588 | 51078 | } |
| 50589 | 51079 | |
| 50590 | 51080 | /** |
| 50591 | 51081 | * @param stdClass $obj |
| 50592 | - * @return TrueClass | |
| 51082 | + * @return Typealias | |
| 50593 | 51083 | * @throws Exception |
| 50594 | 51084 | */ |
| 50595 | - public static function from(stdClass $obj): TrueClass { | |
| 50596 | - if (!property_exists($obj, 'True')) { | |
| 51085 | + public static function from(stdClass $obj): Typealias { | |
| 51086 | + if (!property_exists($obj, 'typealias')) { | |
| 50597 | 51087 | throw new Exception("Missing required property"); |
| 50598 | 51088 | } |
| 50599 | - return new TrueClass( | |
| 50600 | - TrueClass::fromTrue($obj->{'True'}) | |
| 51089 | + return new Typealias( | |
| 51090 | + Typealias::fromTypealias($obj->{'typealias'}) | |
| 50601 | 51091 | ); |
| 50602 | 51092 | } |
| 50603 | 51093 | |
| 50604 | 51094 | /** |
| 50605 | - * @return TrueClass | |
| 51095 | + * @return Typealias | |
| 50606 | 51096 | */ |
| 50607 | - public static function sample(): TrueClass { | |
| 50608 | - return new TrueClass( | |
| 50609 | - TrueClass::sampleTrue() | |
| 51097 | + public static function sample(): Typealias { | |
| 51098 | + return new Typealias( | |
| 51099 | + Typealias::sampleTypealias() | |
| 50610 | 51100 | ); |
| 50611 | 51101 | } |
| 50612 | 51102 | } |
| 50613 | 51103 | |
| 50614 | -// This is an autogenerated file:TryClass | |
| 51104 | +// This is an autogenerated file:Typedef | |
| 50615 | 51105 | |
| 50616 | -class TryClass { | |
| 50617 | - private int $try; // json:try Required | |
| 51106 | +class Typedef { | |
| 51107 | + private int $typedef; // json:typedef Required | |
| 50618 | 51108 | |
| 50619 | 51109 | /** |
| 50620 | - * @param int $try | |
| 51110 | + * @param int $typedef | |
| 50621 | 51111 | */ |
| 50622 | - public function __construct(int $try) { | |
| 50623 | - $this->try = $try; | |
| 51112 | + public function __construct(int $typedef) { | |
| 51113 | + $this->typedef = $typedef; | |
| 50624 | 51114 | } |
| 50625 | 51115 | |
| 50626 | 51116 | /** |
| @@ -50628,7 +51118,7 @@ class TryClass { | ||
| 50628 | 51118 | * @throws Exception |
| 50629 | 51119 | * @return int |
| 50630 | 51120 | */ |
| 50631 | - public static function fromTry(int $value): int { | |
| 51121 | + public static function fromTypedef(int $value): int { | |
| 50632 | 51122 | return $value; /*int*/ |
| 50633 | 51123 | } |
| 50634 | 51124 | |
| @@ -50636,11 +51126,11 @@ class TryClass { | ||
| 50636 | 51126 | * @throws Exception |
| 50637 | 51127 | * @return int |
| 50638 | 51128 | */ |
| 50639 | - public function toTry(): int { | |
| 50640 | - if (TryClass::validateTry($this->try)) { | |
| 50641 | - return $this->try; /*int*/ | |
| 51129 | + public function toTypedef(): int { | |
| 51130 | + if (Typedef::validateTypedef($this->typedef)) { | |
| 51131 | + return $this->typedef; /*int*/ | |
| 50642 | 51132 | } |
| 50643 | - throw new Exception('never get to this TryClass::try'); | |
| 51133 | + throw new Exception('never get to this Typedef::typedef'); | |
| 50644 | 51134 | } |
| 50645 | 51135 | |
| 50646 | 51136 | /** |
| @@ -50648,7 +51138,7 @@ class TryClass { | ||
| 50648 | 51138 | * @return bool |
| 50649 | 51139 | * @throws Exception |
| 50650 | 51140 | */ |
| 50651 | - public static function validateTry(int $value): bool { | |
| 51141 | + public static function validateTypedef(int $value): bool { | |
| 50652 | 51142 | return true; |
| 50653 | 51143 | } |
| 50654 | 51144 | |
| @@ -50656,18 +51146,18 @@ class TryClass { | ||
| 50656 | 51146 | * @throws Exception |
| 50657 | 51147 | * @return int |
| 50658 | 51148 | */ |
| 50659 | - public function getTry(): int { | |
| 50660 | - if (TryClass::validateTry($this->try)) { | |
| 50661 | - return $this->try; | |
| 51149 | + public function getTypedef(): int { | |
| 51150 | + if (Typedef::validateTypedef($this->typedef)) { | |
| 51151 | + return $this->typedef; | |
| 50662 | 51152 | } |
| 50663 | - throw new Exception('never get to getTry TryClass::try'); | |
| 51153 | + throw new Exception('never get to getTypedef Typedef::typedef'); | |
| 50664 | 51154 | } |
| 50665 | 51155 | |
| 50666 | 51156 | /** |
| 50667 | 51157 | * @return int |
| 50668 | 51158 | */ |
| 50669 | - public static function sampleTry(): int { | |
| 50670 | - return 31; /*31:try*/ | |
| 51159 | + public static function sampleTypedef(): int { | |
| 51160 | + return 31; /*31:typedef*/ | |
| 50671 | 51161 | } |
| 50672 | 51162 | |
| 50673 | 51163 | /** |
| @@ -50675,7 +51165,7 @@ class TryClass { | ||
| 50675 | 51165 | * @return bool |
| 50676 | 51166 | */ |
| 50677 | 51167 | public function validate(): bool { |
| 50678 | - return TryClass::validateTry($this->try); | |
| 51168 | + return Typedef::validateTypedef($this->typedef); | |
| 50679 | 51169 | } |
| 50680 | 51170 | |
| 50681 | 51171 | /** |
| @@ -50684,44 +51174,44 @@ class TryClass { | ||
| 50684 | 51174 | */ |
| 50685 | 51175 | public function to(): stdClass { |
| 50686 | 51176 | $out = new stdClass(); |
| 50687 | - $out->{'try'} = $this->toTry(); | |
| 51177 | + $out->{'typedef'} = $this->toTypedef(); | |
| 50688 | 51178 | return $out; |
| 50689 | 51179 | } |
| 50690 | 51180 | |
| 50691 | 51181 | /** |
| 50692 | 51182 | * @param stdClass $obj |
| 50693 | - * @return TryClass | |
| 51183 | + * @return Typedef | |
| 50694 | 51184 | * @throws Exception |
| 50695 | 51185 | */ |
| 50696 | - public static function from(stdClass $obj): TryClass { | |
| 50697 | - if (!property_exists($obj, 'try')) { | |
| 51186 | + public static function from(stdClass $obj): Typedef { | |
| 51187 | + if (!property_exists($obj, 'typedef')) { | |
| 50698 | 51188 | throw new Exception("Missing required property"); |
| 50699 | 51189 | } |
| 50700 | - return new TryClass( | |
| 50701 | - TryClass::fromTry($obj->{'try'}) | |
| 51190 | + return new Typedef( | |
| 51191 | + Typedef::fromTypedef($obj->{'typedef'}) | |
| 50702 | 51192 | ); |
| 50703 | 51193 | } |
| 50704 | 51194 | |
| 50705 | 51195 | /** |
| 50706 | - * @return TryClass | |
| 51196 | + * @return Typedef | |
| 50707 | 51197 | */ |
| 50708 | - public static function sample(): TryClass { | |
| 50709 | - return new TryClass( | |
| 50710 | - TryClass::sampleTry() | |
| 51198 | + public static function sample(): Typedef { | |
| 51199 | + return new Typedef( | |
| 51200 | + Typedef::sampleTypedef() | |
| 50711 | 51201 | ); |
| 50712 | 51202 | } |
| 50713 | 51203 | } |
| 50714 | 51204 | |
| 50715 | -// This is an autogenerated file:Type | |
| 51205 | +// This is an autogenerated file:Typeid | |
| 50716 | 51206 | |
| 50717 | -class Type { | |
| 50718 | - private int $type; // json:Type Required | |
| 51207 | +class Typeid { | |
| 51208 | + private int $typeid; // json:typeid Required | |
| 50719 | 51209 | |
| 50720 | 51210 | /** |
| 50721 | - * @param int $type | |
| 51211 | + * @param int $typeid | |
| 50722 | 51212 | */ |
| 50723 | - public function __construct(int $type) { | |
| 50724 | - $this->type = $type; | |
| 51213 | + public function __construct(int $typeid) { | |
| 51214 | + $this->typeid = $typeid; | |
| 50725 | 51215 | } |
| 50726 | 51216 | |
| 50727 | 51217 | /** |
| @@ -50729,7 +51219,7 @@ class Type { | ||
| 50729 | 51219 | * @throws Exception |
| 50730 | 51220 | * @return int |
| 50731 | 51221 | */ |
| 50732 | - public static function fromType(int $value): int { | |
| 51222 | + public static function fromTypeid(int $value): int { | |
| 50733 | 51223 | return $value; /*int*/ |
| 50734 | 51224 | } |
| 50735 | 51225 | |
| @@ -50737,11 +51227,11 @@ class Type { | ||
| 50737 | 51227 | * @throws Exception |
| 50738 | 51228 | * @return int |
| 50739 | 51229 | */ |
| 50740 | - public function toType(): int { | |
| 50741 | - if (Type::validateType($this->type)) { | |
| 50742 | - return $this->type; /*int*/ | |
| 51230 | + public function toTypeid(): int { | |
| 51231 | + if (Typeid::validateTypeid($this->typeid)) { | |
| 51232 | + return $this->typeid; /*int*/ | |
| 50743 | 51233 | } |
| 50744 | - throw new Exception('never get to this Type::type'); | |
| 51234 | + throw new Exception('never get to this Typeid::typeid'); | |
| 50745 | 51235 | } |
| 50746 | 51236 | |
| 50747 | 51237 | /** |
| @@ -50749,7 +51239,7 @@ class Type { | ||
| 50749 | 51239 | * @return bool |
| 50750 | 51240 | * @throws Exception |
| 50751 | 51241 | */ |
| 50752 | - public static function validateType(int $value): bool { | |
| 51242 | + public static function validateTypeid(int $value): bool { | |
| 50753 | 51243 | return true; |
| 50754 | 51244 | } |
| 50755 | 51245 | |
| @@ -50757,18 +51247,18 @@ class Type { | ||
| 50757 | 51247 | * @throws Exception |
| 50758 | 51248 | * @return int |
| 50759 | 51249 | */ |
| 50760 | - public function getType(): int { | |
| 50761 | - if (Type::validateType($this->type)) { | |
| 50762 | - return $this->type; | |
| 51250 | + public function getTypeid(): int { | |
| 51251 | + if (Typeid::validateTypeid($this->typeid)) { | |
| 51252 | + return $this->typeid; | |
| 50763 | 51253 | } |
| 50764 | - throw new Exception('never get to getType Type::type'); | |
| 51254 | + throw new Exception('never get to getTypeid Typeid::typeid'); | |
| 50765 | 51255 | } |
| 50766 | 51256 | |
| 50767 | 51257 | /** |
| 50768 | 51258 | * @return int |
| 50769 | 51259 | */ |
| 50770 | - public static function sampleType(): int { | |
| 50771 | - return 31; /*31:type*/ | |
| 51260 | + public static function sampleTypeid(): int { | |
| 51261 | + return 31; /*31:typeid*/ | |
| 50772 | 51262 | } |
| 50773 | 51263 | |
| 50774 | 51264 | /** |
| @@ -50776,7 +51266,7 @@ class Type { | ||
| 50776 | 51266 | * @return bool |
| 50777 | 51267 | */ |
| 50778 | 51268 | public function validate(): bool { |
| 50779 | - return Type::validateType($this->type); | |
| 51269 | + return Typeid::validateTypeid($this->typeid); | |
| 50780 | 51270 | } |
| 50781 | 51271 | |
| 50782 | 51272 | /** |
| @@ -50785,44 +51275,44 @@ class Type { | ||
| 50785 | 51275 | */ |
| 50786 | 51276 | public function to(): stdClass { |
| 50787 | 51277 | $out = new stdClass(); |
| 50788 | - $out->{'Type'} = $this->toType(); | |
| 51278 | + $out->{'typeid'} = $this->toTypeid(); | |
| 50789 | 51279 | return $out; |
| 50790 | 51280 | } |
| 50791 | 51281 | |
| 50792 | 51282 | /** |
| 50793 | 51283 | * @param stdClass $obj |
| 50794 | - * @return Type | |
| 51284 | + * @return Typeid | |
| 50795 | 51285 | * @throws Exception |
| 50796 | 51286 | */ |
| 50797 | - public static function from(stdClass $obj): Type { | |
| 50798 | - if (!property_exists($obj, 'Type')) { | |
| 51287 | + public static function from(stdClass $obj): Typeid { | |
| 51288 | + if (!property_exists($obj, 'typeid')) { | |
| 50799 | 51289 | throw new Exception("Missing required property"); |
| 50800 | 51290 | } |
| 50801 | - return new Type( | |
| 50802 | - Type::fromType($obj->{'Type'}) | |
| 51291 | + return new Typeid( | |
| 51292 | + Typeid::fromTypeid($obj->{'typeid'}) | |
| 50803 | 51293 | ); |
| 50804 | 51294 | } |
| 50805 | 51295 | |
| 50806 | 51296 | /** |
| 50807 | - * @return Type | |
| 51297 | + * @return Typeid | |
| 50808 | 51298 | */ |
| 50809 | - public static function sample(): Type { | |
| 50810 | - return new Type( | |
| 50811 | - Type::sampleType() | |
| 51299 | + public static function sample(): Typeid { | |
| 51300 | + return new Typeid( | |
| 51301 | + Typeid::sampleTypeid() | |
| 50812 | 51302 | ); |
| 50813 | 51303 | } |
| 50814 | 51304 | } |
| 50815 | 51305 | |
| 50816 | -// This is an autogenerated file:Typealias | |
| 51306 | +// This is an autogenerated file:Typename | |
| 50817 | 51307 | |
| 50818 | -class Typealias { | |
| 50819 | - private int $typealias; // json:typealias Required | |
| 51308 | +class Typename { | |
| 51309 | + private int $typename; // json:typename Required | |
| 50820 | 51310 | |
| 50821 | 51311 | /** |
| 50822 | - * @param int $typealias | |
| 51312 | + * @param int $typename | |
| 50823 | 51313 | */ |
| 50824 | - public function __construct(int $typealias) { | |
| 50825 | - $this->typealias = $typealias; | |
| 51314 | + public function __construct(int $typename) { | |
| 51315 | + $this->typename = $typename; | |
| 50826 | 51316 | } |
| 50827 | 51317 | |
| 50828 | 51318 | /** |
| @@ -50830,7 +51320,7 @@ class Typealias { | ||
| 50830 | 51320 | * @throws Exception |
| 50831 | 51321 | * @return int |
| 50832 | 51322 | */ |
| 50833 | - public static function fromTypealias(int $value): int { | |
| 51323 | + public static function fromTypename(int $value): int { | |
| 50834 | 51324 | return $value; /*int*/ |
| 50835 | 51325 | } |
| 50836 | 51326 | |
| @@ -50838,11 +51328,11 @@ class Typealias { | ||
| 50838 | 51328 | * @throws Exception |
| 50839 | 51329 | * @return int |
| 50840 | 51330 | */ |
| 50841 | - public function toTypealias(): int { | |
| 50842 | - if (Typealias::validateTypealias($this->typealias)) { | |
| 50843 | - return $this->typealias; /*int*/ | |
| 51331 | + public function toTypename(): int { | |
| 51332 | + if (Typename::validateTypename($this->typename)) { | |
| 51333 | + return $this->typename; /*int*/ | |
| 50844 | 51334 | } |
| 50845 | - throw new Exception('never get to this Typealias::typealias'); | |
| 51335 | + throw new Exception('never get to this Typename::typename'); | |
| 50846 | 51336 | } |
| 50847 | 51337 | |
| 50848 | 51338 | /** |
| @@ -50850,7 +51340,7 @@ class Typealias { | ||
| 50850 | 51340 | * @return bool |
| 50851 | 51341 | * @throws Exception |
| 50852 | 51342 | */ |
| 50853 | - public static function validateTypealias(int $value): bool { | |
| 51343 | + public static function validateTypename(int $value): bool { | |
| 50854 | 51344 | return true; |
| 50855 | 51345 | } |
| 50856 | 51346 | |
| @@ -50858,18 +51348,18 @@ class Typealias { | ||
| 50858 | 51348 | * @throws Exception |
| 50859 | 51349 | * @return int |
| 50860 | 51350 | */ |
| 50861 | - public function getTypealias(): int { | |
| 50862 | - if (Typealias::validateTypealias($this->typealias)) { | |
| 50863 | - return $this->typealias; | |
| 51351 | + public function getTypename(): int { | |
| 51352 | + if (Typename::validateTypename($this->typename)) { | |
| 51353 | + return $this->typename; | |
| 50864 | 51354 | } |
| 50865 | - throw new Exception('never get to getTypealias Typealias::typealias'); | |
| 51355 | + throw new Exception('never get to getTypename Typename::typename'); | |
| 50866 | 51356 | } |
| 50867 | 51357 | |
| 50868 | 51358 | /** |
| 50869 | 51359 | * @return int |
| 50870 | 51360 | */ |
| 50871 | - public static function sampleTypealias(): int { | |
| 50872 | - return 31; /*31:typealias*/ | |
| 51361 | + public static function sampleTypename(): int { | |
| 51362 | + return 31; /*31:typename*/ | |
| 50873 | 51363 | } |
| 50874 | 51364 | |
| 50875 | 51365 | /** |
| @@ -50877,7 +51367,7 @@ class Typealias { | ||
| 50877 | 51367 | * @return bool |
| 50878 | 51368 | */ |
| 50879 | 51369 | public function validate(): bool { |
| 50880 | - return Typealias::validateTypealias($this->typealias); | |
| 51370 | + return Typename::validateTypename($this->typename); | |
| 50881 | 51371 | } |
| 50882 | 51372 | |
| 50883 | 51373 | /** |
| @@ -50886,44 +51376,44 @@ class Typealias { | ||
| 50886 | 51376 | */ |
| 50887 | 51377 | public function to(): stdClass { |
| 50888 | 51378 | $out = new stdClass(); |
| 50889 | - $out->{'typealias'} = $this->toTypealias(); | |
| 51379 | + $out->{'typename'} = $this->toTypename(); | |
| 50890 | 51380 | return $out; |
| 50891 | 51381 | } |
| 50892 | 51382 | |
| 50893 | 51383 | /** |
| 50894 | 51384 | * @param stdClass $obj |
| 50895 | - * @return Typealias | |
| 51385 | + * @return Typename | |
| 50896 | 51386 | * @throws Exception |
| 50897 | 51387 | */ |
| 50898 | - public static function from(stdClass $obj): Typealias { | |
| 50899 | - if (!property_exists($obj, 'typealias')) { | |
| 51388 | + public static function from(stdClass $obj): Typename { | |
| 51389 | + if (!property_exists($obj, 'typename')) { | |
| 50900 | 51390 | throw new Exception("Missing required property"); |
| 50901 | 51391 | } |
| 50902 | - return new Typealias( | |
| 50903 | - Typealias::fromTypealias($obj->{'typealias'}) | |
| 51392 | + return new Typename( | |
| 51393 | + Typename::fromTypename($obj->{'typename'}) | |
| 50904 | 51394 | ); |
| 50905 | 51395 | } |
| 50906 | 51396 | |
| 50907 | 51397 | /** |
| 50908 | - * @return Typealias | |
| 51398 | + * @return Typename | |
| 50909 | 51399 | */ |
| 50910 | - public static function sample(): Typealias { | |
| 50911 | - return new Typealias( | |
| 50912 | - Typealias::sampleTypealias() | |
| 51400 | + public static function sample(): Typename { | |
| 51401 | + return new Typename( | |
| 51402 | + Typename::sampleTypename() | |
| 50913 | 51403 | ); |
| 50914 | 51404 | } |
| 50915 | 51405 | } |
| 50916 | 51406 | |
| 50917 | -// This is an autogenerated file:Typedef | |
| 51407 | +// This is an autogenerated file:Typeof | |
| 50918 | 51408 | |
| 50919 | -class Typedef { | |
| 50920 | - private int $typedef; // json:typedef Required | |
| 51409 | +class Typeof { | |
| 51410 | + private int $typeof; // json:typeof Required | |
| 50921 | 51411 | |
| 50922 | 51412 | /** |
| 50923 | - * @param int $typedef | |
| 51413 | + * @param int $typeof | |
| 50924 | 51414 | */ |
| 50925 | - public function __construct(int $typedef) { | |
| 50926 | - $this->typedef = $typedef; | |
| 51415 | + public function __construct(int $typeof) { | |
| 51416 | + $this->typeof = $typeof; | |
| 50927 | 51417 | } |
| 50928 | 51418 | |
| 50929 | 51419 | /** |
| @@ -50931,7 +51421,7 @@ class Typedef { | ||
| 50931 | 51421 | * @throws Exception |
| 50932 | 51422 | * @return int |
| 50933 | 51423 | */ |
| 50934 | - public static function fromTypedef(int $value): int { | |
| 51424 | + public static function fromTypeof(int $value): int { | |
| 50935 | 51425 | return $value; /*int*/ |
| 50936 | 51426 | } |
| 50937 | 51427 | |
| @@ -50939,11 +51429,11 @@ class Typedef { | ||
| 50939 | 51429 | * @throws Exception |
| 50940 | 51430 | * @return int |
| 50941 | 51431 | */ |
| 50942 | - public function toTypedef(): int { | |
| 50943 | - if (Typedef::validateTypedef($this->typedef)) { | |
| 50944 | - return $this->typedef; /*int*/ | |
| 51432 | + public function toTypeof(): int { | |
| 51433 | + if (Typeof::validateTypeof($this->typeof)) { | |
| 51434 | + return $this->typeof; /*int*/ | |
| 50945 | 51435 | } |
| 50946 | - throw new Exception('never get to this Typedef::typedef'); | |
| 51436 | + throw new Exception('never get to this Typeof::typeof'); | |
| 50947 | 51437 | } |
| 50948 | 51438 | |
| 50949 | 51439 | /** |
| @@ -50951,7 +51441,7 @@ class Typedef { | ||
| 50951 | 51441 | * @return bool |
| 50952 | 51442 | * @throws Exception |
| 50953 | 51443 | */ |
| 50954 | - public static function validateTypedef(int $value): bool { | |
| 51444 | + public static function validateTypeof(int $value): bool { | |
| 50955 | 51445 | return true; |
| 50956 | 51446 | } |
| 50957 | 51447 | |
| @@ -50959,18 +51449,18 @@ class Typedef { | ||
| 50959 | 51449 | * @throws Exception |
| 50960 | 51450 | * @return int |
| 50961 | 51451 | */ |
| 50962 | - public function getTypedef(): int { | |
| 50963 | - if (Typedef::validateTypedef($this->typedef)) { | |
| 50964 | - return $this->typedef; | |
| 51452 | + public function getTypeof(): int { | |
| 51453 | + if (Typeof::validateTypeof($this->typeof)) { | |
| 51454 | + return $this->typeof; | |
| 50965 | 51455 | } |
| 50966 | - throw new Exception('never get to getTypedef Typedef::typedef'); | |
| 51456 | + throw new Exception('never get to getTypeof Typeof::typeof'); | |
| 50967 | 51457 | } |
| 50968 | 51458 | |
| 50969 | 51459 | /** |
| 50970 | 51460 | * @return int |
| 50971 | 51461 | */ |
| 50972 | - public static function sampleTypedef(): int { | |
| 50973 | - return 31; /*31:typedef*/ | |
| 51462 | + public static function sampleTypeof(): int { | |
| 51463 | + return 31; /*31:typeof*/ | |
| 50974 | 51464 | } |
| 50975 | 51465 | |
| 50976 | 51466 | /** |
| @@ -50978,7 +51468,7 @@ class Typedef { | ||
| 50978 | 51468 | * @return bool |
| 50979 | 51469 | */ |
| 50980 | 51470 | public function validate(): bool { |
| 50981 | - return Typedef::validateTypedef($this->typedef); | |
| 51471 | + return Typeof::validateTypeof($this->typeof); | |
| 50982 | 51472 | } |
| 50983 | 51473 | |
| 50984 | 51474 | /** |
| @@ -50987,44 +51477,44 @@ class Typedef { | ||
| 50987 | 51477 | */ |
| 50988 | 51478 | public function to(): stdClass { |
| 50989 | 51479 | $out = new stdClass(); |
| 50990 | - $out->{'typedef'} = $this->toTypedef(); | |
| 51480 | + $out->{'typeof'} = $this->toTypeof(); | |
| 50991 | 51481 | return $out; |
| 50992 | 51482 | } |
| 50993 | 51483 | |
| 50994 | 51484 | /** |
| 50995 | 51485 | * @param stdClass $obj |
| 50996 | - * @return Typedef | |
| 51486 | + * @return Typeof | |
| 50997 | 51487 | * @throws Exception |
| 50998 | 51488 | */ |
| 50999 | - public static function from(stdClass $obj): Typedef { | |
| 51000 | - if (!property_exists($obj, 'typedef')) { | |
| 51489 | + public static function from(stdClass $obj): Typeof { | |
| 51490 | + if (!property_exists($obj, 'typeof')) { | |
| 51001 | 51491 | throw new Exception("Missing required property"); |
| 51002 | 51492 | } |
| 51003 | - return new Typedef( | |
| 51004 | - Typedef::fromTypedef($obj->{'typedef'}) | |
| 51493 | + return new Typeof( | |
| 51494 | + Typeof::fromTypeof($obj->{'typeof'}) | |
| 51005 | 51495 | ); |
| 51006 | 51496 | } |
| 51007 | 51497 | |
| 51008 | 51498 | /** |
| 51009 | - * @return Typedef | |
| 51499 | + * @return Typeof | |
| 51010 | 51500 | */ |
| 51011 | - public static function sample(): Typedef { | |
| 51012 | - return new Typedef( | |
| 51013 | - Typedef::sampleTypedef() | |
| 51501 | + public static function sample(): Typeof { | |
| 51502 | + return new Typeof( | |
| 51503 | + Typeof::sampleTypeof() | |
| 51014 | 51504 | ); |
| 51015 | 51505 | } |
| 51016 | 51506 | } |
| 51017 | 51507 | |
| 51018 | -// This is an autogenerated file:Typeid | |
| 51508 | +// This is an autogenerated file:Uint | |
| 51019 | 51509 | |
| 51020 | -class Typeid { | |
| 51021 | - private int $typeid; // json:typeid Required | |
| 51510 | +class Uint { | |
| 51511 | + private int $uint; // json:uint Required | |
| 51022 | 51512 | |
| 51023 | 51513 | /** |
| 51024 | - * @param int $typeid | |
| 51514 | + * @param int $uint | |
| 51025 | 51515 | */ |
| 51026 | - public function __construct(int $typeid) { | |
| 51027 | - $this->typeid = $typeid; | |
| 51516 | + public function __construct(int $uint) { | |
| 51517 | + $this->uint = $uint; | |
| 51028 | 51518 | } |
| 51029 | 51519 | |
| 51030 | 51520 | /** |
| @@ -51032,7 +51522,7 @@ class Typeid { | ||
| 51032 | 51522 | * @throws Exception |
| 51033 | 51523 | * @return int |
| 51034 | 51524 | */ |
| 51035 | - public static function fromTypeid(int $value): int { | |
| 51525 | + public static function fromUint(int $value): int { | |
| 51036 | 51526 | return $value; /*int*/ |
| 51037 | 51527 | } |
| 51038 | 51528 | |
| @@ -51040,11 +51530,11 @@ class Typeid { | ||
| 51040 | 51530 | * @throws Exception |
| 51041 | 51531 | * @return int |
| 51042 | 51532 | */ |
| 51043 | - public function toTypeid(): int { | |
| 51044 | - if (Typeid::validateTypeid($this->typeid)) { | |
| 51045 | - return $this->typeid; /*int*/ | |
| 51533 | + public function toUint(): int { | |
| 51534 | + if (Uint::validateUint($this->uint)) { | |
| 51535 | + return $this->uint; /*int*/ | |
| 51046 | 51536 | } |
| 51047 | - throw new Exception('never get to this Typeid::typeid'); | |
| 51537 | + throw new Exception('never get to this Uint::uint'); | |
| 51048 | 51538 | } |
| 51049 | 51539 | |
| 51050 | 51540 | /** |
| @@ -51052,7 +51542,7 @@ class Typeid { | ||
| 51052 | 51542 | * @return bool |
| 51053 | 51543 | * @throws Exception |
| 51054 | 51544 | */ |
| 51055 | - public static function validateTypeid(int $value): bool { | |
| 51545 | + public static function validateUint(int $value): bool { | |
| 51056 | 51546 | return true; |
| 51057 | 51547 | } |
| 51058 | 51548 | |
| @@ -51060,18 +51550,18 @@ class Typeid { | ||
| 51060 | 51550 | * @throws Exception |
| 51061 | 51551 | * @return int |
| 51062 | 51552 | */ |
| 51063 | - public function getTypeid(): int { | |
| 51064 | - if (Typeid::validateTypeid($this->typeid)) { | |
| 51065 | - return $this->typeid; | |
| 51553 | + public function getUint(): int { | |
| 51554 | + if (Uint::validateUint($this->uint)) { | |
| 51555 | + return $this->uint; | |
| 51066 | 51556 | } |
| 51067 | - throw new Exception('never get to getTypeid Typeid::typeid'); | |
| 51557 | + throw new Exception('never get to getUint Uint::uint'); | |
| 51068 | 51558 | } |
| 51069 | 51559 | |
| 51070 | 51560 | /** |
| 51071 | 51561 | * @return int |
| 51072 | 51562 | */ |
| 51073 | - public static function sampleTypeid(): int { | |
| 51074 | - return 31; /*31:typeid*/ | |
| 51563 | + public static function sampleUint(): int { | |
| 51564 | + return 31; /*31:uint*/ | |
| 51075 | 51565 | } |
| 51076 | 51566 | |
| 51077 | 51567 | /** |
| @@ -51079,7 +51569,7 @@ class Typeid { | ||
| 51079 | 51569 | * @return bool |
| 51080 | 51570 | */ |
| 51081 | 51571 | public function validate(): bool { |
| 51082 | - return Typeid::validateTypeid($this->typeid); | |
| 51572 | + return Uint::validateUint($this->uint); | |
| 51083 | 51573 | } |
| 51084 | 51574 | |
| 51085 | 51575 | /** |
| @@ -51088,44 +51578,44 @@ class Typeid { | ||
| 51088 | 51578 | */ |
| 51089 | 51579 | public function to(): stdClass { |
| 51090 | 51580 | $out = new stdClass(); |
| 51091 | - $out->{'typeid'} = $this->toTypeid(); | |
| 51581 | + $out->{'uint'} = $this->toUint(); | |
| 51092 | 51582 | return $out; |
| 51093 | 51583 | } |
| 51094 | 51584 | |
| 51095 | 51585 | /** |
| 51096 | 51586 | * @param stdClass $obj |
| 51097 | - * @return Typeid | |
| 51587 | + * @return Uint | |
| 51098 | 51588 | * @throws Exception |
| 51099 | 51589 | */ |
| 51100 | - public static function from(stdClass $obj): Typeid { | |
| 51101 | - if (!property_exists($obj, 'typeid')) { | |
| 51590 | + public static function from(stdClass $obj): Uint { | |
| 51591 | + if (!property_exists($obj, 'uint')) { | |
| 51102 | 51592 | throw new Exception("Missing required property"); |
| 51103 | 51593 | } |
| 51104 | - return new Typeid( | |
| 51105 | - Typeid::fromTypeid($obj->{'typeid'}) | |
| 51594 | + return new Uint( | |
| 51595 | + Uint::fromUint($obj->{'uint'}) | |
| 51106 | 51596 | ); |
| 51107 | 51597 | } |
| 51108 | 51598 | |
| 51109 | 51599 | /** |
| 51110 | - * @return Typeid | |
| 51111 | - */ | |
| 51112 | - public static function sample(): Typeid { | |
| 51113 | - return new Typeid( | |
| 51114 | - Typeid::sampleTypeid() | |
| 51600 | + * @return Uint | |
| 51601 | + */ | |
| 51602 | + public static function sample(): Uint { | |
| 51603 | + return new Uint( | |
| 51604 | + Uint::sampleUint() | |
| 51115 | 51605 | ); |
| 51116 | 51606 | } |
| 51117 | 51607 | } |
| 51118 | 51608 | |
| 51119 | -// This is an autogenerated file:Typename | |
| 51609 | +// This is an autogenerated file:Ulong | |
| 51120 | 51610 | |
| 51121 | -class Typename { | |
| 51122 | - private int $typename; // json:typename Required | |
| 51611 | +class Ulong { | |
| 51612 | + private int $ulong; // json:ulong Required | |
| 51123 | 51613 | |
| 51124 | 51614 | /** |
| 51125 | - * @param int $typename | |
| 51615 | + * @param int $ulong | |
| 51126 | 51616 | */ |
| 51127 | - public function __construct(int $typename) { | |
| 51128 | - $this->typename = $typename; | |
| 51617 | + public function __construct(int $ulong) { | |
| 51618 | + $this->ulong = $ulong; | |
| 51129 | 51619 | } |
| 51130 | 51620 | |
| 51131 | 51621 | /** |
| @@ -51133,7 +51623,7 @@ class Typename { | ||
| 51133 | 51623 | * @throws Exception |
| 51134 | 51624 | * @return int |
| 51135 | 51625 | */ |
| 51136 | - public static function fromTypename(int $value): int { | |
| 51626 | + public static function fromUlong(int $value): int { | |
| 51137 | 51627 | return $value; /*int*/ |
| 51138 | 51628 | } |
| 51139 | 51629 | |
| @@ -51141,11 +51631,11 @@ class Typename { | ||
| 51141 | 51631 | * @throws Exception |
| 51142 | 51632 | * @return int |
| 51143 | 51633 | */ |
| 51144 | - public function toTypename(): int { | |
| 51145 | - if (Typename::validateTypename($this->typename)) { | |
| 51146 | - return $this->typename; /*int*/ | |
| 51634 | + public function toUlong(): int { | |
| 51635 | + if (Ulong::validateUlong($this->ulong)) { | |
| 51636 | + return $this->ulong; /*int*/ | |
| 51147 | 51637 | } |
| 51148 | - throw new Exception('never get to this Typename::typename'); | |
| 51638 | + throw new Exception('never get to this Ulong::ulong'); | |
| 51149 | 51639 | } |
| 51150 | 51640 | |
| 51151 | 51641 | /** |
| @@ -51153,7 +51643,7 @@ class Typename { | ||
| 51153 | 51643 | * @return bool |
| 51154 | 51644 | * @throws Exception |
| 51155 | 51645 | */ |
| 51156 | - public static function validateTypename(int $value): bool { | |
| 51646 | + public static function validateUlong(int $value): bool { | |
| 51157 | 51647 | return true; |
| 51158 | 51648 | } |
| 51159 | 51649 | |
| @@ -51161,18 +51651,18 @@ class Typename { | ||
| 51161 | 51651 | * @throws Exception |
| 51162 | 51652 | * @return int |
| 51163 | 51653 | */ |
| 51164 | - public function getTypename(): int { | |
| 51165 | - if (Typename::validateTypename($this->typename)) { | |
| 51166 | - return $this->typename; | |
| 51654 | + public function getUlong(): int { | |
| 51655 | + if (Ulong::validateUlong($this->ulong)) { | |
| 51656 | + return $this->ulong; | |
| 51167 | 51657 | } |
| 51168 | - throw new Exception('never get to getTypename Typename::typename'); | |
| 51658 | + throw new Exception('never get to getUlong Ulong::ulong'); | |
| 51169 | 51659 | } |
| 51170 | 51660 | |
| 51171 | 51661 | /** |
| 51172 | 51662 | * @return int |
| 51173 | 51663 | */ |
| 51174 | - public static function sampleTypename(): int { | |
| 51175 | - return 31; /*31:typename*/ | |
| 51664 | + public static function sampleUlong(): int { | |
| 51665 | + return 31; /*31:ulong*/ | |
| 51176 | 51666 | } |
| 51177 | 51667 | |
| 51178 | 51668 | /** |
| @@ -51180,7 +51670,7 @@ class Typename { | ||
| 51180 | 51670 | * @return bool |
| 51181 | 51671 | */ |
| 51182 | 51672 | public function validate(): bool { |
| 51183 | - return Typename::validateTypename($this->typename); | |
| 51673 | + return Ulong::validateUlong($this->ulong); | |
| 51184 | 51674 | } |
| 51185 | 51675 | |
| 51186 | 51676 | /** |
| @@ -51189,44 +51679,44 @@ class Typename { | ||
| 51189 | 51679 | */ |
| 51190 | 51680 | public function to(): stdClass { |
| 51191 | 51681 | $out = new stdClass(); |
| 51192 | - $out->{'typename'} = $this->toTypename(); | |
| 51682 | + $out->{'ulong'} = $this->toUlong(); | |
| 51193 | 51683 | return $out; |
| 51194 | 51684 | } |
| 51195 | 51685 | |
| 51196 | 51686 | /** |
| 51197 | 51687 | * @param stdClass $obj |
| 51198 | - * @return Typename | |
| 51688 | + * @return Ulong | |
| 51199 | 51689 | * @throws Exception |
| 51200 | 51690 | */ |
| 51201 | - public static function from(stdClass $obj): Typename { | |
| 51202 | - if (!property_exists($obj, 'typename')) { | |
| 51691 | + public static function from(stdClass $obj): Ulong { | |
| 51692 | + if (!property_exists($obj, 'ulong')) { | |
| 51203 | 51693 | throw new Exception("Missing required property"); |
| 51204 | 51694 | } |
| 51205 | - return new Typename( | |
| 51206 | - Typename::fromTypename($obj->{'typename'}) | |
| 51695 | + return new Ulong( | |
| 51696 | + Ulong::fromUlong($obj->{'ulong'}) | |
| 51207 | 51697 | ); |
| 51208 | 51698 | } |
| 51209 | 51699 | |
| 51210 | 51700 | /** |
| 51211 | - * @return Typename | |
| 51701 | + * @return Ulong | |
| 51212 | 51702 | */ |
| 51213 | - public static function sample(): Typename { | |
| 51214 | - return new Typename( | |
| 51215 | - Typename::sampleTypename() | |
| 51703 | + public static function sample(): Ulong { | |
| 51704 | + return new Ulong( | |
| 51705 | + Ulong::sampleUlong() | |
| 51216 | 51706 | ); |
| 51217 | 51707 | } |
| 51218 | 51708 | } |
| 51219 | 51709 | |
| 51220 | -// This is an autogenerated file:Typeof | |
| 51710 | +// This is an autogenerated file:Unchecked | |
| 51221 | 51711 | |
| 51222 | -class Typeof { | |
| 51223 | - private int $typeof; // json:typeof Required | |
| 51712 | +class Unchecked { | |
| 51713 | + private int $unchecked; // json:unchecked Required | |
| 51224 | 51714 | |
| 51225 | 51715 | /** |
| 51226 | - * @param int $typeof | |
| 51716 | + * @param int $unchecked | |
| 51227 | 51717 | */ |
| 51228 | - public function __construct(int $typeof) { | |
| 51229 | - $this->typeof = $typeof; | |
| 51718 | + public function __construct(int $unchecked) { | |
| 51719 | + $this->unchecked = $unchecked; | |
| 51230 | 51720 | } |
| 51231 | 51721 | |
| 51232 | 51722 | /** |
| @@ -51234,7 +51724,7 @@ class Typeof { | ||
| 51234 | 51724 | * @throws Exception |
| 51235 | 51725 | * @return int |
| 51236 | 51726 | */ |
| 51237 | - public static function fromTypeof(int $value): int { | |
| 51727 | + public static function fromUnchecked(int $value): int { | |
| 51238 | 51728 | return $value; /*int*/ |
| 51239 | 51729 | } |
| 51240 | 51730 | |
| @@ -51242,11 +51732,11 @@ class Typeof { | ||
| 51242 | 51732 | * @throws Exception |
| 51243 | 51733 | * @return int |
| 51244 | 51734 | */ |
| 51245 | - public function toTypeof(): int { | |
| 51246 | - if (Typeof::validateTypeof($this->typeof)) { | |
| 51247 | - return $this->typeof; /*int*/ | |
| 51735 | + public function toUnchecked(): int { | |
| 51736 | + if (Unchecked::validateUnchecked($this->unchecked)) { | |
| 51737 | + return $this->unchecked; /*int*/ | |
| 51248 | 51738 | } |
| 51249 | - throw new Exception('never get to this Typeof::typeof'); | |
| 51739 | + throw new Exception('never get to this Unchecked::unchecked'); | |
| 51250 | 51740 | } |
| 51251 | 51741 | |
| 51252 | 51742 | /** |
| @@ -51254,7 +51744,7 @@ class Typeof { | ||
| 51254 | 51744 | * @return bool |
| 51255 | 51745 | * @throws Exception |
| 51256 | 51746 | */ |
| 51257 | - public static function validateTypeof(int $value): bool { | |
| 51747 | + public static function validateUnchecked(int $value): bool { | |
| 51258 | 51748 | return true; |
| 51259 | 51749 | } |
| 51260 | 51750 | |
| @@ -51262,18 +51752,18 @@ class Typeof { | ||
| 51262 | 51752 | * @throws Exception |
| 51263 | 51753 | * @return int |
| 51264 | 51754 | */ |
| 51265 | - public function getTypeof(): int { | |
| 51266 | - if (Typeof::validateTypeof($this->typeof)) { | |
| 51267 | - return $this->typeof; | |
| 51755 | + public function getUnchecked(): int { | |
| 51756 | + if (Unchecked::validateUnchecked($this->unchecked)) { | |
| 51757 | + return $this->unchecked; | |
| 51268 | 51758 | } |
| 51269 | - throw new Exception('never get to getTypeof Typeof::typeof'); | |
| 51759 | + throw new Exception('never get to getUnchecked Unchecked::unchecked'); | |
| 51270 | 51760 | } |
| 51271 | 51761 | |
| 51272 | 51762 | /** |
| 51273 | 51763 | * @return int |
| 51274 | 51764 | */ |
| 51275 | - public static function sampleTypeof(): int { | |
| 51276 | - return 31; /*31:typeof*/ | |
| 51765 | + public static function sampleUnchecked(): int { | |
| 51766 | + return 31; /*31:unchecked*/ | |
| 51277 | 51767 | } |
| 51278 | 51768 | |
| 51279 | 51769 | /** |
| @@ -51281,7 +51771,7 @@ class Typeof { | ||
| 51281 | 51771 | * @return bool |
| 51282 | 51772 | */ |
| 51283 | 51773 | public function validate(): bool { |
| 51284 | - return Typeof::validateTypeof($this->typeof); | |
| 51774 | + return Unchecked::validateUnchecked($this->unchecked); | |
| 51285 | 51775 | } |
| 51286 | 51776 | |
| 51287 | 51777 | /** |
| @@ -51290,44 +51780,44 @@ class Typeof { | ||
| 51290 | 51780 | */ |
| 51291 | 51781 | public function to(): stdClass { |
| 51292 | 51782 | $out = new stdClass(); |
| 51293 | - $out->{'typeof'} = $this->toTypeof(); | |
| 51783 | + $out->{'unchecked'} = $this->toUnchecked(); | |
| 51294 | 51784 | return $out; |
| 51295 | 51785 | } |
| 51296 | 51786 | |
| 51297 | 51787 | /** |
| 51298 | 51788 | * @param stdClass $obj |
| 51299 | - * @return Typeof | |
| 51789 | + * @return Unchecked | |
| 51300 | 51790 | * @throws Exception |
| 51301 | 51791 | */ |
| 51302 | - public static function from(stdClass $obj): Typeof { | |
| 51303 | - if (!property_exists($obj, 'typeof')) { | |
| 51792 | + public static function from(stdClass $obj): Unchecked { | |
| 51793 | + if (!property_exists($obj, 'unchecked')) { | |
| 51304 | 51794 | throw new Exception("Missing required property"); |
| 51305 | 51795 | } |
| 51306 | - return new Typeof( | |
| 51307 | - Typeof::fromTypeof($obj->{'typeof'}) | |
| 51796 | + return new Unchecked( | |
| 51797 | + Unchecked::fromUnchecked($obj->{'unchecked'}) | |
| 51308 | 51798 | ); |
| 51309 | 51799 | } |
| 51310 | 51800 | |
| 51311 | 51801 | /** |
| 51312 | - * @return Typeof | |
| 51802 | + * @return Unchecked | |
| 51313 | 51803 | */ |
| 51314 | - public static function sample(): Typeof { | |
| 51315 | - return new Typeof( | |
| 51316 | - Typeof::sampleTypeof() | |
| 51804 | + public static function sample(): Unchecked { | |
| 51805 | + return new Unchecked( | |
| 51806 | + Unchecked::sampleUnchecked() | |
| 51317 | 51807 | ); |
| 51318 | 51808 | } |
| 51319 | 51809 | } |
| 51320 | 51810 | |
| 51321 | -// This is an autogenerated file:Uint | |
| 51811 | +// This is an autogenerated file:Undefined | |
| 51322 | 51812 | |
| 51323 | -class Uint { | |
| 51324 | - private int $uint; // json:uint Required | |
| 51813 | +class Undefined { | |
| 51814 | + private int $undefined; // json:undefined Required | |
| 51325 | 51815 | |
| 51326 | 51816 | /** |
| 51327 | - * @param int $uint | |
| 51817 | + * @param int $undefined | |
| 51328 | 51818 | */ |
| 51329 | - public function __construct(int $uint) { | |
| 51330 | - $this->uint = $uint; | |
| 51819 | + public function __construct(int $undefined) { | |
| 51820 | + $this->undefined = $undefined; | |
| 51331 | 51821 | } |
| 51332 | 51822 | |
| 51333 | 51823 | /** |
| @@ -51335,7 +51825,7 @@ class Uint { | ||
| 51335 | 51825 | * @throws Exception |
| 51336 | 51826 | * @return int |
| 51337 | 51827 | */ |
| 51338 | - public static function fromUint(int $value): int { | |
| 51828 | + public static function fromUndefined(int $value): int { | |
| 51339 | 51829 | return $value; /*int*/ |
| 51340 | 51830 | } |
| 51341 | 51831 | |
| @@ -51343,11 +51833,11 @@ class Uint { | ||
| 51343 | 51833 | * @throws Exception |
| 51344 | 51834 | * @return int |
| 51345 | 51835 | */ |
| 51346 | - public function toUint(): int { | |
| 51347 | - if (Uint::validateUint($this->uint)) { | |
| 51348 | - return $this->uint; /*int*/ | |
| 51836 | + public function toUndefined(): int { | |
| 51837 | + if (Undefined::validateUndefined($this->undefined)) { | |
| 51838 | + return $this->undefined; /*int*/ | |
| 51349 | 51839 | } |
| 51350 | - throw new Exception('never get to this Uint::uint'); | |
| 51840 | + throw new Exception('never get to this Undefined::undefined'); | |
| 51351 | 51841 | } |
| 51352 | 51842 | |
| 51353 | 51843 | /** |
| @@ -51355,7 +51845,7 @@ class Uint { | ||
| 51355 | 51845 | * @return bool |
| 51356 | 51846 | * @throws Exception |
| 51357 | 51847 | */ |
| 51358 | - public static function validateUint(int $value): bool { | |
| 51848 | + public static function validateUndefined(int $value): bool { | |
| 51359 | 51849 | return true; |
| 51360 | 51850 | } |
| 51361 | 51851 | |
| @@ -51363,18 +51853,18 @@ class Uint { | ||
| 51363 | 51853 | * @throws Exception |
| 51364 | 51854 | * @return int |
| 51365 | 51855 | */ |
| 51366 | - public function getUint(): int { | |
| 51367 | - if (Uint::validateUint($this->uint)) { | |
| 51368 | - return $this->uint; | |
| 51856 | + public function getUndefined(): int { | |
| 51857 | + if (Undefined::validateUndefined($this->undefined)) { | |
| 51858 | + return $this->undefined; | |
| 51369 | 51859 | } |
| 51370 | - throw new Exception('never get to getUint Uint::uint'); | |
| 51860 | + throw new Exception('never get to getUndefined Undefined::undefined'); | |
| 51371 | 51861 | } |
| 51372 | 51862 | |
| 51373 | 51863 | /** |
| 51374 | 51864 | * @return int |
| 51375 | 51865 | */ |
| 51376 | - public static function sampleUint(): int { | |
| 51377 | - return 31; /*31:uint*/ | |
| 51866 | + public static function sampleUndefined(): int { | |
| 51867 | + return 31; /*31:undefined*/ | |
| 51378 | 51868 | } |
| 51379 | 51869 | |
| 51380 | 51870 | /** |
| @@ -51382,7 +51872,7 @@ class Uint { | ||
| 51382 | 51872 | * @return bool |
| 51383 | 51873 | */ |
| 51384 | 51874 | public function validate(): bool { |
| 51385 | - return Uint::validateUint($this->uint); | |
| 51875 | + return Undefined::validateUndefined($this->undefined); | |
| 51386 | 51876 | } |
| 51387 | 51877 | |
| 51388 | 51878 | /** |
| @@ -51391,44 +51881,119 @@ class Uint { | ||
| 51391 | 51881 | */ |
| 51392 | 51882 | public function to(): stdClass { |
| 51393 | 51883 | $out = new stdClass(); |
| 51394 | - $out->{'uint'} = $this->toUint(); | |
| 51884 | + $out->{'undefined'} = $this->toUndefined(); | |
| 51395 | 51885 | return $out; |
| 51396 | 51886 | } |
| 51397 | 51887 | |
| 51398 | 51888 | /** |
| 51399 | 51889 | * @param stdClass $obj |
| 51400 | - * @return Uint | |
| 51890 | + * @return Undefined | |
| 51401 | 51891 | * @throws Exception |
| 51402 | 51892 | */ |
| 51403 | - public static function from(stdClass $obj): Uint { | |
| 51404 | - if (!property_exists($obj, 'uint')) { | |
| 51893 | + public static function from(stdClass $obj): Undefined { | |
| 51894 | + if (!property_exists($obj, 'undefined')) { | |
| 51405 | 51895 | throw new Exception("Missing required property"); |
| 51406 | 51896 | } |
| 51407 | - return new Uint( | |
| 51408 | - Uint::fromUint($obj->{'uint'}) | |
| 51897 | + return new Undefined( | |
| 51898 | + Undefined::fromUndefined($obj->{'undefined'}) | |
| 51409 | 51899 | ); |
| 51410 | 51900 | } |
| 51411 | 51901 | |
| 51412 | 51902 | /** |
| 51413 | - * @return Uint | |
| 51903 | + * @return Undefined | |
| 51414 | 51904 | */ |
| 51415 | - public static function sample(): Uint { | |
| 51416 | - return new Uint( | |
| 51417 | - Uint::sampleUint() | |
| 51905 | + public static function sample(): Undefined { | |
| 51906 | + return new Undefined( | |
| 51907 | + Undefined::sampleUndefined() | |
| 51418 | 51908 | ); |
| 51419 | 51909 | } |
| 51420 | 51910 | } |
| 51421 | 51911 | |
| 51422 | -// This is an autogenerated file:Ulong | |
| 51912 | +// This is an autogenerated file:Obj6 | |
| 51423 | 51913 | |
| 51424 | -class Ulong { | |
| 51425 | - private int $ulong; // json:ulong Required | |
| 51914 | +class Obj6 { | |
| 51915 | + private int $dummy; // json:dummy Required | |
| 51916 | + private Union $union; // json:union Required | |
| 51917 | + private UnmarshalJSON $unmarshalJSON; // json:UnmarshalJSON Required | |
| 51918 | + private Unowned $unowned; // json:unowned Required | |
| 51919 | + private Unsafe $unsafe; // json:unsafe Required | |
| 51920 | + private Unsigned $unsigned; // json:unsigned Required | |
| 51921 | + private UseSerializers $useSerializers; // json:UseSerializers Required | |
| 51922 | + private Ushort $ushort; // json:ushort Required | |
| 51923 | + private Using $using; // json:using Required | |
| 51924 | + private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required | |
| 51925 | + private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required | |
| 51926 | + private UUID $uuid; // json:UUID Required | |
| 51927 | + private VarClass $var; // json:var Required | |
| 51928 | + private Virtual $virtual; // json:virtual Required | |
| 51929 | + private VoidClass $void; // json:void Required | |
| 51930 | + private Volatile $volatile; // json:volatile Required | |
| 51931 | + private WcharT $wcharT; // json:wchar_t Required | |
| 51932 | + private Weak $weak; // json:weak Required | |
| 51933 | + private Where $where; // json:where Required | |
| 51934 | + private WhileClass $while; // json:while Required | |
| 51935 | + private WillSet $willSet; // json:willSet Required | |
| 51936 | + private With $with; // json:with Required | |
| 51937 | + private XorClass $xor; // json:xor Required | |
| 51938 | + private XorEq $xorEq; // json:xor_eq Required | |
| 51939 | + private Yes $yes; // json:YES Required | |
| 51940 | + private YieldClass $yield; // json:yield Required | |
| 51426 | 51941 | |
| 51427 | 51942 | /** |
| 51428 | - * @param int $ulong | |
| 51943 | + * @param int $dummy | |
| 51944 | + * @param Union $union | |
| 51945 | + * @param UnmarshalJSON $unmarshalJSON | |
| 51946 | + * @param Unowned $unowned | |
| 51947 | + * @param Unsafe $unsafe | |
| 51948 | + * @param Unsigned $unsigned | |
| 51949 | + * @param UseSerializers $useSerializers | |
| 51950 | + * @param Ushort $ushort | |
| 51951 | + * @param Using $using | |
| 51952 | + * @param Utf8JSONReader $utf8JSONReader | |
| 51953 | + * @param Utf8JSONWriter $utf8JSONWriter | |
| 51954 | + * @param UUID $uuid | |
| 51955 | + * @param VarClass $var | |
| 51956 | + * @param Virtual $virtual | |
| 51957 | + * @param VoidClass $void | |
| 51958 | + * @param Volatile $volatile | |
| 51959 | + * @param WcharT $wcharT | |
| 51960 | + * @param Weak $weak | |
| 51961 | + * @param Where $where | |
| 51962 | + * @param WhileClass $while | |
| 51963 | + * @param WillSet $willSet | |
| 51964 | + * @param With $with | |
| 51965 | + * @param XorClass $xor | |
| 51966 | + * @param XorEq $xorEq | |
| 51967 | + * @param Yes $yes | |
| 51968 | + * @param YieldClass $yield | |
| 51429 | 51969 | */ |
| 51430 | - public function __construct(int $ulong) { | |
| 51431 | - $this->ulong = $ulong; | |
| 51970 | + public function __construct(int $dummy, Union $union, UnmarshalJSON $unmarshalJSON, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, UseSerializers $useSerializers, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) { | |
| 51971 | + $this->dummy = $dummy; | |
| 51972 | + $this->union = $union; | |
| 51973 | + $this->unmarshalJSON = $unmarshalJSON; | |
| 51974 | + $this->unowned = $unowned; | |
| 51975 | + $this->unsafe = $unsafe; | |
| 51976 | + $this->unsigned = $unsigned; | |
| 51977 | + $this->useSerializers = $useSerializers; | |
| 51978 | + $this->ushort = $ushort; | |
| 51979 | + $this->using = $using; | |
| 51980 | + $this->utf8JSONReader = $utf8JSONReader; | |
| 51981 | + $this->utf8JSONWriter = $utf8JSONWriter; | |
| 51982 | + $this->uuid = $uuid; | |
| 51983 | + $this->var = $var; | |
| 51984 | + $this->virtual = $virtual; | |
| 51985 | + $this->void = $void; | |
| 51986 | + $this->volatile = $volatile; | |
| 51987 | + $this->wcharT = $wcharT; | |
| 51988 | + $this->weak = $weak; | |
| 51989 | + $this->where = $where; | |
| 51990 | + $this->while = $while; | |
| 51991 | + $this->willSet = $willSet; | |
| 51992 | + $this->with = $with; | |
| 51993 | + $this->xor = $xor; | |
| 51994 | + $this->xorEq = $xorEq; | |
| 51995 | + $this->yes = $yes; | |
| 51996 | + $this->yield = $yield; | |
| 51432 | 51997 | } |
| 51433 | 51998 | |
| 51434 | 51999 | /** |
| @@ -51436,7 +52001,7 @@ class Ulong { | ||
| 51436 | 52001 | * @throws Exception |
| 51437 | 52002 | * @return int |
| 51438 | 52003 | */ |
| 51439 | - public static function fromUlong(int $value): int { | |
| 52004 | + public static function fromDummy(int $value): int { | |
| 51440 | 52005 | return $value; /*int*/ |
| 51441 | 52006 | } |
| 51442 | 52007 | |
| @@ -51444,11 +52009,11 @@ class Ulong { | ||
| 51444 | 52009 | * @throws Exception |
| 51445 | 52010 | * @return int |
| 51446 | 52011 | */ |
| 51447 | - public function toUlong(): int { | |
| 51448 | - if (Ulong::validateUlong($this->ulong)) { | |
| 51449 | - return $this->ulong; /*int*/ | |
| 52012 | + public function toDummy(): int { | |
| 52013 | + if (Obj6::validateDummy($this->dummy)) { | |
| 52014 | + return $this->dummy; /*int*/ | |
| 51450 | 52015 | } |
| 51451 | - throw new Exception('never get to this Ulong::ulong'); | |
| 52016 | + throw new Exception('never get to this Obj6::dummy'); | |
| 51452 | 52017 | } |
| 51453 | 52018 | |
| 51454 | 52019 | /** |
| @@ -51456,7 +52021,7 @@ class Ulong { | ||
| 51456 | 52021 | * @return bool |
| 51457 | 52022 | * @throws Exception |
| 51458 | 52023 | */ |
| 51459 | - public static function validateUlong(int $value): bool { | |
| 52024 | + public static function validateDummy(int $value): bool { | |
| 51460 | 52025 | return true; |
| 51461 | 52026 | } |
| 51462 | 52027 | |
| @@ -51464,1846 +52029,1898 @@ class Ulong { | ||
| 51464 | 52029 | * @throws Exception |
| 51465 | 52030 | * @return int |
| 51466 | 52031 | */ |
| 51467 | - public function getUlong(): int { | |
| 51468 | - if (Ulong::validateUlong($this->ulong)) { | |
| 51469 | - return $this->ulong; | |
| 52032 | + public function getDummy(): int { | |
| 52033 | + if (Obj6::validateDummy($this->dummy)) { | |
| 52034 | + return $this->dummy; | |
| 51470 | 52035 | } |
| 51471 | - throw new Exception('never get to getUlong Ulong::ulong'); | |
| 52036 | + throw new Exception('never get to getDummy Obj6::dummy'); | |
| 51472 | 52037 | } |
| 51473 | 52038 | |
| 51474 | 52039 | /** |
| 51475 | 52040 | * @return int |
| 51476 | 52041 | */ |
| 51477 | - public static function sampleUlong(): int { | |
| 51478 | - return 31; /*31:ulong*/ | |
| 52042 | + public static function sampleDummy(): int { | |
| 52043 | + return 31; /*31:dummy*/ | |
| 51479 | 52044 | } |
| 51480 | 52045 | |
| 51481 | 52046 | /** |
| 52047 | + * @param stdClass $value | |
| 51482 | 52048 | * @throws Exception |
| 51483 | - * @return bool | |
| 52049 | + * @return Union | |
| 51484 | 52050 | */ |
| 51485 | - public function validate(): bool { | |
| 51486 | - return Ulong::validateUlong($this->ulong); | |
| 52051 | + public static function fromUnion(stdClass $value): Union { | |
| 52052 | + return Union::from($value); /*class*/ | |
| 51487 | 52053 | } |
| 51488 | 52054 | |
| 51489 | 52055 | /** |
| 51490 | - * @return stdClass | |
| 51491 | 52056 | * @throws Exception |
| 52057 | + * @return stdClass | |
| 51492 | 52058 | */ |
| 51493 | - public function to(): stdClass { | |
| 51494 | - $out = new stdClass(); | |
| 51495 | - $out->{'ulong'} = $this->toUlong(); | |
| 51496 | - return $out; | |
| 52059 | + public function toUnion(): stdClass { | |
| 52060 | + if (Obj6::validateUnion($this->union)) { | |
| 52061 | + return $this->union->to(); /*class*/ | |
| 52062 | + } | |
| 52063 | + throw new Exception('never get to this Obj6::union'); | |
| 51497 | 52064 | } |
| 51498 | 52065 | |
| 51499 | 52066 | /** |
| 51500 | - * @param stdClass $obj | |
| 51501 | - * @return Ulong | |
| 52067 | + * @param Union | |
| 52068 | + * @return bool | |
| 51502 | 52069 | * @throws Exception |
| 51503 | 52070 | */ |
| 51504 | - public static function from(stdClass $obj): Ulong { | |
| 51505 | - if (!property_exists($obj, 'ulong')) { | |
| 51506 | - throw new Exception("Missing required property"); | |
| 51507 | - } | |
| 51508 | - return new Ulong( | |
| 51509 | - Ulong::fromUlong($obj->{'ulong'}) | |
| 51510 | - ); | |
| 52071 | + public static function validateUnion(Union $value): bool { | |
| 52072 | + $value->validate(); | |
| 52073 | + return true; | |
| 51511 | 52074 | } |
| 51512 | 52075 | |
| 51513 | 52076 | /** |
| 51514 | - * @return Ulong | |
| 52077 | + * @throws Exception | |
| 52078 | + * @return Union | |
| 51515 | 52079 | */ |
| 51516 | - public static function sample(): Ulong { | |
| 51517 | - return new Ulong( | |
| 51518 | - Ulong::sampleUlong() | |
| 51519 | - ); | |
| 52080 | + public function getUnion(): Union { | |
| 52081 | + if (Obj6::validateUnion($this->union)) { | |
| 52082 | + return $this->union; | |
| 52083 | + } | |
| 52084 | + throw new Exception('never get to getUnion Obj6::union'); | |
| 51520 | 52085 | } |
| 51521 | -} | |
| 51522 | - | |
| 51523 | -// This is an autogenerated file:Unchecked | |
| 51524 | - | |
| 51525 | -class Unchecked { | |
| 51526 | - private int $unchecked; // json:unchecked Required | |
| 51527 | 52086 | |
| 51528 | 52087 | /** |
| 51529 | - * @param int $unchecked | |
| 52088 | + * @return Union | |
| 51530 | 52089 | */ |
| 51531 | - public function __construct(int $unchecked) { | |
| 51532 | - $this->unchecked = $unchecked; | |
| 52090 | + public static function sampleUnion(): Union { | |
| 52091 | + return Union::sample(); /*32:union*/ | |
| 51533 | 52092 | } |
| 51534 | 52093 | |
| 51535 | 52094 | /** |
| 51536 | - * @param int $value | |
| 52095 | + * @param stdClass $value | |
| 51537 | 52096 | * @throws Exception |
| 51538 | - * @return int | |
| 52097 | + * @return UnmarshalJSON | |
| 51539 | 52098 | */ |
| 51540 | - public static function fromUnchecked(int $value): int { | |
| 51541 | - return $value; /*int*/ | |
| 52099 | + public static function fromUnmarshalJSON(stdClass $value): UnmarshalJSON { | |
| 52100 | + return UnmarshalJSON::from($value); /*class*/ | |
| 51542 | 52101 | } |
| 51543 | 52102 | |
| 51544 | 52103 | /** |
| 51545 | 52104 | * @throws Exception |
| 51546 | - * @return int | |
| 52105 | + * @return stdClass | |
| 51547 | 52106 | */ |
| 51548 | - public function toUnchecked(): int { | |
| 51549 | - if (Unchecked::validateUnchecked($this->unchecked)) { | |
| 51550 | - return $this->unchecked; /*int*/ | |
| 52107 | + public function toUnmarshalJSON(): stdClass { | |
| 52108 | + if (Obj6::validateUnmarshalJSON($this->unmarshalJSON)) { | |
| 52109 | + return $this->unmarshalJSON->to(); /*class*/ | |
| 51551 | 52110 | } |
| 51552 | - throw new Exception('never get to this Unchecked::unchecked'); | |
| 52111 | + throw new Exception('never get to this Obj6::unmarshalJSON'); | |
| 51553 | 52112 | } |
| 51554 | 52113 | |
| 51555 | 52114 | /** |
| 51556 | - * @param int | |
| 52115 | + * @param UnmarshalJSON | |
| 51557 | 52116 | * @return bool |
| 51558 | 52117 | * @throws Exception |
| 51559 | 52118 | */ |
| 51560 | - public static function validateUnchecked(int $value): bool { | |
| 52119 | + public static function validateUnmarshalJSON(UnmarshalJSON $value): bool { | |
| 52120 | + $value->validate(); | |
| 51561 | 52121 | return true; |
| 51562 | 52122 | } |
| 51563 | 52123 | |
| 51564 | 52124 | /** |
| 51565 | 52125 | * @throws Exception |
| 51566 | - * @return int | |
| 52126 | + * @return UnmarshalJSON | |
| 51567 | 52127 | */ |
| 51568 | - public function getUnchecked(): int { | |
| 51569 | - if (Unchecked::validateUnchecked($this->unchecked)) { | |
| 51570 | - return $this->unchecked; | |
| 52128 | + public function getUnmarshalJSON(): UnmarshalJSON { | |
| 52129 | + if (Obj6::validateUnmarshalJSON($this->unmarshalJSON)) { | |
| 52130 | + return $this->unmarshalJSON; | |
| 51571 | 52131 | } |
| 51572 | - throw new Exception('never get to getUnchecked Unchecked::unchecked'); | |
| 52132 | + throw new Exception('never get to getUnmarshalJSON Obj6::unmarshalJSON'); | |
| 51573 | 52133 | } |
| 51574 | 52134 | |
| 51575 | 52135 | /** |
| 51576 | - * @return int | |
| 52136 | + * @return UnmarshalJSON | |
| 51577 | 52137 | */ |
| 51578 | - public static function sampleUnchecked(): int { | |
| 51579 | - return 31; /*31:unchecked*/ | |
| 52138 | + public static function sampleUnmarshalJSON(): UnmarshalJSON { | |
| 52139 | + return UnmarshalJSON::sample(); /*33:unmarshalJSON*/ | |
| 51580 | 52140 | } |
| 51581 | 52141 | |
| 51582 | 52142 | /** |
| 52143 | + * @param stdClass $value | |
| 51583 | 52144 | * @throws Exception |
| 51584 | - * @return bool | |
| 52145 | + * @return Unowned | |
| 51585 | 52146 | */ |
| 51586 | - public function validate(): bool { | |
| 51587 | - return Unchecked::validateUnchecked($this->unchecked); | |
| 52147 | + public static function fromUnowned(stdClass $value): Unowned { | |
| 52148 | + return Unowned::from($value); /*class*/ | |
| 51588 | 52149 | } |
| 51589 | 52150 | |
| 51590 | 52151 | /** |
| 52152 | + * @throws Exception | |
| 51591 | 52153 | * @return stdClass |
| 52154 | + */ | |
| 52155 | + public function toUnowned(): stdClass { | |
| 52156 | + if (Obj6::validateUnowned($this->unowned)) { | |
| 52157 | + return $this->unowned->to(); /*class*/ | |
| 52158 | + } | |
| 52159 | + throw new Exception('never get to this Obj6::unowned'); | |
| 52160 | + } | |
| 52161 | + | |
| 52162 | + /** | |
| 52163 | + * @param Unowned | |
| 52164 | + * @return bool | |
| 51592 | 52165 | * @throws Exception |
| 51593 | 52166 | */ |
| 51594 | - public function to(): stdClass { | |
| 51595 | - $out = new stdClass(); | |
| 51596 | - $out->{'unchecked'} = $this->toUnchecked(); | |
| 51597 | - return $out; | |
| 52167 | + public static function validateUnowned(Unowned $value): bool { | |
| 52168 | + $value->validate(); | |
| 52169 | + return true; | |
| 51598 | 52170 | } |
| 51599 | 52171 | |
| 51600 | 52172 | /** |
| 51601 | - * @param stdClass $obj | |
| 51602 | - * @return Unchecked | |
| 51603 | 52173 | * @throws Exception |
| 52174 | + * @return Unowned | |
| 51604 | 52175 | */ |
| 51605 | - public static function from(stdClass $obj): Unchecked { | |
| 51606 | - if (!property_exists($obj, 'unchecked')) { | |
| 51607 | - throw new Exception("Missing required property"); | |
| 52176 | + public function getUnowned(): Unowned { | |
| 52177 | + if (Obj6::validateUnowned($this->unowned)) { | |
| 52178 | + return $this->unowned; | |
| 51608 | 52179 | } |
| 51609 | - return new Unchecked( | |
| 51610 | - Unchecked::fromUnchecked($obj->{'unchecked'}) | |
| 51611 | - ); | |
| 52180 | + throw new Exception('never get to getUnowned Obj6::unowned'); | |
| 51612 | 52181 | } |
| 51613 | 52182 | |
| 51614 | 52183 | /** |
| 51615 | - * @return Unchecked | |
| 52184 | + * @return Unowned | |
| 51616 | 52185 | */ |
| 51617 | - public static function sample(): Unchecked { | |
| 51618 | - return new Unchecked( | |
| 51619 | - Unchecked::sampleUnchecked() | |
| 51620 | - ); | |
| 52186 | + public static function sampleUnowned(): Unowned { | |
| 52187 | + return Unowned::sample(); /*34:unowned*/ | |
| 51621 | 52188 | } |
| 51622 | -} | |
| 51623 | 52189 | |
| 51624 | -// This is an autogenerated file:Undefined | |
| 52190 | + /** | |
| 52191 | + * @param stdClass $value | |
| 52192 | + * @throws Exception | |
| 52193 | + * @return Unsafe | |
| 52194 | + */ | |
| 52195 | + public static function fromUnsafe(stdClass $value): Unsafe { | |
| 52196 | + return Unsafe::from($value); /*class*/ | |
| 52197 | + } | |
| 51625 | 52198 | |
| 51626 | -class Undefined { | |
| 51627 | - private int $undefined; // json:undefined Required | |
| 52199 | + /** | |
| 52200 | + * @throws Exception | |
| 52201 | + * @return stdClass | |
| 52202 | + */ | |
| 52203 | + public function toUnsafe(): stdClass { | |
| 52204 | + if (Obj6::validateUnsafe($this->unsafe)) { | |
| 52205 | + return $this->unsafe->to(); /*class*/ | |
| 52206 | + } | |
| 52207 | + throw new Exception('never get to this Obj6::unsafe'); | |
| 52208 | + } | |
| 51628 | 52209 | |
| 51629 | 52210 | /** |
| 51630 | - * @param int $undefined | |
| 52211 | + * @param Unsafe | |
| 52212 | + * @return bool | |
| 52213 | + * @throws Exception | |
| 51631 | 52214 | */ |
| 51632 | - public function __construct(int $undefined) { | |
| 51633 | - $this->undefined = $undefined; | |
| 52215 | + public static function validateUnsafe(Unsafe $value): bool { | |
| 52216 | + $value->validate(); | |
| 52217 | + return true; | |
| 51634 | 52218 | } |
| 51635 | 52219 | |
| 51636 | 52220 | /** |
| 51637 | - * @param int $value | |
| 51638 | 52221 | * @throws Exception |
| 51639 | - * @return int | |
| 52222 | + * @return Unsafe | |
| 51640 | 52223 | */ |
| 51641 | - public static function fromUndefined(int $value): int { | |
| 51642 | - return $value; /*int*/ | |
| 52224 | + public function getUnsafe(): Unsafe { | |
| 52225 | + if (Obj6::validateUnsafe($this->unsafe)) { | |
| 52226 | + return $this->unsafe; | |
| 52227 | + } | |
| 52228 | + throw new Exception('never get to getUnsafe Obj6::unsafe'); | |
| 52229 | + } | |
| 52230 | + | |
| 52231 | + /** | |
| 52232 | + * @return Unsafe | |
| 52233 | + */ | |
| 52234 | + public static function sampleUnsafe(): Unsafe { | |
| 52235 | + return Unsafe::sample(); /*35:unsafe*/ | |
| 51643 | 52236 | } |
| 51644 | 52237 | |
| 51645 | 52238 | /** |
| 52239 | + * @param stdClass $value | |
| 51646 | 52240 | * @throws Exception |
| 51647 | - * @return int | |
| 52241 | + * @return Unsigned | |
| 51648 | 52242 | */ |
| 51649 | - public function toUndefined(): int { | |
| 51650 | - if (Undefined::validateUndefined($this->undefined)) { | |
| 51651 | - return $this->undefined; /*int*/ | |
| 52243 | + public static function fromUnsigned(stdClass $value): Unsigned { | |
| 52244 | + return Unsigned::from($value); /*class*/ | |
| 52245 | + } | |
| 52246 | + | |
| 52247 | + /** | |
| 52248 | + * @throws Exception | |
| 52249 | + * @return stdClass | |
| 52250 | + */ | |
| 52251 | + public function toUnsigned(): stdClass { | |
| 52252 | + if (Obj6::validateUnsigned($this->unsigned)) { | |
| 52253 | + return $this->unsigned->to(); /*class*/ | |
| 51652 | 52254 | } |
| 51653 | - throw new Exception('never get to this Undefined::undefined'); | |
| 52255 | + throw new Exception('never get to this Obj6::unsigned'); | |
| 51654 | 52256 | } |
| 51655 | 52257 | |
| 51656 | 52258 | /** |
| 51657 | - * @param int | |
| 52259 | + * @param Unsigned | |
| 51658 | 52260 | * @return bool |
| 51659 | 52261 | * @throws Exception |
| 51660 | 52262 | */ |
| 51661 | - public static function validateUndefined(int $value): bool { | |
| 52263 | + public static function validateUnsigned(Unsigned $value): bool { | |
| 52264 | + $value->validate(); | |
| 51662 | 52265 | return true; |
| 51663 | 52266 | } |
| 51664 | 52267 | |
| 51665 | 52268 | /** |
| 51666 | 52269 | * @throws Exception |
| 51667 | - * @return int | |
| 52270 | + * @return Unsigned | |
| 51668 | 52271 | */ |
| 51669 | - public function getUndefined(): int { | |
| 51670 | - if (Undefined::validateUndefined($this->undefined)) { | |
| 51671 | - return $this->undefined; | |
| 52272 | + public function getUnsigned(): Unsigned { | |
| 52273 | + if (Obj6::validateUnsigned($this->unsigned)) { | |
| 52274 | + return $this->unsigned; | |
| 51672 | 52275 | } |
| 51673 | - throw new Exception('never get to getUndefined Undefined::undefined'); | |
| 52276 | + throw new Exception('never get to getUnsigned Obj6::unsigned'); | |
| 51674 | 52277 | } |
| 51675 | 52278 | |
| 51676 | 52279 | /** |
| 51677 | - * @return int | |
| 52280 | + * @return Unsigned | |
| 51678 | 52281 | */ |
| 51679 | - public static function sampleUndefined(): int { | |
| 51680 | - return 31; /*31:undefined*/ | |
| 52282 | + public static function sampleUnsigned(): Unsigned { | |
| 52283 | + return Unsigned::sample(); /*36:unsigned*/ | |
| 51681 | 52284 | } |
| 51682 | 52285 | |
| 51683 | 52286 | /** |
| 52287 | + * @param stdClass $value | |
| 51684 | 52288 | * @throws Exception |
| 51685 | - * @return bool | |
| 52289 | + * @return UseSerializers | |
| 51686 | 52290 | */ |
| 51687 | - public function validate(): bool { | |
| 51688 | - return Undefined::validateUndefined($this->undefined); | |
| 52291 | + public static function fromUseSerializers(stdClass $value): UseSerializers { | |
| 52292 | + return UseSerializers::from($value); /*class*/ | |
| 51689 | 52293 | } |
| 51690 | 52294 | |
| 51691 | 52295 | /** |
| 51692 | - * @return stdClass | |
| 51693 | 52296 | * @throws Exception |
| 52297 | + * @return stdClass | |
| 51694 | 52298 | */ |
| 51695 | - public function to(): stdClass { | |
| 51696 | - $out = new stdClass(); | |
| 51697 | - $out->{'undefined'} = $this->toUndefined(); | |
| 51698 | - return $out; | |
| 52299 | + public function toUseSerializers(): stdClass { | |
| 52300 | + if (Obj6::validateUseSerializers($this->useSerializers)) { | |
| 52301 | + return $this->useSerializers->to(); /*class*/ | |
| 52302 | + } | |
| 52303 | + throw new Exception('never get to this Obj6::useSerializers'); | |
| 51699 | 52304 | } |
| 51700 | 52305 | |
| 51701 | 52306 | /** |
| 51702 | - * @param stdClass $obj | |
| 51703 | - * @return Undefined | |
| 52307 | + * @param UseSerializers | |
| 52308 | + * @return bool | |
| 51704 | 52309 | * @throws Exception |
| 51705 | 52310 | */ |
| 51706 | - public static function from(stdClass $obj): Undefined { | |
| 51707 | - if (!property_exists($obj, 'undefined')) { | |
| 51708 | - throw new Exception("Missing required property"); | |
| 51709 | - } | |
| 51710 | - return new Undefined( | |
| 51711 | - Undefined::fromUndefined($obj->{'undefined'}) | |
| 51712 | - ); | |
| 52311 | + public static function validateUseSerializers(UseSerializers $value): bool { | |
| 52312 | + $value->validate(); | |
| 52313 | + return true; | |
| 51713 | 52314 | } |
| 51714 | 52315 | |
| 51715 | 52316 | /** |
| 51716 | - * @return Undefined | |
| 52317 | + * @throws Exception | |
| 52318 | + * @return UseSerializers | |
| 51717 | 52319 | */ |
| 51718 | - public static function sample(): Undefined { | |
| 51719 | - return new Undefined( | |
| 51720 | - Undefined::sampleUndefined() | |
| 51721 | - ); | |
| 52320 | + public function getUseSerializers(): UseSerializers { | |
| 52321 | + if (Obj6::validateUseSerializers($this->useSerializers)) { | |
| 52322 | + return $this->useSerializers; | |
| 52323 | + } | |
| 52324 | + throw new Exception('never get to getUseSerializers Obj6::useSerializers'); | |
| 51722 | 52325 | } |
| 51723 | -} | |
| 51724 | - | |
| 51725 | -// This is an autogenerated file:Union | |
| 51726 | - | |
| 51727 | -class Union { | |
| 51728 | - private int $union; // json:union Required | |
| 51729 | 52326 | |
| 51730 | 52327 | /** |
| 51731 | - * @param int $union | |
| 52328 | + * @return UseSerializers | |
| 51732 | 52329 | */ |
| 51733 | - public function __construct(int $union) { | |
| 51734 | - $this->union = $union; | |
| 52330 | + public static function sampleUseSerializers(): UseSerializers { | |
| 52331 | + return UseSerializers::sample(); /*37:useSerializers*/ | |
| 51735 | 52332 | } |
| 51736 | 52333 | |
| 51737 | 52334 | /** |
| 51738 | - * @param int $value | |
| 52335 | + * @param stdClass $value | |
| 51739 | 52336 | * @throws Exception |
| 51740 | - * @return int | |
| 52337 | + * @return Ushort | |
| 51741 | 52338 | */ |
| 51742 | - public static function fromUnion(int $value): int { | |
| 51743 | - return $value; /*int*/ | |
| 52339 | + public static function fromUshort(stdClass $value): Ushort { | |
| 52340 | + return Ushort::from($value); /*class*/ | |
| 51744 | 52341 | } |
| 51745 | 52342 | |
| 51746 | 52343 | /** |
| 51747 | 52344 | * @throws Exception |
| 51748 | - * @return int | |
| 52345 | + * @return stdClass | |
| 51749 | 52346 | */ |
| 51750 | - public function toUnion(): int { | |
| 51751 | - if (Union::validateUnion($this->union)) { | |
| 51752 | - return $this->union; /*int*/ | |
| 52347 | + public function toUshort(): stdClass { | |
| 52348 | + if (Obj6::validateUshort($this->ushort)) { | |
| 52349 | + return $this->ushort->to(); /*class*/ | |
| 51753 | 52350 | } |
| 51754 | - throw new Exception('never get to this Union::union'); | |
| 52351 | + throw new Exception('never get to this Obj6::ushort'); | |
| 51755 | 52352 | } |
| 51756 | 52353 | |
| 51757 | 52354 | /** |
| 51758 | - * @param int | |
| 52355 | + * @param Ushort | |
| 51759 | 52356 | * @return bool |
| 51760 | 52357 | * @throws Exception |
| 51761 | 52358 | */ |
| 51762 | - public static function validateUnion(int $value): bool { | |
| 52359 | + public static function validateUshort(Ushort $value): bool { | |
| 52360 | + $value->validate(); | |
| 51763 | 52361 | return true; |
| 51764 | 52362 | } |
| 51765 | 52363 | |
| 51766 | 52364 | /** |
| 51767 | 52365 | * @throws Exception |
| 51768 | - * @return int | |
| 52366 | + * @return Ushort | |
| 51769 | 52367 | */ |
| 51770 | - public function getUnion(): int { | |
| 51771 | - if (Union::validateUnion($this->union)) { | |
| 51772 | - return $this->union; | |
| 52368 | + public function getUshort(): Ushort { | |
| 52369 | + if (Obj6::validateUshort($this->ushort)) { | |
| 52370 | + return $this->ushort; | |
| 51773 | 52371 | } |
| 51774 | - throw new Exception('never get to getUnion Union::union'); | |
| 52372 | + throw new Exception('never get to getUshort Obj6::ushort'); | |
| 51775 | 52373 | } |
| 51776 | 52374 | |
| 51777 | 52375 | /** |
| 51778 | - * @return int | |
| 52376 | + * @return Ushort | |
| 51779 | 52377 | */ |
| 51780 | - public static function sampleUnion(): int { | |
| 51781 | - return 31; /*31:union*/ | |
| 52378 | + public static function sampleUshort(): Ushort { | |
| 52379 | + return Ushort::sample(); /*38:ushort*/ | |
| 51782 | 52380 | } |
| 51783 | 52381 | |
| 51784 | 52382 | /** |
| 52383 | + * @param stdClass $value | |
| 51785 | 52384 | * @throws Exception |
| 51786 | - * @return bool | |
| 52385 | + * @return Using | |
| 51787 | 52386 | */ |
| 51788 | - public function validate(): bool { | |
| 51789 | - return Union::validateUnion($this->union); | |
| 52387 | + public static function fromUsing(stdClass $value): Using { | |
| 52388 | + return Using::from($value); /*class*/ | |
| 51790 | 52389 | } |
| 51791 | 52390 | |
| 51792 | 52391 | /** |
| 51793 | - * @return stdClass | |
| 51794 | 52392 | * @throws Exception |
| 52393 | + * @return stdClass | |
| 51795 | 52394 | */ |
| 51796 | - public function to(): stdClass { | |
| 51797 | - $out = new stdClass(); | |
| 51798 | - $out->{'union'} = $this->toUnion(); | |
| 51799 | - return $out; | |
| 52395 | + public function toUsing(): stdClass { | |
| 52396 | + if (Obj6::validateUsing($this->using)) { | |
| 52397 | + return $this->using->to(); /*class*/ | |
| 52398 | + } | |
| 52399 | + throw new Exception('never get to this Obj6::using'); | |
| 51800 | 52400 | } |
| 51801 | 52401 | |
| 51802 | 52402 | /** |
| 51803 | - * @param stdClass $obj | |
| 51804 | - * @return Union | |
| 52403 | + * @param Using | |
| 52404 | + * @return bool | |
| 51805 | 52405 | * @throws Exception |
| 51806 | 52406 | */ |
| 51807 | - public static function from(stdClass $obj): Union { | |
| 51808 | - if (!property_exists($obj, 'union')) { | |
| 51809 | - throw new Exception("Missing required property"); | |
| 51810 | - } | |
| 51811 | - return new Union( | |
| 51812 | - Union::fromUnion($obj->{'union'}) | |
| 51813 | - ); | |
| 52407 | + public static function validateUsing(Using $value): bool { | |
| 52408 | + $value->validate(); | |
| 52409 | + return true; | |
| 51814 | 52410 | } |
| 51815 | 52411 | |
| 51816 | 52412 | /** |
| 51817 | - * @return Union | |
| 52413 | + * @throws Exception | |
| 52414 | + * @return Using | |
| 51818 | 52415 | */ |
| 51819 | - public static function sample(): Union { | |
| 51820 | - return new Union( | |
| 51821 | - Union::sampleUnion() | |
| 51822 | - ); | |
| 52416 | + public function getUsing(): Using { | |
| 52417 | + if (Obj6::validateUsing($this->using)) { | |
| 52418 | + return $this->using; | |
| 52419 | + } | |
| 52420 | + throw new Exception('never get to getUsing Obj6::using'); | |
| 51823 | 52421 | } |
| 51824 | -} | |
| 51825 | - | |
| 51826 | -// This is an autogenerated file:UnmarshalJSON | |
| 51827 | - | |
| 51828 | -class UnmarshalJSON { | |
| 51829 | - private int $unmarshalJSON; // json:UnmarshalJSON Required | |
| 51830 | 52422 | |
| 51831 | 52423 | /** |
| 51832 | - * @param int $unmarshalJSON | |
| 52424 | + * @return Using | |
| 51833 | 52425 | */ |
| 51834 | - public function __construct(int $unmarshalJSON) { | |
| 51835 | - $this->unmarshalJSON = $unmarshalJSON; | |
| 52426 | + public static function sampleUsing(): Using { | |
| 52427 | + return Using::sample(); /*39:using*/ | |
| 51836 | 52428 | } |
| 51837 | 52429 | |
| 51838 | 52430 | /** |
| 51839 | - * @param int $value | |
| 52431 | + * @param stdClass $value | |
| 51840 | 52432 | * @throws Exception |
| 51841 | - * @return int | |
| 52433 | + * @return Utf8JSONReader | |
| 51842 | 52434 | */ |
| 51843 | - public static function fromUnmarshalJSON(int $value): int { | |
| 51844 | - return $value; /*int*/ | |
| 52435 | + public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader { | |
| 52436 | + return Utf8JSONReader::from($value); /*class*/ | |
| 51845 | 52437 | } |
| 51846 | 52438 | |
| 51847 | 52439 | /** |
| 51848 | 52440 | * @throws Exception |
| 51849 | - * @return int | |
| 52441 | + * @return stdClass | |
| 51850 | 52442 | */ |
| 51851 | - public function toUnmarshalJSON(): int { | |
| 51852 | - if (UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON)) { | |
| 51853 | - return $this->unmarshalJSON; /*int*/ | |
| 52443 | + public function toUtf8JSONReader(): stdClass { | |
| 52444 | + if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) { | |
| 52445 | + return $this->utf8JSONReader->to(); /*class*/ | |
| 51854 | 52446 | } |
| 51855 | - throw new Exception('never get to this UnmarshalJSON::unmarshalJSON'); | |
| 52447 | + throw new Exception('never get to this Obj6::utf8JSONReader'); | |
| 51856 | 52448 | } |
| 51857 | 52449 | |
| 51858 | 52450 | /** |
| 51859 | - * @param int | |
| 52451 | + * @param Utf8JSONReader | |
| 51860 | 52452 | * @return bool |
| 51861 | 52453 | * @throws Exception |
| 51862 | 52454 | */ |
| 51863 | - public static function validateUnmarshalJSON(int $value): bool { | |
| 52455 | + public static function validateUtf8JSONReader(Utf8JSONReader $value): bool { | |
| 52456 | + $value->validate(); | |
| 51864 | 52457 | return true; |
| 51865 | 52458 | } |
| 51866 | 52459 | |
| 51867 | 52460 | /** |
| 51868 | 52461 | * @throws Exception |
| 51869 | - * @return int | |
| 52462 | + * @return Utf8JSONReader | |
| 51870 | 52463 | */ |
| 51871 | - public function getUnmarshalJSON(): int { | |
| 51872 | - if (UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON)) { | |
| 51873 | - return $this->unmarshalJSON; | |
| 52464 | + public function getUtf8JSONReader(): Utf8JSONReader { | |
| 52465 | + if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) { | |
| 52466 | + return $this->utf8JSONReader; | |
| 51874 | 52467 | } |
| 51875 | - throw new Exception('never get to getUnmarshalJSON UnmarshalJSON::unmarshalJSON'); | |
| 52468 | + throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader'); | |
| 51876 | 52469 | } |
| 51877 | 52470 | |
| 51878 | 52471 | /** |
| 51879 | - * @return int | |
| 52472 | + * @return Utf8JSONReader | |
| 51880 | 52473 | */ |
| 51881 | - public static function sampleUnmarshalJSON(): int { | |
| 51882 | - return 31; /*31:unmarshalJSON*/ | |
| 52474 | + public static function sampleUtf8JSONReader(): Utf8JSONReader { | |
| 52475 | + return Utf8JSONReader::sample(); /*40:utf8JSONReader*/ | |
| 51883 | 52476 | } |
| 51884 | 52477 | |
| 51885 | 52478 | /** |
| 52479 | + * @param stdClass $value | |
| 51886 | 52480 | * @throws Exception |
| 51887 | - * @return bool | |
| 52481 | + * @return Utf8JSONWriter | |
| 51888 | 52482 | */ |
| 51889 | - public function validate(): bool { | |
| 51890 | - return UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON); | |
| 52483 | + public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter { | |
| 52484 | + return Utf8JSONWriter::from($value); /*class*/ | |
| 51891 | 52485 | } |
| 51892 | 52486 | |
| 51893 | 52487 | /** |
| 51894 | - * @return stdClass | |
| 51895 | 52488 | * @throws Exception |
| 52489 | + * @return stdClass | |
| 51896 | 52490 | */ |
| 51897 | - public function to(): stdClass { | |
| 51898 | - $out = new stdClass(); | |
| 51899 | - $out->{'UnmarshalJSON'} = $this->toUnmarshalJSON(); | |
| 51900 | - return $out; | |
| 52491 | + public function toUtf8JSONWriter(): stdClass { | |
| 52492 | + if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52493 | + return $this->utf8JSONWriter->to(); /*class*/ | |
| 52494 | + } | |
| 52495 | + throw new Exception('never get to this Obj6::utf8JSONWriter'); | |
| 51901 | 52496 | } |
| 51902 | 52497 | |
| 51903 | 52498 | /** |
| 51904 | - * @param stdClass $obj | |
| 51905 | - * @return UnmarshalJSON | |
| 52499 | + * @param Utf8JSONWriter | |
| 52500 | + * @return bool | |
| 51906 | 52501 | * @throws Exception |
| 51907 | 52502 | */ |
| 51908 | - public static function from(stdClass $obj): UnmarshalJSON { | |
| 51909 | - if (!property_exists($obj, 'UnmarshalJSON')) { | |
| 51910 | - throw new Exception("Missing required property"); | |
| 51911 | - } | |
| 51912 | - return new UnmarshalJSON( | |
| 51913 | - UnmarshalJSON::fromUnmarshalJSON($obj->{'UnmarshalJSON'}) | |
| 51914 | - ); | |
| 52503 | + public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool { | |
| 52504 | + $value->validate(); | |
| 52505 | + return true; | |
| 51915 | 52506 | } |
| 51916 | 52507 | |
| 51917 | 52508 | /** |
| 51918 | - * @return UnmarshalJSON | |
| 52509 | + * @throws Exception | |
| 52510 | + * @return Utf8JSONWriter | |
| 51919 | 52511 | */ |
| 51920 | - public static function sample(): UnmarshalJSON { | |
| 51921 | - return new UnmarshalJSON( | |
| 51922 | - UnmarshalJSON::sampleUnmarshalJSON() | |
| 51923 | - ); | |
| 52512 | + public function getUtf8JSONWriter(): Utf8JSONWriter { | |
| 52513 | + if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52514 | + return $this->utf8JSONWriter; | |
| 52515 | + } | |
| 52516 | + throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter'); | |
| 51924 | 52517 | } |
| 51925 | -} | |
| 51926 | - | |
| 51927 | -// This is an autogenerated file:Unowned | |
| 51928 | - | |
| 51929 | -class Unowned { | |
| 51930 | - private int $unowned; // json:unowned Required | |
| 51931 | 52518 | |
| 51932 | 52519 | /** |
| 51933 | - * @param int $unowned | |
| 52520 | + * @return Utf8JSONWriter | |
| 51934 | 52521 | */ |
| 51935 | - public function __construct(int $unowned) { | |
| 51936 | - $this->unowned = $unowned; | |
| 52522 | + public static function sampleUtf8JSONWriter(): Utf8JSONWriter { | |
| 52523 | + return Utf8JSONWriter::sample(); /*41:utf8JSONWriter*/ | |
| 51937 | 52524 | } |
| 51938 | 52525 | |
| 51939 | 52526 | /** |
| 51940 | - * @param int $value | |
| 52527 | + * @param stdClass $value | |
| 51941 | 52528 | * @throws Exception |
| 51942 | - * @return int | |
| 52529 | + * @return UUID | |
| 51943 | 52530 | */ |
| 51944 | - public static function fromUnowned(int $value): int { | |
| 51945 | - return $value; /*int*/ | |
| 52531 | + public static function fromUUID(stdClass $value): UUID { | |
| 52532 | + return UUID::from($value); /*class*/ | |
| 51946 | 52533 | } |
| 51947 | 52534 | |
| 51948 | 52535 | /** |
| 51949 | 52536 | * @throws Exception |
| 51950 | - * @return int | |
| 52537 | + * @return stdClass | |
| 51951 | 52538 | */ |
| 51952 | - public function toUnowned(): int { | |
| 51953 | - if (Unowned::validateUnowned($this->unowned)) { | |
| 51954 | - return $this->unowned; /*int*/ | |
| 52539 | + public function toUUID(): stdClass { | |
| 52540 | + if (Obj6::validateUUID($this->uuid)) { | |
| 52541 | + return $this->uuid->to(); /*class*/ | |
| 51955 | 52542 | } |
| 51956 | - throw new Exception('never get to this Unowned::unowned'); | |
| 52543 | + throw new Exception('never get to this Obj6::uuid'); | |
| 51957 | 52544 | } |
| 51958 | 52545 | |
| 51959 | 52546 | /** |
| 51960 | - * @param int | |
| 52547 | + * @param UUID | |
| 51961 | 52548 | * @return bool |
| 51962 | 52549 | * @throws Exception |
| 51963 | 52550 | */ |
| 51964 | - public static function validateUnowned(int $value): bool { | |
| 52551 | + public static function validateUUID(UUID $value): bool { | |
| 52552 | + $value->validate(); | |
| 51965 | 52553 | return true; |
| 51966 | 52554 | } |
| 51967 | 52555 | |
| 51968 | 52556 | /** |
| 51969 | 52557 | * @throws Exception |
| 51970 | - * @return int | |
| 52558 | + * @return UUID | |
| 51971 | 52559 | */ |
| 51972 | - public function getUnowned(): int { | |
| 51973 | - if (Unowned::validateUnowned($this->unowned)) { | |
| 51974 | - return $this->unowned; | |
| 52560 | + public function getUUID(): UUID { | |
| 52561 | + if (Obj6::validateUUID($this->uuid)) { | |
| 52562 | + return $this->uuid; | |
| 51975 | 52563 | } |
| 51976 | - throw new Exception('never get to getUnowned Unowned::unowned'); | |
| 52564 | + throw new Exception('never get to getUUID Obj6::uuid'); | |
| 51977 | 52565 | } |
| 51978 | 52566 | |
| 51979 | 52567 | /** |
| 51980 | - * @return int | |
| 52568 | + * @return UUID | |
| 51981 | 52569 | */ |
| 51982 | - public static function sampleUnowned(): int { | |
| 51983 | - return 31; /*31:unowned*/ | |
| 52570 | + public static function sampleUUID(): UUID { | |
| 52571 | + return UUID::sample(); /*42:uuid*/ | |
| 51984 | 52572 | } |
| 51985 | 52573 | |
| 51986 | 52574 | /** |
| 52575 | + * @param stdClass $value | |
| 51987 | 52576 | * @throws Exception |
| 51988 | - * @return bool | |
| 52577 | + * @return VarClass | |
| 51989 | 52578 | */ |
| 51990 | - public function validate(): bool { | |
| 51991 | - return Unowned::validateUnowned($this->unowned); | |
| 52579 | + public static function fromVar(stdClass $value): VarClass { | |
| 52580 | + return VarClass::from($value); /*class*/ | |
| 51992 | 52581 | } |
| 51993 | 52582 | |
| 51994 | 52583 | /** |
| 51995 | - * @return stdClass | |
| 51996 | 52584 | * @throws Exception |
| 52585 | + * @return stdClass | |
| 51997 | 52586 | */ |
| 51998 | - public function to(): stdClass { | |
| 51999 | - $out = new stdClass(); | |
| 52000 | - $out->{'unowned'} = $this->toUnowned(); | |
| 52001 | - return $out; | |
| 52587 | + public function toVar(): stdClass { | |
| 52588 | + if (Obj6::validateVar($this->var)) { | |
| 52589 | + return $this->var->to(); /*class*/ | |
| 52590 | + } | |
| 52591 | + throw new Exception('never get to this Obj6::var'); | |
| 52002 | 52592 | } |
| 52003 | 52593 | |
| 52004 | 52594 | /** |
| 52005 | - * @param stdClass $obj | |
| 52006 | - * @return Unowned | |
| 52595 | + * @param VarClass | |
| 52596 | + * @return bool | |
| 52007 | 52597 | * @throws Exception |
| 52008 | 52598 | */ |
| 52009 | - public static function from(stdClass $obj): Unowned { | |
| 52010 | - if (!property_exists($obj, 'unowned')) { | |
| 52011 | - throw new Exception("Missing required property"); | |
| 52012 | - } | |
| 52013 | - return new Unowned( | |
| 52014 | - Unowned::fromUnowned($obj->{'unowned'}) | |
| 52015 | - ); | |
| 52599 | + public static function validateVar(VarClass $value): bool { | |
| 52600 | + $value->validate(); | |
| 52601 | + return true; | |
| 52016 | 52602 | } |
| 52017 | 52603 | |
| 52018 | 52604 | /** |
| 52019 | - * @return Unowned | |
| 52605 | + * @throws Exception | |
| 52606 | + * @return VarClass | |
| 52020 | 52607 | */ |
| 52021 | - public static function sample(): Unowned { | |
| 52022 | - return new Unowned( | |
| 52023 | - Unowned::sampleUnowned() | |
| 52024 | - ); | |
| 52608 | + public function getVar(): VarClass { | |
| 52609 | + if (Obj6::validateVar($this->var)) { | |
| 52610 | + return $this->var; | |
| 52611 | + } | |
| 52612 | + throw new Exception('never get to getVar Obj6::var'); | |
| 52025 | 52613 | } |
| 52026 | -} | |
| 52027 | - | |
| 52028 | -// This is an autogenerated file:Unsafe | |
| 52029 | - | |
| 52030 | -class Unsafe { | |
| 52031 | - private int $unsafe; // json:unsafe Required | |
| 52032 | 52614 | |
| 52033 | 52615 | /** |
| 52034 | - * @param int $unsafe | |
| 52616 | + * @return VarClass | |
| 52035 | 52617 | */ |
| 52036 | - public function __construct(int $unsafe) { | |
| 52037 | - $this->unsafe = $unsafe; | |
| 52618 | + public static function sampleVar(): VarClass { | |
| 52619 | + return VarClass::sample(); /*43:var*/ | |
| 52038 | 52620 | } |
| 52039 | 52621 | |
| 52040 | 52622 | /** |
| 52041 | - * @param int $value | |
| 52623 | + * @param stdClass $value | |
| 52042 | 52624 | * @throws Exception |
| 52043 | - * @return int | |
| 52625 | + * @return Virtual | |
| 52044 | 52626 | */ |
| 52045 | - public static function fromUnsafe(int $value): int { | |
| 52046 | - return $value; /*int*/ | |
| 52627 | + public static function fromVirtual(stdClass $value): Virtual { | |
| 52628 | + return Virtual::from($value); /*class*/ | |
| 52047 | 52629 | } |
| 52048 | 52630 | |
| 52049 | 52631 | /** |
| 52050 | 52632 | * @throws Exception |
| 52051 | - * @return int | |
| 52633 | + * @return stdClass | |
| 52052 | 52634 | */ |
| 52053 | - public function toUnsafe(): int { | |
| 52054 | - if (Unsafe::validateUnsafe($this->unsafe)) { | |
| 52055 | - return $this->unsafe; /*int*/ | |
| 52635 | + public function toVirtual(): stdClass { | |
| 52636 | + if (Obj6::validateVirtual($this->virtual)) { | |
| 52637 | + return $this->virtual->to(); /*class*/ | |
| 52056 | 52638 | } |
| 52057 | - throw new Exception('never get to this Unsafe::unsafe'); | |
| 52639 | + throw new Exception('never get to this Obj6::virtual'); | |
| 52058 | 52640 | } |
| 52059 | 52641 | |
| 52060 | 52642 | /** |
| 52061 | - * @param int | |
| 52643 | + * @param Virtual | |
| 52062 | 52644 | * @return bool |
| 52063 | 52645 | * @throws Exception |
| 52064 | 52646 | */ |
| 52065 | - public static function validateUnsafe(int $value): bool { | |
| 52647 | + public static function validateVirtual(Virtual $value): bool { | |
| 52648 | + $value->validate(); | |
| 52066 | 52649 | return true; |
| 52067 | 52650 | } |
| 52068 | 52651 | |
| 52069 | 52652 | /** |
| 52070 | 52653 | * @throws Exception |
| 52071 | - * @return int | |
| 52654 | + * @return Virtual | |
| 52072 | 52655 | */ |
| 52073 | - public function getUnsafe(): int { | |
| 52074 | - if (Unsafe::validateUnsafe($this->unsafe)) { | |
| 52075 | - return $this->unsafe; | |
| 52656 | + public function getVirtual(): Virtual { | |
| 52657 | + if (Obj6::validateVirtual($this->virtual)) { | |
| 52658 | + return $this->virtual; | |
| 52076 | 52659 | } |
| 52077 | - throw new Exception('never get to getUnsafe Unsafe::unsafe'); | |
| 52660 | + throw new Exception('never get to getVirtual Obj6::virtual'); | |
| 52078 | 52661 | } |
| 52079 | 52662 | |
| 52080 | 52663 | /** |
| 52081 | - * @return int | |
| 52664 | + * @return Virtual | |
| 52082 | 52665 | */ |
| 52083 | - public static function sampleUnsafe(): int { | |
| 52084 | - return 31; /*31:unsafe*/ | |
| 52666 | + public static function sampleVirtual(): Virtual { | |
| 52667 | + return Virtual::sample(); /*44:virtual*/ | |
| 52085 | 52668 | } |
| 52086 | 52669 | |
| 52087 | 52670 | /** |
| 52671 | + * @param stdClass $value | |
| 52088 | 52672 | * @throws Exception |
| 52089 | - * @return bool | |
| 52673 | + * @return VoidClass | |
| 52090 | 52674 | */ |
| 52091 | - public function validate(): bool { | |
| 52092 | - return Unsafe::validateUnsafe($this->unsafe); | |
| 52675 | + public static function fromVoid(stdClass $value): VoidClass { | |
| 52676 | + return VoidClass::from($value); /*class*/ | |
| 52093 | 52677 | } |
| 52094 | 52678 | |
| 52095 | 52679 | /** |
| 52096 | - * @return stdClass | |
| 52097 | 52680 | * @throws Exception |
| 52681 | + * @return stdClass | |
| 52098 | 52682 | */ |
| 52099 | - public function to(): stdClass { | |
| 52100 | - $out = new stdClass(); | |
| 52101 | - $out->{'unsafe'} = $this->toUnsafe(); | |
| 52102 | - return $out; | |
| 52683 | + public function toVoid(): stdClass { | |
| 52684 | + if (Obj6::validateVoid($this->void)) { | |
| 52685 | + return $this->void->to(); /*class*/ | |
| 52686 | + } | |
| 52687 | + throw new Exception('never get to this Obj6::void'); | |
| 52103 | 52688 | } |
| 52104 | 52689 | |
| 52105 | 52690 | /** |
| 52106 | - * @param stdClass $obj | |
| 52107 | - * @return Unsafe | |
| 52691 | + * @param VoidClass | |
| 52692 | + * @return bool | |
| 52108 | 52693 | * @throws Exception |
| 52109 | 52694 | */ |
| 52110 | - public static function from(stdClass $obj): Unsafe { | |
| 52111 | - if (!property_exists($obj, 'unsafe')) { | |
| 52112 | - throw new Exception("Missing required property"); | |
| 52113 | - } | |
| 52114 | - return new Unsafe( | |
| 52115 | - Unsafe::fromUnsafe($obj->{'unsafe'}) | |
| 52116 | - ); | |
| 52695 | + public static function validateVoid(VoidClass $value): bool { | |
| 52696 | + $value->validate(); | |
| 52697 | + return true; | |
| 52117 | 52698 | } |
| 52118 | 52699 | |
| 52119 | 52700 | /** |
| 52120 | - * @return Unsafe | |
| 52701 | + * @throws Exception | |
| 52702 | + * @return VoidClass | |
| 52121 | 52703 | */ |
| 52122 | - public static function sample(): Unsafe { | |
| 52123 | - return new Unsafe( | |
| 52124 | - Unsafe::sampleUnsafe() | |
| 52125 | - ); | |
| 52704 | + public function getVoid(): VoidClass { | |
| 52705 | + if (Obj6::validateVoid($this->void)) { | |
| 52706 | + return $this->void; | |
| 52707 | + } | |
| 52708 | + throw new Exception('never get to getVoid Obj6::void'); | |
| 52126 | 52709 | } |
| 52127 | -} | |
| 52128 | - | |
| 52129 | -// This is an autogenerated file:UseSerializers | |
| 52130 | - | |
| 52131 | -class UseSerializers { | |
| 52132 | - private int $useSerializers; // json:UseSerializers Required | |
| 52133 | 52710 | |
| 52134 | 52711 | /** |
| 52135 | - * @param int $useSerializers | |
| 52712 | + * @return VoidClass | |
| 52136 | 52713 | */ |
| 52137 | - public function __construct(int $useSerializers) { | |
| 52138 | - $this->useSerializers = $useSerializers; | |
| 52714 | + public static function sampleVoid(): VoidClass { | |
| 52715 | + return VoidClass::sample(); /*45:void*/ | |
| 52139 | 52716 | } |
| 52140 | 52717 | |
| 52141 | 52718 | /** |
| 52142 | - * @param int $value | |
| 52719 | + * @param stdClass $value | |
| 52143 | 52720 | * @throws Exception |
| 52144 | - * @return int | |
| 52721 | + * @return Volatile | |
| 52145 | 52722 | */ |
| 52146 | - public static function fromUseSerializers(int $value): int { | |
| 52147 | - return $value; /*int*/ | |
| 52723 | + public static function fromVolatile(stdClass $value): Volatile { | |
| 52724 | + return Volatile::from($value); /*class*/ | |
| 52148 | 52725 | } |
| 52149 | 52726 | |
| 52150 | 52727 | /** |
| 52151 | 52728 | * @throws Exception |
| 52152 | - * @return int | |
| 52729 | + * @return stdClass | |
| 52153 | 52730 | */ |
| 52154 | - public function toUseSerializers(): int { | |
| 52155 | - if (UseSerializers::validateUseSerializers($this->useSerializers)) { | |
| 52156 | - return $this->useSerializers; /*int*/ | |
| 52731 | + public function toVolatile(): stdClass { | |
| 52732 | + if (Obj6::validateVolatile($this->volatile)) { | |
| 52733 | + return $this->volatile->to(); /*class*/ | |
| 52157 | 52734 | } |
| 52158 | - throw new Exception('never get to this UseSerializers::useSerializers'); | |
| 52735 | + throw new Exception('never get to this Obj6::volatile'); | |
| 52159 | 52736 | } |
| 52160 | 52737 | |
| 52161 | 52738 | /** |
| 52162 | - * @param int | |
| 52739 | + * @param Volatile | |
| 52163 | 52740 | * @return bool |
| 52164 | 52741 | * @throws Exception |
| 52165 | 52742 | */ |
| 52166 | - public static function validateUseSerializers(int $value): bool { | |
| 52743 | + public static function validateVolatile(Volatile $value): bool { | |
| 52744 | + $value->validate(); | |
| 52167 | 52745 | return true; |
| 52168 | 52746 | } |
| 52169 | 52747 | |
| 52170 | 52748 | /** |
| 52171 | 52749 | * @throws Exception |
| 52172 | - * @return int | |
| 52750 | + * @return Volatile | |
| 52173 | 52751 | */ |
| 52174 | - public function getUseSerializers(): int { | |
| 52175 | - if (UseSerializers::validateUseSerializers($this->useSerializers)) { | |
| 52176 | - return $this->useSerializers; | |
| 52752 | + public function getVolatile(): Volatile { | |
| 52753 | + if (Obj6::validateVolatile($this->volatile)) { | |
| 52754 | + return $this->volatile; | |
| 52177 | 52755 | } |
| 52178 | - throw new Exception('never get to getUseSerializers UseSerializers::useSerializers'); | |
| 52179 | - } | |
| 52180 | - | |
| 52181 | - /** | |
| 52182 | - * @return int | |
| 52183 | - */ | |
| 52184 | - public static function sampleUseSerializers(): int { | |
| 52185 | - return 31; /*31:useSerializers*/ | |
| 52756 | + throw new Exception('never get to getVolatile Obj6::volatile'); | |
| 52186 | 52757 | } |
| 52187 | 52758 | |
| 52188 | 52759 | /** |
| 52189 | - * @throws Exception | |
| 52190 | - * @return bool | |
| 52760 | + * @return Volatile | |
| 52191 | 52761 | */ |
| 52192 | - public function validate(): bool { | |
| 52193 | - return UseSerializers::validateUseSerializers($this->useSerializers); | |
| 52762 | + public static function sampleVolatile(): Volatile { | |
| 52763 | + return Volatile::sample(); /*46:volatile*/ | |
| 52194 | 52764 | } |
| 52195 | 52765 | |
| 52196 | 52766 | /** |
| 52197 | - * @return stdClass | |
| 52767 | + * @param stdClass $value | |
| 52198 | 52768 | * @throws Exception |
| 52769 | + * @return WcharT | |
| 52199 | 52770 | */ |
| 52200 | - public function to(): stdClass { | |
| 52201 | - $out = new stdClass(); | |
| 52202 | - $out->{'UseSerializers'} = $this->toUseSerializers(); | |
| 52203 | - return $out; | |
| 52771 | + public static function fromWcharT(stdClass $value): WcharT { | |
| 52772 | + return WcharT::from($value); /*class*/ | |
| 52204 | 52773 | } |
| 52205 | 52774 | |
| 52206 | 52775 | /** |
| 52207 | - * @param stdClass $obj | |
| 52208 | - * @return UseSerializers | |
| 52209 | 52776 | * @throws Exception |
| 52777 | + * @return stdClass | |
| 52210 | 52778 | */ |
| 52211 | - public static function from(stdClass $obj): UseSerializers { | |
| 52212 | - if (!property_exists($obj, 'UseSerializers')) { | |
| 52213 | - throw new Exception("Missing required property"); | |
| 52779 | + public function toWcharT(): stdClass { | |
| 52780 | + if (Obj6::validateWcharT($this->wcharT)) { | |
| 52781 | + return $this->wcharT->to(); /*class*/ | |
| 52214 | 52782 | } |
| 52215 | - return new UseSerializers( | |
| 52216 | - UseSerializers::fromUseSerializers($obj->{'UseSerializers'}) | |
| 52217 | - ); | |
| 52218 | - } | |
| 52219 | - | |
| 52220 | - /** | |
| 52221 | - * @return UseSerializers | |
| 52222 | - */ | |
| 52223 | - public static function sample(): UseSerializers { | |
| 52224 | - return new UseSerializers( | |
| 52225 | - UseSerializers::sampleUseSerializers() | |
| 52226 | - ); | |
| 52783 | + throw new Exception('never get to this Obj6::wcharT'); | |
| 52227 | 52784 | } |
| 52228 | -} | |
| 52229 | - | |
| 52230 | -// This is an autogenerated file:Obj6 | |
| 52231 | - | |
| 52232 | -class Obj6 { | |
| 52233 | - private int $dummy; // json:dummy Required | |
| 52234 | - private Unsigned $unsigned; // json:unsigned Required | |
| 52235 | - private Ushort $ushort; // json:ushort Required | |
| 52236 | - private Using $using; // json:using Required | |
| 52237 | - private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required | |
| 52238 | - private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required | |
| 52239 | - private UUID $uuid; // json:UUID Required | |
| 52240 | - private VarClass $var; // json:var Required | |
| 52241 | - private Virtual $virtual; // json:virtual Required | |
| 52242 | - private VoidClass $void; // json:void Required | |
| 52243 | - private Volatile $volatile; // json:volatile Required | |
| 52244 | - private WcharT $wcharT; // json:wchar_t Required | |
| 52245 | - private Weak $weak; // json:weak Required | |
| 52246 | - private Where $where; // json:where Required | |
| 52247 | - private WhileClass $while; // json:while Required | |
| 52248 | - private WillSet $willSet; // json:willSet Required | |
| 52249 | - private With $with; // json:with Required | |
| 52250 | - private XorClass $xor; // json:xor Required | |
| 52251 | - private XorEq $xorEq; // json:xor_eq Required | |
| 52252 | - private Yes $yes; // json:YES Required | |
| 52253 | - private YieldClass $yield; // json:yield Required | |
| 52254 | 52785 | |
| 52255 | 52786 | /** |
| 52256 | - * @param int $dummy | |
| 52257 | - * @param Unsigned $unsigned | |
| 52258 | - * @param Ushort $ushort | |
| 52259 | - * @param Using $using | |
| 52260 | - * @param Utf8JSONReader $utf8JSONReader | |
| 52261 | - * @param Utf8JSONWriter $utf8JSONWriter | |
| 52262 | - * @param UUID $uuid | |
| 52263 | - * @param VarClass $var | |
| 52264 | - * @param Virtual $virtual | |
| 52265 | - * @param VoidClass $void | |
| 52266 | - * @param Volatile $volatile | |
| 52267 | - * @param WcharT $wcharT | |
| 52268 | - * @param Weak $weak | |
| 52269 | - * @param Where $where | |
| 52270 | - * @param WhileClass $while | |
| 52271 | - * @param WillSet $willSet | |
| 52272 | - * @param With $with | |
| 52273 | - * @param XorClass $xor | |
| 52274 | - * @param XorEq $xorEq | |
| 52275 | - * @param Yes $yes | |
| 52276 | - * @param YieldClass $yield | |
| 52787 | + * @param WcharT | |
| 52788 | + * @return bool | |
| 52789 | + * @throws Exception | |
| 52277 | 52790 | */ |
| 52278 | - public function __construct(int $dummy, Unsigned $unsigned, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) { | |
| 52279 | - $this->dummy = $dummy; | |
| 52280 | - $this->unsigned = $unsigned; | |
| 52281 | - $this->ushort = $ushort; | |
| 52282 | - $this->using = $using; | |
| 52283 | - $this->utf8JSONReader = $utf8JSONReader; | |
| 52284 | - $this->utf8JSONWriter = $utf8JSONWriter; | |
| 52285 | - $this->uuid = $uuid; | |
| 52286 | - $this->var = $var; | |
| 52287 | - $this->virtual = $virtual; | |
| 52288 | - $this->void = $void; | |
| 52289 | - $this->volatile = $volatile; | |
| 52290 | - $this->wcharT = $wcharT; | |
| 52291 | - $this->weak = $weak; | |
| 52292 | - $this->where = $where; | |
| 52293 | - $this->while = $while; | |
| 52294 | - $this->willSet = $willSet; | |
| 52295 | - $this->with = $with; | |
| 52296 | - $this->xor = $xor; | |
| 52297 | - $this->xorEq = $xorEq; | |
| 52298 | - $this->yes = $yes; | |
| 52299 | - $this->yield = $yield; | |
| 52791 | + public static function validateWcharT(WcharT $value): bool { | |
| 52792 | + $value->validate(); | |
| 52793 | + return true; | |
| 52300 | 52794 | } |
| 52301 | 52795 | |
| 52302 | 52796 | /** |
| 52303 | - * @param int $value | |
| 52304 | 52797 | * @throws Exception |
| 52305 | - * @return int | |
| 52798 | + * @return WcharT | |
| 52306 | 52799 | */ |
| 52307 | - public static function fromDummy(int $value): int { | |
| 52308 | - return $value; /*int*/ | |
| 52800 | + public function getWcharT(): WcharT { | |
| 52801 | + if (Obj6::validateWcharT($this->wcharT)) { | |
| 52802 | + return $this->wcharT; | |
| 52803 | + } | |
| 52804 | + throw new Exception('never get to getWcharT Obj6::wcharT'); | |
| 52805 | + } | |
| 52806 | + | |
| 52807 | + /** | |
| 52808 | + * @return WcharT | |
| 52809 | + */ | |
| 52810 | + public static function sampleWcharT(): WcharT { | |
| 52811 | + return WcharT::sample(); /*47:wcharT*/ | |
| 52309 | 52812 | } |
| 52310 | 52813 | |
| 52311 | 52814 | /** |
| 52815 | + * @param stdClass $value | |
| 52312 | 52816 | * @throws Exception |
| 52313 | - * @return int | |
| 52817 | + * @return Weak | |
| 52314 | 52818 | */ |
| 52315 | - public function toDummy(): int { | |
| 52316 | - if (Obj6::validateDummy($this->dummy)) { | |
| 52317 | - return $this->dummy; /*int*/ | |
| 52819 | + public static function fromWeak(stdClass $value): Weak { | |
| 52820 | + return Weak::from($value); /*class*/ | |
| 52821 | + } | |
| 52822 | + | |
| 52823 | + /** | |
| 52824 | + * @throws Exception | |
| 52825 | + * @return stdClass | |
| 52826 | + */ | |
| 52827 | + public function toWeak(): stdClass { | |
| 52828 | + if (Obj6::validateWeak($this->weak)) { | |
| 52829 | + return $this->weak->to(); /*class*/ | |
| 52318 | 52830 | } |
| 52319 | - throw new Exception('never get to this Obj6::dummy'); | |
| 52831 | + throw new Exception('never get to this Obj6::weak'); | |
| 52320 | 52832 | } |
| 52321 | 52833 | |
| 52322 | 52834 | /** |
| 52323 | - * @param int | |
| 52835 | + * @param Weak | |
| 52324 | 52836 | * @return bool |
| 52325 | 52837 | * @throws Exception |
| 52326 | 52838 | */ |
| 52327 | - public static function validateDummy(int $value): bool { | |
| 52839 | + public static function validateWeak(Weak $value): bool { | |
| 52840 | + $value->validate(); | |
| 52328 | 52841 | return true; |
| 52329 | 52842 | } |
| 52330 | 52843 | |
| 52331 | 52844 | /** |
| 52332 | 52845 | * @throws Exception |
| 52333 | - * @return int | |
| 52846 | + * @return Weak | |
| 52334 | 52847 | */ |
| 52335 | - public function getDummy(): int { | |
| 52336 | - if (Obj6::validateDummy($this->dummy)) { | |
| 52337 | - return $this->dummy; | |
| 52848 | + public function getWeak(): Weak { | |
| 52849 | + if (Obj6::validateWeak($this->weak)) { | |
| 52850 | + return $this->weak; | |
| 52338 | 52851 | } |
| 52339 | - throw new Exception('never get to getDummy Obj6::dummy'); | |
| 52852 | + throw new Exception('never get to getWeak Obj6::weak'); | |
| 52340 | 52853 | } |
| 52341 | 52854 | |
| 52342 | 52855 | /** |
| 52343 | - * @return int | |
| 52856 | + * @return Weak | |
| 52344 | 52857 | */ |
| 52345 | - public static function sampleDummy(): int { | |
| 52346 | - return 31; /*31:dummy*/ | |
| 52858 | + public static function sampleWeak(): Weak { | |
| 52859 | + return Weak::sample(); /*48:weak*/ | |
| 52347 | 52860 | } |
| 52348 | 52861 | |
| 52349 | 52862 | /** |
| 52350 | 52863 | * @param stdClass $value |
| 52351 | 52864 | * @throws Exception |
| 52352 | - * @return Unsigned | |
| 52865 | + * @return Where | |
| 52353 | 52866 | */ |
| 52354 | - public static function fromUnsigned(stdClass $value): Unsigned { | |
| 52355 | - return Unsigned::from($value); /*class*/ | |
| 52867 | + public static function fromWhere(stdClass $value): Where { | |
| 52868 | + return Where::from($value); /*class*/ | |
| 52356 | 52869 | } |
| 52357 | 52870 | |
| 52358 | 52871 | /** |
| 52359 | 52872 | * @throws Exception |
| 52360 | 52873 | * @return stdClass |
| 52361 | 52874 | */ |
| 52362 | - public function toUnsigned(): stdClass { | |
| 52363 | - if (Obj6::validateUnsigned($this->unsigned)) { | |
| 52364 | - return $this->unsigned->to(); /*class*/ | |
| 52875 | + public function toWhere(): stdClass { | |
| 52876 | + if (Obj6::validateWhere($this->where)) { | |
| 52877 | + return $this->where->to(); /*class*/ | |
| 52365 | 52878 | } |
| 52366 | - throw new Exception('never get to this Obj6::unsigned'); | |
| 52879 | + throw new Exception('never get to this Obj6::where'); | |
| 52367 | 52880 | } |
| 52368 | 52881 | |
| 52369 | 52882 | /** |
| 52370 | - * @param Unsigned | |
| 52883 | + * @param Where | |
| 52371 | 52884 | * @return bool |
| 52372 | 52885 | * @throws Exception |
| 52373 | 52886 | */ |
| 52374 | - public static function validateUnsigned(Unsigned $value): bool { | |
| 52887 | + public static function validateWhere(Where $value): bool { | |
| 52375 | 52888 | $value->validate(); |
| 52376 | 52889 | return true; |
| 52377 | 52890 | } |
| 52378 | 52891 | |
| 52379 | 52892 | /** |
| 52380 | 52893 | * @throws Exception |
| 52381 | - * @return Unsigned | |
| 52894 | + * @return Where | |
| 52382 | 52895 | */ |
| 52383 | - public function getUnsigned(): Unsigned { | |
| 52384 | - if (Obj6::validateUnsigned($this->unsigned)) { | |
| 52385 | - return $this->unsigned; | |
| 52896 | + public function getWhere(): Where { | |
| 52897 | + if (Obj6::validateWhere($this->where)) { | |
| 52898 | + return $this->where; | |
| 52386 | 52899 | } |
| 52387 | - throw new Exception('never get to getUnsigned Obj6::unsigned'); | |
| 52900 | + throw new Exception('never get to getWhere Obj6::where'); | |
| 52388 | 52901 | } |
| 52389 | 52902 | |
| 52390 | 52903 | /** |
| 52391 | - * @return Unsigned | |
| 52904 | + * @return Where | |
| 52392 | 52905 | */ |
| 52393 | - public static function sampleUnsigned(): Unsigned { | |
| 52394 | - return Unsigned::sample(); /*32:unsigned*/ | |
| 52906 | + public static function sampleWhere(): Where { | |
| 52907 | + return Where::sample(); /*49:where*/ | |
| 52395 | 52908 | } |
| 52396 | 52909 | |
| 52397 | 52910 | /** |
| 52398 | 52911 | * @param stdClass $value |
| 52399 | 52912 | * @throws Exception |
| 52400 | - * @return Ushort | |
| 52913 | + * @return WhileClass | |
| 52401 | 52914 | */ |
| 52402 | - public static function fromUshort(stdClass $value): Ushort { | |
| 52403 | - return Ushort::from($value); /*class*/ | |
| 52915 | + public static function fromWhile(stdClass $value): WhileClass { | |
| 52916 | + return WhileClass::from($value); /*class*/ | |
| 52404 | 52917 | } |
| 52405 | 52918 | |
| 52406 | 52919 | /** |
| 52407 | 52920 | * @throws Exception |
| 52408 | 52921 | * @return stdClass |
| 52409 | 52922 | */ |
| 52410 | - public function toUshort(): stdClass { | |
| 52411 | - if (Obj6::validateUshort($this->ushort)) { | |
| 52412 | - return $this->ushort->to(); /*class*/ | |
| 52923 | + public function toWhile(): stdClass { | |
| 52924 | + if (Obj6::validateWhile($this->while)) { | |
| 52925 | + return $this->while->to(); /*class*/ | |
| 52413 | 52926 | } |
| 52414 | - throw new Exception('never get to this Obj6::ushort'); | |
| 52927 | + throw new Exception('never get to this Obj6::while'); | |
| 52415 | 52928 | } |
| 52416 | 52929 | |
| 52417 | 52930 | /** |
| 52418 | - * @param Ushort | |
| 52931 | + * @param WhileClass | |
| 52419 | 52932 | * @return bool |
| 52420 | 52933 | * @throws Exception |
| 52421 | 52934 | */ |
| 52422 | - public static function validateUshort(Ushort $value): bool { | |
| 52935 | + public static function validateWhile(WhileClass $value): bool { | |
| 52423 | 52936 | $value->validate(); |
| 52424 | 52937 | return true; |
| 52425 | 52938 | } |
| 52426 | 52939 | |
| 52427 | 52940 | /** |
| 52428 | 52941 | * @throws Exception |
| 52429 | - * @return Ushort | |
| 52942 | + * @return WhileClass | |
| 52430 | 52943 | */ |
| 52431 | - public function getUshort(): Ushort { | |
| 52432 | - if (Obj6::validateUshort($this->ushort)) { | |
| 52433 | - return $this->ushort; | |
| 52944 | + public function getWhile(): WhileClass { | |
| 52945 | + if (Obj6::validateWhile($this->while)) { | |
| 52946 | + return $this->while; | |
| 52434 | 52947 | } |
| 52435 | - throw new Exception('never get to getUshort Obj6::ushort'); | |
| 52948 | + throw new Exception('never get to getWhile Obj6::while'); | |
| 52436 | 52949 | } |
| 52437 | 52950 | |
| 52438 | 52951 | /** |
| 52439 | - * @return Ushort | |
| 52952 | + * @return WhileClass | |
| 52440 | 52953 | */ |
| 52441 | - public static function sampleUshort(): Ushort { | |
| 52442 | - return Ushort::sample(); /*33:ushort*/ | |
| 52954 | + public static function sampleWhile(): WhileClass { | |
| 52955 | + return WhileClass::sample(); /*50:while*/ | |
| 52443 | 52956 | } |
| 52444 | 52957 | |
| 52445 | 52958 | /** |
| 52446 | 52959 | * @param stdClass $value |
| 52447 | 52960 | * @throws Exception |
| 52448 | - * @return Using | |
| 52961 | + * @return WillSet | |
| 52449 | 52962 | */ |
| 52450 | - public static function fromUsing(stdClass $value): Using { | |
| 52451 | - return Using::from($value); /*class*/ | |
| 52963 | + public static function fromWillSet(stdClass $value): WillSet { | |
| 52964 | + return WillSet::from($value); /*class*/ | |
| 52452 | 52965 | } |
| 52453 | 52966 | |
| 52454 | 52967 | /** |
| 52455 | 52968 | * @throws Exception |
| 52456 | 52969 | * @return stdClass |
| 52457 | 52970 | */ |
| 52458 | - public function toUsing(): stdClass { | |
| 52459 | - if (Obj6::validateUsing($this->using)) { | |
| 52460 | - return $this->using->to(); /*class*/ | |
| 52971 | + public function toWillSet(): stdClass { | |
| 52972 | + if (Obj6::validateWillSet($this->willSet)) { | |
| 52973 | + return $this->willSet->to(); /*class*/ | |
| 52461 | 52974 | } |
| 52462 | - throw new Exception('never get to this Obj6::using'); | |
| 52975 | + throw new Exception('never get to this Obj6::willSet'); | |
| 52463 | 52976 | } |
| 52464 | 52977 | |
| 52465 | 52978 | /** |
| 52466 | - * @param Using | |
| 52979 | + * @param WillSet | |
| 52467 | 52980 | * @return bool |
| 52468 | 52981 | * @throws Exception |
| 52469 | 52982 | */ |
| 52470 | - public static function validateUsing(Using $value): bool { | |
| 52983 | + public static function validateWillSet(WillSet $value): bool { | |
| 52471 | 52984 | $value->validate(); |
| 52472 | 52985 | return true; |
| 52473 | 52986 | } |
| 52474 | 52987 | |
| 52475 | 52988 | /** |
| 52476 | 52989 | * @throws Exception |
| 52477 | - * @return Using | |
| 52990 | + * @return WillSet | |
| 52478 | 52991 | */ |
| 52479 | - public function getUsing(): Using { | |
| 52480 | - if (Obj6::validateUsing($this->using)) { | |
| 52481 | - return $this->using; | |
| 52992 | + public function getWillSet(): WillSet { | |
| 52993 | + if (Obj6::validateWillSet($this->willSet)) { | |
| 52994 | + return $this->willSet; | |
| 52482 | 52995 | } |
| 52483 | - throw new Exception('never get to getUsing Obj6::using'); | |
| 52996 | + throw new Exception('never get to getWillSet Obj6::willSet'); | |
| 52484 | 52997 | } |
| 52485 | 52998 | |
| 52486 | 52999 | /** |
| 52487 | - * @return Using | |
| 53000 | + * @return WillSet | |
| 52488 | 53001 | */ |
| 52489 | - public static function sampleUsing(): Using { | |
| 52490 | - return Using::sample(); /*34:using*/ | |
| 53002 | + public static function sampleWillSet(): WillSet { | |
| 53003 | + return WillSet::sample(); /*51:willSet*/ | |
| 52491 | 53004 | } |
| 52492 | 53005 | |
| 52493 | 53006 | /** |
| 52494 | 53007 | * @param stdClass $value |
| 52495 | 53008 | * @throws Exception |
| 52496 | - * @return Utf8JSONReader | |
| 53009 | + * @return With | |
| 52497 | 53010 | */ |
| 52498 | - public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader { | |
| 52499 | - return Utf8JSONReader::from($value); /*class*/ | |
| 53011 | + public static function fromWith(stdClass $value): With { | |
| 53012 | + return With::from($value); /*class*/ | |
| 52500 | 53013 | } |
| 52501 | 53014 | |
| 52502 | 53015 | /** |
| 52503 | 53016 | * @throws Exception |
| 52504 | 53017 | * @return stdClass |
| 52505 | 53018 | */ |
| 52506 | - public function toUtf8JSONReader(): stdClass { | |
| 52507 | - if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) { | |
| 52508 | - return $this->utf8JSONReader->to(); /*class*/ | |
| 53019 | + public function toWith(): stdClass { | |
| 53020 | + if (Obj6::validateWith($this->with)) { | |
| 53021 | + return $this->with->to(); /*class*/ | |
| 52509 | 53022 | } |
| 52510 | - throw new Exception('never get to this Obj6::utf8JSONReader'); | |
| 53023 | + throw new Exception('never get to this Obj6::with'); | |
| 52511 | 53024 | } |
| 52512 | 53025 | |
| 52513 | 53026 | /** |
| 52514 | - * @param Utf8JSONReader | |
| 53027 | + * @param With | |
| 52515 | 53028 | * @return bool |
| 52516 | 53029 | * @throws Exception |
| 52517 | 53030 | */ |
| 52518 | - public static function validateUtf8JSONReader(Utf8JSONReader $value): bool { | |
| 53031 | + public static function validateWith(With $value): bool { | |
| 52519 | 53032 | $value->validate(); |
| 52520 | 53033 | return true; |
| 52521 | 53034 | } |
| 52522 | 53035 | |
| 52523 | 53036 | /** |
| 52524 | 53037 | * @throws Exception |
| 52525 | - * @return Utf8JSONReader | |
| 53038 | + * @return With | |
| 52526 | 53039 | */ |
| 52527 | - public function getUtf8JSONReader(): Utf8JSONReader { | |
| 52528 | - if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) { | |
| 52529 | - return $this->utf8JSONReader; | |
| 53040 | + public function getWith(): With { | |
| 53041 | + if (Obj6::validateWith($this->with)) { | |
| 53042 | + return $this->with; | |
| 52530 | 53043 | } |
| 52531 | - throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader'); | |
| 53044 | + throw new Exception('never get to getWith Obj6::with'); | |
| 52532 | 53045 | } |
| 52533 | 53046 | |
| 52534 | 53047 | /** |
| 52535 | - * @return Utf8JSONReader | |
| 53048 | + * @return With | |
| 52536 | 53049 | */ |
| 52537 | - public static function sampleUtf8JSONReader(): Utf8JSONReader { | |
| 52538 | - return Utf8JSONReader::sample(); /*35:utf8JSONReader*/ | |
| 53050 | + public static function sampleWith(): With { | |
| 53051 | + return With::sample(); /*52:with*/ | |
| 52539 | 53052 | } |
| 52540 | 53053 | |
| 52541 | 53054 | /** |
| 52542 | 53055 | * @param stdClass $value |
| 52543 | 53056 | * @throws Exception |
| 52544 | - * @return Utf8JSONWriter | |
| 53057 | + * @return XorClass | |
| 52545 | 53058 | */ |
| 52546 | - public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter { | |
| 52547 | - return Utf8JSONWriter::from($value); /*class*/ | |
| 53059 | + public static function fromXor(stdClass $value): XorClass { | |
| 53060 | + return XorClass::from($value); /*class*/ | |
| 52548 | 53061 | } |
| 52549 | 53062 | |
| 52550 | 53063 | /** |
| 52551 | 53064 | * @throws Exception |
| 52552 | 53065 | * @return stdClass |
| 52553 | 53066 | */ |
| 52554 | - public function toUtf8JSONWriter(): stdClass { | |
| 52555 | - if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52556 | - return $this->utf8JSONWriter->to(); /*class*/ | |
| 53067 | + public function toXor(): stdClass { | |
| 53068 | + if (Obj6::validateXor($this->xor)) { | |
| 53069 | + return $this->xor->to(); /*class*/ | |
| 52557 | 53070 | } |
| 52558 | - throw new Exception('never get to this Obj6::utf8JSONWriter'); | |
| 53071 | + throw new Exception('never get to this Obj6::xor'); | |
| 52559 | 53072 | } |
| 52560 | 53073 | |
| 52561 | 53074 | /** |
| 52562 | - * @param Utf8JSONWriter | |
| 53075 | + * @param XorClass | |
| 52563 | 53076 | * @return bool |
| 52564 | 53077 | * @throws Exception |
| 52565 | 53078 | */ |
| 52566 | - public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool { | |
| 53079 | + public static function validateXor(XorClass $value): bool { | |
| 52567 | 53080 | $value->validate(); |
| 52568 | 53081 | return true; |
| 52569 | 53082 | } |
| 52570 | 53083 | |
| 52571 | 53084 | /** |
| 52572 | 53085 | * @throws Exception |
| 52573 | - * @return Utf8JSONWriter | |
| 53086 | + * @return XorClass | |
| 52574 | 53087 | */ |
| 52575 | - public function getUtf8JSONWriter(): Utf8JSONWriter { | |
| 52576 | - if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52577 | - return $this->utf8JSONWriter; | |
| 53088 | + public function getXor(): XorClass { | |
| 53089 | + if (Obj6::validateXor($this->xor)) { | |
| 53090 | + return $this->xor; | |
| 52578 | 53091 | } |
| 52579 | - throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter'); | |
| 53092 | + throw new Exception('never get to getXor Obj6::xor'); | |
| 52580 | 53093 | } |
| 52581 | 53094 | |
| 52582 | 53095 | /** |
| 52583 | - * @return Utf8JSONWriter | |
| 53096 | + * @return XorClass | |
| 52584 | 53097 | */ |
| 52585 | - public static function sampleUtf8JSONWriter(): Utf8JSONWriter { | |
| 52586 | - return Utf8JSONWriter::sample(); /*36:utf8JSONWriter*/ | |
| 53098 | + public static function sampleXor(): XorClass { | |
| 53099 | + return XorClass::sample(); /*53:xor*/ | |
| 52587 | 53100 | } |
| 52588 | 53101 | |
| 52589 | 53102 | /** |
| 52590 | 53103 | * @param stdClass $value |
| 52591 | 53104 | * @throws Exception |
| 52592 | - * @return UUID | |
| 53105 | + * @return XorEq | |
| 52593 | 53106 | */ |
| 52594 | - public static function fromUUID(stdClass $value): UUID { | |
| 52595 | - return UUID::from($value); /*class*/ | |
| 53107 | + public static function fromXorEq(stdClass $value): XorEq { | |
| 53108 | + return XorEq::from($value); /*class*/ | |
| 52596 | 53109 | } |
| 52597 | 53110 | |
| 52598 | 53111 | /** |
| 52599 | 53112 | * @throws Exception |
| 52600 | 53113 | * @return stdClass |
| 52601 | 53114 | */ |
| 52602 | - public function toUUID(): stdClass { | |
| 52603 | - if (Obj6::validateUUID($this->uuid)) { | |
| 52604 | - return $this->uuid->to(); /*class*/ | |
| 53115 | + public function toXorEq(): stdClass { | |
| 53116 | + if (Obj6::validateXorEq($this->xorEq)) { | |
| 53117 | + return $this->xorEq->to(); /*class*/ | |
| 52605 | 53118 | } |
| 52606 | - throw new Exception('never get to this Obj6::uuid'); | |
| 53119 | + throw new Exception('never get to this Obj6::xorEq'); | |
| 52607 | 53120 | } |
| 52608 | 53121 | |
| 52609 | 53122 | /** |
| 52610 | - * @param UUID | |
| 53123 | + * @param XorEq | |
| 52611 | 53124 | * @return bool |
| 52612 | 53125 | * @throws Exception |
| 52613 | 53126 | */ |
| 52614 | - public static function validateUUID(UUID $value): bool { | |
| 53127 | + public static function validateXorEq(XorEq $value): bool { | |
| 52615 | 53128 | $value->validate(); |
| 52616 | 53129 | return true; |
| 52617 | 53130 | } |
| 52618 | 53131 | |
| 52619 | 53132 | /** |
| 52620 | 53133 | * @throws Exception |
| 52621 | - * @return UUID | |
| 53134 | + * @return XorEq | |
| 52622 | 53135 | */ |
| 52623 | - public function getUUID(): UUID { | |
| 52624 | - if (Obj6::validateUUID($this->uuid)) { | |
| 52625 | - return $this->uuid; | |
| 53136 | + public function getXorEq(): XorEq { | |
| 53137 | + if (Obj6::validateXorEq($this->xorEq)) { | |
| 53138 | + return $this->xorEq; | |
| 52626 | 53139 | } |
| 52627 | - throw new Exception('never get to getUUID Obj6::uuid'); | |
| 53140 | + throw new Exception('never get to getXorEq Obj6::xorEq'); | |
| 52628 | 53141 | } |
| 52629 | 53142 | |
| 52630 | 53143 | /** |
| 52631 | - * @return UUID | |
| 53144 | + * @return XorEq | |
| 52632 | 53145 | */ |
| 52633 | - public static function sampleUUID(): UUID { | |
| 52634 | - return UUID::sample(); /*37:uuid*/ | |
| 53146 | + public static function sampleXorEq(): XorEq { | |
| 53147 | + return XorEq::sample(); /*54:xorEq*/ | |
| 52635 | 53148 | } |
| 52636 | 53149 | |
| 52637 | 53150 | /** |
| 52638 | 53151 | * @param stdClass $value |
| 52639 | 53152 | * @throws Exception |
| 52640 | - * @return VarClass | |
| 53153 | + * @return Yes | |
| 52641 | 53154 | */ |
| 52642 | - public static function fromVar(stdClass $value): VarClass { | |
| 52643 | - return VarClass::from($value); /*class*/ | |
| 53155 | + public static function fromYes(stdClass $value): Yes { | |
| 53156 | + return Yes::from($value); /*class*/ | |
| 52644 | 53157 | } |
| 52645 | 53158 | |
| 52646 | 53159 | /** |
| 52647 | 53160 | * @throws Exception |
| 52648 | 53161 | * @return stdClass |
| 52649 | 53162 | */ |
| 52650 | - public function toVar(): stdClass { | |
| 52651 | - if (Obj6::validateVar($this->var)) { | |
| 52652 | - return $this->var->to(); /*class*/ | |
| 53163 | + public function toYes(): stdClass { | |
| 53164 | + if (Obj6::validateYes($this->yes)) { | |
| 53165 | + return $this->yes->to(); /*class*/ | |
| 52653 | 53166 | } |
| 52654 | - throw new Exception('never get to this Obj6::var'); | |
| 53167 | + throw new Exception('never get to this Obj6::yes'); | |
| 52655 | 53168 | } |
| 52656 | 53169 | |
| 52657 | 53170 | /** |
| 52658 | - * @param VarClass | |
| 53171 | + * @param Yes | |
| 52659 | 53172 | * @return bool |
| 52660 | 53173 | * @throws Exception |
| 52661 | 53174 | */ |
| 52662 | - public static function validateVar(VarClass $value): bool { | |
| 53175 | + public static function validateYes(Yes $value): bool { | |
| 52663 | 53176 | $value->validate(); |
| 52664 | 53177 | return true; |
| 52665 | 53178 | } |
| 52666 | 53179 | |
| 52667 | 53180 | /** |
| 52668 | 53181 | * @throws Exception |
| 52669 | - * @return VarClass | |
| 53182 | + * @return Yes | |
| 52670 | 53183 | */ |
| 52671 | - public function getVar(): VarClass { | |
| 52672 | - if (Obj6::validateVar($this->var)) { | |
| 52673 | - return $this->var; | |
| 53184 | + public function getYes(): Yes { | |
| 53185 | + if (Obj6::validateYes($this->yes)) { | |
| 53186 | + return $this->yes; | |
| 52674 | 53187 | } |
| 52675 | - throw new Exception('never get to getVar Obj6::var'); | |
| 53188 | + throw new Exception('never get to getYes Obj6::yes'); | |
| 52676 | 53189 | } |
| 52677 | 53190 | |
| 52678 | 53191 | /** |
| 52679 | - * @return VarClass | |
| 53192 | + * @return Yes | |
| 52680 | 53193 | */ |
| 52681 | - public static function sampleVar(): VarClass { | |
| 52682 | - return VarClass::sample(); /*38:var*/ | |
| 53194 | + public static function sampleYes(): Yes { | |
| 53195 | + return Yes::sample(); /*55:yes*/ | |
| 52683 | 53196 | } |
| 52684 | 53197 | |
| 52685 | 53198 | /** |
| 52686 | 53199 | * @param stdClass $value |
| 52687 | 53200 | * @throws Exception |
| 52688 | - * @return Virtual | |
| 53201 | + * @return YieldClass | |
| 52689 | 53202 | */ |
| 52690 | - public static function fromVirtual(stdClass $value): Virtual { | |
| 52691 | - return Virtual::from($value); /*class*/ | |
| 53203 | + public static function fromYield(stdClass $value): YieldClass { | |
| 53204 | + return YieldClass::from($value); /*class*/ | |
| 52692 | 53205 | } |
| 52693 | 53206 | |
| 52694 | 53207 | /** |
| 52695 | 53208 | * @throws Exception |
| 52696 | 53209 | * @return stdClass |
| 52697 | 53210 | */ |
| 52698 | - public function toVirtual(): stdClass { | |
| 52699 | - if (Obj6::validateVirtual($this->virtual)) { | |
| 52700 | - return $this->virtual->to(); /*class*/ | |
| 53211 | + public function toYield(): stdClass { | |
| 53212 | + if (Obj6::validateYield($this->yield)) { | |
| 53213 | + return $this->yield->to(); /*class*/ | |
| 52701 | 53214 | } |
| 52702 | - throw new Exception('never get to this Obj6::virtual'); | |
| 53215 | + throw new Exception('never get to this Obj6::yield'); | |
| 52703 | 53216 | } |
| 52704 | 53217 | |
| 52705 | 53218 | /** |
| 52706 | - * @param Virtual | |
| 53219 | + * @param YieldClass | |
| 52707 | 53220 | * @return bool |
| 52708 | 53221 | * @throws Exception |
| 52709 | 53222 | */ |
| 52710 | - public static function validateVirtual(Virtual $value): bool { | |
| 53223 | + public static function validateYield(YieldClass $value): bool { | |
| 52711 | 53224 | $value->validate(); |
| 52712 | 53225 | return true; |
| 52713 | 53226 | } |
| 52714 | 53227 | |
| 52715 | 53228 | /** |
| 52716 | 53229 | * @throws Exception |
| 52717 | - * @return Virtual | |
| 53230 | + * @return YieldClass | |
| 52718 | 53231 | */ |
| 52719 | - public function getVirtual(): Virtual { | |
| 52720 | - if (Obj6::validateVirtual($this->virtual)) { | |
| 52721 | - return $this->virtual; | |
| 53232 | + public function getYield(): YieldClass { | |
| 53233 | + if (Obj6::validateYield($this->yield)) { | |
| 53234 | + return $this->yield; | |
| 52722 | 53235 | } |
| 52723 | - throw new Exception('never get to getVirtual Obj6::virtual'); | |
| 53236 | + throw new Exception('never get to getYield Obj6::yield'); | |
| 52724 | 53237 | } |
| 52725 | 53238 | |
| 52726 | 53239 | /** |
| 52727 | - * @return Virtual | |
| 53240 | + * @return YieldClass | |
| 52728 | 53241 | */ |
| 52729 | - public static function sampleVirtual(): Virtual { | |
| 52730 | - return Virtual::sample(); /*39:virtual*/ | |
| 53242 | + public static function sampleYield(): YieldClass { | |
| 53243 | + return YieldClass::sample(); /*56:yield*/ | |
| 52731 | 53244 | } |
| 52732 | 53245 | |
| 52733 | 53246 | /** |
| 52734 | - * @param stdClass $value | |
| 52735 | 53247 | * @throws Exception |
| 52736 | - * @return VoidClass | |
| 53248 | + * @return bool | |
| 52737 | 53249 | */ |
| 52738 | - public static function fromVoid(stdClass $value): VoidClass { | |
| 52739 | - return VoidClass::from($value); /*class*/ | |
| 53250 | + public function validate(): bool { | |
| 53251 | + return Obj6::validateDummy($this->dummy) | |
| 53252 | + || Obj6::validateUnion($this->union) | |
| 53253 | + || Obj6::validateUnmarshalJSON($this->unmarshalJSON) | |
| 53254 | + || Obj6::validateUnowned($this->unowned) | |
| 53255 | + || Obj6::validateUnsafe($this->unsafe) | |
| 53256 | + || Obj6::validateUnsigned($this->unsigned) | |
| 53257 | + || Obj6::validateUseSerializers($this->useSerializers) | |
| 53258 | + || Obj6::validateUshort($this->ushort) | |
| 53259 | + || Obj6::validateUsing($this->using) | |
| 53260 | + || Obj6::validateUtf8JSONReader($this->utf8JSONReader) | |
| 53261 | + || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter) | |
| 53262 | + || Obj6::validateUUID($this->uuid) | |
| 53263 | + || Obj6::validateVar($this->var) | |
| 53264 | + || Obj6::validateVirtual($this->virtual) | |
| 53265 | + || Obj6::validateVoid($this->void) | |
| 53266 | + || Obj6::validateVolatile($this->volatile) | |
| 53267 | + || Obj6::validateWcharT($this->wcharT) | |
| 53268 | + || Obj6::validateWeak($this->weak) | |
| 53269 | + || Obj6::validateWhere($this->where) | |
| 53270 | + || Obj6::validateWhile($this->while) | |
| 53271 | + || Obj6::validateWillSet($this->willSet) | |
| 53272 | + || Obj6::validateWith($this->with) | |
| 53273 | + || Obj6::validateXor($this->xor) | |
| 53274 | + || Obj6::validateXorEq($this->xorEq) | |
| 53275 | + || Obj6::validateYes($this->yes) | |
| 53276 | + || Obj6::validateYield($this->yield); | |
| 52740 | 53277 | } |
| 52741 | 53278 | |
| 52742 | 53279 | /** |
| 52743 | - * @throws Exception | |
| 52744 | 53280 | * @return stdClass |
| 52745 | - */ | |
| 52746 | - public function toVoid(): stdClass { | |
| 52747 | - if (Obj6::validateVoid($this->void)) { | |
| 52748 | - return $this->void->to(); /*class*/ | |
| 52749 | - } | |
| 52750 | - throw new Exception('never get to this Obj6::void'); | |
| 52751 | - } | |
| 52752 | - | |
| 52753 | - /** | |
| 52754 | - * @param VoidClass | |
| 52755 | - * @return bool | |
| 52756 | 53281 | * @throws Exception |
| 52757 | 53282 | */ |
| 52758 | - public static function validateVoid(VoidClass $value): bool { | |
| 52759 | - $value->validate(); | |
| 52760 | - return true; | |
| 53283 | + public function to(): stdClass { | |
| 53284 | + $out = new stdClass(); | |
| 53285 | + $out->{'dummy'} = $this->toDummy(); | |
| 53286 | + $out->{'union'} = $this->toUnion(); | |
| 53287 | + $out->{'UnmarshalJSON'} = $this->toUnmarshalJSON(); | |
| 53288 | + $out->{'unowned'} = $this->toUnowned(); | |
| 53289 | + $out->{'unsafe'} = $this->toUnsafe(); | |
| 53290 | + $out->{'unsigned'} = $this->toUnsigned(); | |
| 53291 | + $out->{'UseSerializers'} = $this->toUseSerializers(); | |
| 53292 | + $out->{'ushort'} = $this->toUshort(); | |
| 53293 | + $out->{'using'} = $this->toUsing(); | |
| 53294 | + $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader(); | |
| 53295 | + $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter(); | |
| 53296 | + $out->{'UUID'} = $this->toUUID(); | |
| 53297 | + $out->{'var'} = $this->toVar(); | |
| 53298 | + $out->{'virtual'} = $this->toVirtual(); | |
| 53299 | + $out->{'void'} = $this->toVoid(); | |
| 53300 | + $out->{'volatile'} = $this->toVolatile(); | |
| 53301 | + $out->{'wchar_t'} = $this->toWcharT(); | |
| 53302 | + $out->{'weak'} = $this->toWeak(); | |
| 53303 | + $out->{'where'} = $this->toWhere(); | |
| 53304 | + $out->{'while'} = $this->toWhile(); | |
| 53305 | + $out->{'willSet'} = $this->toWillSet(); | |
| 53306 | + $out->{'with'} = $this->toWith(); | |
| 53307 | + $out->{'xor'} = $this->toXor(); | |
| 53308 | + $out->{'xor_eq'} = $this->toXorEq(); | |
| 53309 | + $out->{'YES'} = $this->toYes(); | |
| 53310 | + $out->{'yield'} = $this->toYield(); | |
| 53311 | + return $out; | |
| 52761 | 53312 | } |
| 52762 | 53313 | |
| 52763 | 53314 | /** |
| 53315 | + * @param stdClass $obj | |
| 53316 | + * @return Obj6 | |
| 52764 | 53317 | * @throws Exception |
| 52765 | - * @return VoidClass | |
| 52766 | 53318 | */ |
| 52767 | - public function getVoid(): VoidClass { | |
| 52768 | - if (Obj6::validateVoid($this->void)) { | |
| 52769 | - return $this->void; | |
| 53319 | + public static function from(stdClass $obj): Obj6 { | |
| 53320 | + if (!property_exists($obj, 'dummy')) { | |
| 53321 | + throw new Exception("Missing required property"); | |
| 53322 | + } | |
| 53323 | + if (!property_exists($obj, 'union')) { | |
| 53324 | + throw new Exception("Missing required property"); | |
| 53325 | + } | |
| 53326 | + if (!property_exists($obj, 'UnmarshalJSON')) { | |
| 53327 | + throw new Exception("Missing required property"); | |
| 53328 | + } | |
| 53329 | + if (!property_exists($obj, 'unowned')) { | |
| 53330 | + throw new Exception("Missing required property"); | |
| 53331 | + } | |
| 53332 | + if (!property_exists($obj, 'unsafe')) { | |
| 53333 | + throw new Exception("Missing required property"); | |
| 53334 | + } | |
| 53335 | + if (!property_exists($obj, 'unsigned')) { | |
| 53336 | + throw new Exception("Missing required property"); | |
| 53337 | + } | |
| 53338 | + if (!property_exists($obj, 'UseSerializers')) { | |
| 53339 | + throw new Exception("Missing required property"); | |
| 53340 | + } | |
| 53341 | + if (!property_exists($obj, 'ushort')) { | |
| 53342 | + throw new Exception("Missing required property"); | |
| 53343 | + } | |
| 53344 | + if (!property_exists($obj, 'using')) { | |
| 53345 | + throw new Exception("Missing required property"); | |
| 53346 | + } | |
| 53347 | + if (!property_exists($obj, 'Utf8JsonReader')) { | |
| 53348 | + throw new Exception("Missing required property"); | |
| 53349 | + } | |
| 53350 | + if (!property_exists($obj, 'Utf8JsonWriter')) { | |
| 53351 | + throw new Exception("Missing required property"); | |
| 53352 | + } | |
| 53353 | + if (!property_exists($obj, 'UUID')) { | |
| 53354 | + throw new Exception("Missing required property"); | |
| 53355 | + } | |
| 53356 | + if (!property_exists($obj, 'var')) { | |
| 53357 | + throw new Exception("Missing required property"); | |
| 53358 | + } | |
| 53359 | + if (!property_exists($obj, 'virtual')) { | |
| 53360 | + throw new Exception("Missing required property"); | |
| 53361 | + } | |
| 53362 | + if (!property_exists($obj, 'void')) { | |
| 53363 | + throw new Exception("Missing required property"); | |
| 53364 | + } | |
| 53365 | + if (!property_exists($obj, 'volatile')) { | |
| 53366 | + throw new Exception("Missing required property"); | |
| 53367 | + } | |
| 53368 | + if (!property_exists($obj, 'wchar_t')) { | |
| 53369 | + throw new Exception("Missing required property"); | |
| 53370 | + } | |
| 53371 | + if (!property_exists($obj, 'weak')) { | |
| 53372 | + throw new Exception("Missing required property"); | |
| 53373 | + } | |
| 53374 | + if (!property_exists($obj, 'where')) { | |
| 53375 | + throw new Exception("Missing required property"); | |
| 53376 | + } | |
| 53377 | + if (!property_exists($obj, 'while')) { | |
| 53378 | + throw new Exception("Missing required property"); | |
| 53379 | + } | |
| 53380 | + if (!property_exists($obj, 'willSet')) { | |
| 53381 | + throw new Exception("Missing required property"); | |
| 53382 | + } | |
| 53383 | + if (!property_exists($obj, 'with')) { | |
| 53384 | + throw new Exception("Missing required property"); | |
| 53385 | + } | |
| 53386 | + if (!property_exists($obj, 'xor')) { | |
| 53387 | + throw new Exception("Missing required property"); | |
| 53388 | + } | |
| 53389 | + if (!property_exists($obj, 'xor_eq')) { | |
| 53390 | + throw new Exception("Missing required property"); | |
| 53391 | + } | |
| 53392 | + if (!property_exists($obj, 'YES')) { | |
| 53393 | + throw new Exception("Missing required property"); | |
| 53394 | + } | |
| 53395 | + if (!property_exists($obj, 'yield')) { | |
| 53396 | + throw new Exception("Missing required property"); | |
| 52770 | 53397 | } |
| 52771 | - throw new Exception('never get to getVoid Obj6::void'); | |
| 52772 | - } | |
| 52773 | - | |
| 52774 | - /** | |
| 52775 | - * @return VoidClass | |
| 52776 | - */ | |
| 52777 | - public static function sampleVoid(): VoidClass { | |
| 52778 | - return VoidClass::sample(); /*40:void*/ | |
| 52779 | - } | |
| 52780 | - | |
| 52781 | - /** | |
| 52782 | - * @param stdClass $value | |
| 52783 | - * @throws Exception | |
| 52784 | - * @return Volatile | |
| 52785 | - */ | |
| 52786 | - public static function fromVolatile(stdClass $value): Volatile { | |
| 52787 | - return Volatile::from($value); /*class*/ | |
| 53398 | + return new Obj6( | |
| 53399 | + Obj6::fromDummy($obj->{'dummy'}) | |
| 53400 | + ,Obj6::fromUnion($obj->{'union'}) | |
| 53401 | + ,Obj6::fromUnmarshalJSON($obj->{'UnmarshalJSON'}) | |
| 53402 | + ,Obj6::fromUnowned($obj->{'unowned'}) | |
| 53403 | + ,Obj6::fromUnsafe($obj->{'unsafe'}) | |
| 53404 | + ,Obj6::fromUnsigned($obj->{'unsigned'}) | |
| 53405 | + ,Obj6::fromUseSerializers($obj->{'UseSerializers'}) | |
| 53406 | + ,Obj6::fromUshort($obj->{'ushort'}) | |
| 53407 | + ,Obj6::fromUsing($obj->{'using'}) | |
| 53408 | + ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'}) | |
| 53409 | + ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'}) | |
| 53410 | + ,Obj6::fromUUID($obj->{'UUID'}) | |
| 53411 | + ,Obj6::fromVar($obj->{'var'}) | |
| 53412 | + ,Obj6::fromVirtual($obj->{'virtual'}) | |
| 53413 | + ,Obj6::fromVoid($obj->{'void'}) | |
| 53414 | + ,Obj6::fromVolatile($obj->{'volatile'}) | |
| 53415 | + ,Obj6::fromWcharT($obj->{'wchar_t'}) | |
| 53416 | + ,Obj6::fromWeak($obj->{'weak'}) | |
| 53417 | + ,Obj6::fromWhere($obj->{'where'}) | |
| 53418 | + ,Obj6::fromWhile($obj->{'while'}) | |
| 53419 | + ,Obj6::fromWillSet($obj->{'willSet'}) | |
| 53420 | + ,Obj6::fromWith($obj->{'with'}) | |
| 53421 | + ,Obj6::fromXor($obj->{'xor'}) | |
| 53422 | + ,Obj6::fromXorEq($obj->{'xor_eq'}) | |
| 53423 | + ,Obj6::fromYes($obj->{'YES'}) | |
| 53424 | + ,Obj6::fromYield($obj->{'yield'}) | |
| 53425 | + ); | |
| 52788 | 53426 | } |
| 52789 | 53427 | |
| 52790 | 53428 | /** |
| 52791 | - * @throws Exception | |
| 52792 | - * @return stdClass | |
| 53429 | + * @return Obj6 | |
| 52793 | 53430 | */ |
| 52794 | - public function toVolatile(): stdClass { | |
| 52795 | - if (Obj6::validateVolatile($this->volatile)) { | |
| 52796 | - return $this->volatile->to(); /*class*/ | |
| 52797 | - } | |
| 52798 | - throw new Exception('never get to this Obj6::volatile'); | |
| 53431 | + public static function sample(): Obj6 { | |
| 53432 | + return new Obj6( | |
| 53433 | + Obj6::sampleDummy() | |
| 53434 | + ,Obj6::sampleUnion() | |
| 53435 | + ,Obj6::sampleUnmarshalJSON() | |
| 53436 | + ,Obj6::sampleUnowned() | |
| 53437 | + ,Obj6::sampleUnsafe() | |
| 53438 | + ,Obj6::sampleUnsigned() | |
| 53439 | + ,Obj6::sampleUseSerializers() | |
| 53440 | + ,Obj6::sampleUshort() | |
| 53441 | + ,Obj6::sampleUsing() | |
| 53442 | + ,Obj6::sampleUtf8JSONReader() | |
| 53443 | + ,Obj6::sampleUtf8JSONWriter() | |
| 53444 | + ,Obj6::sampleUUID() | |
| 53445 | + ,Obj6::sampleVar() | |
| 53446 | + ,Obj6::sampleVirtual() | |
| 53447 | + ,Obj6::sampleVoid() | |
| 53448 | + ,Obj6::sampleVolatile() | |
| 53449 | + ,Obj6::sampleWcharT() | |
| 53450 | + ,Obj6::sampleWeak() | |
| 53451 | + ,Obj6::sampleWhere() | |
| 53452 | + ,Obj6::sampleWhile() | |
| 53453 | + ,Obj6::sampleWillSet() | |
| 53454 | + ,Obj6::sampleWith() | |
| 53455 | + ,Obj6::sampleXor() | |
| 53456 | + ,Obj6::sampleXorEq() | |
| 53457 | + ,Obj6::sampleYes() | |
| 53458 | + ,Obj6::sampleYield() | |
| 53459 | + ); | |
| 52799 | 53460 | } |
| 53461 | +} | |
| 52800 | 53462 | |
| 52801 | - /** | |
| 52802 | - * @param Volatile | |
| 52803 | - * @return bool | |
| 52804 | - * @throws Exception | |
| 52805 | - */ | |
| 52806 | - public static function validateVolatile(Volatile $value): bool { | |
| 52807 | - $value->validate(); | |
| 52808 | - return true; | |
| 52809 | - } | |
| 53463 | +// This is an autogenerated file:Union | |
| 52810 | 53464 | |
| 52811 | - /** | |
| 52812 | - * @throws Exception | |
| 52813 | - * @return Volatile | |
| 52814 | - */ | |
| 52815 | - public function getVolatile(): Volatile { | |
| 52816 | - if (Obj6::validateVolatile($this->volatile)) { | |
| 52817 | - return $this->volatile; | |
| 52818 | - } | |
| 52819 | - throw new Exception('never get to getVolatile Obj6::volatile'); | |
| 52820 | - } | |
| 53465 | +class Union { | |
| 53466 | + private int $union; // json:union Required | |
| 52821 | 53467 | |
| 52822 | 53468 | /** |
| 52823 | - * @return Volatile | |
| 53469 | + * @param int $union | |
| 52824 | 53470 | */ |
| 52825 | - public static function sampleVolatile(): Volatile { | |
| 52826 | - return Volatile::sample(); /*41:volatile*/ | |
| 53471 | + public function __construct(int $union) { | |
| 53472 | + $this->union = $union; | |
| 52827 | 53473 | } |
| 52828 | 53474 | |
| 52829 | 53475 | /** |
| 52830 | - * @param stdClass $value | |
| 53476 | + * @param int $value | |
| 52831 | 53477 | * @throws Exception |
| 52832 | - * @return WcharT | |
| 53478 | + * @return int | |
| 52833 | 53479 | */ |
| 52834 | - public static function fromWcharT(stdClass $value): WcharT { | |
| 52835 | - return WcharT::from($value); /*class*/ | |
| 53480 | + public static function fromUnion(int $value): int { | |
| 53481 | + return $value; /*int*/ | |
| 52836 | 53482 | } |
| 52837 | 53483 | |
| 52838 | 53484 | /** |
| 52839 | 53485 | * @throws Exception |
| 52840 | - * @return stdClass | |
| 53486 | + * @return int | |
| 52841 | 53487 | */ |
| 52842 | - public function toWcharT(): stdClass { | |
| 52843 | - if (Obj6::validateWcharT($this->wcharT)) { | |
| 52844 | - return $this->wcharT->to(); /*class*/ | |
| 53488 | + public function toUnion(): int { | |
| 53489 | + if (Union::validateUnion($this->union)) { | |
| 53490 | + return $this->union; /*int*/ | |
| 52845 | 53491 | } |
| 52846 | - throw new Exception('never get to this Obj6::wcharT'); | |
| 53492 | + throw new Exception('never get to this Union::union'); | |
| 52847 | 53493 | } |
| 52848 | 53494 | |
| 52849 | 53495 | /** |
| 52850 | - * @param WcharT | |
| 53496 | + * @param int | |
| 52851 | 53497 | * @return bool |
| 52852 | 53498 | * @throws Exception |
| 52853 | 53499 | */ |
| 52854 | - public static function validateWcharT(WcharT $value): bool { | |
| 52855 | - $value->validate(); | |
| 53500 | + public static function validateUnion(int $value): bool { | |
| 52856 | 53501 | return true; |
| 52857 | 53502 | } |
| 52858 | 53503 | |
| 52859 | 53504 | /** |
| 52860 | 53505 | * @throws Exception |
| 52861 | - * @return WcharT | |
| 53506 | + * @return int | |
| 52862 | 53507 | */ |
| 52863 | - public function getWcharT(): WcharT { | |
| 52864 | - if (Obj6::validateWcharT($this->wcharT)) { | |
| 52865 | - return $this->wcharT; | |
| 53508 | + public function getUnion(): int { | |
| 53509 | + if (Union::validateUnion($this->union)) { | |
| 53510 | + return $this->union; | |
| 52866 | 53511 | } |
| 52867 | - throw new Exception('never get to getWcharT Obj6::wcharT'); | |
| 53512 | + throw new Exception('never get to getUnion Union::union'); | |
| 52868 | 53513 | } |
| 52869 | 53514 | |
| 52870 | 53515 | /** |
| 52871 | - * @return WcharT | |
| 53516 | + * @return int | |
| 52872 | 53517 | */ |
| 52873 | - public static function sampleWcharT(): WcharT { | |
| 52874 | - return WcharT::sample(); /*42:wcharT*/ | |
| 53518 | + public static function sampleUnion(): int { | |
| 53519 | + return 31; /*31:union*/ | |
| 52875 | 53520 | } |
| 52876 | 53521 | |
| 52877 | 53522 | /** |
| 52878 | - * @param stdClass $value | |
| 52879 | 53523 | * @throws Exception |
| 52880 | - * @return Weak | |
| 53524 | + * @return bool | |
| 52881 | 53525 | */ |
| 52882 | - public static function fromWeak(stdClass $value): Weak { | |
| 52883 | - return Weak::from($value); /*class*/ | |
| 53526 | + public function validate(): bool { | |
| 53527 | + return Union::validateUnion($this->union); | |
| 52884 | 53528 | } |
| 52885 | 53529 | |
| 52886 | 53530 | /** |
| 52887 | - * @throws Exception | |
| 52888 | 53531 | * @return stdClass |
| 52889 | - */ | |
| 52890 | - public function toWeak(): stdClass { | |
| 52891 | - if (Obj6::validateWeak($this->weak)) { | |
| 52892 | - return $this->weak->to(); /*class*/ | |
| 52893 | - } | |
| 52894 | - throw new Exception('never get to this Obj6::weak'); | |
| 52895 | - } | |
| 52896 | - | |
| 52897 | - /** | |
| 52898 | - * @param Weak | |
| 52899 | - * @return bool | |
| 52900 | 53532 | * @throws Exception |
| 52901 | 53533 | */ |
| 52902 | - public static function validateWeak(Weak $value): bool { | |
| 52903 | - $value->validate(); | |
| 52904 | - return true; | |
| 53534 | + public function to(): stdClass { | |
| 53535 | + $out = new stdClass(); | |
| 53536 | + $out->{'union'} = $this->toUnion(); | |
| 53537 | + return $out; | |
| 52905 | 53538 | } |
| 52906 | 53539 | |
| 52907 | 53540 | /** |
| 53541 | + * @param stdClass $obj | |
| 53542 | + * @return Union | |
| 52908 | 53543 | * @throws Exception |
| 52909 | - * @return Weak | |
| 52910 | 53544 | */ |
| 52911 | - public function getWeak(): Weak { | |
| 52912 | - if (Obj6::validateWeak($this->weak)) { | |
| 52913 | - return $this->weak; | |
| 53545 | + public static function from(stdClass $obj): Union { | |
| 53546 | + if (!property_exists($obj, 'union')) { | |
| 53547 | + throw new Exception("Missing required property"); | |
| 52914 | 53548 | } |
| 52915 | - throw new Exception('never get to getWeak Obj6::weak'); | |
| 52916 | - } | |
| 52917 | - | |
| 52918 | - /** | |
| 52919 | - * @return Weak | |
| 52920 | - */ | |
| 52921 | - public static function sampleWeak(): Weak { | |
| 52922 | - return Weak::sample(); /*43:weak*/ | |
| 52923 | - } | |
| 52924 | - | |
| 52925 | - /** | |
| 52926 | - * @param stdClass $value | |
| 52927 | - * @throws Exception | |
| 52928 | - * @return Where | |
| 52929 | - */ | |
| 52930 | - public static function fromWhere(stdClass $value): Where { | |
| 52931 | - return Where::from($value); /*class*/ | |
| 53549 | + return new Union( | |
| 53550 | + Union::fromUnion($obj->{'union'}) | |
| 53551 | + ); | |
| 52932 | 53552 | } |
| 52933 | 53553 | |
| 52934 | 53554 | /** |
| 52935 | - * @throws Exception | |
| 52936 | - * @return stdClass | |
| 53555 | + * @return Union | |
| 52937 | 53556 | */ |
| 52938 | - public function toWhere(): stdClass { | |
| 52939 | - if (Obj6::validateWhere($this->where)) { | |
| 52940 | - return $this->where->to(); /*class*/ | |
| 52941 | - } | |
| 52942 | - throw new Exception('never get to this Obj6::where'); | |
| 53557 | + public static function sample(): Union { | |
| 53558 | + return new Union( | |
| 53559 | + Union::sampleUnion() | |
| 53560 | + ); | |
| 52943 | 53561 | } |
| 53562 | +} | |
| 52944 | 53563 | |
| 52945 | - /** | |
| 52946 | - * @param Where | |
| 52947 | - * @return bool | |
| 52948 | - * @throws Exception | |
| 52949 | - */ | |
| 52950 | - public static function validateWhere(Where $value): bool { | |
| 52951 | - $value->validate(); | |
| 52952 | - return true; | |
| 52953 | - } | |
| 53564 | +// This is an autogenerated file:UnmarshalJSON | |
| 52954 | 53565 | |
| 52955 | - /** | |
| 52956 | - * @throws Exception | |
| 52957 | - * @return Where | |
| 52958 | - */ | |
| 52959 | - public function getWhere(): Where { | |
| 52960 | - if (Obj6::validateWhere($this->where)) { | |
| 52961 | - return $this->where; | |
| 52962 | - } | |
| 52963 | - throw new Exception('never get to getWhere Obj6::where'); | |
| 52964 | - } | |
| 53566 | +class UnmarshalJSON { | |
| 53567 | + private int $unmarshalJSON; // json:UnmarshalJSON Required | |
| 52965 | 53568 | |
| 52966 | 53569 | /** |
| 52967 | - * @return Where | |
| 53570 | + * @param int $unmarshalJSON | |
| 52968 | 53571 | */ |
| 52969 | - public static function sampleWhere(): Where { | |
| 52970 | - return Where::sample(); /*44:where*/ | |
| 53572 | + public function __construct(int $unmarshalJSON) { | |
| 53573 | + $this->unmarshalJSON = $unmarshalJSON; | |
| 52971 | 53574 | } |
| 52972 | 53575 | |
| 52973 | 53576 | /** |
| 52974 | - * @param stdClass $value | |
| 53577 | + * @param int $value | |
| 52975 | 53578 | * @throws Exception |
| 52976 | - * @return WhileClass | |
| 53579 | + * @return int | |
| 52977 | 53580 | */ |
| 52978 | - public static function fromWhile(stdClass $value): WhileClass { | |
| 52979 | - return WhileClass::from($value); /*class*/ | |
| 53581 | + public static function fromUnmarshalJSON(int $value): int { | |
| 53582 | + return $value; /*int*/ | |
| 52980 | 53583 | } |
| 52981 | 53584 | |
| 52982 | 53585 | /** |
| 52983 | 53586 | * @throws Exception |
| 52984 | - * @return stdClass | |
| 53587 | + * @return int | |
| 52985 | 53588 | */ |
| 52986 | - public function toWhile(): stdClass { | |
| 52987 | - if (Obj6::validateWhile($this->while)) { | |
| 52988 | - return $this->while->to(); /*class*/ | |
| 53589 | + public function toUnmarshalJSON(): int { | |
| 53590 | + if (UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON)) { | |
| 53591 | + return $this->unmarshalJSON; /*int*/ | |
| 52989 | 53592 | } |
| 52990 | - throw new Exception('never get to this Obj6::while'); | |
| 53593 | + throw new Exception('never get to this UnmarshalJSON::unmarshalJSON'); | |
| 52991 | 53594 | } |
| 52992 | 53595 | |
| 52993 | 53596 | /** |
| 52994 | - * @param WhileClass | |
| 53597 | + * @param int | |
| 52995 | 53598 | * @return bool |
| 52996 | 53599 | * @throws Exception |
| 52997 | - */ | |
| 52998 | - public static function validateWhile(WhileClass $value): bool { | |
| 52999 | - $value->validate(); | |
| 53600 | + */ | |
| 53601 | + public static function validateUnmarshalJSON(int $value): bool { | |
| 53000 | 53602 | return true; |
| 53001 | 53603 | } |
| 53002 | 53604 | |
| 53003 | 53605 | /** |
| 53004 | 53606 | * @throws Exception |
| 53005 | - * @return WhileClass | |
| 53607 | + * @return int | |
| 53006 | 53608 | */ |
| 53007 | - public function getWhile(): WhileClass { | |
| 53008 | - if (Obj6::validateWhile($this->while)) { | |
| 53009 | - return $this->while; | |
| 53609 | + public function getUnmarshalJSON(): int { | |
| 53610 | + if (UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON)) { | |
| 53611 | + return $this->unmarshalJSON; | |
| 53010 | 53612 | } |
| 53011 | - throw new Exception('never get to getWhile Obj6::while'); | |
| 53613 | + throw new Exception('never get to getUnmarshalJSON UnmarshalJSON::unmarshalJSON'); | |
| 53012 | 53614 | } |
| 53013 | 53615 | |
| 53014 | 53616 | /** |
| 53015 | - * @return WhileClass | |
| 53617 | + * @return int | |
| 53016 | 53618 | */ |
| 53017 | - public static function sampleWhile(): WhileClass { | |
| 53018 | - return WhileClass::sample(); /*45:while*/ | |
| 53619 | + public static function sampleUnmarshalJSON(): int { | |
| 53620 | + return 31; /*31:unmarshalJSON*/ | |
| 53019 | 53621 | } |
| 53020 | 53622 | |
| 53021 | 53623 | /** |
| 53022 | - * @param stdClass $value | |
| 53023 | 53624 | * @throws Exception |
| 53024 | - * @return WillSet | |
| 53625 | + * @return bool | |
| 53025 | 53626 | */ |
| 53026 | - public static function fromWillSet(stdClass $value): WillSet { | |
| 53027 | - return WillSet::from($value); /*class*/ | |
| 53627 | + public function validate(): bool { | |
| 53628 | + return UnmarshalJSON::validateUnmarshalJSON($this->unmarshalJSON); | |
| 53028 | 53629 | } |
| 53029 | 53630 | |
| 53030 | 53631 | /** |
| 53031 | - * @throws Exception | |
| 53032 | 53632 | * @return stdClass |
| 53633 | + * @throws Exception | |
| 53033 | 53634 | */ |
| 53034 | - public function toWillSet(): stdClass { | |
| 53035 | - if (Obj6::validateWillSet($this->willSet)) { | |
| 53036 | - return $this->willSet->to(); /*class*/ | |
| 53037 | - } | |
| 53038 | - throw new Exception('never get to this Obj6::willSet'); | |
| 53635 | + public function to(): stdClass { | |
| 53636 | + $out = new stdClass(); | |
| 53637 | + $out->{'UnmarshalJSON'} = $this->toUnmarshalJSON(); | |
| 53638 | + return $out; | |
| 53039 | 53639 | } |
| 53040 | 53640 | |
| 53041 | 53641 | /** |
| 53042 | - * @param WillSet | |
| 53043 | - * @return bool | |
| 53642 | + * @param stdClass $obj | |
| 53643 | + * @return UnmarshalJSON | |
| 53044 | 53644 | * @throws Exception |
| 53045 | 53645 | */ |
| 53046 | - public static function validateWillSet(WillSet $value): bool { | |
| 53047 | - $value->validate(); | |
| 53048 | - return true; | |
| 53646 | + public static function from(stdClass $obj): UnmarshalJSON { | |
| 53647 | + if (!property_exists($obj, 'UnmarshalJSON')) { | |
| 53648 | + throw new Exception("Missing required property"); | |
| 53649 | + } | |
| 53650 | + return new UnmarshalJSON( | |
| 53651 | + UnmarshalJSON::fromUnmarshalJSON($obj->{'UnmarshalJSON'}) | |
| 53652 | + ); | |
| 53049 | 53653 | } |
| 53050 | 53654 | |
| 53051 | 53655 | /** |
| 53052 | - * @throws Exception | |
| 53053 | - * @return WillSet | |
| 53656 | + * @return UnmarshalJSON | |
| 53054 | 53657 | */ |
| 53055 | - public function getWillSet(): WillSet { | |
| 53056 | - if (Obj6::validateWillSet($this->willSet)) { | |
| 53057 | - return $this->willSet; | |
| 53058 | - } | |
| 53059 | - throw new Exception('never get to getWillSet Obj6::willSet'); | |
| 53658 | + public static function sample(): UnmarshalJSON { | |
| 53659 | + return new UnmarshalJSON( | |
| 53660 | + UnmarshalJSON::sampleUnmarshalJSON() | |
| 53661 | + ); | |
| 53060 | 53662 | } |
| 53663 | +} | |
| 53664 | + | |
| 53665 | +// This is an autogenerated file:Unowned | |
| 53666 | + | |
| 53667 | +class Unowned { | |
| 53668 | + private int $unowned; // json:unowned Required | |
| 53061 | 53669 | |
| 53062 | 53670 | /** |
| 53063 | - * @return WillSet | |
| 53671 | + * @param int $unowned | |
| 53064 | 53672 | */ |
| 53065 | - public static function sampleWillSet(): WillSet { | |
| 53066 | - return WillSet::sample(); /*46:willSet*/ | |
| 53673 | + public function __construct(int $unowned) { | |
| 53674 | + $this->unowned = $unowned; | |
| 53067 | 53675 | } |
| 53068 | 53676 | |
| 53069 | 53677 | /** |
| 53070 | - * @param stdClass $value | |
| 53678 | + * @param int $value | |
| 53071 | 53679 | * @throws Exception |
| 53072 | - * @return With | |
| 53680 | + * @return int | |
| 53073 | 53681 | */ |
| 53074 | - public static function fromWith(stdClass $value): With { | |
| 53075 | - return With::from($value); /*class*/ | |
| 53682 | + public static function fromUnowned(int $value): int { | |
| 53683 | + return $value; /*int*/ | |
| 53076 | 53684 | } |
| 53077 | 53685 | |
| 53078 | 53686 | /** |
| 53079 | 53687 | * @throws Exception |
| 53080 | - * @return stdClass | |
| 53688 | + * @return int | |
| 53081 | 53689 | */ |
| 53082 | - public function toWith(): stdClass { | |
| 53083 | - if (Obj6::validateWith($this->with)) { | |
| 53084 | - return $this->with->to(); /*class*/ | |
| 53690 | + public function toUnowned(): int { | |
| 53691 | + if (Unowned::validateUnowned($this->unowned)) { | |
| 53692 | + return $this->unowned; /*int*/ | |
| 53085 | 53693 | } |
| 53086 | - throw new Exception('never get to this Obj6::with'); | |
| 53694 | + throw new Exception('never get to this Unowned::unowned'); | |
| 53087 | 53695 | } |
| 53088 | 53696 | |
| 53089 | 53697 | /** |
| 53090 | - * @param With | |
| 53698 | + * @param int | |
| 53091 | 53699 | * @return bool |
| 53092 | 53700 | * @throws Exception |
| 53093 | 53701 | */ |
| 53094 | - public static function validateWith(With $value): bool { | |
| 53095 | - $value->validate(); | |
| 53702 | + public static function validateUnowned(int $value): bool { | |
| 53096 | 53703 | return true; |
| 53097 | 53704 | } |
| 53098 | 53705 | |
| 53099 | 53706 | /** |
| 53100 | 53707 | * @throws Exception |
| 53101 | - * @return With | |
| 53708 | + * @return int | |
| 53102 | 53709 | */ |
| 53103 | - public function getWith(): With { | |
| 53104 | - if (Obj6::validateWith($this->with)) { | |
| 53105 | - return $this->with; | |
| 53710 | + public function getUnowned(): int { | |
| 53711 | + if (Unowned::validateUnowned($this->unowned)) { | |
| 53712 | + return $this->unowned; | |
| 53106 | 53713 | } |
| 53107 | - throw new Exception('never get to getWith Obj6::with'); | |
| 53714 | + throw new Exception('never get to getUnowned Unowned::unowned'); | |
| 53108 | 53715 | } |
| 53109 | 53716 | |
| 53110 | 53717 | /** |
| 53111 | - * @return With | |
| 53718 | + * @return int | |
| 53112 | 53719 | */ |
| 53113 | - public static function sampleWith(): With { | |
| 53114 | - return With::sample(); /*47:with*/ | |
| 53720 | + public static function sampleUnowned(): int { | |
| 53721 | + return 31; /*31:unowned*/ | |
| 53115 | 53722 | } |
| 53116 | 53723 | |
| 53117 | 53724 | /** |
| 53118 | - * @param stdClass $value | |
| 53119 | 53725 | * @throws Exception |
| 53120 | - * @return XorClass | |
| 53726 | + * @return bool | |
| 53121 | 53727 | */ |
| 53122 | - public static function fromXor(stdClass $value): XorClass { | |
| 53123 | - return XorClass::from($value); /*class*/ | |
| 53728 | + public function validate(): bool { | |
| 53729 | + return Unowned::validateUnowned($this->unowned); | |
| 53124 | 53730 | } |
| 53125 | 53731 | |
| 53126 | 53732 | /** |
| 53127 | - * @throws Exception | |
| 53128 | 53733 | * @return stdClass |
| 53734 | + * @throws Exception | |
| 53129 | 53735 | */ |
| 53130 | - public function toXor(): stdClass { | |
| 53131 | - if (Obj6::validateXor($this->xor)) { | |
| 53132 | - return $this->xor->to(); /*class*/ | |
| 53133 | - } | |
| 53134 | - throw new Exception('never get to this Obj6::xor'); | |
| 53736 | + public function to(): stdClass { | |
| 53737 | + $out = new stdClass(); | |
| 53738 | + $out->{'unowned'} = $this->toUnowned(); | |
| 53739 | + return $out; | |
| 53135 | 53740 | } |
| 53136 | 53741 | |
| 53137 | 53742 | /** |
| 53138 | - * @param XorClass | |
| 53139 | - * @return bool | |
| 53743 | + * @param stdClass $obj | |
| 53744 | + * @return Unowned | |
| 53140 | 53745 | * @throws Exception |
| 53141 | 53746 | */ |
| 53142 | - public static function validateXor(XorClass $value): bool { | |
| 53143 | - $value->validate(); | |
| 53144 | - return true; | |
| 53747 | + public static function from(stdClass $obj): Unowned { | |
| 53748 | + if (!property_exists($obj, 'unowned')) { | |
| 53749 | + throw new Exception("Missing required property"); | |
| 53750 | + } | |
| 53751 | + return new Unowned( | |
| 53752 | + Unowned::fromUnowned($obj->{'unowned'}) | |
| 53753 | + ); | |
| 53145 | 53754 | } |
| 53146 | 53755 | |
| 53147 | 53756 | /** |
| 53148 | - * @throws Exception | |
| 53149 | - * @return XorClass | |
| 53757 | + * @return Unowned | |
| 53150 | 53758 | */ |
| 53151 | - public function getXor(): XorClass { | |
| 53152 | - if (Obj6::validateXor($this->xor)) { | |
| 53153 | - return $this->xor; | |
| 53154 | - } | |
| 53155 | - throw new Exception('never get to getXor Obj6::xor'); | |
| 53759 | + public static function sample(): Unowned { | |
| 53760 | + return new Unowned( | |
| 53761 | + Unowned::sampleUnowned() | |
| 53762 | + ); | |
| 53156 | 53763 | } |
| 53764 | +} | |
| 53765 | + | |
| 53766 | +// This is an autogenerated file:Unsafe | |
| 53767 | + | |
| 53768 | +class Unsafe { | |
| 53769 | + private int $unsafe; // json:unsafe Required | |
| 53157 | 53770 | |
| 53158 | 53771 | /** |
| 53159 | - * @return XorClass | |
| 53772 | + * @param int $unsafe | |
| 53160 | 53773 | */ |
| 53161 | - public static function sampleXor(): XorClass { | |
| 53162 | - return XorClass::sample(); /*48:xor*/ | |
| 53774 | + public function __construct(int $unsafe) { | |
| 53775 | + $this->unsafe = $unsafe; | |
| 53163 | 53776 | } |
| 53164 | 53777 | |
| 53165 | 53778 | /** |
| 53166 | - * @param stdClass $value | |
| 53779 | + * @param int $value | |
| 53167 | 53780 | * @throws Exception |
| 53168 | - * @return XorEq | |
| 53781 | + * @return int | |
| 53169 | 53782 | */ |
| 53170 | - public static function fromXorEq(stdClass $value): XorEq { | |
| 53171 | - return XorEq::from($value); /*class*/ | |
| 53783 | + public static function fromUnsafe(int $value): int { | |
| 53784 | + return $value; /*int*/ | |
| 53172 | 53785 | } |
| 53173 | 53786 | |
| 53174 | 53787 | /** |
| 53175 | 53788 | * @throws Exception |
| 53176 | - * @return stdClass | |
| 53789 | + * @return int | |
| 53177 | 53790 | */ |
| 53178 | - public function toXorEq(): stdClass { | |
| 53179 | - if (Obj6::validateXorEq($this->xorEq)) { | |
| 53180 | - return $this->xorEq->to(); /*class*/ | |
| 53791 | + public function toUnsafe(): int { | |
| 53792 | + if (Unsafe::validateUnsafe($this->unsafe)) { | |
| 53793 | + return $this->unsafe; /*int*/ | |
| 53181 | 53794 | } |
| 53182 | - throw new Exception('never get to this Obj6::xorEq'); | |
| 53795 | + throw new Exception('never get to this Unsafe::unsafe'); | |
| 53183 | 53796 | } |
| 53184 | 53797 | |
| 53185 | 53798 | /** |
| 53186 | - * @param XorEq | |
| 53799 | + * @param int | |
| 53187 | 53800 | * @return bool |
| 53188 | 53801 | * @throws Exception |
| 53189 | 53802 | */ |
| 53190 | - public static function validateXorEq(XorEq $value): bool { | |
| 53191 | - $value->validate(); | |
| 53803 | + public static function validateUnsafe(int $value): bool { | |
| 53192 | 53804 | return true; |
| 53193 | 53805 | } |
| 53194 | 53806 | |
| 53195 | 53807 | /** |
| 53196 | 53808 | * @throws Exception |
| 53197 | - * @return XorEq | |
| 53809 | + * @return int | |
| 53198 | 53810 | */ |
| 53199 | - public function getXorEq(): XorEq { | |
| 53200 | - if (Obj6::validateXorEq($this->xorEq)) { | |
| 53201 | - return $this->xorEq; | |
| 53811 | + public function getUnsafe(): int { | |
| 53812 | + if (Unsafe::validateUnsafe($this->unsafe)) { | |
| 53813 | + return $this->unsafe; | |
| 53202 | 53814 | } |
| 53203 | - throw new Exception('never get to getXorEq Obj6::xorEq'); | |
| 53815 | + throw new Exception('never get to getUnsafe Unsafe::unsafe'); | |
| 53204 | 53816 | } |
| 53205 | 53817 | |
| 53206 | 53818 | /** |
| 53207 | - * @return XorEq | |
| 53819 | + * @return int | |
| 53208 | 53820 | */ |
| 53209 | - public static function sampleXorEq(): XorEq { | |
| 53210 | - return XorEq::sample(); /*49:xorEq*/ | |
| 53821 | + public static function sampleUnsafe(): int { | |
| 53822 | + return 31; /*31:unsafe*/ | |
| 53211 | 53823 | } |
| 53212 | 53824 | |
| 53213 | 53825 | /** |
| 53214 | - * @param stdClass $value | |
| 53215 | 53826 | * @throws Exception |
| 53216 | - * @return Yes | |
| 53827 | + * @return bool | |
| 53217 | 53828 | */ |
| 53218 | - public static function fromYes(stdClass $value): Yes { | |
| 53219 | - return Yes::from($value); /*class*/ | |
| 53829 | + public function validate(): bool { | |
| 53830 | + return Unsafe::validateUnsafe($this->unsafe); | |
| 53220 | 53831 | } |
| 53221 | 53832 | |
| 53222 | 53833 | /** |
| 53223 | - * @throws Exception | |
| 53224 | 53834 | * @return stdClass |
| 53835 | + * @throws Exception | |
| 53225 | 53836 | */ |
| 53226 | - public function toYes(): stdClass { | |
| 53227 | - if (Obj6::validateYes($this->yes)) { | |
| 53228 | - return $this->yes->to(); /*class*/ | |
| 53229 | - } | |
| 53230 | - throw new Exception('never get to this Obj6::yes'); | |
| 53837 | + public function to(): stdClass { | |
| 53838 | + $out = new stdClass(); | |
| 53839 | + $out->{'unsafe'} = $this->toUnsafe(); | |
| 53840 | + return $out; | |
| 53231 | 53841 | } |
| 53232 | 53842 | |
| 53233 | 53843 | /** |
| 53234 | - * @param Yes | |
| 53235 | - * @return bool | |
| 53844 | + * @param stdClass $obj | |
| 53845 | + * @return Unsafe | |
| 53236 | 53846 | * @throws Exception |
| 53237 | 53847 | */ |
| 53238 | - public static function validateYes(Yes $value): bool { | |
| 53239 | - $value->validate(); | |
| 53240 | - return true; | |
| 53848 | + public static function from(stdClass $obj): Unsafe { | |
| 53849 | + if (!property_exists($obj, 'unsafe')) { | |
| 53850 | + throw new Exception("Missing required property"); | |
| 53851 | + } | |
| 53852 | + return new Unsafe( | |
| 53853 | + Unsafe::fromUnsafe($obj->{'unsafe'}) | |
| 53854 | + ); | |
| 53241 | 53855 | } |
| 53242 | 53856 | |
| 53243 | 53857 | /** |
| 53244 | - * @throws Exception | |
| 53245 | - * @return Yes | |
| 53858 | + * @return Unsafe | |
| 53246 | 53859 | */ |
| 53247 | - public function getYes(): Yes { | |
| 53248 | - if (Obj6::validateYes($this->yes)) { | |
| 53249 | - return $this->yes; | |
| 53250 | - } | |
| 53251 | - throw new Exception('never get to getYes Obj6::yes'); | |
| 53860 | + public static function sample(): Unsafe { | |
| 53861 | + return new Unsafe( | |
| 53862 | + Unsafe::sampleUnsafe() | |
| 53863 | + ); | |
| 53252 | 53864 | } |
| 53865 | +} | |
| 53866 | + | |
| 53867 | +// This is an autogenerated file:Unsigned | |
| 53868 | + | |
| 53869 | +class Unsigned { | |
| 53870 | + private int $unsigned; // json:unsigned Required | |
| 53253 | 53871 | |
| 53254 | 53872 | /** |
| 53255 | - * @return Yes | |
| 53873 | + * @param int $unsigned | |
| 53256 | 53874 | */ |
| 53257 | - public static function sampleYes(): Yes { | |
| 53258 | - return Yes::sample(); /*50:yes*/ | |
| 53875 | + public function __construct(int $unsigned) { | |
| 53876 | + $this->unsigned = $unsigned; | |
| 53259 | 53877 | } |
| 53260 | 53878 | |
| 53261 | 53879 | /** |
| 53262 | - * @param stdClass $value | |
| 53880 | + * @param int $value | |
| 53263 | 53881 | * @throws Exception |
| 53264 | - * @return YieldClass | |
| 53882 | + * @return int | |
| 53265 | 53883 | */ |
| 53266 | - public static function fromYield(stdClass $value): YieldClass { | |
| 53267 | - return YieldClass::from($value); /*class*/ | |
| 53884 | + public static function fromUnsigned(int $value): int { | |
| 53885 | + return $value; /*int*/ | |
| 53268 | 53886 | } |
| 53269 | 53887 | |
| 53270 | 53888 | /** |
| 53271 | 53889 | * @throws Exception |
| 53272 | - * @return stdClass | |
| 53890 | + * @return int | |
| 53273 | 53891 | */ |
| 53274 | - public function toYield(): stdClass { | |
| 53275 | - if (Obj6::validateYield($this->yield)) { | |
| 53276 | - return $this->yield->to(); /*class*/ | |
| 53892 | + public function toUnsigned(): int { | |
| 53893 | + if (Unsigned::validateUnsigned($this->unsigned)) { | |
| 53894 | + return $this->unsigned; /*int*/ | |
| 53277 | 53895 | } |
| 53278 | - throw new Exception('never get to this Obj6::yield'); | |
| 53896 | + throw new Exception('never get to this Unsigned::unsigned'); | |
| 53279 | 53897 | } |
| 53280 | 53898 | |
| 53281 | 53899 | /** |
| 53282 | - * @param YieldClass | |
| 53900 | + * @param int | |
| 53283 | 53901 | * @return bool |
| 53284 | 53902 | * @throws Exception |
| 53285 | 53903 | */ |
| 53286 | - public static function validateYield(YieldClass $value): bool { | |
| 53287 | - $value->validate(); | |
| 53904 | + public static function validateUnsigned(int $value): bool { | |
| 53288 | 53905 | return true; |
| 53289 | 53906 | } |
| 53290 | 53907 | |
| 53291 | 53908 | /** |
| 53292 | 53909 | * @throws Exception |
| 53293 | - * @return YieldClass | |
| 53910 | + * @return int | |
| 53294 | 53911 | */ |
| 53295 | - public function getYield(): YieldClass { | |
| 53296 | - if (Obj6::validateYield($this->yield)) { | |
| 53297 | - return $this->yield; | |
| 53912 | + public function getUnsigned(): int { | |
| 53913 | + if (Unsigned::validateUnsigned($this->unsigned)) { | |
| 53914 | + return $this->unsigned; | |
| 53298 | 53915 | } |
| 53299 | - throw new Exception('never get to getYield Obj6::yield'); | |
| 53916 | + throw new Exception('never get to getUnsigned Unsigned::unsigned'); | |
| 53300 | 53917 | } |
| 53301 | 53918 | |
| 53302 | 53919 | /** |
| 53303 | - * @return YieldClass | |
| 53920 | + * @return int | |
| 53304 | 53921 | */ |
| 53305 | - public static function sampleYield(): YieldClass { | |
| 53306 | - return YieldClass::sample(); /*51:yield*/ | |
| 53922 | + public static function sampleUnsigned(): int { | |
| 53923 | + return 31; /*31:unsigned*/ | |
| 53307 | 53924 | } |
| 53308 | 53925 | |
| 53309 | 53926 | /** |
| @@ -53311,27 +53928,7 @@ class Obj6 { | ||
| 53311 | 53928 | * @return bool |
| 53312 | 53929 | */ |
| 53313 | 53930 | public function validate(): bool { |
| 53314 | - return Obj6::validateDummy($this->dummy) | |
| 53315 | - || Obj6::validateUnsigned($this->unsigned) | |
| 53316 | - || Obj6::validateUshort($this->ushort) | |
| 53317 | - || Obj6::validateUsing($this->using) | |
| 53318 | - || Obj6::validateUtf8JSONReader($this->utf8JSONReader) | |
| 53319 | - || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter) | |
| 53320 | - || Obj6::validateUUID($this->uuid) | |
| 53321 | - || Obj6::validateVar($this->var) | |
| 53322 | - || Obj6::validateVirtual($this->virtual) | |
| 53323 | - || Obj6::validateVoid($this->void) | |
| 53324 | - || Obj6::validateVolatile($this->volatile) | |
| 53325 | - || Obj6::validateWcharT($this->wcharT) | |
| 53326 | - || Obj6::validateWeak($this->weak) | |
| 53327 | - || Obj6::validateWhere($this->where) | |
| 53328 | - || Obj6::validateWhile($this->while) | |
| 53329 | - || Obj6::validateWillSet($this->willSet) | |
| 53330 | - || Obj6::validateWith($this->with) | |
| 53331 | - || Obj6::validateXor($this->xor) | |
| 53332 | - || Obj6::validateXorEq($this->xorEq) | |
| 53333 | - || Obj6::validateYes($this->yes) | |
| 53334 | - || Obj6::validateYield($this->yield); | |
| 53931 | + return Unsigned::validateUnsigned($this->unsigned); | |
| 53335 | 53932 | } |
| 53336 | 53933 | |
| 53337 | 53934 | /** |
| @@ -53340,164 +53937,44 @@ class Obj6 { | ||
| 53340 | 53937 | */ |
| 53341 | 53938 | public function to(): stdClass { |
| 53342 | 53939 | $out = new stdClass(); |
| 53343 | - $out->{'dummy'} = $this->toDummy(); | |
| 53344 | 53940 | $out->{'unsigned'} = $this->toUnsigned(); |
| 53345 | - $out->{'ushort'} = $this->toUshort(); | |
| 53346 | - $out->{'using'} = $this->toUsing(); | |
| 53347 | - $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader(); | |
| 53348 | - $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter(); | |
| 53349 | - $out->{'UUID'} = $this->toUUID(); | |
| 53350 | - $out->{'var'} = $this->toVar(); | |
| 53351 | - $out->{'virtual'} = $this->toVirtual(); | |
| 53352 | - $out->{'void'} = $this->toVoid(); | |
| 53353 | - $out->{'volatile'} = $this->toVolatile(); | |
| 53354 | - $out->{'wchar_t'} = $this->toWcharT(); | |
| 53355 | - $out->{'weak'} = $this->toWeak(); | |
| 53356 | - $out->{'where'} = $this->toWhere(); | |
| 53357 | - $out->{'while'} = $this->toWhile(); | |
| 53358 | - $out->{'willSet'} = $this->toWillSet(); | |
| 53359 | - $out->{'with'} = $this->toWith(); | |
| 53360 | - $out->{'xor'} = $this->toXor(); | |
| 53361 | - $out->{'xor_eq'} = $this->toXorEq(); | |
| 53362 | - $out->{'YES'} = $this->toYes(); | |
| 53363 | - $out->{'yield'} = $this->toYield(); | |
| 53364 | 53941 | return $out; |
| 53365 | 53942 | } |
| 53366 | 53943 | |
| 53367 | 53944 | /** |
| 53368 | 53945 | * @param stdClass $obj |
| 53369 | - * @return Obj6 | |
| 53946 | + * @return Unsigned | |
| 53370 | 53947 | * @throws Exception |
| 53371 | 53948 | */ |
| 53372 | - public static function from(stdClass $obj): Obj6 { | |
| 53373 | - if (!property_exists($obj, 'dummy')) { | |
| 53374 | - throw new Exception("Missing required property"); | |
| 53375 | - } | |
| 53949 | + public static function from(stdClass $obj): Unsigned { | |
| 53376 | 53950 | if (!property_exists($obj, 'unsigned')) { |
| 53377 | 53951 | throw new Exception("Missing required property"); |
| 53378 | 53952 | } |
| 53379 | - if (!property_exists($obj, 'ushort')) { | |
| 53380 | - throw new Exception("Missing required property"); | |
| 53381 | - } | |
| 53382 | - if (!property_exists($obj, 'using')) { | |
| 53383 | - throw new Exception("Missing required property"); | |
| 53384 | - } | |
| 53385 | - if (!property_exists($obj, 'Utf8JsonReader')) { | |
| 53386 | - throw new Exception("Missing required property"); | |
| 53387 | - } | |
| 53388 | - if (!property_exists($obj, 'Utf8JsonWriter')) { | |
| 53389 | - throw new Exception("Missing required property"); | |
| 53390 | - } | |
| 53391 | - if (!property_exists($obj, 'UUID')) { | |
| 53392 | - throw new Exception("Missing required property"); | |
| 53393 | - } | |
| 53394 | - if (!property_exists($obj, 'var')) { | |
| 53395 | - throw new Exception("Missing required property"); | |
| 53396 | - } | |
| 53397 | - if (!property_exists($obj, 'virtual')) { | |
| 53398 | - throw new Exception("Missing required property"); | |
| 53399 | - } | |
| 53400 | - if (!property_exists($obj, 'void')) { | |
| 53401 | - throw new Exception("Missing required property"); | |
| 53402 | - } | |
| 53403 | - if (!property_exists($obj, 'volatile')) { | |
| 53404 | - throw new Exception("Missing required property"); | |
| 53405 | - } | |
| 53406 | - if (!property_exists($obj, 'wchar_t')) { | |
| 53407 | - throw new Exception("Missing required property"); | |
| 53408 | - } | |
| 53409 | - if (!property_exists($obj, 'weak')) { | |
| 53410 | - throw new Exception("Missing required property"); | |
| 53411 | - } | |
| 53412 | - if (!property_exists($obj, 'where')) { | |
| 53413 | - throw new Exception("Missing required property"); | |
| 53414 | - } | |
| 53415 | - if (!property_exists($obj, 'while')) { | |
| 53416 | - throw new Exception("Missing required property"); | |
| 53417 | - } | |
| 53418 | - if (!property_exists($obj, 'willSet')) { | |
| 53419 | - throw new Exception("Missing required property"); | |
| 53420 | - } | |
| 53421 | - if (!property_exists($obj, 'with')) { | |
| 53422 | - throw new Exception("Missing required property"); | |
| 53423 | - } | |
| 53424 | - if (!property_exists($obj, 'xor')) { | |
| 53425 | - throw new Exception("Missing required property"); | |
| 53426 | - } | |
| 53427 | - if (!property_exists($obj, 'xor_eq')) { | |
| 53428 | - throw new Exception("Missing required property"); | |
| 53429 | - } | |
| 53430 | - if (!property_exists($obj, 'YES')) { | |
| 53431 | - throw new Exception("Missing required property"); | |
| 53432 | - } | |
| 53433 | - if (!property_exists($obj, 'yield')) { | |
| 53434 | - throw new Exception("Missing required property"); | |
| 53435 | - } | |
| 53436 | - return new Obj6( | |
| 53437 | - Obj6::fromDummy($obj->{'dummy'}) | |
| 53438 | - ,Obj6::fromUnsigned($obj->{'unsigned'}) | |
| 53439 | - ,Obj6::fromUshort($obj->{'ushort'}) | |
| 53440 | - ,Obj6::fromUsing($obj->{'using'}) | |
| 53441 | - ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'}) | |
| 53442 | - ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'}) | |
| 53443 | - ,Obj6::fromUUID($obj->{'UUID'}) | |
| 53444 | - ,Obj6::fromVar($obj->{'var'}) | |
| 53445 | - ,Obj6::fromVirtual($obj->{'virtual'}) | |
| 53446 | - ,Obj6::fromVoid($obj->{'void'}) | |
| 53447 | - ,Obj6::fromVolatile($obj->{'volatile'}) | |
| 53448 | - ,Obj6::fromWcharT($obj->{'wchar_t'}) | |
| 53449 | - ,Obj6::fromWeak($obj->{'weak'}) | |
| 53450 | - ,Obj6::fromWhere($obj->{'where'}) | |
| 53451 | - ,Obj6::fromWhile($obj->{'while'}) | |
| 53452 | - ,Obj6::fromWillSet($obj->{'willSet'}) | |
| 53453 | - ,Obj6::fromWith($obj->{'with'}) | |
| 53454 | - ,Obj6::fromXor($obj->{'xor'}) | |
| 53455 | - ,Obj6::fromXorEq($obj->{'xor_eq'}) | |
| 53456 | - ,Obj6::fromYes($obj->{'YES'}) | |
| 53457 | - ,Obj6::fromYield($obj->{'yield'}) | |
| 53953 | + return new Unsigned( | |
| 53954 | + Unsigned::fromUnsigned($obj->{'unsigned'}) | |
| 53458 | 53955 | ); |
| 53459 | 53956 | } |
| 53460 | 53957 | |
| 53461 | 53958 | /** |
| 53462 | - * @return Obj6 | |
| 53959 | + * @return Unsigned | |
| 53463 | 53960 | */ |
| 53464 | - public static function sample(): Obj6 { | |
| 53465 | - return new Obj6( | |
| 53466 | - Obj6::sampleDummy() | |
| 53467 | - ,Obj6::sampleUnsigned() | |
| 53468 | - ,Obj6::sampleUshort() | |
| 53469 | - ,Obj6::sampleUsing() | |
| 53470 | - ,Obj6::sampleUtf8JSONReader() | |
| 53471 | - ,Obj6::sampleUtf8JSONWriter() | |
| 53472 | - ,Obj6::sampleUUID() | |
| 53473 | - ,Obj6::sampleVar() | |
| 53474 | - ,Obj6::sampleVirtual() | |
| 53475 | - ,Obj6::sampleVoid() | |
| 53476 | - ,Obj6::sampleVolatile() | |
| 53477 | - ,Obj6::sampleWcharT() | |
| 53478 | - ,Obj6::sampleWeak() | |
| 53479 | - ,Obj6::sampleWhere() | |
| 53480 | - ,Obj6::sampleWhile() | |
| 53481 | - ,Obj6::sampleWillSet() | |
| 53482 | - ,Obj6::sampleWith() | |
| 53483 | - ,Obj6::sampleXor() | |
| 53484 | - ,Obj6::sampleXorEq() | |
| 53485 | - ,Obj6::sampleYes() | |
| 53486 | - ,Obj6::sampleYield() | |
| 53961 | + public static function sample(): Unsigned { | |
| 53962 | + return new Unsigned( | |
| 53963 | + Unsigned::sampleUnsigned() | |
| 53487 | 53964 | ); |
| 53488 | 53965 | } |
| 53489 | 53966 | } |
| 53490 | 53967 | |
| 53491 | -// This is an autogenerated file:Unsigned | |
| 53968 | +// This is an autogenerated file:UseSerializers | |
| 53492 | 53969 | |
| 53493 | -class Unsigned { | |
| 53494 | - private int $unsigned; // json:unsigned Required | |
| 53970 | +class UseSerializers { | |
| 53971 | + private int $useSerializers; // json:UseSerializers Required | |
| 53495 | 53972 | |
| 53496 | 53973 | /** |
| 53497 | - * @param int $unsigned | |
| 53974 | + * @param int $useSerializers | |
| 53498 | 53975 | */ |
| 53499 | - public function __construct(int $unsigned) { | |
| 53500 | - $this->unsigned = $unsigned; | |
| 53976 | + public function __construct(int $useSerializers) { | |
| 53977 | + $this->useSerializers = $useSerializers; | |
| 53501 | 53978 | } |
| 53502 | 53979 | |
| 53503 | 53980 | /** |
| @@ -53505,7 +53982,7 @@ class Unsigned { | ||
| 53505 | 53982 | * @throws Exception |
| 53506 | 53983 | * @return int |
| 53507 | 53984 | */ |
| 53508 | - public static function fromUnsigned(int $value): int { | |
| 53985 | + public static function fromUseSerializers(int $value): int { | |
| 53509 | 53986 | return $value; /*int*/ |
| 53510 | 53987 | } |
| 53511 | 53988 | |
| @@ -53513,11 +53990,11 @@ class Unsigned { | ||
| 53513 | 53990 | * @throws Exception |
| 53514 | 53991 | * @return int |
| 53515 | 53992 | */ |
| 53516 | - public function toUnsigned(): int { | |
| 53517 | - if (Unsigned::validateUnsigned($this->unsigned)) { | |
| 53518 | - return $this->unsigned; /*int*/ | |
| 53993 | + public function toUseSerializers(): int { | |
| 53994 | + if (UseSerializers::validateUseSerializers($this->useSerializers)) { | |
| 53995 | + return $this->useSerializers; /*int*/ | |
| 53519 | 53996 | } |
| 53520 | - throw new Exception('never get to this Unsigned::unsigned'); | |
| 53997 | + throw new Exception('never get to this UseSerializers::useSerializers'); | |
| 53521 | 53998 | } |
| 53522 | 53999 | |
| 53523 | 54000 | /** |
| @@ -53525,7 +54002,7 @@ class Unsigned { | ||
| 53525 | 54002 | * @return bool |
| 53526 | 54003 | * @throws Exception |
| 53527 | 54004 | */ |
| 53528 | - public static function validateUnsigned(int $value): bool { | |
| 54005 | + public static function validateUseSerializers(int $value): bool { | |
| 53529 | 54006 | return true; |
| 53530 | 54007 | } |
| 53531 | 54008 | |
| @@ -53533,18 +54010,18 @@ class Unsigned { | ||
| 53533 | 54010 | * @throws Exception |
| 53534 | 54011 | * @return int |
| 53535 | 54012 | */ |
| 53536 | - public function getUnsigned(): int { | |
| 53537 | - if (Unsigned::validateUnsigned($this->unsigned)) { | |
| 53538 | - return $this->unsigned; | |
| 54013 | + public function getUseSerializers(): int { | |
| 54014 | + if (UseSerializers::validateUseSerializers($this->useSerializers)) { | |
| 54015 | + return $this->useSerializers; | |
| 53539 | 54016 | } |
| 53540 | - throw new Exception('never get to getUnsigned Unsigned::unsigned'); | |
| 54017 | + throw new Exception('never get to getUseSerializers UseSerializers::useSerializers'); | |
| 53541 | 54018 | } |
| 53542 | 54019 | |
| 53543 | 54020 | /** |
| 53544 | 54021 | * @return int |
| 53545 | 54022 | */ |
| 53546 | - public static function sampleUnsigned(): int { | |
| 53547 | - return 31; /*31:unsigned*/ | |
| 54023 | + public static function sampleUseSerializers(): int { | |
| 54024 | + return 31; /*31:useSerializers*/ | |
| 53548 | 54025 | } |
| 53549 | 54026 | |
| 53550 | 54027 | /** |
| @@ -53552,7 +54029,7 @@ class Unsigned { | ||
| 53552 | 54029 | * @return bool |
| 53553 | 54030 | */ |
| 53554 | 54031 | public function validate(): bool { |
| 53555 | - return Unsigned::validateUnsigned($this->unsigned); | |
| 54032 | + return UseSerializers::validateUseSerializers($this->useSerializers); | |
| 53556 | 54033 | } |
| 53557 | 54034 | |
| 53558 | 54035 | /** |
| @@ -53561,30 +54038,30 @@ class Unsigned { | ||
| 53561 | 54038 | */ |
| 53562 | 54039 | public function to(): stdClass { |
| 53563 | 54040 | $out = new stdClass(); |
| 53564 | - $out->{'unsigned'} = $this->toUnsigned(); | |
| 54041 | + $out->{'UseSerializers'} = $this->toUseSerializers(); | |
| 53565 | 54042 | return $out; |
| 53566 | 54043 | } |
| 53567 | 54044 | |
| 53568 | 54045 | /** |
| 53569 | 54046 | * @param stdClass $obj |
| 53570 | - * @return Unsigned | |
| 54047 | + * @return UseSerializers | |
| 53571 | 54048 | * @throws Exception |
| 53572 | 54049 | */ |
| 53573 | - public static function from(stdClass $obj): Unsigned { | |
| 53574 | - if (!property_exists($obj, 'unsigned')) { | |
| 54050 | + public static function from(stdClass $obj): UseSerializers { | |
| 54051 | + if (!property_exists($obj, 'UseSerializers')) { | |
| 53575 | 54052 | throw new Exception("Missing required property"); |
| 53576 | 54053 | } |
| 53577 | - return new Unsigned( | |
| 53578 | - Unsigned::fromUnsigned($obj->{'unsigned'}) | |
| 54054 | + return new UseSerializers( | |
| 54055 | + UseSerializers::fromUseSerializers($obj->{'UseSerializers'}) | |
| 53579 | 54056 | ); |
| 53580 | 54057 | } |
| 53581 | 54058 | |
| 53582 | 54059 | /** |
| 53583 | - * @return Unsigned | |
| 54060 | + * @return UseSerializers | |
| 53584 | 54061 | */ |
| 53585 | - public static function sample(): Unsigned { | |
| 53586 | - return new Unsigned( | |
| 53587 | - Unsigned::sampleUnsigned() | |
| 54062 | + public static function sample(): UseSerializers { | |
| 54063 | + return new UseSerializers( | |
| 54064 | + UseSerializers::sampleUseSerializers() | |
| 53588 | 54065 | ); |
| 53589 | 54066 | } |
| 53590 | 54067 | } |
Mpikedefault / TopLevel.pmod+350 −275
| @@ -3352,6 +3352,7 @@ class Obj3 { | ||
| 3352 | 3352 | Left left; // json: "left" |
| 3353 | 3353 | Let let; // json: "let" |
| 3354 | 3354 | List list; // json: "list" |
| 3355 | + LocalDate local_date; // json: "LocalDate" | |
| 3355 | 3356 | Locale locale; // json: "Locale" |
| 3356 | 3357 | Lock lock; // json: "lock" |
| 3357 | 3358 | Long long; // json: "long" |
| @@ -3366,8 +3367,6 @@ class Obj3 { | ||
| 3366 | 3367 | Native native; // json: "native" |
| 3367 | 3368 | New new; // json: "new" |
| 3368 | 3369 | Newtonsoft newtonsoft; // json: "newtonsoft" |
| 3369 | - Nil nil; // json: "nil" | |
| 3370 | - No no; // json: "NO" | |
| 3371 | 3370 | If obj3_if; // json: "if" |
| 3372 | 3371 | Import obj3_import; // json: "import" |
| 3373 | 3372 | Inline obj3_inline; // json: "inline" |
| @@ -3421,6 +3420,7 @@ class Obj3 { | ||
| 3421 | 3420 | "left" : left, |
| 3422 | 3421 | "let" : let, |
| 3423 | 3422 | "list" : list, |
| 3423 | + "LocalDate" : local_date, | |
| 3424 | 3424 | "Locale" : locale, |
| 3425 | 3425 | "lock" : lock, |
| 3426 | 3426 | "long" : long, |
| @@ -3435,8 +3435,6 @@ class Obj3 { | ||
| 3435 | 3435 | "native" : native, |
| 3436 | 3436 | "new" : new, |
| 3437 | 3437 | "newtonsoft" : newtonsoft, |
| 3438 | - "nil" : nil, | |
| 3439 | - "NO" : no, | |
| 3440 | 3438 | "if" : obj3_if, |
| 3441 | 3439 | "import" : obj3_import, |
| 3442 | 3440 | "inline" : obj3_inline, |
| @@ -3541,6 +3539,8 @@ Obj3 Obj3_from_JSON(mixed json) { | ||
| 3541 | 3539 | retval.let = json["let"]; |
| 3542 | 3540 | if (!mappingp(json["list"])) error("Expected object"); |
| 3543 | 3541 | retval.list = json["list"]; |
| 3542 | + if (!mappingp(json["LocalDate"])) error("Expected object"); | |
| 3543 | + retval.local_date = json["LocalDate"]; | |
| 3544 | 3544 | if (!mappingp(json["Locale"])) error("Expected object"); |
| 3545 | 3545 | retval.locale = json["Locale"]; |
| 3546 | 3546 | if (!mappingp(json["lock"])) error("Expected object"); |
| @@ -3569,10 +3569,6 @@ Obj3 Obj3_from_JSON(mixed json) { | ||
| 3569 | 3569 | retval.new = json["new"]; |
| 3570 | 3570 | if (!mappingp(json["newtonsoft"])) error("Expected object"); |
| 3571 | 3571 | retval.newtonsoft = json["newtonsoft"]; |
| 3572 | - if (!mappingp(json["nil"])) error("Expected object"); | |
| 3573 | - retval.nil = json["nil"]; | |
| 3574 | - if (!mappingp(json["NO"])) error("Expected object"); | |
| 3575 | - retval.no = json["NO"]; | |
| 3576 | 3572 | if (!mappingp(json["if"])) error("Expected object"); |
| 3577 | 3573 | retval.obj3_if = json["if"]; |
| 3578 | 3574 | if (!mappingp(json["import"])) error("Expected object"); |
| @@ -4510,6 +4506,27 @@ List List_from_JSON(mixed json) { | ||
| 4510 | 4506 | return retval; |
| 4511 | 4507 | } |
| 4512 | 4508 | |
| 4509 | +class LocalDate { | |
| 4510 | + int local_date; // json: "LocalDate" | |
| 4511 | + | |
| 4512 | + string encode_json() { | |
| 4513 | + mapping(string:mixed) json = ([ | |
| 4514 | + "LocalDate" : local_date, | |
| 4515 | + ]); | |
| 4516 | + | |
| 4517 | + return Standards.JSON.encode(json); | |
| 4518 | + } | |
| 4519 | +} | |
| 4520 | + | |
| 4521 | +LocalDate LocalDate_from_JSON(mixed json) { | |
| 4522 | + LocalDate retval = LocalDate(); | |
| 4523 | + | |
| 4524 | + if (!intp(json["LocalDate"])) error("Expected integer"); | |
| 4525 | + retval.local_date = json["LocalDate"]; | |
| 4526 | + | |
| 4527 | + return retval; | |
| 4528 | +} | |
| 4529 | + | |
| 4513 | 4530 | class Locale { |
| 4514 | 4531 | int locale; // json: "Locale" |
| 4515 | 4532 | |
| @@ -4804,48 +4821,6 @@ Newtonsoft Newtonsoft_from_JSON(mixed json) { | ||
| 4804 | 4821 | return retval; |
| 4805 | 4822 | } |
| 4806 | 4823 | |
| 4807 | -class Nil { | |
| 4808 | - int nil; // json: "nil" | |
| 4809 | - | |
| 4810 | - string encode_json() { | |
| 4811 | - mapping(string:mixed) json = ([ | |
| 4812 | - "nil" : nil, | |
| 4813 | - ]); | |
| 4814 | - | |
| 4815 | - return Standards.JSON.encode(json); | |
| 4816 | - } | |
| 4817 | -} | |
| 4818 | - | |
| 4819 | -Nil Nil_from_JSON(mixed json) { | |
| 4820 | - Nil retval = Nil(); | |
| 4821 | - | |
| 4822 | - if (!intp(json["nil"])) error("Expected integer"); | |
| 4823 | - retval.nil = json["nil"]; | |
| 4824 | - | |
| 4825 | - return retval; | |
| 4826 | -} | |
| 4827 | - | |
| 4828 | -class No { | |
| 4829 | - int no; // json: "NO" | |
| 4830 | - | |
| 4831 | - string encode_json() { | |
| 4832 | - mapping(string:mixed) json = ([ | |
| 4833 | - "NO" : no, | |
| 4834 | - ]); | |
| 4835 | - | |
| 4836 | - return Standards.JSON.encode(json); | |
| 4837 | - } | |
| 4838 | -} | |
| 4839 | - | |
| 4840 | -No No_from_JSON(mixed json) { | |
| 4841 | - No retval = No(); | |
| 4842 | - | |
| 4843 | - if (!intp(json["NO"])) error("Expected integer"); | |
| 4844 | - retval.no = json["NO"]; | |
| 4845 | - | |
| 4846 | - return retval; | |
| 4847 | -} | |
| 4848 | - | |
| 4849 | 4824 | class If { |
| 4850 | 4825 | int if_if; // json: "if" |
| 4851 | 4826 | |
| @@ -4953,6 +4928,8 @@ Lambda Lambda_from_JSON(mixed json) { | ||
| 4953 | 4928 | |
| 4954 | 4929 | class Obj4 { |
| 4955 | 4930 | int dummy; // json: "dummy" |
| 4931 | + Nil nil; // json: "nil" | |
| 4932 | + No no; // json: "NO" | |
| 4956 | 4933 | NoSuchMethod no_such_method; // json: "noSuchMethod" |
| 4957 | 4934 | Noexcept noexcept; // json: "noexcept" |
| 4958 | 4935 | Nonatomic nonatomic; // json: "nonatomic" |
| @@ -4978,6 +4955,8 @@ class Obj4 { | ||
| 4978 | 4955 | Return obj4_return; // json: "return" |
| 4979 | 4956 | ObjectMapper object_mapper; // json: "ObjectMapper" |
| 4980 | 4957 | Of of; // json: "of" |
| 4958 | + OffsetDateTime offset_date_time; // json: "OffsetDateTime" | |
| 4959 | + OffsetTime offset_time; // json: "OffsetTime" | |
| 4981 | 4960 | Oneway oneway; // json: "oneway" |
| 4982 | 4961 | Open open; // json: "open" |
| 4983 | 4962 | Operator operator; // json: "operator" |
| @@ -5013,14 +4992,12 @@ class Obj4 { | ||
| 5013 | 4992 | Rethrows rethrows; // json: "rethrows" |
| 5014 | 4993 | Right right; // json: "right" |
| 5015 | 4994 | RuntimeType runtime_type; // json: "runtimeType" |
| 5016 | - S s; // json: "s" | |
| 5017 | - Sbyte sbyte; // json: "sbyte" | |
| 5018 | - Sealed sealed; // json: "sealed" | |
| 5019 | - Sel sel; // json: "SEL" | |
| 5020 | 4995 | |
| 5021 | 4996 | string encode_json() { |
| 5022 | 4997 | mapping(string:mixed) json = ([ |
| 5023 | 4998 | "dummy" : dummy, |
| 4999 | + "nil" : nil, | |
| 5000 | + "NO" : no, | |
| 5024 | 5001 | "noSuchMethod" : no_such_method, |
| 5025 | 5002 | "noexcept" : noexcept, |
| 5026 | 5003 | "nonatomic" : nonatomic, |
| @@ -5046,6 +5023,8 @@ class Obj4 { | ||
| 5046 | 5023 | "return" : obj4_return, |
| 5047 | 5024 | "ObjectMapper" : object_mapper, |
| 5048 | 5025 | "of" : of, |
| 5026 | + "OffsetDateTime" : offset_date_time, | |
| 5027 | + "OffsetTime" : offset_time, | |
| 5049 | 5028 | "oneway" : oneway, |
| 5050 | 5029 | "open" : open, |
| 5051 | 5030 | "operator" : operator, |
| @@ -5081,10 +5060,6 @@ class Obj4 { | ||
| 5081 | 5060 | "rethrows" : rethrows, |
| 5082 | 5061 | "right" : right, |
| 5083 | 5062 | "runtimeType" : runtime_type, |
| 5084 | - "s" : s, | |
| 5085 | - "sbyte" : sbyte, | |
| 5086 | - "sealed" : sealed, | |
| 5087 | - "SEL" : sel, | |
| 5088 | 5063 | ]); |
| 5089 | 5064 | |
| 5090 | 5065 | return Standards.JSON.encode(json); |
| @@ -5096,6 +5071,10 @@ Obj4 Obj4_from_JSON(mixed json) { | ||
| 5096 | 5071 | |
| 5097 | 5072 | if (!intp(json["dummy"])) error("Expected integer"); |
| 5098 | 5073 | retval.dummy = json["dummy"]; |
| 5074 | + if (!mappingp(json["nil"])) error("Expected object"); | |
| 5075 | + retval.nil = json["nil"]; | |
| 5076 | + if (!mappingp(json["NO"])) error("Expected object"); | |
| 5077 | + retval.no = json["NO"]; | |
| 5099 | 5078 | if (!mappingp(json["noSuchMethod"])) error("Expected object"); |
| 5100 | 5079 | retval.no_such_method = json["noSuchMethod"]; |
| 5101 | 5080 | if (!mappingp(json["noexcept"])) error("Expected object"); |
| @@ -5146,6 +5125,10 @@ Obj4 Obj4_from_JSON(mixed json) { | ||
| 5146 | 5125 | retval.object_mapper = json["ObjectMapper"]; |
| 5147 | 5126 | if (!mappingp(json["of"])) error("Expected object"); |
| 5148 | 5127 | retval.of = json["of"]; |
| 5128 | + if (!mappingp(json["OffsetDateTime"])) error("Expected object"); | |
| 5129 | + retval.offset_date_time = json["OffsetDateTime"]; | |
| 5130 | + if (!mappingp(json["OffsetTime"])) error("Expected object"); | |
| 5131 | + retval.offset_time = json["OffsetTime"]; | |
| 5149 | 5132 | if (!mappingp(json["oneway"])) error("Expected object"); |
| 5150 | 5133 | retval.oneway = json["oneway"]; |
| 5151 | 5134 | if (!mappingp(json["open"])) error("Expected object"); |
| @@ -5216,14 +5199,48 @@ Obj4 Obj4_from_JSON(mixed json) { | ||
| 5216 | 5199 | retval.right = json["right"]; |
| 5217 | 5200 | if (!mappingp(json["runtimeType"])) error("Expected object"); |
| 5218 | 5201 | retval.runtime_type = json["runtimeType"]; |
| 5219 | - if (!mappingp(json["s"])) error("Expected object"); | |
| 5220 | - retval.s = json["s"]; | |
| 5221 | - if (!mappingp(json["sbyte"])) error("Expected object"); | |
| 5222 | - retval.sbyte = json["sbyte"]; | |
| 5223 | - if (!mappingp(json["sealed"])) error("Expected object"); | |
| 5224 | - retval.sealed = json["sealed"]; | |
| 5225 | - if (!mappingp(json["SEL"])) error("Expected object"); | |
| 5226 | - retval.sel = json["SEL"]; | |
| 5202 | + | |
| 5203 | + return retval; | |
| 5204 | +} | |
| 5205 | + | |
| 5206 | +class Nil { | |
| 5207 | + int nil; // json: "nil" | |
| 5208 | + | |
| 5209 | + string encode_json() { | |
| 5210 | + mapping(string:mixed) json = ([ | |
| 5211 | + "nil" : nil, | |
| 5212 | + ]); | |
| 5213 | + | |
| 5214 | + return Standards.JSON.encode(json); | |
| 5215 | + } | |
| 5216 | +} | |
| 5217 | + | |
| 5218 | +Nil Nil_from_JSON(mixed json) { | |
| 5219 | + Nil retval = Nil(); | |
| 5220 | + | |
| 5221 | + if (!intp(json["nil"])) error("Expected integer"); | |
| 5222 | + retval.nil = json["nil"]; | |
| 5223 | + | |
| 5224 | + return retval; | |
| 5225 | +} | |
| 5226 | + | |
| 5227 | +class No { | |
| 5228 | + int no; // json: "NO" | |
| 5229 | + | |
| 5230 | + string encode_json() { | |
| 5231 | + mapping(string:mixed) json = ([ | |
| 5232 | + "NO" : no, | |
| 5233 | + ]); | |
| 5234 | + | |
| 5235 | + return Standards.JSON.encode(json); | |
| 5236 | + } | |
| 5237 | +} | |
| 5238 | + | |
| 5239 | +No No_from_JSON(mixed json) { | |
| 5240 | + No retval = No(); | |
| 5241 | + | |
| 5242 | + if (!intp(json["NO"])) error("Expected integer"); | |
| 5243 | + retval.no = json["NO"]; | |
| 5227 | 5244 | |
| 5228 | 5245 | return retval; |
| 5229 | 5246 | } |
| @@ -5753,6 +5770,48 @@ Of Of_from_JSON(mixed json) { | ||
| 5753 | 5770 | return retval; |
| 5754 | 5771 | } |
| 5755 | 5772 | |
| 5773 | +class OffsetDateTime { | |
| 5774 | + int offset_date_time; // json: "OffsetDateTime" | |
| 5775 | + | |
| 5776 | + string encode_json() { | |
| 5777 | + mapping(string:mixed) json = ([ | |
| 5778 | + "OffsetDateTime" : offset_date_time, | |
| 5779 | + ]); | |
| 5780 | + | |
| 5781 | + return Standards.JSON.encode(json); | |
| 5782 | + } | |
| 5783 | +} | |
| 5784 | + | |
| 5785 | +OffsetDateTime OffsetDateTime_from_JSON(mixed json) { | |
| 5786 | + OffsetDateTime retval = OffsetDateTime(); | |
| 5787 | + | |
| 5788 | + if (!intp(json["OffsetDateTime"])) error("Expected integer"); | |
| 5789 | + retval.offset_date_time = json["OffsetDateTime"]; | |
| 5790 | + | |
| 5791 | + return retval; | |
| 5792 | +} | |
| 5793 | + | |
| 5794 | +class OffsetTime { | |
| 5795 | + int offset_time; // json: "OffsetTime" | |
| 5796 | + | |
| 5797 | + string encode_json() { | |
| 5798 | + mapping(string:mixed) json = ([ | |
| 5799 | + "OffsetTime" : offset_time, | |
| 5800 | + ]); | |
| 5801 | + | |
| 5802 | + return Standards.JSON.encode(json); | |
| 5803 | + } | |
| 5804 | +} | |
| 5805 | + | |
| 5806 | +OffsetTime OffsetTime_from_JSON(mixed json) { | |
| 5807 | + OffsetTime retval = OffsetTime(); | |
| 5808 | + | |
| 5809 | + if (!intp(json["OffsetTime"])) error("Expected integer"); | |
| 5810 | + retval.offset_time = json["OffsetTime"]; | |
| 5811 | + | |
| 5812 | + return retval; | |
| 5813 | +} | |
| 5814 | + | |
| 5756 | 5815 | class Oneway { |
| 5757 | 5816 | int oneway; // json: "oneway" |
| 5758 | 5817 | |
| @@ -6487,90 +6546,6 @@ RuntimeType RuntimeType_from_JSON(mixed json) { | ||
| 6487 | 6546 | return retval; |
| 6488 | 6547 | } |
| 6489 | 6548 | |
| 6490 | -class S { | |
| 6491 | - int s; // json: "s" | |
| 6492 | - | |
| 6493 | - string encode_json() { | |
| 6494 | - mapping(string:mixed) json = ([ | |
| 6495 | - "s" : s, | |
| 6496 | - ]); | |
| 6497 | - | |
| 6498 | - return Standards.JSON.encode(json); | |
| 6499 | - } | |
| 6500 | -} | |
| 6501 | - | |
| 6502 | -S S_from_JSON(mixed json) { | |
| 6503 | - S retval = S(); | |
| 6504 | - | |
| 6505 | - if (!intp(json["s"])) error("Expected integer"); | |
| 6506 | - retval.s = json["s"]; | |
| 6507 | - | |
| 6508 | - return retval; | |
| 6509 | -} | |
| 6510 | - | |
| 6511 | -class Sbyte { | |
| 6512 | - int sbyte; // json: "sbyte" | |
| 6513 | - | |
| 6514 | - string encode_json() { | |
| 6515 | - mapping(string:mixed) json = ([ | |
| 6516 | - "sbyte" : sbyte, | |
| 6517 | - ]); | |
| 6518 | - | |
| 6519 | - return Standards.JSON.encode(json); | |
| 6520 | - } | |
| 6521 | -} | |
| 6522 | - | |
| 6523 | -Sbyte Sbyte_from_JSON(mixed json) { | |
| 6524 | - Sbyte retval = Sbyte(); | |
| 6525 | - | |
| 6526 | - if (!intp(json["sbyte"])) error("Expected integer"); | |
| 6527 | - retval.sbyte = json["sbyte"]; | |
| 6528 | - | |
| 6529 | - return retval; | |
| 6530 | -} | |
| 6531 | - | |
| 6532 | -class Sealed { | |
| 6533 | - int sealed; // json: "sealed" | |
| 6534 | - | |
| 6535 | - string encode_json() { | |
| 6536 | - mapping(string:mixed) json = ([ | |
| 6537 | - "sealed" : sealed, | |
| 6538 | - ]); | |
| 6539 | - | |
| 6540 | - return Standards.JSON.encode(json); | |
| 6541 | - } | |
| 6542 | -} | |
| 6543 | - | |
| 6544 | -Sealed Sealed_from_JSON(mixed json) { | |
| 6545 | - Sealed retval = Sealed(); | |
| 6546 | - | |
| 6547 | - if (!intp(json["sealed"])) error("Expected integer"); | |
| 6548 | - retval.sealed = json["sealed"]; | |
| 6549 | - | |
| 6550 | - return retval; | |
| 6551 | -} | |
| 6552 | - | |
| 6553 | -class Sel { | |
| 6554 | - int sel; // json: "SEL" | |
| 6555 | - | |
| 6556 | - string encode_json() { | |
| 6557 | - mapping(string:mixed) json = ([ | |
| 6558 | - "SEL" : sel, | |
| 6559 | - ]); | |
| 6560 | - | |
| 6561 | - return Standards.JSON.encode(json); | |
| 6562 | - } | |
| 6563 | -} | |
| 6564 | - | |
| 6565 | -Sel Sel_from_JSON(mixed json) { | |
| 6566 | - Sel retval = Sel(); | |
| 6567 | - | |
| 6568 | - if (!intp(json["SEL"])) error("Expected integer"); | |
| 6569 | - retval.sel = json["SEL"]; | |
| 6570 | - | |
| 6571 | - return retval; | |
| 6572 | -} | |
| 6573 | - | |
| 6574 | 6549 | class Obj5 { |
| 6575 | 6550 | int dummy; // json: "dummy" |
| 6576 | 6551 | KSerializer k_serializer; // json: "KSerializer" |
| @@ -6583,6 +6558,10 @@ class Obj5 { | ||
| 6583 | 6558 | Typedef obj5_typedef; // json: "typedef" |
| 6584 | 6559 | Typeof obj5_typeof; // json: "typeof" |
| 6585 | 6560 | PrimitiveKind primitive_kind; // json: "PrimitiveKind" |
| 6561 | + S s; // json: "s" | |
| 6562 | + Sbyte sbyte; // json: "sbyte" | |
| 6563 | + Sealed sealed; // json: "sealed" | |
| 6564 | + Sel sel; // json: "SEL" | |
| 6586 | 6565 | Select select; // json: "select" |
| 6587 | 6566 | Self self; // json: "Self" |
| 6588 | 6567 | Sendable sendable; // json: "Sendable" |
| @@ -6633,11 +6612,6 @@ class Obj5 { | ||
| 6633 | 6612 | Ulong ulong; // json: "ulong" |
| 6634 | 6613 | Unchecked unchecked; // json: "unchecked" |
| 6635 | 6614 | Undefined undefined; // json: "undefined" |
| 6636 | - Union union; // json: "union" | |
| 6637 | - UnmarshalJson unmarshal_json; // json: "UnmarshalJSON" | |
| 6638 | - Unowned unowned; // json: "unowned" | |
| 6639 | - Unsafe unsafe; // json: "unsafe" | |
| 6640 | - UseSerializers use_serializers; // json: "UseSerializers" | |
| 6641 | 6615 | |
| 6642 | 6616 | string encode_json() { |
| 6643 | 6617 | mapping(string:mixed) json = ([ |
| @@ -6652,6 +6626,10 @@ class Obj5 { | ||
| 6652 | 6626 | "typedef" : obj5_typedef, |
| 6653 | 6627 | "typeof" : obj5_typeof, |
| 6654 | 6628 | "PrimitiveKind" : primitive_kind, |
| 6629 | + "s" : s, | |
| 6630 | + "sbyte" : sbyte, | |
| 6631 | + "sealed" : sealed, | |
| 6632 | + "SEL" : sel, | |
| 6655 | 6633 | "select" : select, |
| 6656 | 6634 | "Self" : self, |
| 6657 | 6635 | "Sendable" : sendable, |
| @@ -6702,11 +6680,6 @@ class Obj5 { | ||
| 6702 | 6680 | "ulong" : ulong, |
| 6703 | 6681 | "unchecked" : unchecked, |
| 6704 | 6682 | "undefined" : undefined, |
| 6705 | - "union" : union, | |
| 6706 | - "UnmarshalJSON" : unmarshal_json, | |
| 6707 | - "unowned" : unowned, | |
| 6708 | - "unsafe" : unsafe, | |
| 6709 | - "UseSerializers" : use_serializers, | |
| 6710 | 6683 | ]); |
| 6711 | 6684 | |
| 6712 | 6685 | return Standards.JSON.encode(json); |
| @@ -6738,6 +6711,14 @@ Obj5 Obj5_from_JSON(mixed json) { | ||
| 6738 | 6711 | retval.obj5_typeof = json["typeof"]; |
| 6739 | 6712 | if (!mappingp(json["PrimitiveKind"])) error("Expected object"); |
| 6740 | 6713 | retval.primitive_kind = json["PrimitiveKind"]; |
| 6714 | + if (!mappingp(json["s"])) error("Expected object"); | |
| 6715 | + retval.s = json["s"]; | |
| 6716 | + if (!mappingp(json["sbyte"])) error("Expected object"); | |
| 6717 | + retval.sbyte = json["sbyte"]; | |
| 6718 | + if (!mappingp(json["sealed"])) error("Expected object"); | |
| 6719 | + retval.sealed = json["sealed"]; | |
| 6720 | + if (!mappingp(json["SEL"])) error("Expected object"); | |
| 6721 | + retval.sel = json["SEL"]; | |
| 6741 | 6722 | if (!mappingp(json["select"])) error("Expected object"); |
| 6742 | 6723 | retval.select = json["select"]; |
| 6743 | 6724 | if (!mappingp(json["Self"])) error("Expected object"); |
| @@ -6838,16 +6819,6 @@ Obj5 Obj5_from_JSON(mixed json) { | ||
| 6838 | 6819 | retval.unchecked = json["unchecked"]; |
| 6839 | 6820 | if (!mappingp(json["undefined"])) error("Expected object"); |
| 6840 | 6821 | retval.undefined = json["undefined"]; |
| 6841 | - if (!mappingp(json["union"])) error("Expected object"); | |
| 6842 | - retval.union = json["union"]; | |
| 6843 | - if (!mappingp(json["UnmarshalJSON"])) error("Expected object"); | |
| 6844 | - retval.unmarshal_json = json["UnmarshalJSON"]; | |
| 6845 | - if (!mappingp(json["unowned"])) error("Expected object"); | |
| 6846 | - retval.unowned = json["unowned"]; | |
| 6847 | - if (!mappingp(json["unsafe"])) error("Expected object"); | |
| 6848 | - retval.unsafe = json["unsafe"]; | |
| 6849 | - if (!mappingp(json["UseSerializers"])) error("Expected object"); | |
| 6850 | - retval.use_serializers = json["UseSerializers"]; | |
| 6851 | 6822 | |
| 6852 | 6823 | return retval; |
| 6853 | 6824 | } |
| @@ -7062,6 +7033,90 @@ PrimitiveKind PrimitiveKind_from_JSON(mixed json) { | ||
| 7062 | 7033 | return retval; |
| 7063 | 7034 | } |
| 7064 | 7035 | |
| 7036 | +class S { | |
| 7037 | + int s; // json: "s" | |
| 7038 | + | |
| 7039 | + string encode_json() { | |
| 7040 | + mapping(string:mixed) json = ([ | |
| 7041 | + "s" : s, | |
| 7042 | + ]); | |
| 7043 | + | |
| 7044 | + return Standards.JSON.encode(json); | |
| 7045 | + } | |
| 7046 | +} | |
| 7047 | + | |
| 7048 | +S S_from_JSON(mixed json) { | |
| 7049 | + S retval = S(); | |
| 7050 | + | |
| 7051 | + if (!intp(json["s"])) error("Expected integer"); | |
| 7052 | + retval.s = json["s"]; | |
| 7053 | + | |
| 7054 | + return retval; | |
| 7055 | +} | |
| 7056 | + | |
| 7057 | +class Sbyte { | |
| 7058 | + int sbyte; // json: "sbyte" | |
| 7059 | + | |
| 7060 | + string encode_json() { | |
| 7061 | + mapping(string:mixed) json = ([ | |
| 7062 | + "sbyte" : sbyte, | |
| 7063 | + ]); | |
| 7064 | + | |
| 7065 | + return Standards.JSON.encode(json); | |
| 7066 | + } | |
| 7067 | +} | |
| 7068 | + | |
| 7069 | +Sbyte Sbyte_from_JSON(mixed json) { | |
| 7070 | + Sbyte retval = Sbyte(); | |
| 7071 | + | |
| 7072 | + if (!intp(json["sbyte"])) error("Expected integer"); | |
| 7073 | + retval.sbyte = json["sbyte"]; | |
| 7074 | + | |
| 7075 | + return retval; | |
| 7076 | +} | |
| 7077 | + | |
| 7078 | +class Sealed { | |
| 7079 | + int sealed; // json: "sealed" | |
| 7080 | + | |
| 7081 | + string encode_json() { | |
| 7082 | + mapping(string:mixed) json = ([ | |
| 7083 | + "sealed" : sealed, | |
| 7084 | + ]); | |
| 7085 | + | |
| 7086 | + return Standards.JSON.encode(json); | |
| 7087 | + } | |
| 7088 | +} | |
| 7089 | + | |
| 7090 | +Sealed Sealed_from_JSON(mixed json) { | |
| 7091 | + Sealed retval = Sealed(); | |
| 7092 | + | |
| 7093 | + if (!intp(json["sealed"])) error("Expected integer"); | |
| 7094 | + retval.sealed = json["sealed"]; | |
| 7095 | + | |
| 7096 | + return retval; | |
| 7097 | +} | |
| 7098 | + | |
| 7099 | +class Sel { | |
| 7100 | + int sel; // json: "SEL" | |
| 7101 | + | |
| 7102 | + string encode_json() { | |
| 7103 | + mapping(string:mixed) json = ([ | |
| 7104 | + "SEL" : sel, | |
| 7105 | + ]); | |
| 7106 | + | |
| 7107 | + return Standards.JSON.encode(json); | |
| 7108 | + } | |
| 7109 | +} | |
| 7110 | + | |
| 7111 | +Sel Sel_from_JSON(mixed json) { | |
| 7112 | + Sel retval = Sel(); | |
| 7113 | + | |
| 7114 | + if (!intp(json["SEL"])) error("Expected integer"); | |
| 7115 | + retval.sel = json["SEL"]; | |
| 7116 | + | |
| 7117 | + return retval; | |
| 7118 | +} | |
| 7119 | + | |
| 7065 | 7120 | class Select { |
| 7066 | 7121 | int select; // json: "select" |
| 7067 | 7122 | |
| @@ -8112,116 +8167,16 @@ Undefined Undefined_from_JSON(mixed json) { | ||
| 8112 | 8167 | return retval; |
| 8113 | 8168 | } |
| 8114 | 8169 | |
| 8115 | -class Union { | |
| 8116 | - int union; // json: "union" | |
| 8117 | - | |
| 8118 | - string encode_json() { | |
| 8119 | - mapping(string:mixed) json = ([ | |
| 8120 | - "union" : union, | |
| 8121 | - ]); | |
| 8122 | - | |
| 8123 | - return Standards.JSON.encode(json); | |
| 8124 | - } | |
| 8125 | -} | |
| 8126 | - | |
| 8127 | -Union Union_from_JSON(mixed json) { | |
| 8128 | - Union retval = Union(); | |
| 8129 | - | |
| 8130 | - if (!intp(json["union"])) error("Expected integer"); | |
| 8131 | - retval.union = json["union"]; | |
| 8132 | - | |
| 8133 | - return retval; | |
| 8134 | -} | |
| 8135 | - | |
| 8136 | -class UnmarshalJson { | |
| 8137 | - int unmarshal_json; // json: "UnmarshalJSON" | |
| 8138 | - | |
| 8139 | - string encode_json() { | |
| 8140 | - mapping(string:mixed) json = ([ | |
| 8141 | - "UnmarshalJSON" : unmarshal_json, | |
| 8142 | - ]); | |
| 8143 | - | |
| 8144 | - return Standards.JSON.encode(json); | |
| 8145 | - } | |
| 8146 | -} | |
| 8147 | - | |
| 8148 | -UnmarshalJson UnmarshalJson_from_JSON(mixed json) { | |
| 8149 | - UnmarshalJson retval = UnmarshalJson(); | |
| 8150 | - | |
| 8151 | - if (!intp(json["UnmarshalJSON"])) error("Expected integer"); | |
| 8152 | - retval.unmarshal_json = json["UnmarshalJSON"]; | |
| 8153 | - | |
| 8154 | - return retval; | |
| 8155 | -} | |
| 8156 | - | |
| 8157 | -class Unowned { | |
| 8158 | - int unowned; // json: "unowned" | |
| 8159 | - | |
| 8160 | - string encode_json() { | |
| 8161 | - mapping(string:mixed) json = ([ | |
| 8162 | - "unowned" : unowned, | |
| 8163 | - ]); | |
| 8164 | - | |
| 8165 | - return Standards.JSON.encode(json); | |
| 8166 | - } | |
| 8167 | -} | |
| 8168 | - | |
| 8169 | -Unowned Unowned_from_JSON(mixed json) { | |
| 8170 | - Unowned retval = Unowned(); | |
| 8171 | - | |
| 8172 | - if (!intp(json["unowned"])) error("Expected integer"); | |
| 8173 | - retval.unowned = json["unowned"]; | |
| 8174 | - | |
| 8175 | - return retval; | |
| 8176 | -} | |
| 8177 | - | |
| 8178 | -class Unsafe { | |
| 8179 | - int unsafe; // json: "unsafe" | |
| 8180 | - | |
| 8181 | - string encode_json() { | |
| 8182 | - mapping(string:mixed) json = ([ | |
| 8183 | - "unsafe" : unsafe, | |
| 8184 | - ]); | |
| 8185 | - | |
| 8186 | - return Standards.JSON.encode(json); | |
| 8187 | - } | |
| 8188 | -} | |
| 8189 | - | |
| 8190 | -Unsafe Unsafe_from_JSON(mixed json) { | |
| 8191 | - Unsafe retval = Unsafe(); | |
| 8192 | - | |
| 8193 | - if (!intp(json["unsafe"])) error("Expected integer"); | |
| 8194 | - retval.unsafe = json["unsafe"]; | |
| 8195 | - | |
| 8196 | - return retval; | |
| 8197 | -} | |
| 8198 | - | |
| 8199 | -class UseSerializers { | |
| 8200 | - int use_serializers; // json: "UseSerializers" | |
| 8201 | - | |
| 8202 | - string encode_json() { | |
| 8203 | - mapping(string:mixed) json = ([ | |
| 8204 | - "UseSerializers" : use_serializers, | |
| 8205 | - ]); | |
| 8206 | - | |
| 8207 | - return Standards.JSON.encode(json); | |
| 8208 | - } | |
| 8209 | -} | |
| 8210 | - | |
| 8211 | -UseSerializers UseSerializers_from_JSON(mixed json) { | |
| 8212 | - UseSerializers retval = UseSerializers(); | |
| 8213 | - | |
| 8214 | - if (!intp(json["UseSerializers"])) error("Expected integer"); | |
| 8215 | - retval.use_serializers = json["UseSerializers"]; | |
| 8216 | - | |
| 8217 | - return retval; | |
| 8218 | -} | |
| 8219 | - | |
| 8220 | 8170 | class Obj6 { |
| 8221 | 8171 | int dummy; // json: "dummy" |
| 8222 | 8172 | Void obj6_void; // json: "void" |
| 8223 | 8173 | While obj6_while; // json: "while" |
| 8174 | + Union union; // json: "union" | |
| 8175 | + UnmarshalJson unmarshal_json; // json: "UnmarshalJSON" | |
| 8176 | + Unowned unowned; // json: "unowned" | |
| 8177 | + Unsafe unsafe; // json: "unsafe" | |
| 8224 | 8178 | Unsigned unsigned; // json: "unsigned" |
| 8179 | + UseSerializers use_serializers; // json: "UseSerializers" | |
| 8225 | 8180 | Ushort ushort; // json: "ushort" |
| 8226 | 8181 | Using using; // json: "using" |
| 8227 | 8182 | Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader" |
| @@ -8245,7 +8200,12 @@ class Obj6 { | ||
| 8245 | 8200 | "dummy" : dummy, |
| 8246 | 8201 | "void" : obj6_void, |
| 8247 | 8202 | "while" : obj6_while, |
| 8203 | + "union" : union, | |
| 8204 | + "UnmarshalJSON" : unmarshal_json, | |
| 8205 | + "unowned" : unowned, | |
| 8206 | + "unsafe" : unsafe, | |
| 8248 | 8207 | "unsigned" : unsigned, |
| 8208 | + "UseSerializers" : use_serializers, | |
| 8249 | 8209 | "ushort" : ushort, |
| 8250 | 8210 | "using" : using, |
| 8251 | 8211 | "Utf8JsonReader" : utf8_json_reader, |
| @@ -8278,8 +8238,18 @@ Obj6 Obj6_from_JSON(mixed json) { | ||
| 8278 | 8238 | retval.obj6_void = json["void"]; |
| 8279 | 8239 | if (!mappingp(json["while"])) error("Expected object"); |
| 8280 | 8240 | retval.obj6_while = json["while"]; |
| 8241 | + if (!mappingp(json["union"])) error("Expected object"); | |
| 8242 | + retval.union = json["union"]; | |
| 8243 | + if (!mappingp(json["UnmarshalJSON"])) error("Expected object"); | |
| 8244 | + retval.unmarshal_json = json["UnmarshalJSON"]; | |
| 8245 | + if (!mappingp(json["unowned"])) error("Expected object"); | |
| 8246 | + retval.unowned = json["unowned"]; | |
| 8247 | + if (!mappingp(json["unsafe"])) error("Expected object"); | |
| 8248 | + retval.unsafe = json["unsafe"]; | |
| 8281 | 8249 | if (!mappingp(json["unsigned"])) error("Expected object"); |
| 8282 | 8250 | retval.unsigned = json["unsigned"]; |
| 8251 | + if (!mappingp(json["UseSerializers"])) error("Expected object"); | |
| 8252 | + retval.use_serializers = json["UseSerializers"]; | |
| 8283 | 8253 | if (!mappingp(json["ushort"])) error("Expected object"); |
| 8284 | 8254 | retval.ushort = json["ushort"]; |
| 8285 | 8255 | if (!mappingp(json["using"])) error("Expected object"); |
| @@ -8360,6 +8330,90 @@ While While_from_JSON(mixed json) { | ||
| 8360 | 8330 | return retval; |
| 8361 | 8331 | } |
| 8362 | 8332 | |
| 8333 | +class Union { | |
| 8334 | + int union; // json: "union" | |
| 8335 | + | |
| 8336 | + string encode_json() { | |
| 8337 | + mapping(string:mixed) json = ([ | |
| 8338 | + "union" : union, | |
| 8339 | + ]); | |
| 8340 | + | |
| 8341 | + return Standards.JSON.encode(json); | |
| 8342 | + } | |
| 8343 | +} | |
| 8344 | + | |
| 8345 | +Union Union_from_JSON(mixed json) { | |
| 8346 | + Union retval = Union(); | |
| 8347 | + | |
| 8348 | + if (!intp(json["union"])) error("Expected integer"); | |
| 8349 | + retval.union = json["union"]; | |
| 8350 | + | |
| 8351 | + return retval; | |
| 8352 | +} | |
| 8353 | + | |
| 8354 | +class UnmarshalJson { | |
| 8355 | + int unmarshal_json; // json: "UnmarshalJSON" | |
| 8356 | + | |
| 8357 | + string encode_json() { | |
| 8358 | + mapping(string:mixed) json = ([ | |
| 8359 | + "UnmarshalJSON" : unmarshal_json, | |
| 8360 | + ]); | |
| 8361 | + | |
| 8362 | + return Standards.JSON.encode(json); | |
| 8363 | + } | |
| 8364 | +} | |
| 8365 | + | |
| 8366 | +UnmarshalJson UnmarshalJson_from_JSON(mixed json) { | |
| 8367 | + UnmarshalJson retval = UnmarshalJson(); | |
| 8368 | + | |
| 8369 | + if (!intp(json["UnmarshalJSON"])) error("Expected integer"); | |
| 8370 | + retval.unmarshal_json = json["UnmarshalJSON"]; | |
| 8371 | + | |
| 8372 | + return retval; | |
| 8373 | +} | |
| 8374 | + | |
| 8375 | +class Unowned { | |
| 8376 | + int unowned; // json: "unowned" | |
| 8377 | + | |
| 8378 | + string encode_json() { | |
| 8379 | + mapping(string:mixed) json = ([ | |
| 8380 | + "unowned" : unowned, | |
| 8381 | + ]); | |
| 8382 | + | |
| 8383 | + return Standards.JSON.encode(json); | |
| 8384 | + } | |
| 8385 | +} | |
| 8386 | + | |
| 8387 | +Unowned Unowned_from_JSON(mixed json) { | |
| 8388 | + Unowned retval = Unowned(); | |
| 8389 | + | |
| 8390 | + if (!intp(json["unowned"])) error("Expected integer"); | |
| 8391 | + retval.unowned = json["unowned"]; | |
| 8392 | + | |
| 8393 | + return retval; | |
| 8394 | +} | |
| 8395 | + | |
| 8396 | +class Unsafe { | |
| 8397 | + int unsafe; // json: "unsafe" | |
| 8398 | + | |
| 8399 | + string encode_json() { | |
| 8400 | + mapping(string:mixed) json = ([ | |
| 8401 | + "unsafe" : unsafe, | |
| 8402 | + ]); | |
| 8403 | + | |
| 8404 | + return Standards.JSON.encode(json); | |
| 8405 | + } | |
| 8406 | +} | |
| 8407 | + | |
| 8408 | +Unsafe Unsafe_from_JSON(mixed json) { | |
| 8409 | + Unsafe retval = Unsafe(); | |
| 8410 | + | |
| 8411 | + if (!intp(json["unsafe"])) error("Expected integer"); | |
| 8412 | + retval.unsafe = json["unsafe"]; | |
| 8413 | + | |
| 8414 | + return retval; | |
| 8415 | +} | |
| 8416 | + | |
| 8363 | 8417 | class Unsigned { |
| 8364 | 8418 | int unsigned; // json: "unsigned" |
| 8365 | 8419 | |
| @@ -8381,6 +8435,27 @@ Unsigned Unsigned_from_JSON(mixed json) { | ||
| 8381 | 8435 | return retval; |
| 8382 | 8436 | } |
| 8383 | 8437 | |
| 8438 | +class UseSerializers { | |
| 8439 | + int use_serializers; // json: "UseSerializers" | |
| 8440 | + | |
| 8441 | + string encode_json() { | |
| 8442 | + mapping(string:mixed) json = ([ | |
| 8443 | + "UseSerializers" : use_serializers, | |
| 8444 | + ]); | |
| 8445 | + | |
| 8446 | + return Standards.JSON.encode(json); | |
| 8447 | + } | |
| 8448 | +} | |
| 8449 | + | |
| 8450 | +UseSerializers UseSerializers_from_JSON(mixed json) { | |
| 8451 | + UseSerializers retval = UseSerializers(); | |
| 8452 | + | |
| 8453 | + if (!intp(json["UseSerializers"])) error("Expected integer"); | |
| 8454 | + retval.use_serializers = json["UseSerializers"]; | |
| 8455 | + | |
| 8456 | + return retval; | |
| 8457 | +} | |
| 8458 | + | |
| 8384 | 8459 | class Ushort { |
| 8385 | 8460 | int ushort; // json: "ushort" |
Mpythondefault / quicktype.py+270 −213
| @@ -3196,6 +3196,22 @@ class ListClass: | ||
| 3196 | 3196 | return result |
| 3197 | 3197 | |
| 3198 | 3198 | |
| 3199 | +@dataclass | |
| 3200 | +class LocalDate: | |
| 3201 | + local_date: int | |
| 3202 | + | |
| 3203 | + @staticmethod | |
| 3204 | + def from_dict(obj: Any) -> 'LocalDate': | |
| 3205 | + assert isinstance(obj, dict) | |
| 3206 | + local_date = from_int(obj["LocalDate"]) | |
| 3207 | + return LocalDate(local_date) | |
| 3208 | + | |
| 3209 | + def to_dict(self) -> dict: | |
| 3210 | + result: dict = {} | |
| 3211 | + result["LocalDate"] = from_int(self.local_date) | |
| 3212 | + return result | |
| 3213 | + | |
| 3214 | + | |
| 3199 | 3215 | @dataclass |
| 3200 | 3216 | class Locale: |
| 3201 | 3217 | locale: int |
| @@ -3420,38 +3436,6 @@ class Newtonsoft: | ||
| 3420 | 3436 | return result |
| 3421 | 3437 | |
| 3422 | 3438 | |
| 3423 | -@dataclass | |
| 3424 | -class Nil: | |
| 3425 | - nil: int | |
| 3426 | - | |
| 3427 | - @staticmethod | |
| 3428 | - def from_dict(obj: Any) -> 'Nil': | |
| 3429 | - assert isinstance(obj, dict) | |
| 3430 | - nil = from_int(obj["nil"]) | |
| 3431 | - return Nil(nil) | |
| 3432 | - | |
| 3433 | - def to_dict(self) -> dict: | |
| 3434 | - result: dict = {} | |
| 3435 | - result["nil"] = from_int(self.nil) | |
| 3436 | - return result | |
| 3437 | - | |
| 3438 | - | |
| 3439 | -@dataclass | |
| 3440 | -class No: | |
| 3441 | - no: int | |
| 3442 | - | |
| 3443 | - @staticmethod | |
| 3444 | - def from_dict(obj: Any) -> 'No': | |
| 3445 | - assert isinstance(obj, dict) | |
| 3446 | - no = from_int(obj["NO"]) | |
| 3447 | - return No(no) | |
| 3448 | - | |
| 3449 | - def to_dict(self) -> dict: | |
| 3450 | - result: dict = {} | |
| 3451 | - result["NO"] = from_int(self.no) | |
| 3452 | - return result | |
| 3453 | - | |
| 3454 | - | |
| 3455 | 3439 | @dataclass |
| 3456 | 3440 | class If: |
| 3457 | 3441 | if_if: int |
| @@ -3565,10 +3549,10 @@ class Obj3: | ||
| 3565 | 3549 | json_parser: JSONParser |
| 3566 | 3550 | json_reader: JSONReader |
| 3567 | 3551 | json_token_type: JSONTokenType |
| 3552 | + local_date: LocalDate | |
| 3568 | 3553 | locale: Locale |
| 3569 | 3554 | map_entry: MapEntry |
| 3570 | 3555 | marshal_json: MarshalJSON |
| 3571 | - no: No | |
| 3572 | 3556 | dummy: int |
| 3573 | 3557 | goto: Goto |
| 3574 | 3558 | guard: Guard |
| @@ -3615,7 +3599,6 @@ class Obj3: | ||
| 3615 | 3599 | native: Native |
| 3616 | 3600 | new: New |
| 3617 | 3601 | newtonsoft: Newtonsoft |
| 3618 | - nil: Nil | |
| 3619 | 3602 | |
| 3620 | 3603 | @staticmethod |
| 3621 | 3604 | def from_dict(obj: Any) -> 'Obj3': |
| @@ -3635,10 +3618,10 @@ class Obj3: | ||
| 3635 | 3618 | json_parser = JSONParser.from_dict(obj["JsonParser"]) |
| 3636 | 3619 | json_reader = JSONReader.from_dict(obj["JsonReader"]) |
| 3637 | 3620 | json_token_type = JSONTokenType.from_dict(obj["JsonTokenType"]) |
| 3621 | + local_date = LocalDate.from_dict(obj["LocalDate"]) | |
| 3638 | 3622 | locale = Locale.from_dict(obj["Locale"]) |
| 3639 | 3623 | map_entry = MapEntry.from_dict(obj["MapEntry"]) |
| 3640 | 3624 | marshal_json = MarshalJSON.from_dict(obj["MarshalJSON"]) |
| 3641 | - no = No.from_dict(obj["NO"]) | |
| 3642 | 3625 | dummy = from_int(obj["dummy"]) |
| 3643 | 3626 | goto = Goto.from_dict(obj["goto"]) |
| 3644 | 3627 | guard = Guard.from_dict(obj["guard"]) |
| @@ -3685,8 +3668,7 @@ class Obj3: | ||
| 3685 | 3668 | native = Native.from_dict(obj["native"]) |
| 3686 | 3669 | new = New.from_dict(obj["new"]) |
| 3687 | 3670 | newtonsoft = Newtonsoft.from_dict(obj["newtonsoft"]) |
| 3688 | - nil = Nil.from_dict(obj["nil"]) | |
| 3689 | - return Obj3(hashable, hasher, imp, iso_date_time_offset_converter, json_any, json_coding_key, json_decoder, json_encoder, json_null, json_exception, json_generator, json_node, json_parser, json_reader, json_token_type, locale, map_entry, marshal_json, no, dummy, goto, guard, has_own_property, hash_code, id, obj3_if, implements, implicit, obj3_import, obj3_in, indirect, infix, init, inline, inout, instanceof, obj3_int, interface, internal, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil) | |
| 3671 | + return Obj3(hashable, hasher, imp, iso_date_time_offset_converter, json_any, json_coding_key, json_decoder, json_encoder, json_null, json_exception, json_generator, json_node, json_parser, json_reader, json_token_type, local_date, locale, map_entry, marshal_json, dummy, goto, guard, has_own_property, hash_code, id, obj3_if, implements, implicit, obj3_import, obj3_in, indirect, infix, init, inline, inout, instanceof, obj3_int, interface, internal, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft) | |
| 3690 | 3672 | |
| 3691 | 3673 | def to_dict(self) -> dict: |
| 3692 | 3674 | result: dict = {} |
| @@ -3705,10 +3687,10 @@ class Obj3: | ||
| 3705 | 3687 | result["JsonParser"] = to_class(JSONParser, self.json_parser) |
| 3706 | 3688 | result["JsonReader"] = to_class(JSONReader, self.json_reader) |
| 3707 | 3689 | result["JsonTokenType"] = to_class(JSONTokenType, self.json_token_type) |
| 3690 | + result["LocalDate"] = to_class(LocalDate, self.local_date) | |
| 3708 | 3691 | result["Locale"] = to_class(Locale, self.locale) |
| 3709 | 3692 | result["MapEntry"] = to_class(MapEntry, self.map_entry) |
| 3710 | 3693 | result["MarshalJSON"] = to_class(MarshalJSON, self.marshal_json) |
| 3711 | - result["NO"] = to_class(No, self.no) | |
| 3712 | 3694 | result["dummy"] = from_int(self.dummy) |
| 3713 | 3695 | result["goto"] = to_class(Goto, self.goto) |
| 3714 | 3696 | result["guard"] = to_class(Guard, self.guard) |
| @@ -3755,7 +3737,38 @@ class Obj3: | ||
| 3755 | 3737 | result["native"] = to_class(Native, self.native) |
| 3756 | 3738 | result["new"] = to_class(New, self.new) |
| 3757 | 3739 | result["newtonsoft"] = to_class(Newtonsoft, self.newtonsoft) |
| 3758 | - result["nil"] = to_class(Nil, self.nil) | |
| 3740 | + return result | |
| 3741 | + | |
| 3742 | + | |
| 3743 | +@dataclass | |
| 3744 | +class Nil: | |
| 3745 | + nil: int | |
| 3746 | + | |
| 3747 | + @staticmethod | |
| 3748 | + def from_dict(obj: Any) -> 'Nil': | |
| 3749 | + assert isinstance(obj, dict) | |
| 3750 | + nil = from_int(obj["nil"]) | |
| 3751 | + return Nil(nil) | |
| 3752 | + | |
| 3753 | + def to_dict(self) -> dict: | |
| 3754 | + result: dict = {} | |
| 3755 | + result["nil"] = from_int(self.nil) | |
| 3756 | + return result | |
| 3757 | + | |
| 3758 | + | |
| 3759 | +@dataclass | |
| 3760 | +class No: | |
| 3761 | + no: int | |
| 3762 | + | |
| 3763 | + @staticmethod | |
| 3764 | + def from_dict(obj: Any) -> 'No': | |
| 3765 | + assert isinstance(obj, dict) | |
| 3766 | + no = from_int(obj["NO"]) | |
| 3767 | + return No(no) | |
| 3768 | + | |
| 3769 | + def to_dict(self) -> dict: | |
| 3770 | + result: dict = {} | |
| 3771 | + result["NO"] = from_int(self.no) | |
| 3759 | 3772 | return result |
| 3760 | 3773 | |
| 3761 | 3774 | |
| @@ -4159,6 +4172,38 @@ class Of: | ||
| 4159 | 4172 | return result |
| 4160 | 4173 | |
| 4161 | 4174 | |
| 4175 | +@dataclass | |
| 4176 | +class OffsetDateTime: | |
| 4177 | + offset_date_time: int | |
| 4178 | + | |
| 4179 | + @staticmethod | |
| 4180 | + def from_dict(obj: Any) -> 'OffsetDateTime': | |
| 4181 | + assert isinstance(obj, dict) | |
| 4182 | + offset_date_time = from_int(obj["OffsetDateTime"]) | |
| 4183 | + return OffsetDateTime(offset_date_time) | |
| 4184 | + | |
| 4185 | + def to_dict(self) -> dict: | |
| 4186 | + result: dict = {} | |
| 4187 | + result["OffsetDateTime"] = from_int(self.offset_date_time) | |
| 4188 | + return result | |
| 4189 | + | |
| 4190 | + | |
| 4191 | +@dataclass | |
| 4192 | +class OffsetTime: | |
| 4193 | + offset_time: int | |
| 4194 | + | |
| 4195 | + @staticmethod | |
| 4196 | + def from_dict(obj: Any) -> 'OffsetTime': | |
| 4197 | + assert isinstance(obj, dict) | |
| 4198 | + offset_time = from_int(obj["OffsetTime"]) | |
| 4199 | + return OffsetTime(offset_time) | |
| 4200 | + | |
| 4201 | + def to_dict(self) -> dict: | |
| 4202 | + result: dict = {} | |
| 4203 | + result["OffsetTime"] = from_int(self.offset_time) | |
| 4204 | + return result | |
| 4205 | + | |
| 4206 | + | |
| 4162 | 4207 | @dataclass |
| 4163 | 4208 | class Oneway: |
| 4164 | 4209 | oneway: int |
| @@ -4719,82 +4764,21 @@ class RuntimeType: | ||
| 4719 | 4764 | return result |
| 4720 | 4765 | |
| 4721 | 4766 | |
| 4722 | -@dataclass | |
| 4723 | -class S: | |
| 4724 | - s: int | |
| 4725 | - | |
| 4726 | - @staticmethod | |
| 4727 | - def from_dict(obj: Any) -> 'S': | |
| 4728 | - assert isinstance(obj, dict) | |
| 4729 | - s = from_int(obj["s"]) | |
| 4730 | - return S(s) | |
| 4731 | - | |
| 4732 | - def to_dict(self) -> dict: | |
| 4733 | - result: dict = {} | |
| 4734 | - result["s"] = from_int(self.s) | |
| 4735 | - return result | |
| 4736 | - | |
| 4737 | - | |
| 4738 | -@dataclass | |
| 4739 | -class Sbyte: | |
| 4740 | - sbyte: int | |
| 4741 | - | |
| 4742 | - @staticmethod | |
| 4743 | - def from_dict(obj: Any) -> 'Sbyte': | |
| 4744 | - assert isinstance(obj, dict) | |
| 4745 | - sbyte = from_int(obj["sbyte"]) | |
| 4746 | - return Sbyte(sbyte) | |
| 4747 | - | |
| 4748 | - def to_dict(self) -> dict: | |
| 4749 | - result: dict = {} | |
| 4750 | - result["sbyte"] = from_int(self.sbyte) | |
| 4751 | - return result | |
| 4752 | - | |
| 4753 | - | |
| 4754 | -@dataclass | |
| 4755 | -class Sealed: | |
| 4756 | - sealed: int | |
| 4757 | - | |
| 4758 | - @staticmethod | |
| 4759 | - def from_dict(obj: Any) -> 'Sealed': | |
| 4760 | - assert isinstance(obj, dict) | |
| 4761 | - sealed = from_int(obj["sealed"]) | |
| 4762 | - return Sealed(sealed) | |
| 4763 | - | |
| 4764 | - def to_dict(self) -> dict: | |
| 4765 | - result: dict = {} | |
| 4766 | - result["sealed"] = from_int(self.sealed) | |
| 4767 | - return result | |
| 4768 | - | |
| 4769 | - | |
| 4770 | -@dataclass | |
| 4771 | -class Sel: | |
| 4772 | - sel: int | |
| 4773 | - | |
| 4774 | - @staticmethod | |
| 4775 | - def from_dict(obj: Any) -> 'Sel': | |
| 4776 | - assert isinstance(obj, dict) | |
| 4777 | - sel = from_int(obj["SEL"]) | |
| 4778 | - return Sel(sel) | |
| 4779 | - | |
| 4780 | - def to_dict(self) -> dict: | |
| 4781 | - result: dict = {} | |
| 4782 | - result["SEL"] = from_int(self.sel) | |
| 4783 | - return result | |
| 4784 | - | |
| 4785 | - | |
| 4786 | 4767 | @dataclass |
| 4787 | 4768 | class Obj4: |
| 4769 | + no: No | |
| 4788 | 4770 | ns_error: NSError |
| 4789 | 4771 | ns_object: NSObject |
| 4790 | 4772 | ns_string: NSString |
| 4791 | 4773 | null: Null |
| 4792 | 4774 | none: NoneClass |
| 4793 | 4775 | object_mapper: ObjectMapper |
| 4776 | + offset_date_time: OffsetDateTime | |
| 4777 | + offset_time: OffsetTime | |
| 4794 | 4778 | protocol: Protocol |
| 4795 | 4779 | reg_exp: RegExp |
| 4796 | - sel: Sel | |
| 4797 | 4780 | dummy: int |
| 4781 | + nil: Nil | |
| 4798 | 4782 | no_such_method: NoSuchMethod |
| 4799 | 4783 | noexcept: Noexcept |
| 4800 | 4784 | nonatomic: Nonatomic |
| @@ -4847,23 +4831,23 @@ class Obj4: | ||
| 4847 | 4831 | obj4_return: Return |
| 4848 | 4832 | right: Right |
| 4849 | 4833 | runtime_type: RuntimeType |
| 4850 | - s: S | |
| 4851 | - sbyte: Sbyte | |
| 4852 | - sealed: Sealed | |
| 4853 | 4834 | |
| 4854 | 4835 | @staticmethod |
| 4855 | 4836 | def from_dict(obj: Any) -> 'Obj4': |
| 4856 | 4837 | assert isinstance(obj, dict) |
| 4838 | + no = No.from_dict(obj["NO"]) | |
| 4857 | 4839 | ns_error = NSError.from_dict(obj["NSError"]) |
| 4858 | 4840 | ns_object = NSObject.from_dict(obj["NSObject"]) |
| 4859 | 4841 | ns_string = NSString.from_dict(obj["NSString"]) |
| 4860 | 4842 | null = Null.from_dict(obj["NULL"]) |
| 4861 | 4843 | none = NoneClass.from_dict(obj["None"]) |
| 4862 | 4844 | object_mapper = ObjectMapper.from_dict(obj["ObjectMapper"]) |
| 4845 | + offset_date_time = OffsetDateTime.from_dict(obj["OffsetDateTime"]) | |
| 4846 | + offset_time = OffsetTime.from_dict(obj["OffsetTime"]) | |
| 4863 | 4847 | protocol = Protocol.from_dict(obj["Protocol"]) |
| 4864 | 4848 | reg_exp = RegExp.from_dict(obj["RegExp"]) |
| 4865 | - sel = Sel.from_dict(obj["SEL"]) | |
| 4866 | 4849 | dummy = from_int(obj["dummy"]) |
| 4850 | + nil = Nil.from_dict(obj["nil"]) | |
| 4867 | 4851 | no_such_method = NoSuchMethod.from_dict(obj["noSuchMethod"]) |
| 4868 | 4852 | noexcept = Noexcept.from_dict(obj["noexcept"]) |
| 4869 | 4853 | nonatomic = Nonatomic.from_dict(obj["nonatomic"]) |
| @@ -4916,23 +4900,23 @@ class Obj4: | ||
| 4916 | 4900 | obj4_return = Return.from_dict(obj["return"]) |
| 4917 | 4901 | right = Right.from_dict(obj["right"]) |
| 4918 | 4902 | runtime_type = RuntimeType.from_dict(obj["runtimeType"]) |
| 4919 | - s = S.from_dict(obj["s"]) | |
| 4920 | - sbyte = Sbyte.from_dict(obj["sbyte"]) | |
| 4921 | - sealed = Sealed.from_dict(obj["sealed"]) | |
| 4922 | - return Obj4(ns_error, ns_object, ns_string, null, none, object_mapper, protocol, reg_exp, sel, dummy, no_such_method, noexcept, nonatomic, obj4_none, obj4_nonlocal, nonmutating, obj4_not, not_eq, obj4_null, nullptr, number, object, of, oneway, open, operator, optional, obj4_or, or_eq, out, override, package, params, obj4_pass, port, postfix, precedence, prefix, obj4_print, print_members, printf, private, protected, obj4_protocol, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, runtime_type, s, sbyte, sealed) | |
| 4903 | + return Obj4(no, ns_error, ns_object, ns_string, null, none, object_mapper, offset_date_time, offset_time, protocol, reg_exp, dummy, nil, no_such_method, noexcept, nonatomic, obj4_none, obj4_nonlocal, nonmutating, obj4_not, not_eq, obj4_null, nullptr, number, object, of, oneway, open, operator, optional, obj4_or, or_eq, out, override, package, params, obj4_pass, port, postfix, precedence, prefix, obj4_print, print_members, printf, private, protected, obj4_protocol, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, runtime_type) | |
| 4923 | 4904 | |
| 4924 | 4905 | def to_dict(self) -> dict: |
| 4925 | 4906 | result: dict = {} |
| 4907 | + result["NO"] = to_class(No, self.no) | |
| 4926 | 4908 | result["NSError"] = to_class(NSError, self.ns_error) |
| 4927 | 4909 | result["NSObject"] = to_class(NSObject, self.ns_object) |
| 4928 | 4910 | result["NSString"] = to_class(NSString, self.ns_string) |
| 4929 | 4911 | result["NULL"] = to_class(Null, self.null) |
| 4930 | 4912 | result["None"] = to_class(NoneClass, self.none) |
| 4931 | 4913 | result["ObjectMapper"] = to_class(ObjectMapper, self.object_mapper) |
| 4914 | + result["OffsetDateTime"] = to_class(OffsetDateTime, self.offset_date_time) | |
| 4915 | + result["OffsetTime"] = to_class(OffsetTime, self.offset_time) | |
| 4932 | 4916 | result["Protocol"] = to_class(Protocol, self.protocol) |
| 4933 | 4917 | result["RegExp"] = to_class(RegExp, self.reg_exp) |
| 4934 | - result["SEL"] = to_class(Sel, self.sel) | |
| 4935 | 4918 | result["dummy"] = from_int(self.dummy) |
| 4919 | + result["nil"] = to_class(Nil, self.nil) | |
| 4936 | 4920 | result["noSuchMethod"] = to_class(NoSuchMethod, self.no_such_method) |
| 4937 | 4921 | result["noexcept"] = to_class(Noexcept, self.noexcept) |
| 4938 | 4922 | result["nonatomic"] = to_class(Nonatomic, self.nonatomic) |
| @@ -4985,9 +4969,6 @@ class Obj4: | ||
| 4985 | 4969 | result["return"] = to_class(Return, self.obj4_return) |
| 4986 | 4970 | result["right"] = to_class(Right, self.right) |
| 4987 | 4971 | result["runtimeType"] = to_class(RuntimeType, self.runtime_type) |
| 4988 | - result["s"] = to_class(S, self.s) | |
| 4989 | - result["sbyte"] = to_class(Sbyte, self.sbyte) | |
| 4990 | - result["sealed"] = to_class(Sealed, self.sealed) | |
| 4991 | 4972 | return result |
| 4992 | 4973 | |
| 4993 | 4974 | |
| @@ -5119,6 +5100,70 @@ class SelfClass: | ||
| 5119 | 5100 | return result |
| 5120 | 5101 | |
| 5121 | 5102 | |
| 5103 | +@dataclass | |
| 5104 | +class S: | |
| 5105 | + s: int | |
| 5106 | + | |
| 5107 | + @staticmethod | |
| 5108 | + def from_dict(obj: Any) -> 'S': | |
| 5109 | + assert isinstance(obj, dict) | |
| 5110 | + s = from_int(obj["s"]) | |
| 5111 | + return S(s) | |
| 5112 | + | |
| 5113 | + def to_dict(self) -> dict: | |
| 5114 | + result: dict = {} | |
| 5115 | + result["s"] = from_int(self.s) | |
| 5116 | + return result | |
| 5117 | + | |
| 5118 | + | |
| 5119 | +@dataclass | |
| 5120 | +class Sbyte: | |
| 5121 | + sbyte: int | |
| 5122 | + | |
| 5123 | + @staticmethod | |
| 5124 | + def from_dict(obj: Any) -> 'Sbyte': | |
| 5125 | + assert isinstance(obj, dict) | |
| 5126 | + sbyte = from_int(obj["sbyte"]) | |
| 5127 | + return Sbyte(sbyte) | |
| 5128 | + | |
| 5129 | + def to_dict(self) -> dict: | |
| 5130 | + result: dict = {} | |
| 5131 | + result["sbyte"] = from_int(self.sbyte) | |
| 5132 | + return result | |
| 5133 | + | |
| 5134 | + | |
| 5135 | +@dataclass | |
| 5136 | +class Sealed: | |
| 5137 | + sealed: int | |
| 5138 | + | |
| 5139 | + @staticmethod | |
| 5140 | + def from_dict(obj: Any) -> 'Sealed': | |
| 5141 | + assert isinstance(obj, dict) | |
| 5142 | + sealed = from_int(obj["sealed"]) | |
| 5143 | + return Sealed(sealed) | |
| 5144 | + | |
| 5145 | + def to_dict(self) -> dict: | |
| 5146 | + result: dict = {} | |
| 5147 | + result["sealed"] = from_int(self.sealed) | |
| 5148 | + return result | |
| 5149 | + | |
| 5150 | + | |
| 5151 | +@dataclass | |
| 5152 | +class Sel: | |
| 5153 | + sel: int | |
| 5154 | + | |
| 5155 | + @staticmethod | |
| 5156 | + def from_dict(obj: Any) -> 'Sel': | |
| 5157 | + assert isinstance(obj, dict) | |
| 5158 | + sel = from_int(obj["SEL"]) | |
| 5159 | + return Sel(sel) | |
| 5160 | + | |
| 5161 | + def to_dict(self) -> dict: | |
| 5162 | + result: dict = {} | |
| 5163 | + result["SEL"] = from_int(self.sel) | |
| 5164 | + return result | |
| 5165 | + | |
| 5166 | + | |
| 5122 | 5167 | @dataclass |
| 5123 | 5168 | class Select: |
| 5124 | 5169 | select: int |
| @@ -5951,90 +5996,11 @@ class Undefined: | ||
| 5951 | 5996 | return result |
| 5952 | 5997 | |
| 5953 | 5998 | |
| 5954 | -@dataclass | |
| 5955 | -class UnionClass: | |
| 5956 | - union: int | |
| 5957 | - | |
| 5958 | - @staticmethod | |
| 5959 | - def from_dict(obj: Any) -> 'UnionClass': | |
| 5960 | - assert isinstance(obj, dict) | |
| 5961 | - union = from_int(obj["union"]) | |
| 5962 | - return UnionClass(union) | |
| 5963 | - | |
| 5964 | - def to_dict(self) -> dict: | |
| 5965 | - result: dict = {} | |
| 5966 | - result["union"] = from_int(self.union) | |
| 5967 | - return result | |
| 5968 | - | |
| 5969 | - | |
| 5970 | -@dataclass | |
| 5971 | -class UnmarshalJSON: | |
| 5972 | - unmarshal_json: int | |
| 5973 | - | |
| 5974 | - @staticmethod | |
| 5975 | - def from_dict(obj: Any) -> 'UnmarshalJSON': | |
| 5976 | - assert isinstance(obj, dict) | |
| 5977 | - unmarshal_json = from_int(obj["UnmarshalJSON"]) | |
| 5978 | - return UnmarshalJSON(unmarshal_json) | |
| 5979 | - | |
| 5980 | - def to_dict(self) -> dict: | |
| 5981 | - result: dict = {} | |
| 5982 | - result["UnmarshalJSON"] = from_int(self.unmarshal_json) | |
| 5983 | - return result | |
| 5984 | - | |
| 5985 | - | |
| 5986 | -@dataclass | |
| 5987 | -class Unowned: | |
| 5988 | - unowned: int | |
| 5989 | - | |
| 5990 | - @staticmethod | |
| 5991 | - def from_dict(obj: Any) -> 'Unowned': | |
| 5992 | - assert isinstance(obj, dict) | |
| 5993 | - unowned = from_int(obj["unowned"]) | |
| 5994 | - return Unowned(unowned) | |
| 5995 | - | |
| 5996 | - def to_dict(self) -> dict: | |
| 5997 | - result: dict = {} | |
| 5998 | - result["unowned"] = from_int(self.unowned) | |
| 5999 | - return result | |
| 6000 | - | |
| 6001 | - | |
| 6002 | -@dataclass | |
| 6003 | -class Unsafe: | |
| 6004 | - unsafe: int | |
| 6005 | - | |
| 6006 | - @staticmethod | |
| 6007 | - def from_dict(obj: Any) -> 'Unsafe': | |
| 6008 | - assert isinstance(obj, dict) | |
| 6009 | - unsafe = from_int(obj["unsafe"]) | |
| 6010 | - return Unsafe(unsafe) | |
| 6011 | - | |
| 6012 | - def to_dict(self) -> dict: | |
| 6013 | - result: dict = {} | |
| 6014 | - result["unsafe"] = from_int(self.unsafe) | |
| 6015 | - return result | |
| 6016 | - | |
| 6017 | - | |
| 6018 | -@dataclass | |
| 6019 | -class UseSerializers: | |
| 6020 | - use_serializers: int | |
| 6021 | - | |
| 6022 | - @staticmethod | |
| 6023 | - def from_dict(obj: Any) -> 'UseSerializers': | |
| 6024 | - assert isinstance(obj, dict) | |
| 6025 | - use_serializers = from_int(obj["UseSerializers"]) | |
| 6026 | - return UseSerializers(use_serializers) | |
| 6027 | - | |
| 6028 | - def to_dict(self) -> dict: | |
| 6029 | - result: dict = {} | |
| 6030 | - result["UseSerializers"] = from_int(self.use_serializers) | |
| 6031 | - return result | |
| 6032 | - | |
| 6033 | - | |
| 6034 | 5999 | @dataclass |
| 6035 | 6000 | class Obj5: |
| 6036 | 6001 | k_serializer: KSerializer |
| 6037 | 6002 | primitive_kind: PrimitiveKind |
| 6003 | + sel: Sel | |
| 6038 | 6004 | obj5_self: Self |
| 6039 | 6005 | sendable: Sendable |
| 6040 | 6006 | serial_descriptor: SerialDescriptor |
| @@ -6050,9 +6016,10 @@ class Obj5: | ||
| 6050 | 6016 | time_zone: TimeZone |
| 6051 | 6017 | true: TrueClass |
| 6052 | 6018 | type: TypeClass |
| 6053 | - unmarshal_json: UnmarshalJSON | |
| 6054 | - use_serializers: UseSerializers | |
| 6055 | 6019 | dummy: int |
| 6020 | + s: S | |
| 6021 | + sbyte: Sbyte | |
| 6022 | + sealed: Sealed | |
| 6056 | 6023 | select: Select |
| 6057 | 6024 | purple_self: SelfClass |
| 6058 | 6025 | serialize: Serialize |
| @@ -6096,15 +6063,13 @@ class Obj5: | ||
| 6096 | 6063 | ulong: Ulong |
| 6097 | 6064 | unchecked: Unchecked |
| 6098 | 6065 | undefined: Undefined |
| 6099 | - union: UnionClass | |
| 6100 | - unowned: Unowned | |
| 6101 | - unsafe: Unsafe | |
| 6102 | 6066 | |
| 6103 | 6067 | @staticmethod |
| 6104 | 6068 | def from_dict(obj: Any) -> 'Obj5': |
| 6105 | 6069 | assert isinstance(obj, dict) |
| 6106 | 6070 | k_serializer = KSerializer.from_dict(obj["KSerializer"]) |
| 6107 | 6071 | primitive_kind = PrimitiveKind.from_dict(obj["PrimitiveKind"]) |
| 6072 | + sel = Sel.from_dict(obj["SEL"]) | |
| 6108 | 6073 | obj5_self = Self.from_dict(obj["Self"]) |
| 6109 | 6074 | sendable = Sendable.from_dict(obj["Sendable"]) |
| 6110 | 6075 | serial_descriptor = SerialDescriptor.from_dict(obj["SerialDescriptor"]) |
| @@ -6120,9 +6085,10 @@ class Obj5: | ||
| 6120 | 6085 | time_zone = TimeZone.from_dict(obj["TimeZone"]) |
| 6121 | 6086 | true = TrueClass.from_dict(obj["True"]) |
| 6122 | 6087 | type = TypeClass.from_dict(obj["Type"]) |
| 6123 | - unmarshal_json = UnmarshalJSON.from_dict(obj["UnmarshalJSON"]) | |
| 6124 | - use_serializers = UseSerializers.from_dict(obj["UseSerializers"]) | |
| 6125 | 6088 | dummy = from_int(obj["dummy"]) |
| 6089 | + s = S.from_dict(obj["s"]) | |
| 6090 | + sbyte = Sbyte.from_dict(obj["sbyte"]) | |
| 6091 | + sealed = Sealed.from_dict(obj["sealed"]) | |
| 6126 | 6092 | select = Select.from_dict(obj["select"]) |
| 6127 | 6093 | purple_self = SelfClass.from_dict(obj["self"]) |
| 6128 | 6094 | serialize = Serialize.from_dict(obj["serialize"]) |
| @@ -6166,15 +6132,13 @@ class Obj5: | ||
| 6166 | 6132 | ulong = Ulong.from_dict(obj["ulong"]) |
| 6167 | 6133 | unchecked = Unchecked.from_dict(obj["unchecked"]) |
| 6168 | 6134 | undefined = Undefined.from_dict(obj["undefined"]) |
| 6169 | - union = UnionClass.from_dict(obj["union"]) | |
| 6170 | - unowned = Unowned.from_dict(obj["unowned"]) | |
| 6171 | - unsafe = Unsafe.from_dict(obj["unsafe"]) | |
| 6172 | - return Obj5(k_serializer, primitive_kind, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, unmarshal_json, use_serializers, dummy, select, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, obj5_to_dict, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe) | |
| 6135 | + return Obj5(k_serializer, primitive_kind, sel, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, dummy, s, sbyte, sealed, select, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, obj5_to_dict, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined) | |
| 6173 | 6136 | |
| 6174 | 6137 | def to_dict(self) -> dict: |
| 6175 | 6138 | result: dict = {} |
| 6176 | 6139 | result["KSerializer"] = to_class(KSerializer, self.k_serializer) |
| 6177 | 6140 | result["PrimitiveKind"] = to_class(PrimitiveKind, self.primitive_kind) |
| 6141 | + result["SEL"] = to_class(Sel, self.sel) | |
| 6178 | 6142 | result["Self"] = to_class(Self, self.obj5_self) |
| 6179 | 6143 | result["Sendable"] = to_class(Sendable, self.sendable) |
| 6180 | 6144 | result["SerialDescriptor"] = to_class(SerialDescriptor, self.serial_descriptor) |
| @@ -6190,9 +6154,10 @@ class Obj5: | ||
| 6190 | 6154 | result["TimeZone"] = to_class(TimeZone, self.time_zone) |
| 6191 | 6155 | result["True"] = to_class(TrueClass, self.true) |
| 6192 | 6156 | result["Type"] = to_class(TypeClass, self.type) |
| 6193 | - result["UnmarshalJSON"] = to_class(UnmarshalJSON, self.unmarshal_json) | |
| 6194 | - result["UseSerializers"] = to_class(UseSerializers, self.use_serializers) | |
| 6195 | 6157 | result["dummy"] = from_int(self.dummy) |
| 6158 | + result["s"] = to_class(S, self.s) | |
| 6159 | + result["sbyte"] = to_class(Sbyte, self.sbyte) | |
| 6160 | + result["sealed"] = to_class(Sealed, self.sealed) | |
| 6196 | 6161 | result["select"] = to_class(Select, self.select) |
| 6197 | 6162 | result["self"] = to_class(SelfClass, self.purple_self) |
| 6198 | 6163 | result["serialize"] = to_class(Serialize, self.serialize) |
| @@ -6236,9 +6201,6 @@ class Obj5: | ||
| 6236 | 6201 | result["ulong"] = to_class(Ulong, self.ulong) |
| 6237 | 6202 | result["unchecked"] = to_class(Unchecked, self.unchecked) |
| 6238 | 6203 | result["undefined"] = to_class(Undefined, self.undefined) |
| 6239 | - result["union"] = to_class(UnionClass, self.union) | |
| 6240 | - result["unowned"] = to_class(Unowned, self.unowned) | |
| 6241 | - result["unsafe"] = to_class(Unsafe, self.unsafe) | |
| 6242 | 6204 | return result |
| 6243 | 6205 | |
| 6244 | 6206 | |
| @@ -6290,6 +6252,70 @@ class Yield: | ||
| 6290 | 6252 | return result |
| 6291 | 6253 | |
| 6292 | 6254 | |
| 6255 | +@dataclass | |
| 6256 | +class UnionClass: | |
| 6257 | + union: int | |
| 6258 | + | |
| 6259 | + @staticmethod | |
| 6260 | + def from_dict(obj: Any) -> 'UnionClass': | |
| 6261 | + assert isinstance(obj, dict) | |
| 6262 | + union = from_int(obj["union"]) | |
| 6263 | + return UnionClass(union) | |
| 6264 | + | |
| 6265 | + def to_dict(self) -> dict: | |
| 6266 | + result: dict = {} | |
| 6267 | + result["union"] = from_int(self.union) | |
| 6268 | + return result | |
| 6269 | + | |
| 6270 | + | |
| 6271 | +@dataclass | |
| 6272 | +class UnmarshalJSON: | |
| 6273 | + unmarshal_json: int | |
| 6274 | + | |
| 6275 | + @staticmethod | |
| 6276 | + def from_dict(obj: Any) -> 'UnmarshalJSON': | |
| 6277 | + assert isinstance(obj, dict) | |
| 6278 | + unmarshal_json = from_int(obj["UnmarshalJSON"]) | |
| 6279 | + return UnmarshalJSON(unmarshal_json) | |
| 6280 | + | |
| 6281 | + def to_dict(self) -> dict: | |
| 6282 | + result: dict = {} | |
| 6283 | + result["UnmarshalJSON"] = from_int(self.unmarshal_json) | |
| 6284 | + return result | |
| 6285 | + | |
| 6286 | + | |
| 6287 | +@dataclass | |
| 6288 | +class Unowned: | |
| 6289 | + unowned: int | |
| 6290 | + | |
| 6291 | + @staticmethod | |
| 6292 | + def from_dict(obj: Any) -> 'Unowned': | |
| 6293 | + assert isinstance(obj, dict) | |
| 6294 | + unowned = from_int(obj["unowned"]) | |
| 6295 | + return Unowned(unowned) | |
| 6296 | + | |
| 6297 | + def to_dict(self) -> dict: | |
| 6298 | + result: dict = {} | |
| 6299 | + result["unowned"] = from_int(self.unowned) | |
| 6300 | + return result | |
| 6301 | + | |
| 6302 | + | |
| 6303 | +@dataclass | |
| 6304 | +class Unsafe: | |
| 6305 | + unsafe: int | |
| 6306 | + | |
| 6307 | + @staticmethod | |
| 6308 | + def from_dict(obj: Any) -> 'Unsafe': | |
| 6309 | + assert isinstance(obj, dict) | |
| 6310 | + unsafe = from_int(obj["unsafe"]) | |
| 6311 | + return Unsafe(unsafe) | |
| 6312 | + | |
| 6313 | + def to_dict(self) -> dict: | |
| 6314 | + result: dict = {} | |
| 6315 | + result["unsafe"] = from_int(self.unsafe) | |
| 6316 | + return result | |
| 6317 | + | |
| 6318 | + | |
| 6293 | 6319 | @dataclass |
| 6294 | 6320 | class Unsigned: |
| 6295 | 6321 | unsigned: int |
| @@ -6306,6 +6332,22 @@ class Unsigned: | ||
| 6306 | 6332 | return result |
| 6307 | 6333 | |
| 6308 | 6334 | |
| 6335 | +@dataclass | |
| 6336 | +class UseSerializers: | |
| 6337 | + use_serializers: int | |
| 6338 | + | |
| 6339 | + @staticmethod | |
| 6340 | + def from_dict(obj: Any) -> 'UseSerializers': | |
| 6341 | + assert isinstance(obj, dict) | |
| 6342 | + use_serializers = from_int(obj["UseSerializers"]) | |
| 6343 | + return UseSerializers(use_serializers) | |
| 6344 | + | |
| 6345 | + def to_dict(self) -> dict: | |
| 6346 | + result: dict = {} | |
| 6347 | + result["UseSerializers"] = from_int(self.use_serializers) | |
| 6348 | + return result | |
| 6349 | + | |
| 6350 | + | |
| 6309 | 6351 | @dataclass |
| 6310 | 6352 | class Ushort: |
| 6311 | 6353 | ushort: int |
| @@ -6565,10 +6607,15 @@ class Yes: | ||
| 6565 | 6607 | @dataclass |
| 6566 | 6608 | class Obj6: |
| 6567 | 6609 | uuid: UUIDClass |
| 6610 | + unmarshal_json: UnmarshalJSON | |
| 6611 | + use_serializers: UseSerializers | |
| 6568 | 6612 | utf8_json_reader: Utf8JSONReader |
| 6569 | 6613 | utf8_json_writer: Utf8JSONWriter |
| 6570 | 6614 | yes: Yes |
| 6571 | 6615 | dummy: int |
| 6616 | + union: UnionClass | |
| 6617 | + unowned: Unowned | |
| 6618 | + unsafe: Unsafe | |
| 6572 | 6619 | unsigned: Unsigned |
| 6573 | 6620 | ushort: Ushort |
| 6574 | 6621 | using: Using |
| @@ -6590,10 +6637,15 @@ class Obj6: | ||
| 6590 | 6637 | def from_dict(obj: Any) -> 'Obj6': |
| 6591 | 6638 | assert isinstance(obj, dict) |
| 6592 | 6639 | uuid = UUIDClass.from_dict(obj["UUID"]) |
| 6640 | + unmarshal_json = UnmarshalJSON.from_dict(obj["UnmarshalJSON"]) | |
| 6641 | + use_serializers = UseSerializers.from_dict(obj["UseSerializers"]) | |
| 6593 | 6642 | utf8_json_reader = Utf8JSONReader.from_dict(obj["Utf8JsonReader"]) |
| 6594 | 6643 | utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"]) |
| 6595 | 6644 | yes = Yes.from_dict(obj["YES"]) |
| 6596 | 6645 | dummy = from_int(obj["dummy"]) |
| 6646 | + union = UnionClass.from_dict(obj["union"]) | |
| 6647 | + unowned = Unowned.from_dict(obj["unowned"]) | |
| 6648 | + unsafe = Unsafe.from_dict(obj["unsafe"]) | |
| 6597 | 6649 | unsigned = Unsigned.from_dict(obj["unsigned"]) |
| 6598 | 6650 | ushort = Ushort.from_dict(obj["ushort"]) |
| 6599 | 6651 | using = Using.from_dict(obj["using"]) |
| @@ -6610,15 +6662,20 @@ class Obj6: | ||
| 6610 | 6662 | xor = Xor.from_dict(obj["xor"]) |
| 6611 | 6663 | xor_eq = XorEq.from_dict(obj["xor_eq"]) |
| 6612 | 6664 | obj6_yield = Yield.from_dict(obj["yield"]) |
| 6613 | - return Obj6(uuid, utf8_json_reader, utf8_json_writer, yes, dummy, unsigned, ushort, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield) | |
| 6665 | + return Obj6(uuid, unmarshal_json, use_serializers, utf8_json_reader, utf8_json_writer, yes, dummy, union, unowned, unsafe, unsigned, ushort, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield) | |
| 6614 | 6666 | |
| 6615 | 6667 | def to_dict(self) -> dict: |
| 6616 | 6668 | result: dict = {} |
| 6617 | 6669 | result["UUID"] = to_class(UUIDClass, self.uuid) |
| 6670 | + result["UnmarshalJSON"] = to_class(UnmarshalJSON, self.unmarshal_json) | |
| 6671 | + result["UseSerializers"] = to_class(UseSerializers, self.use_serializers) | |
| 6618 | 6672 | result["Utf8JsonReader"] = to_class(Utf8JSONReader, self.utf8_json_reader) |
| 6619 | 6673 | result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer) |
| 6620 | 6674 | result["YES"] = to_class(Yes, self.yes) |
| 6621 | 6675 | result["dummy"] = from_int(self.dummy) |
| 6676 | + result["union"] = to_class(UnionClass, self.union) | |
| 6677 | + result["unowned"] = to_class(Unowned, self.unowned) | |
| 6678 | + result["unsafe"] = to_class(Unsafe, self.unsafe) | |
| 6622 | 6679 | result["unsigned"] = to_class(Unsigned, self.unsigned) |
| 6623 | 6680 | result["ushort"] = to_class(Ushort, self.ushort) |
| 6624 | 6681 | result["using"] = to_class(Using, self.using) |
Mrubydefault / TopLevel.rb+454 −370
| @@ -4811,6 +4811,31 @@ class List < Dry::Struct | ||
| 4811 | 4811 | end |
| 4812 | 4812 | end |
| 4813 | 4813 | |
| 4814 | +class LocalDate < Dry::Struct | |
| 4815 | + attribute :local_date, Types::Integer | |
| 4816 | + | |
| 4817 | + def self.from_dynamic!(d) | |
| 4818 | + d = Types::Hash[d] | |
| 4819 | + new( | |
| 4820 | + local_date: d.fetch("LocalDate"), | |
| 4821 | + ) | |
| 4822 | + end | |
| 4823 | + | |
| 4824 | + def self.from_json!(json) | |
| 4825 | + from_dynamic!(JSON.parse(json)) | |
| 4826 | + end | |
| 4827 | + | |
| 4828 | + def to_dynamic | |
| 4829 | + { | |
| 4830 | + "LocalDate" => local_date, | |
| 4831 | + } | |
| 4832 | + end | |
| 4833 | + | |
| 4834 | + def to_json(options = nil) | |
| 4835 | + JSON.generate(to_dynamic, options) | |
| 4836 | + end | |
| 4837 | +end | |
| 4838 | + | |
| 4814 | 4839 | class Locale < Dry::Struct |
| 4815 | 4840 | attribute :locale, Types::Integer |
| 4816 | 4841 | |
| @@ -5111,31 +5136,6 @@ class Newtonsoft < Dry::Struct | ||
| 5111 | 5136 | end |
| 5112 | 5137 | end |
| 5113 | 5138 | |
| 5114 | -class No < Dry::Struct | |
| 5115 | - attribute :no, Types::Integer | |
| 5116 | - | |
| 5117 | - def self.from_dynamic!(d) | |
| 5118 | - d = Types::Hash[d] | |
| 5119 | - new( | |
| 5120 | - no: d.fetch("NO"), | |
| 5121 | - ) | |
| 5122 | - end | |
| 5123 | - | |
| 5124 | - def self.from_json!(json) | |
| 5125 | - from_dynamic!(JSON.parse(json)) | |
| 5126 | - end | |
| 5127 | - | |
| 5128 | - def to_dynamic | |
| 5129 | - { | |
| 5130 | - "NO" => no, | |
| 5131 | - } | |
| 5132 | - end | |
| 5133 | - | |
| 5134 | - def to_json(options = nil) | |
| 5135 | - JSON.generate(to_dynamic, options) | |
| 5136 | - end | |
| 5137 | -end | |
| 5138 | - | |
| 5139 | 5139 | class If < Dry::Struct |
| 5140 | 5140 | attribute :if_if, Types::Integer |
| 5141 | 5141 | |
| @@ -5261,31 +5261,6 @@ class New < Dry::Struct | ||
| 5261 | 5261 | end |
| 5262 | 5262 | end |
| 5263 | 5263 | |
| 5264 | -class Nil < Dry::Struct | |
| 5265 | - attribute :nil_nil, Types::Integer | |
| 5266 | - | |
| 5267 | - def self.from_dynamic!(d) | |
| 5268 | - d = Types::Hash[d] | |
| 5269 | - new( | |
| 5270 | - nil_nil: d.fetch("nil"), | |
| 5271 | - ) | |
| 5272 | - end | |
| 5273 | - | |
| 5274 | - def self.from_json!(json) | |
| 5275 | - from_dynamic!(JSON.parse(json)) | |
| 5276 | - end | |
| 5277 | - | |
| 5278 | - def to_dynamic | |
| 5279 | - { | |
| 5280 | - "nil" => nil_nil, | |
| 5281 | - } | |
| 5282 | - end | |
| 5283 | - | |
| 5284 | - def to_json(options = nil) | |
| 5285 | - JSON.generate(to_dynamic, options) | |
| 5286 | - end | |
| 5287 | -end | |
| 5288 | - | |
| 5289 | 5264 | class Obj3 < Dry::Struct |
| 5290 | 5265 | attribute :dummy, Types::Integer |
| 5291 | 5266 | attribute :goto, Goto |
| @@ -5334,6 +5309,7 @@ class Obj3 < Dry::Struct | ||
| 5334 | 5309 | attribute :left, Left |
| 5335 | 5310 | attribute :let, Let |
| 5336 | 5311 | attribute :list, List |
| 5312 | + attribute :local_date, LocalDate | |
| 5337 | 5313 | attribute :locale, Locale |
| 5338 | 5314 | attribute :lock, Lock |
| 5339 | 5315 | attribute :long, Long |
| @@ -5346,13 +5322,11 @@ class Obj3 < Dry::Struct | ||
| 5346 | 5322 | attribute :namespace, Namespace |
| 5347 | 5323 | attribute :native, Native |
| 5348 | 5324 | attribute :newtonsoft, Newtonsoft |
| 5349 | - attribute :no, No | |
| 5350 | 5325 | attribute :obj3_if, If |
| 5351 | 5326 | attribute :obj3_in, In |
| 5352 | 5327 | attribute :obj3_lambda, Lambda |
| 5353 | 5328 | attribute :obj3_module, ModuleClass |
| 5354 | 5329 | attribute :obj3_new, New |
| 5355 | - attribute :obj3_nil, Nil | |
| 5356 | 5330 | |
| 5357 | 5331 | def self.from_dynamic!(d) |
| 5358 | 5332 | d = Types::Hash[d] |
| @@ -5404,6 +5378,7 @@ class Obj3 < Dry::Struct | ||
| 5404 | 5378 | left: Left.from_dynamic!(d.fetch("left")), |
| 5405 | 5379 | let: Let.from_dynamic!(d.fetch("let")), |
| 5406 | 5380 | list: List.from_dynamic!(d.fetch("list")), |
| 5381 | + local_date: LocalDate.from_dynamic!(d.fetch("LocalDate")), | |
| 5407 | 5382 | locale: Locale.from_dynamic!(d.fetch("Locale")), |
| 5408 | 5383 | lock: Lock.from_dynamic!(d.fetch("lock")), |
| 5409 | 5384 | long: Long.from_dynamic!(d.fetch("long")), |
| @@ -5416,13 +5391,11 @@ class Obj3 < Dry::Struct | ||
| 5416 | 5391 | namespace: Namespace.from_dynamic!(d.fetch("namespace")), |
| 5417 | 5392 | native: Native.from_dynamic!(d.fetch("native")), |
| 5418 | 5393 | newtonsoft: Newtonsoft.from_dynamic!(d.fetch("newtonsoft")), |
| 5419 | - no: No.from_dynamic!(d.fetch("NO")), | |
| 5420 | 5394 | obj3_if: If.from_dynamic!(d.fetch("if")), |
| 5421 | 5395 | obj3_in: In.from_dynamic!(d.fetch("in")), |
| 5422 | 5396 | obj3_lambda: Lambda.from_dynamic!(d.fetch("lambda")), |
| 5423 | 5397 | obj3_module: ModuleClass.from_dynamic!(d.fetch("module")), |
| 5424 | 5398 | obj3_new: New.from_dynamic!(d.fetch("new")), |
| 5425 | - obj3_nil: Nil.from_dynamic!(d.fetch("nil")), | |
| 5426 | 5399 | ) |
| 5427 | 5400 | end |
| 5428 | 5401 | |
| @@ -5479,6 +5452,7 @@ class Obj3 < Dry::Struct | ||
| 5479 | 5452 | "left" => left.to_dynamic, |
| 5480 | 5453 | "let" => let.to_dynamic, |
| 5481 | 5454 | "list" => list.to_dynamic, |
| 5455 | + "LocalDate" => local_date.to_dynamic, | |
| 5482 | 5456 | "Locale" => locale.to_dynamic, |
| 5483 | 5457 | "lock" => lock.to_dynamic, |
| 5484 | 5458 | "long" => long.to_dynamic, |
| @@ -5491,13 +5465,36 @@ class Obj3 < Dry::Struct | ||
| 5491 | 5465 | "namespace" => namespace.to_dynamic, |
| 5492 | 5466 | "native" => native.to_dynamic, |
| 5493 | 5467 | "newtonsoft" => newtonsoft.to_dynamic, |
| 5494 | - "NO" => no.to_dynamic, | |
| 5495 | 5468 | "if" => obj3_if.to_dynamic, |
| 5496 | 5469 | "in" => obj3_in.to_dynamic, |
| 5497 | 5470 | "lambda" => obj3_lambda.to_dynamic, |
| 5498 | 5471 | "module" => obj3_module.to_dynamic, |
| 5499 | 5472 | "new" => obj3_new.to_dynamic, |
| 5500 | - "nil" => obj3_nil.to_dynamic, | |
| 5473 | + } | |
| 5474 | + end | |
| 5475 | + | |
| 5476 | + def to_json(options = nil) | |
| 5477 | + JSON.generate(to_dynamic, options) | |
| 5478 | + end | |
| 5479 | +end | |
| 5480 | + | |
| 5481 | +class No < Dry::Struct | |
| 5482 | + attribute :no, Types::Integer | |
| 5483 | + | |
| 5484 | + def self.from_dynamic!(d) | |
| 5485 | + d = Types::Hash[d] | |
| 5486 | + new( | |
| 5487 | + no: d.fetch("NO"), | |
| 5488 | + ) | |
| 5489 | + end | |
| 5490 | + | |
| 5491 | + def self.from_json!(json) | |
| 5492 | + from_dynamic!(JSON.parse(json)) | |
| 5493 | + end | |
| 5494 | + | |
| 5495 | + def to_dynamic | |
| 5496 | + { | |
| 5497 | + "NO" => no, | |
| 5501 | 5498 | } |
| 5502 | 5499 | end |
| 5503 | 5500 | |
| @@ -5831,6 +5828,31 @@ class Number < Dry::Struct | ||
| 5831 | 5828 | end |
| 5832 | 5829 | end |
| 5833 | 5830 | |
| 5831 | +class Nil < Dry::Struct | |
| 5832 | + attribute :nil_nil, Types::Integer | |
| 5833 | + | |
| 5834 | + def self.from_dynamic!(d) | |
| 5835 | + d = Types::Hash[d] | |
| 5836 | + new( | |
| 5837 | + nil_nil: d.fetch("nil"), | |
| 5838 | + ) | |
| 5839 | + end | |
| 5840 | + | |
| 5841 | + def self.from_json!(json) | |
| 5842 | + from_dynamic!(JSON.parse(json)) | |
| 5843 | + end | |
| 5844 | + | |
| 5845 | + def to_dynamic | |
| 5846 | + { | |
| 5847 | + "nil" => nil_nil, | |
| 5848 | + } | |
| 5849 | + end | |
| 5850 | + | |
| 5851 | + def to_json(options = nil) | |
| 5852 | + JSON.generate(to_dynamic, options) | |
| 5853 | + end | |
| 5854 | +end | |
| 5855 | + | |
| 5834 | 5856 | class NoneClass < Dry::Struct |
| 5835 | 5857 | attribute :none, Types::Integer |
| 5836 | 5858 | |
| @@ -6206,6 +6228,56 @@ class Of < Dry::Struct | ||
| 6206 | 6228 | end |
| 6207 | 6229 | end |
| 6208 | 6230 | |
| 6231 | +class OffsetDateTime < Dry::Struct | |
| 6232 | + attribute :offset_date_time, Types::Integer | |
| 6233 | + | |
| 6234 | + def self.from_dynamic!(d) | |
| 6235 | + d = Types::Hash[d] | |
| 6236 | + new( | |
| 6237 | + offset_date_time: d.fetch("OffsetDateTime"), | |
| 6238 | + ) | |
| 6239 | + end | |
| 6240 | + | |
| 6241 | + def self.from_json!(json) | |
| 6242 | + from_dynamic!(JSON.parse(json)) | |
| 6243 | + end | |
| 6244 | + | |
| 6245 | + def to_dynamic | |
| 6246 | + { | |
| 6247 | + "OffsetDateTime" => offset_date_time, | |
| 6248 | + } | |
| 6249 | + end | |
| 6250 | + | |
| 6251 | + def to_json(options = nil) | |
| 6252 | + JSON.generate(to_dynamic, options) | |
| 6253 | + end | |
| 6254 | +end | |
| 6255 | + | |
| 6256 | +class OffsetTime < Dry::Struct | |
| 6257 | + attribute :offset_time, Types::Integer | |
| 6258 | + | |
| 6259 | + def self.from_dynamic!(d) | |
| 6260 | + d = Types::Hash[d] | |
| 6261 | + new( | |
| 6262 | + offset_time: d.fetch("OffsetTime"), | |
| 6263 | + ) | |
| 6264 | + end | |
| 6265 | + | |
| 6266 | + def self.from_json!(json) | |
| 6267 | + from_dynamic!(JSON.parse(json)) | |
| 6268 | + end | |
| 6269 | + | |
| 6270 | + def to_dynamic | |
| 6271 | + { | |
| 6272 | + "OffsetTime" => offset_time, | |
| 6273 | + } | |
| 6274 | + end | |
| 6275 | + | |
| 6276 | + def to_json(options = nil) | |
| 6277 | + JSON.generate(to_dynamic, options) | |
| 6278 | + end | |
| 6279 | +end | |
| 6280 | + | |
| 6209 | 6281 | class Oneway < Dry::Struct |
| 6210 | 6282 | attribute :oneway, Types::Integer |
| 6211 | 6283 | |
| @@ -7006,177 +7078,78 @@ class RuntimeType < Dry::Struct | ||
| 7006 | 7078 | end |
| 7007 | 7079 | end |
| 7008 | 7080 | |
| 7009 | -class S < Dry::Struct | |
| 7010 | - attribute :s, Types::Integer | |
| 7011 | - | |
| 7012 | - def self.from_dynamic!(d) | |
| 7013 | - d = Types::Hash[d] | |
| 7014 | - new( | |
| 7015 | - s: d.fetch("s"), | |
| 7016 | - ) | |
| 7017 | - end | |
| 7018 | - | |
| 7019 | - def self.from_json!(json) | |
| 7020 | - from_dynamic!(JSON.parse(json)) | |
| 7021 | - end | |
| 7022 | - | |
| 7023 | - def to_dynamic | |
| 7024 | - { | |
| 7025 | - "s" => s, | |
| 7026 | - } | |
| 7027 | - end | |
| 7028 | - | |
| 7029 | - def to_json(options = nil) | |
| 7030 | - JSON.generate(to_dynamic, options) | |
| 7031 | - end | |
| 7032 | -end | |
| 7033 | - | |
| 7034 | -class Sbyte < Dry::Struct | |
| 7035 | - attribute :sbyte, Types::Integer | |
| 7036 | - | |
| 7037 | - def self.from_dynamic!(d) | |
| 7038 | - d = Types::Hash[d] | |
| 7039 | - new( | |
| 7040 | - sbyte: d.fetch("sbyte"), | |
| 7041 | - ) | |
| 7042 | - end | |
| 7043 | - | |
| 7044 | - def self.from_json!(json) | |
| 7045 | - from_dynamic!(JSON.parse(json)) | |
| 7046 | - end | |
| 7047 | - | |
| 7048 | - def to_dynamic | |
| 7049 | - { | |
| 7050 | - "sbyte" => sbyte, | |
| 7051 | - } | |
| 7052 | - end | |
| 7053 | - | |
| 7054 | - def to_json(options = nil) | |
| 7055 | - JSON.generate(to_dynamic, options) | |
| 7056 | - end | |
| 7057 | -end | |
| 7058 | - | |
| 7059 | -class Sealed < Dry::Struct | |
| 7060 | - attribute :sealed, Types::Integer | |
| 7061 | - | |
| 7062 | - def self.from_dynamic!(d) | |
| 7063 | - d = Types::Hash[d] | |
| 7064 | - new( | |
| 7065 | - sealed: d.fetch("sealed"), | |
| 7066 | - ) | |
| 7067 | - end | |
| 7068 | - | |
| 7069 | - def self.from_json!(json) | |
| 7070 | - from_dynamic!(JSON.parse(json)) | |
| 7071 | - end | |
| 7072 | - | |
| 7073 | - def to_dynamic | |
| 7074 | - { | |
| 7075 | - "sealed" => sealed, | |
| 7076 | - } | |
| 7077 | - end | |
| 7078 | - | |
| 7079 | - def to_json(options = nil) | |
| 7080 | - JSON.generate(to_dynamic, options) | |
| 7081 | - end | |
| 7082 | -end | |
| 7083 | - | |
| 7084 | -class Sel < Dry::Struct | |
| 7085 | - attribute :sel, Types::Integer | |
| 7086 | - | |
| 7087 | - def self.from_dynamic!(d) | |
| 7088 | - d = Types::Hash[d] | |
| 7089 | - new( | |
| 7090 | - sel: d.fetch("SEL"), | |
| 7091 | - ) | |
| 7092 | - end | |
| 7093 | - | |
| 7094 | - def self.from_json!(json) | |
| 7095 | - from_dynamic!(JSON.parse(json)) | |
| 7096 | - end | |
| 7097 | - | |
| 7098 | - def to_dynamic | |
| 7099 | - { | |
| 7100 | - "SEL" => sel, | |
| 7101 | - } | |
| 7102 | - end | |
| 7103 | - | |
| 7104 | - def to_json(options = nil) | |
| 7105 | - JSON.generate(to_dynamic, options) | |
| 7106 | - end | |
| 7107 | -end | |
| 7108 | - | |
| 7109 | -class Obj4 < Dry::Struct | |
| 7110 | - attribute :dummy, Types::Integer | |
| 7111 | - attribute :no_such_method, NoSuchMethod | |
| 7112 | - attribute :noexcept, Noexcept | |
| 7113 | - attribute :nonatomic, Nonatomic | |
| 7114 | - attribute :none, None | |
| 7115 | - attribute :nonlocal, Nonlocal | |
| 7116 | - attribute :nonmutating, Nonmutating | |
| 7117 | - attribute :not_eq, NotEq | |
| 7118 | - attribute :ns_error, NSError | |
| 7119 | - attribute :ns_object, NSObject | |
| 7120 | - attribute :ns_string, NSString | |
| 7121 | - attribute :null, Null | |
| 7122 | - attribute :nullptr, Nullptr | |
| 7123 | - attribute :number, Number | |
| 7124 | - attribute :obj4_none, NoneClass | |
| 7125 | - attribute :obj4_not, Not | |
| 7126 | - attribute :obj4_null, NullClass | |
| 7127 | - attribute :obj4_open, Open | |
| 7128 | - attribute :obj4_optional, Optional | |
| 7129 | - attribute :obj4_or, Or | |
| 7130 | - attribute :obj4_print, Print | |
| 7131 | - attribute :obj4_printf, Printf | |
| 7132 | - attribute :obj4_protocol, ProtocolClass | |
| 7133 | - attribute :obj4_raise, Raise | |
| 7134 | - attribute :obj4_require, Require | |
| 7135 | - attribute :obj4_return, Return | |
| 7136 | - attribute :object, ObjectClass | |
| 7137 | - attribute :object_mapper, ObjectMapper | |
| 7138 | - attribute :of, Of | |
| 7139 | - attribute :oneway, Oneway | |
| 7140 | - attribute :operator, Operator | |
| 7141 | - attribute :or_eq, OrEq | |
| 7142 | - attribute :out, Out | |
| 7143 | - attribute :override, Override | |
| 7144 | - attribute :package, Package | |
| 7145 | - attribute :params, Params | |
| 7146 | - attribute :pass, Pass | |
| 7147 | - attribute :port, Port | |
| 7148 | - attribute :postfix, Postfix | |
| 7149 | - attribute :precedence, Precedence | |
| 7150 | - attribute :prefix, Prefix | |
| 7151 | - attribute :print_members, PrintMembers | |
| 7152 | - attribute :private, Private | |
| 7153 | - attribute :protected, Protected | |
| 7154 | - attribute :protocol, Protocol | |
| 7155 | - attribute :public, Public | |
| 7156 | - attribute :quicktype, Quicktype | |
| 7157 | - attribute :range, RangeClass | |
| 7158 | - attribute :readonly, Readonly | |
| 7159 | - attribute :ref, Ref | |
| 7160 | - attribute :reg_exp, RegExp | |
| 7161 | - attribute :register, Register | |
| 7162 | - attribute :reinterpret_cast, ReinterpretCast | |
| 7163 | - attribute :repeat, Repeat | |
| 7164 | - attribute :required, Required | |
| 7165 | - attribute :requires, Requires | |
| 7166 | - attribute :restrict, Restrict | |
| 7167 | - attribute :retain, Retain | |
| 7168 | - attribute :rethrows, Rethrows | |
| 7169 | - attribute :right, Right | |
| 7170 | - attribute :runtime_type, RuntimeType | |
| 7171 | - attribute :s, S | |
| 7172 | - attribute :sbyte, Sbyte | |
| 7173 | - attribute :sealed, Sealed | |
| 7174 | - attribute :sel, Sel | |
| 7081 | +class Obj4 < Dry::Struct | |
| 7082 | + attribute :dummy, Types::Integer | |
| 7083 | + attribute :no, No | |
| 7084 | + attribute :no_such_method, NoSuchMethod | |
| 7085 | + attribute :noexcept, Noexcept | |
| 7086 | + attribute :nonatomic, Nonatomic | |
| 7087 | + attribute :none, None | |
| 7088 | + attribute :nonlocal, Nonlocal | |
| 7089 | + attribute :nonmutating, Nonmutating | |
| 7090 | + attribute :not_eq, NotEq | |
| 7091 | + attribute :ns_error, NSError | |
| 7092 | + attribute :ns_object, NSObject | |
| 7093 | + attribute :ns_string, NSString | |
| 7094 | + attribute :null, Null | |
| 7095 | + attribute :nullptr, Nullptr | |
| 7096 | + attribute :number, Number | |
| 7097 | + attribute :obj4_nil, Nil | |
| 7098 | + attribute :obj4_none, NoneClass | |
| 7099 | + attribute :obj4_not, Not | |
| 7100 | + attribute :obj4_null, NullClass | |
| 7101 | + attribute :obj4_open, Open | |
| 7102 | + attribute :obj4_optional, Optional | |
| 7103 | + attribute :obj4_or, Or | |
| 7104 | + attribute :obj4_print, Print | |
| 7105 | + attribute :obj4_printf, Printf | |
| 7106 | + attribute :obj4_protocol, ProtocolClass | |
| 7107 | + attribute :obj4_raise, Raise | |
| 7108 | + attribute :obj4_require, Require | |
| 7109 | + attribute :obj4_return, Return | |
| 7110 | + attribute :object, ObjectClass | |
| 7111 | + attribute :object_mapper, ObjectMapper | |
| 7112 | + attribute :of, Of | |
| 7113 | + attribute :offset_date_time, OffsetDateTime | |
| 7114 | + attribute :offset_time, OffsetTime | |
| 7115 | + attribute :oneway, Oneway | |
| 7116 | + attribute :operator, Operator | |
| 7117 | + attribute :or_eq, OrEq | |
| 7118 | + attribute :out, Out | |
| 7119 | + attribute :override, Override | |
| 7120 | + attribute :package, Package | |
| 7121 | + attribute :params, Params | |
| 7122 | + attribute :pass, Pass | |
| 7123 | + attribute :port, Port | |
| 7124 | + attribute :postfix, Postfix | |
| 7125 | + attribute :precedence, Precedence | |
| 7126 | + attribute :prefix, Prefix | |
| 7127 | + attribute :print_members, PrintMembers | |
| 7128 | + attribute :private, Private | |
| 7129 | + attribute :protected, Protected | |
| 7130 | + attribute :protocol, Protocol | |
| 7131 | + attribute :public, Public | |
| 7132 | + attribute :quicktype, Quicktype | |
| 7133 | + attribute :range, RangeClass | |
| 7134 | + attribute :readonly, Readonly | |
| 7135 | + attribute :ref, Ref | |
| 7136 | + attribute :reg_exp, RegExp | |
| 7137 | + attribute :register, Register | |
| 7138 | + attribute :reinterpret_cast, ReinterpretCast | |
| 7139 | + attribute :repeat, Repeat | |
| 7140 | + attribute :required, Required | |
| 7141 | + attribute :requires, Requires | |
| 7142 | + attribute :restrict, Restrict | |
| 7143 | + attribute :retain, Retain | |
| 7144 | + attribute :rethrows, Rethrows | |
| 7145 | + attribute :right, Right | |
| 7146 | + attribute :runtime_type, RuntimeType | |
| 7175 | 7147 | |
| 7176 | 7148 | def self.from_dynamic!(d) |
| 7177 | 7149 | d = Types::Hash[d] |
| 7178 | 7150 | new( |
| 7179 | 7151 | dummy: d.fetch("dummy"), |
| 7152 | + no: No.from_dynamic!(d.fetch("NO")), | |
| 7180 | 7153 | no_such_method: NoSuchMethod.from_dynamic!(d.fetch("noSuchMethod")), |
| 7181 | 7154 | noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")), |
| 7182 | 7155 | nonatomic: Nonatomic.from_dynamic!(d.fetch("nonatomic")), |
| @@ -7190,6 +7163,7 @@ class Obj4 < Dry::Struct | ||
| 7190 | 7163 | null: Null.from_dynamic!(d.fetch("NULL")), |
| 7191 | 7164 | nullptr: Nullptr.from_dynamic!(d.fetch("nullptr")), |
| 7192 | 7165 | number: Number.from_dynamic!(d.fetch("number")), |
| 7166 | + obj4_nil: Nil.from_dynamic!(d.fetch("nil")), | |
| 7193 | 7167 | obj4_none: NoneClass.from_dynamic!(d.fetch("none")), |
| 7194 | 7168 | obj4_not: Not.from_dynamic!(d.fetch("not")), |
| 7195 | 7169 | obj4_null: NullClass.from_dynamic!(d.fetch("null")), |
| @@ -7205,6 +7179,8 @@ class Obj4 < Dry::Struct | ||
| 7205 | 7179 | object: ObjectClass.from_dynamic!(d.fetch("object")), |
| 7206 | 7180 | object_mapper: ObjectMapper.from_dynamic!(d.fetch("ObjectMapper")), |
| 7207 | 7181 | of: Of.from_dynamic!(d.fetch("of")), |
| 7182 | + offset_date_time: OffsetDateTime.from_dynamic!(d.fetch("OffsetDateTime")), | |
| 7183 | + offset_time: OffsetTime.from_dynamic!(d.fetch("OffsetTime")), | |
| 7208 | 7184 | oneway: Oneway.from_dynamic!(d.fetch("oneway")), |
| 7209 | 7185 | operator: Operator.from_dynamic!(d.fetch("operator")), |
| 7210 | 7186 | or_eq: OrEq.from_dynamic!(d.fetch("or_eq")), |
| @@ -7237,10 +7213,6 @@ class Obj4 < Dry::Struct | ||
| 7237 | 7213 | rethrows: Rethrows.from_dynamic!(d.fetch("rethrows")), |
| 7238 | 7214 | right: Right.from_dynamic!(d.fetch("right")), |
| 7239 | 7215 | runtime_type: RuntimeType.from_dynamic!(d.fetch("runtimeType")), |
| 7240 | - s: S.from_dynamic!(d.fetch("s")), | |
| 7241 | - sbyte: Sbyte.from_dynamic!(d.fetch("sbyte")), | |
| 7242 | - sealed: Sealed.from_dynamic!(d.fetch("sealed")), | |
| 7243 | - sel: Sel.from_dynamic!(d.fetch("SEL")), | |
| 7244 | 7216 | ) |
| 7245 | 7217 | end |
| 7246 | 7218 | |
| @@ -7251,6 +7223,7 @@ class Obj4 < Dry::Struct | ||
| 7251 | 7223 | def to_dynamic |
| 7252 | 7224 | { |
| 7253 | 7225 | "dummy" => dummy, |
| 7226 | + "NO" => no.to_dynamic, | |
| 7254 | 7227 | "noSuchMethod" => no_such_method.to_dynamic, |
| 7255 | 7228 | "noexcept" => noexcept.to_dynamic, |
| 7256 | 7229 | "nonatomic" => nonatomic.to_dynamic, |
| @@ -7264,6 +7237,7 @@ class Obj4 < Dry::Struct | ||
| 7264 | 7237 | "NULL" => null.to_dynamic, |
| 7265 | 7238 | "nullptr" => nullptr.to_dynamic, |
| 7266 | 7239 | "number" => number.to_dynamic, |
| 7240 | + "nil" => obj4_nil.to_dynamic, | |
| 7267 | 7241 | "none" => obj4_none.to_dynamic, |
| 7268 | 7242 | "not" => obj4_not.to_dynamic, |
| 7269 | 7243 | "null" => obj4_null.to_dynamic, |
| @@ -7279,6 +7253,8 @@ class Obj4 < Dry::Struct | ||
| 7279 | 7253 | "object" => object.to_dynamic, |
| 7280 | 7254 | "ObjectMapper" => object_mapper.to_dynamic, |
| 7281 | 7255 | "of" => of.to_dynamic, |
| 7256 | + "OffsetDateTime" => offset_date_time.to_dynamic, | |
| 7257 | + "OffsetTime" => offset_time.to_dynamic, | |
| 7282 | 7258 | "oneway" => oneway.to_dynamic, |
| 7283 | 7259 | "operator" => operator.to_dynamic, |
| 7284 | 7260 | "or_eq" => or_eq.to_dynamic, |
| @@ -7311,10 +7287,6 @@ class Obj4 < Dry::Struct | ||
| 7311 | 7287 | "rethrows" => rethrows.to_dynamic, |
| 7312 | 7288 | "right" => right.to_dynamic, |
| 7313 | 7289 | "runtimeType" => runtime_type.to_dynamic, |
| 7314 | - "s" => s.to_dynamic, | |
| 7315 | - "sbyte" => sbyte.to_dynamic, | |
| 7316 | - "sealed" => sealed.to_dynamic, | |
| 7317 | - "SEL" => sel.to_dynamic, | |
| 7318 | 7290 | } |
| 7319 | 7291 | end |
| 7320 | 7292 | |
| @@ -7623,6 +7595,106 @@ class PrimitiveKind < Dry::Struct | ||
| 7623 | 7595 | end |
| 7624 | 7596 | end |
| 7625 | 7597 | |
| 7598 | +class S < Dry::Struct | |
| 7599 | + attribute :s, Types::Integer | |
| 7600 | + | |
| 7601 | + def self.from_dynamic!(d) | |
| 7602 | + d = Types::Hash[d] | |
| 7603 | + new( | |
| 7604 | + s: d.fetch("s"), | |
| 7605 | + ) | |
| 7606 | + end | |
| 7607 | + | |
| 7608 | + def self.from_json!(json) | |
| 7609 | + from_dynamic!(JSON.parse(json)) | |
| 7610 | + end | |
| 7611 | + | |
| 7612 | + def to_dynamic | |
| 7613 | + { | |
| 7614 | + "s" => s, | |
| 7615 | + } | |
| 7616 | + end | |
| 7617 | + | |
| 7618 | + def to_json(options = nil) | |
| 7619 | + JSON.generate(to_dynamic, options) | |
| 7620 | + end | |
| 7621 | +end | |
| 7622 | + | |
| 7623 | +class Sbyte < Dry::Struct | |
| 7624 | + attribute :sbyte, Types::Integer | |
| 7625 | + | |
| 7626 | + def self.from_dynamic!(d) | |
| 7627 | + d = Types::Hash[d] | |
| 7628 | + new( | |
| 7629 | + sbyte: d.fetch("sbyte"), | |
| 7630 | + ) | |
| 7631 | + end | |
| 7632 | + | |
| 7633 | + def self.from_json!(json) | |
| 7634 | + from_dynamic!(JSON.parse(json)) | |
| 7635 | + end | |
| 7636 | + | |
| 7637 | + def to_dynamic | |
| 7638 | + { | |
| 7639 | + "sbyte" => sbyte, | |
| 7640 | + } | |
| 7641 | + end | |
| 7642 | + | |
| 7643 | + def to_json(options = nil) | |
| 7644 | + JSON.generate(to_dynamic, options) | |
| 7645 | + end | |
| 7646 | +end | |
| 7647 | + | |
| 7648 | +class Sealed < Dry::Struct | |
| 7649 | + attribute :sealed, Types::Integer | |
| 7650 | + | |
| 7651 | + def self.from_dynamic!(d) | |
| 7652 | + d = Types::Hash[d] | |
| 7653 | + new( | |
| 7654 | + sealed: d.fetch("sealed"), | |
| 7655 | + ) | |
| 7656 | + end | |
| 7657 | + | |
| 7658 | + def self.from_json!(json) | |
| 7659 | + from_dynamic!(JSON.parse(json)) | |
| 7660 | + end | |
| 7661 | + | |
| 7662 | + def to_dynamic | |
| 7663 | + { | |
| 7664 | + "sealed" => sealed, | |
| 7665 | + } | |
| 7666 | + end | |
| 7667 | + | |
| 7668 | + def to_json(options = nil) | |
| 7669 | + JSON.generate(to_dynamic, options) | |
| 7670 | + end | |
| 7671 | +end | |
| 7672 | + | |
| 7673 | +class Sel < Dry::Struct | |
| 7674 | + attribute :sel, Types::Integer | |
| 7675 | + | |
| 7676 | + def self.from_dynamic!(d) | |
| 7677 | + d = Types::Hash[d] | |
| 7678 | + new( | |
| 7679 | + sel: d.fetch("SEL"), | |
| 7680 | + ) | |
| 7681 | + end | |
| 7682 | + | |
| 7683 | + def self.from_json!(json) | |
| 7684 | + from_dynamic!(JSON.parse(json)) | |
| 7685 | + end | |
| 7686 | + | |
| 7687 | + def to_dynamic | |
| 7688 | + { | |
| 7689 | + "SEL" => sel, | |
| 7690 | + } | |
| 7691 | + end | |
| 7692 | + | |
| 7693 | + def to_json(options = nil) | |
| 7694 | + JSON.generate(to_dynamic, options) | |
| 7695 | + end | |
| 7696 | +end | |
| 7697 | + | |
| 7626 | 7698 | class Obj5Self < Dry::Struct |
| 7627 | 7699 | attribute :self_self, Types::Integer |
| 7628 | 7700 | |
| @@ -8823,131 +8895,6 @@ class UndefinedClass < Dry::Struct | ||
| 8823 | 8895 | end |
| 8824 | 8896 | end |
| 8825 | 8897 | |
| 8826 | -class Union < Dry::Struct | |
| 8827 | - attribute :union, Types::Integer | |
| 8828 | - | |
| 8829 | - def self.from_dynamic!(d) | |
| 8830 | - d = Types::Hash[d] | |
| 8831 | - new( | |
| 8832 | - union: d.fetch("union"), | |
| 8833 | - ) | |
| 8834 | - end | |
| 8835 | - | |
| 8836 | - def self.from_json!(json) | |
| 8837 | - from_dynamic!(JSON.parse(json)) | |
| 8838 | - end | |
| 8839 | - | |
| 8840 | - def to_dynamic | |
| 8841 | - { | |
| 8842 | - "union" => union, | |
| 8843 | - } | |
| 8844 | - end | |
| 8845 | - | |
| 8846 | - def to_json(options = nil) | |
| 8847 | - JSON.generate(to_dynamic, options) | |
| 8848 | - end | |
| 8849 | -end | |
| 8850 | - | |
| 8851 | -class UnmarshalJSON < Dry::Struct | |
| 8852 | - attribute :unmarshal_json, Types::Integer | |
| 8853 | - | |
| 8854 | - def self.from_dynamic!(d) | |
| 8855 | - d = Types::Hash[d] | |
| 8856 | - new( | |
| 8857 | - unmarshal_json: d.fetch("UnmarshalJSON"), | |
| 8858 | - ) | |
| 8859 | - end | |
| 8860 | - | |
| 8861 | - def self.from_json!(json) | |
| 8862 | - from_dynamic!(JSON.parse(json)) | |
| 8863 | - end | |
| 8864 | - | |
| 8865 | - def to_dynamic | |
| 8866 | - { | |
| 8867 | - "UnmarshalJSON" => unmarshal_json, | |
| 8868 | - } | |
| 8869 | - end | |
| 8870 | - | |
| 8871 | - def to_json(options = nil) | |
| 8872 | - JSON.generate(to_dynamic, options) | |
| 8873 | - end | |
| 8874 | -end | |
| 8875 | - | |
| 8876 | -class Unowned < Dry::Struct | |
| 8877 | - attribute :unowned, Types::Integer | |
| 8878 | - | |
| 8879 | - def self.from_dynamic!(d) | |
| 8880 | - d = Types::Hash[d] | |
| 8881 | - new( | |
| 8882 | - unowned: d.fetch("unowned"), | |
| 8883 | - ) | |
| 8884 | - end | |
| 8885 | - | |
| 8886 | - def self.from_json!(json) | |
| 8887 | - from_dynamic!(JSON.parse(json)) | |
| 8888 | - end | |
| 8889 | - | |
| 8890 | - def to_dynamic | |
| 8891 | - { | |
| 8892 | - "unowned" => unowned, | |
| 8893 | - } | |
| 8894 | - end | |
| 8895 | - | |
| 8896 | - def to_json(options = nil) | |
| 8897 | - JSON.generate(to_dynamic, options) | |
| 8898 | - end | |
| 8899 | -end | |
| 8900 | - | |
| 8901 | -class Unsafe < Dry::Struct | |
| 8902 | - attribute :unsafe, Types::Integer | |
| 8903 | - | |
| 8904 | - def self.from_dynamic!(d) | |
| 8905 | - d = Types::Hash[d] | |
| 8906 | - new( | |
| 8907 | - unsafe: d.fetch("unsafe"), | |
| 8908 | - ) | |
| 8909 | - end | |
| 8910 | - | |
| 8911 | - def self.from_json!(json) | |
| 8912 | - from_dynamic!(JSON.parse(json)) | |
| 8913 | - end | |
| 8914 | - | |
| 8915 | - def to_dynamic | |
| 8916 | - { | |
| 8917 | - "unsafe" => unsafe, | |
| 8918 | - } | |
| 8919 | - end | |
| 8920 | - | |
| 8921 | - def to_json(options = nil) | |
| 8922 | - JSON.generate(to_dynamic, options) | |
| 8923 | - end | |
| 8924 | -end | |
| 8925 | - | |
| 8926 | -class UseSerializers < Dry::Struct | |
| 8927 | - attribute :use_serializers, Types::Integer | |
| 8928 | - | |
| 8929 | - def self.from_dynamic!(d) | |
| 8930 | - d = Types::Hash[d] | |
| 8931 | - new( | |
| 8932 | - use_serializers: d.fetch("UseSerializers"), | |
| 8933 | - ) | |
| 8934 | - end | |
| 8935 | - | |
| 8936 | - def self.from_json!(json) | |
| 8937 | - from_dynamic!(JSON.parse(json)) | |
| 8938 | - end | |
| 8939 | - | |
| 8940 | - def to_dynamic | |
| 8941 | - { | |
| 8942 | - "UseSerializers" => use_serializers, | |
| 8943 | - } | |
| 8944 | - end | |
| 8945 | - | |
| 8946 | - def to_json(options = nil) | |
| 8947 | - JSON.generate(to_dynamic, options) | |
| 8948 | - end | |
| 8949 | -end | |
| 8950 | - | |
| 8951 | 8898 | class Obj5 < Dry::Struct |
| 8952 | 8899 | attribute :dummy, Types::Integer |
| 8953 | 8900 | attribute :k_serializer, KSerializer |
| @@ -8962,6 +8909,10 @@ class Obj5 < Dry::Struct | ||
| 8962 | 8909 | attribute :obj5_try, Try |
| 8963 | 8910 | attribute :obj5_type, Type |
| 8964 | 8911 | attribute :primitive_kind, PrimitiveKind |
| 8912 | + attribute :s, S | |
| 8913 | + attribute :sbyte, Sbyte | |
| 8914 | + attribute :sealed, Sealed | |
| 8915 | + attribute :sel, Sel | |
| 8965 | 8916 | attribute :self_1, Obj5Self |
| 8966 | 8917 | attribute :sendable, Sendable |
| 8967 | 8918 | attribute :serial_descriptor, SerialDescriptor |
| @@ -9010,11 +8961,6 @@ class Obj5 < Dry::Struct | ||
| 9010 | 8961 | attribute :ulong, Ulong |
| 9011 | 8962 | attribute :unchecked, Unchecked |
| 9012 | 8963 | attribute :undefined, UndefinedClass |
| 9013 | - attribute :union, Union | |
| 9014 | - attribute :unmarshal_json, UnmarshalJSON | |
| 9015 | - attribute :unowned, Unowned | |
| 9016 | - attribute :unsafe, Unsafe | |
| 9017 | - attribute :use_serializers, UseSerializers | |
| 9018 | 8964 | |
| 9019 | 8965 | def self.from_dynamic!(d) |
| 9020 | 8966 | d = Types::Hash[d] |
| @@ -9032,6 +8978,10 @@ class Obj5 < Dry::Struct | ||
| 9032 | 8978 | obj5_try: Try.from_dynamic!(d.fetch("try")), |
| 9033 | 8979 | obj5_type: Type.from_dynamic!(d.fetch("Type")), |
| 9034 | 8980 | primitive_kind: PrimitiveKind.from_dynamic!(d.fetch("PrimitiveKind")), |
| 8981 | + s: S.from_dynamic!(d.fetch("s")), | |
| 8982 | + sbyte: Sbyte.from_dynamic!(d.fetch("sbyte")), | |
| 8983 | + sealed: Sealed.from_dynamic!(d.fetch("sealed")), | |
| 8984 | + sel: Sel.from_dynamic!(d.fetch("SEL")), | |
| 9035 | 8985 | self_1: Obj5Self.from_dynamic!(d.fetch("self")), |
| 9036 | 8986 | sendable: Sendable.from_dynamic!(d.fetch("Sendable")), |
| 9037 | 8987 | serial_descriptor: SerialDescriptor.from_dynamic!(d.fetch("SerialDescriptor")), |
| @@ -9080,11 +9030,6 @@ class Obj5 < Dry::Struct | ||
| 9080 | 9030 | ulong: Ulong.from_dynamic!(d.fetch("ulong")), |
| 9081 | 9031 | unchecked: Unchecked.from_dynamic!(d.fetch("unchecked")), |
| 9082 | 9032 | undefined: UndefinedClass.from_dynamic!(d.fetch("undefined")), |
| 9083 | - union: Union.from_dynamic!(d.fetch("union")), | |
| 9084 | - unmarshal_json: UnmarshalJSON.from_dynamic!(d.fetch("UnmarshalJSON")), | |
| 9085 | - unowned: Unowned.from_dynamic!(d.fetch("unowned")), | |
| 9086 | - unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")), | |
| 9087 | - use_serializers: UseSerializers.from_dynamic!(d.fetch("UseSerializers")), | |
| 9088 | 9033 | ) |
| 9089 | 9034 | end |
| 9090 | 9035 | |
| @@ -9107,6 +9052,10 @@ class Obj5 < Dry::Struct | ||
| 9107 | 9052 | "try" => obj5_try.to_dynamic, |
| 9108 | 9053 | "Type" => obj5_type.to_dynamic, |
| 9109 | 9054 | "PrimitiveKind" => primitive_kind.to_dynamic, |
| 9055 | + "s" => s.to_dynamic, | |
| 9056 | + "sbyte" => sbyte.to_dynamic, | |
| 9057 | + "sealed" => sealed.to_dynamic, | |
| 9058 | + "SEL" => sel.to_dynamic, | |
| 9110 | 9059 | "self" => self_1.to_dynamic, |
| 9111 | 9060 | "Sendable" => sendable.to_dynamic, |
| 9112 | 9061 | "SerialDescriptor" => serial_descriptor.to_dynamic, |
| @@ -9155,11 +9104,6 @@ class Obj5 < Dry::Struct | ||
| 9155 | 9104 | "ulong" => ulong.to_dynamic, |
| 9156 | 9105 | "unchecked" => unchecked.to_dynamic, |
| 9157 | 9106 | "undefined" => undefined.to_dynamic, |
| 9158 | - "union" => union.to_dynamic, | |
| 9159 | - "UnmarshalJSON" => unmarshal_json.to_dynamic, | |
| 9160 | - "unowned" => unowned.to_dynamic, | |
| 9161 | - "unsafe" => unsafe.to_dynamic, | |
| 9162 | - "UseSerializers" => use_serializers.to_dynamic, | |
| 9163 | 9107 | } |
| 9164 | 9108 | end |
| 9165 | 9109 | |
| @@ -9243,6 +9187,106 @@ class Yield < Dry::Struct | ||
| 9243 | 9187 | end |
| 9244 | 9188 | end |
| 9245 | 9189 | |
| 9190 | +class Union < Dry::Struct | |
| 9191 | + attribute :union, Types::Integer | |
| 9192 | + | |
| 9193 | + def self.from_dynamic!(d) | |
| 9194 | + d = Types::Hash[d] | |
| 9195 | + new( | |
| 9196 | + union: d.fetch("union"), | |
| 9197 | + ) | |
| 9198 | + end | |
| 9199 | + | |
| 9200 | + def self.from_json!(json) | |
| 9201 | + from_dynamic!(JSON.parse(json)) | |
| 9202 | + end | |
| 9203 | + | |
| 9204 | + def to_dynamic | |
| 9205 | + { | |
| 9206 | + "union" => union, | |
| 9207 | + } | |
| 9208 | + end | |
| 9209 | + | |
| 9210 | + def to_json(options = nil) | |
| 9211 | + JSON.generate(to_dynamic, options) | |
| 9212 | + end | |
| 9213 | +end | |
| 9214 | + | |
| 9215 | +class UnmarshalJSON < Dry::Struct | |
| 9216 | + attribute :unmarshal_json, Types::Integer | |
| 9217 | + | |
| 9218 | + def self.from_dynamic!(d) | |
| 9219 | + d = Types::Hash[d] | |
| 9220 | + new( | |
| 9221 | + unmarshal_json: d.fetch("UnmarshalJSON"), | |
| 9222 | + ) | |
| 9223 | + end | |
| 9224 | + | |
| 9225 | + def self.from_json!(json) | |
| 9226 | + from_dynamic!(JSON.parse(json)) | |
| 9227 | + end | |
| 9228 | + | |
| 9229 | + def to_dynamic | |
| 9230 | + { | |
| 9231 | + "UnmarshalJSON" => unmarshal_json, | |
| 9232 | + } | |
| 9233 | + end | |
| 9234 | + | |
| 9235 | + def to_json(options = nil) | |
| 9236 | + JSON.generate(to_dynamic, options) | |
| 9237 | + end | |
| 9238 | +end | |
| 9239 | + | |
| 9240 | +class Unowned < Dry::Struct | |
| 9241 | + attribute :unowned, Types::Integer | |
| 9242 | + | |
| 9243 | + def self.from_dynamic!(d) | |
| 9244 | + d = Types::Hash[d] | |
| 9245 | + new( | |
| 9246 | + unowned: d.fetch("unowned"), | |
| 9247 | + ) | |
| 9248 | + end | |
| 9249 | + | |
| 9250 | + def self.from_json!(json) | |
| 9251 | + from_dynamic!(JSON.parse(json)) | |
| 9252 | + end | |
| 9253 | + | |
| 9254 | + def to_dynamic | |
| 9255 | + { | |
| 9256 | + "unowned" => unowned, | |
| 9257 | + } | |
| 9258 | + end | |
| 9259 | + | |
| 9260 | + def to_json(options = nil) | |
| 9261 | + JSON.generate(to_dynamic, options) | |
| 9262 | + end | |
| 9263 | +end | |
| 9264 | + | |
| 9265 | +class Unsafe < Dry::Struct | |
| 9266 | + attribute :unsafe, Types::Integer | |
| 9267 | + | |
| 9268 | + def self.from_dynamic!(d) | |
| 9269 | + d = Types::Hash[d] | |
| 9270 | + new( | |
| 9271 | + unsafe: d.fetch("unsafe"), | |
| 9272 | + ) | |
| 9273 | + end | |
| 9274 | + | |
| 9275 | + def self.from_json!(json) | |
| 9276 | + from_dynamic!(JSON.parse(json)) | |
| 9277 | + end | |
| 9278 | + | |
| 9279 | + def to_dynamic | |
| 9280 | + { | |
| 9281 | + "unsafe" => unsafe, | |
| 9282 | + } | |
| 9283 | + end | |
| 9284 | + | |
| 9285 | + def to_json(options = nil) | |
| 9286 | + JSON.generate(to_dynamic, options) | |
| 9287 | + end | |
| 9288 | +end | |
| 9289 | + | |
| 9246 | 9290 | class Unsigned < Dry::Struct |
| 9247 | 9291 | attribute :unsigned, Types::Integer |
| 9248 | 9292 | |
| @@ -9268,6 +9312,31 @@ class Unsigned < Dry::Struct | ||
| 9268 | 9312 | end |
| 9269 | 9313 | end |
| 9270 | 9314 | |
| 9315 | +class UseSerializers < Dry::Struct | |
| 9316 | + attribute :use_serializers, Types::Integer | |
| 9317 | + | |
| 9318 | + def self.from_dynamic!(d) | |
| 9319 | + d = Types::Hash[d] | |
| 9320 | + new( | |
| 9321 | + use_serializers: d.fetch("UseSerializers"), | |
| 9322 | + ) | |
| 9323 | + end | |
| 9324 | + | |
| 9325 | + def self.from_json!(json) | |
| 9326 | + from_dynamic!(JSON.parse(json)) | |
| 9327 | + end | |
| 9328 | + | |
| 9329 | + def to_dynamic | |
| 9330 | + { | |
| 9331 | + "UseSerializers" => use_serializers, | |
| 9332 | + } | |
| 9333 | + end | |
| 9334 | + | |
| 9335 | + def to_json(options = nil) | |
| 9336 | + JSON.generate(to_dynamic, options) | |
| 9337 | + end | |
| 9338 | +end | |
| 9339 | + | |
| 9271 | 9340 | class Ushort < Dry::Struct |
| 9272 | 9341 | attribute :ushort, Types::Integer |
| 9273 | 9342 | |
| @@ -9673,7 +9742,12 @@ class Obj6 < Dry::Struct | ||
| 9673 | 9742 | attribute :obj6_while, While |
| 9674 | 9743 | attribute :obj6_with, With |
| 9675 | 9744 | attribute :obj6_yield, Yield |
| 9745 | + attribute :union, Union | |
| 9746 | + attribute :unmarshal_json, UnmarshalJSON | |
| 9747 | + attribute :unowned, Unowned | |
| 9748 | + attribute :unsafe, Unsafe | |
| 9676 | 9749 | attribute :unsigned, Unsigned |
| 9750 | + attribute :use_serializers, UseSerializers | |
| 9677 | 9751 | attribute :ushort, Ushort |
| 9678 | 9752 | attribute :using, Using |
| 9679 | 9753 | attribute :utf8_json_reader, Utf8JSONReader |
| @@ -9698,7 +9772,12 @@ class Obj6 < Dry::Struct | ||
| 9698 | 9772 | obj6_while: While.from_dynamic!(d.fetch("while")), |
| 9699 | 9773 | obj6_with: With.from_dynamic!(d.fetch("with")), |
| 9700 | 9774 | obj6_yield: Yield.from_dynamic!(d.fetch("yield")), |
| 9775 | + union: Union.from_dynamic!(d.fetch("union")), | |
| 9776 | + unmarshal_json: UnmarshalJSON.from_dynamic!(d.fetch("UnmarshalJSON")), | |
| 9777 | + unowned: Unowned.from_dynamic!(d.fetch("unowned")), | |
| 9778 | + unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")), | |
| 9701 | 9779 | unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")), |
| 9780 | + use_serializers: UseSerializers.from_dynamic!(d.fetch("UseSerializers")), | |
| 9702 | 9781 | ushort: Ushort.from_dynamic!(d.fetch("ushort")), |
| 9703 | 9782 | using: Using.from_dynamic!(d.fetch("using")), |
| 9704 | 9783 | utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")), |
| @@ -9728,7 +9807,12 @@ class Obj6 < Dry::Struct | ||
| 9728 | 9807 | "while" => obj6_while.to_dynamic, |
| 9729 | 9808 | "with" => obj6_with.to_dynamic, |
| 9730 | 9809 | "yield" => obj6_yield.to_dynamic, |
| 9810 | + "union" => union.to_dynamic, | |
| 9811 | + "UnmarshalJSON" => unmarshal_json.to_dynamic, | |
| 9812 | + "unowned" => unowned.to_dynamic, | |
| 9813 | + "unsafe" => unsafe.to_dynamic, | |
| 9731 | 9814 | "unsigned" => unsigned.to_dynamic, |
| 9815 | + "UseSerializers" => use_serializers.to_dynamic, | |
| 9732 | 9816 | "ushort" => ushort.to_dynamic, |
| 9733 | 9817 | "using" => using.to_dynamic, |
| 9734 | 9818 | "Utf8JsonReader" => utf8_json_reader.to_dynamic, |
Mrustdefault / module_under_test.rs+115 −88
| @@ -1145,6 +1145,9 @@ pub struct Obj3 { | ||
| 1145 | 1145 | |
| 1146 | 1146 | pub list: List, |
| 1147 | 1147 | |
| 1148 | + #[serde(rename = "LocalDate")] | |
| 1149 | + pub local_date: LocalDate, | |
| 1150 | + | |
| 1148 | 1151 | #[serde(rename = "Locale")] |
| 1149 | 1152 | pub locale: Locale, |
| 1150 | 1153 | |
| @@ -1176,11 +1179,6 @@ pub struct Obj3 { | ||
| 1176 | 1179 | |
| 1177 | 1180 | pub newtonsoft: Newtonsoft, |
| 1178 | 1181 | |
| 1179 | - pub nil: Nil, | |
| 1180 | - | |
| 1181 | - #[serde(rename = "NO")] | |
| 1182 | - pub no: No, | |
| 1183 | - | |
| 1184 | 1182 | #[serde(rename = "if")] |
| 1185 | 1183 | pub obj3_if: If, |
| 1186 | 1184 | |
| @@ -1443,6 +1441,12 @@ pub struct List { | ||
| 1443 | 1441 | pub list: i64, |
| 1444 | 1442 | } |
| 1445 | 1443 | |
| 1444 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1445 | +#[serde(rename_all = "PascalCase")] | |
| 1446 | +pub struct LocalDate { | |
| 1447 | + pub local_date: i64, | |
| 1448 | +} | |
| 1449 | + | |
| 1446 | 1450 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1447 | 1451 | #[serde(rename_all = "PascalCase")] |
| 1448 | 1452 | pub struct Locale { |
| @@ -1517,17 +1521,6 @@ pub struct Newtonsoft { | ||
| 1517 | 1521 | pub newtonsoft: i64, |
| 1518 | 1522 | } |
| 1519 | 1523 | |
| 1520 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1521 | -pub struct Nil { | |
| 1522 | - pub nil: i64, | |
| 1523 | -} | |
| 1524 | - | |
| 1525 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1526 | -#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 1527 | -pub struct No { | |
| 1528 | - pub no: i64, | |
| 1529 | -} | |
| 1530 | - | |
| 1531 | 1524 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1532 | 1525 | pub struct If { |
| 1533 | 1526 | #[serde(rename = "if")] |
| @@ -1550,6 +1543,11 @@ pub struct Let { | ||
| 1550 | 1543 | pub struct Obj4 { |
| 1551 | 1544 | pub dummy: i64, |
| 1552 | 1545 | |
| 1546 | + pub nil: Nil, | |
| 1547 | + | |
| 1548 | + #[serde(rename = "NO")] | |
| 1549 | + pub no: No, | |
| 1550 | + | |
| 1553 | 1551 | #[serde(rename = "noSuchMethod")] |
| 1554 | 1552 | pub no_such_method: NoSuchMethod, |
| 1555 | 1553 | |
| @@ -1609,6 +1607,12 @@ pub struct Obj4 { | ||
| 1609 | 1607 | |
| 1610 | 1608 | pub of: Of, |
| 1611 | 1609 | |
| 1610 | + #[serde(rename = "OffsetDateTime")] | |
| 1611 | + pub offset_date_time: OffsetDateTime, | |
| 1612 | + | |
| 1613 | + #[serde(rename = "OffsetTime")] | |
| 1614 | + pub offset_time: OffsetTime, | |
| 1615 | + | |
| 1612 | 1616 | pub oneway: Oneway, |
| 1613 | 1617 | |
| 1614 | 1618 | pub open: Open, |
| @@ -1686,15 +1690,17 @@ pub struct Obj4 { | ||
| 1686 | 1690 | |
| 1687 | 1691 | #[serde(rename = "runtimeType")] |
| 1688 | 1692 | pub runtime_type: RuntimeType, |
| 1693 | +} | |
| 1689 | 1694 | |
| 1690 | - pub s: S, | |
| 1691 | - | |
| 1692 | - pub sbyte: Sbyte, | |
| 1693 | - | |
| 1694 | - pub sealed: Sealed, | |
| 1695 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1696 | +pub struct Nil { | |
| 1697 | + pub nil: i64, | |
| 1698 | +} | |
| 1695 | 1699 | |
| 1696 | - #[serde(rename = "SEL")] | |
| 1697 | - pub sel: Sel, | |
| 1700 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1701 | +#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 1702 | +pub struct No { | |
| 1703 | + pub no: i64, | |
| 1698 | 1704 | } |
| 1699 | 1705 | |
| 1700 | 1706 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| @@ -1825,6 +1831,18 @@ pub struct Of { | ||
| 1825 | 1831 | pub of: i64, |
| 1826 | 1832 | } |
| 1827 | 1833 | |
| 1834 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1835 | +#[serde(rename_all = "PascalCase")] | |
| 1836 | +pub struct OffsetDateTime { | |
| 1837 | + pub offset_date_time: i64, | |
| 1838 | +} | |
| 1839 | + | |
| 1840 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1841 | +#[serde(rename_all = "PascalCase")] | |
| 1842 | +pub struct OffsetTime { | |
| 1843 | + pub offset_time: i64, | |
| 1844 | +} | |
| 1845 | + | |
| 1828 | 1846 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1829 | 1847 | pub struct Oneway { |
| 1830 | 1848 | pub oneway: i64, |
| @@ -2014,27 +2032,6 @@ pub struct RuntimeType { | ||
| 2014 | 2032 | pub runtime_type: i64, |
| 2015 | 2033 | } |
| 2016 | 2034 | |
| 2017 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2018 | -pub struct S { | |
| 2019 | - pub s: i64, | |
| 2020 | -} | |
| 2021 | - | |
| 2022 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2023 | -pub struct Sbyte { | |
| 2024 | - pub sbyte: i64, | |
| 2025 | -} | |
| 2026 | - | |
| 2027 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2028 | -pub struct Sealed { | |
| 2029 | - pub sealed: i64, | |
| 2030 | -} | |
| 2031 | - | |
| 2032 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2033 | -#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 2034 | -pub struct Sel { | |
| 2035 | - pub sel: i64, | |
| 2036 | -} | |
| 2037 | - | |
| 2038 | 2035 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2039 | 2036 | pub struct Obj5 { |
| 2040 | 2037 | pub dummy: i64, |
| @@ -2066,12 +2063,6 @@ pub struct Obj5 { | ||
| 2066 | 2063 | #[serde(rename = "typeof")] |
| 2067 | 2064 | pub obj5_typeof: Typeof, |
| 2068 | 2065 | |
| 2069 | - #[serde(rename = "union")] | |
| 2070 | - pub obj5_union: Union, | |
| 2071 | - | |
| 2072 | - #[serde(rename = "unsafe")] | |
| 2073 | - pub obj5_unsafe: Unsafe, | |
| 2074 | - | |
| 2075 | 2066 | #[serde(rename = "PrimitiveKind")] |
| 2076 | 2067 | pub primitive_kind: PrimitiveKind, |
| 2077 | 2068 | |
| @@ -2084,6 +2075,15 @@ pub struct Obj5 { | ||
| 2084 | 2075 | #[serde(rename = "type")] |
| 2085 | 2076 | pub purple_type: TypeClass, |
| 2086 | 2077 | |
| 2078 | + pub s: S, | |
| 2079 | + | |
| 2080 | + pub sbyte: Sbyte, | |
| 2081 | + | |
| 2082 | + pub sealed: Sealed, | |
| 2083 | + | |
| 2084 | + #[serde(rename = "SEL")] | |
| 2085 | + pub sel: Sel, | |
| 2086 | + | |
| 2087 | 2087 | pub select: Select, |
| 2088 | 2088 | |
| 2089 | 2089 | #[serde(rename = "Sendable")] |
| @@ -2190,14 +2190,6 @@ pub struct Obj5 { | ||
| 2190 | 2190 | pub unchecked: Unchecked, |
| 2191 | 2191 | |
| 2192 | 2192 | pub undefined: Undefined, |
| 2193 | - | |
| 2194 | - #[serde(rename = "UnmarshalJSON")] | |
| 2195 | - pub unmarshal_json: UnmarshalJson, | |
| 2196 | - | |
| 2197 | - pub unowned: Unowned, | |
| 2198 | - | |
| 2199 | - #[serde(rename = "UseSerializers")] | |
| 2200 | - pub use_serializers: UseSerializers, | |
| 2201 | 2193 | } |
| 2202 | 2194 | |
| 2203 | 2195 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| @@ -2257,18 +2249,6 @@ pub struct Typeof { | ||
| 2257 | 2249 | pub typeof_typeof: i64, |
| 2258 | 2250 | } |
| 2259 | 2251 | |
| 2260 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2261 | -pub struct Union { | |
| 2262 | - #[serde(rename = "union")] | |
| 2263 | - pub union_union: i64, | |
| 2264 | -} | |
| 2265 | - | |
| 2266 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2267 | -pub struct Unsafe { | |
| 2268 | - #[serde(rename = "unsafe")] | |
| 2269 | - pub unsafe_unsafe: i64, | |
| 2270 | -} | |
| 2271 | - | |
| 2272 | 2252 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2273 | 2253 | #[serde(rename_all = "PascalCase")] |
| 2274 | 2254 | pub struct PrimitiveKind { |
| @@ -2293,6 +2273,27 @@ pub struct TypeClass { | ||
| 2293 | 2273 | pub type_type: i64, |
| 2294 | 2274 | } |
| 2295 | 2275 | |
| 2276 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2277 | +pub struct S { | |
| 2278 | + pub s: i64, | |
| 2279 | +} | |
| 2280 | + | |
| 2281 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2282 | +pub struct Sbyte { | |
| 2283 | + pub sbyte: i64, | |
| 2284 | +} | |
| 2285 | + | |
| 2286 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2287 | +pub struct Sealed { | |
| 2288 | + pub sealed: i64, | |
| 2289 | +} | |
| 2290 | + | |
| 2291 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2292 | +#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 2293 | +pub struct Sel { | |
| 2294 | + pub sel: i64, | |
| 2295 | +} | |
| 2296 | + | |
| 2296 | 2297 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2297 | 2298 | pub struct Select { |
| 2298 | 2299 | pub select: i64, |
| @@ -2541,28 +2542,16 @@ pub struct Undefined { | ||
| 2541 | 2542 | pub undefined: i64, |
| 2542 | 2543 | } |
| 2543 | 2544 | |
| 2544 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2545 | -#[serde(rename_all = "PascalCase")] | |
| 2546 | -pub struct UnmarshalJson { | |
| 2547 | - #[serde(rename = "UnmarshalJSON")] | |
| 2548 | - pub unmarshal_json: i64, | |
| 2549 | -} | |
| 2550 | - | |
| 2551 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2552 | -pub struct Unowned { | |
| 2553 | - pub unowned: i64, | |
| 2554 | -} | |
| 2555 | - | |
| 2556 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2557 | -#[serde(rename_all = "PascalCase")] | |
| 2558 | -pub struct UseSerializers { | |
| 2559 | - pub use_serializers: i64, | |
| 2560 | -} | |
| 2561 | - | |
| 2562 | 2545 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2563 | 2546 | pub struct Obj6 { |
| 2564 | 2547 | pub dummy: i64, |
| 2565 | 2548 | |
| 2549 | + #[serde(rename = "union")] | |
| 2550 | + pub obj6_union: Union, | |
| 2551 | + | |
| 2552 | + #[serde(rename = "unsafe")] | |
| 2553 | + pub obj6_unsafe: Unsafe, | |
| 2554 | + | |
| 2566 | 2555 | #[serde(rename = "virtual")] |
| 2567 | 2556 | pub obj6_virtual: Virtual, |
| 2568 | 2557 | |
| @@ -2575,8 +2564,16 @@ pub struct Obj6 { | ||
| 2575 | 2564 | #[serde(rename = "yield")] |
| 2576 | 2565 | pub obj6_yield: Yield, |
| 2577 | 2566 | |
| 2567 | + #[serde(rename = "UnmarshalJSON")] | |
| 2568 | + pub unmarshal_json: UnmarshalJson, | |
| 2569 | + | |
| 2570 | + pub unowned: Unowned, | |
| 2571 | + | |
| 2578 | 2572 | pub unsigned: Unsigned, |
| 2579 | 2573 | |
| 2574 | + #[serde(rename = "UseSerializers")] | |
| 2575 | + pub use_serializers: UseSerializers, | |
| 2576 | + | |
| 2580 | 2577 | pub ushort: Ushort, |
| 2581 | 2578 | |
| 2582 | 2579 | pub using: Using, |
| @@ -2613,6 +2610,18 @@ pub struct Obj6 { | ||
| 2613 | 2610 | pub yes: Yes, |
| 2614 | 2611 | } |
| 2615 | 2612 | |
| 2613 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2614 | +pub struct Union { | |
| 2615 | + #[serde(rename = "union")] | |
| 2616 | + pub union_union: i64, | |
| 2617 | +} | |
| 2618 | + | |
| 2619 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2620 | +pub struct Unsafe { | |
| 2621 | + #[serde(rename = "unsafe")] | |
| 2622 | + pub unsafe_unsafe: i64, | |
| 2623 | +} | |
| 2624 | + | |
| 2616 | 2625 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2617 | 2626 | pub struct Virtual { |
| 2618 | 2627 | #[serde(rename = "virtual")] |
| @@ -2637,11 +2646,29 @@ pub struct Yield { | ||
| 2637 | 2646 | pub yield_yield: i64, |
| 2638 | 2647 | } |
| 2639 | 2648 | |
| 2649 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2650 | +#[serde(rename_all = "PascalCase")] | |
| 2651 | +pub struct UnmarshalJson { | |
| 2652 | + #[serde(rename = "UnmarshalJSON")] | |
| 2653 | + pub unmarshal_json: i64, | |
| 2654 | +} | |
| 2655 | + | |
| 2656 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2657 | +pub struct Unowned { | |
| 2658 | + pub unowned: i64, | |
| 2659 | +} | |
| 2660 | + | |
| 2640 | 2661 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2641 | 2662 | pub struct Unsigned { |
| 2642 | 2663 | pub unsigned: i64, |
| 2643 | 2664 | } |
| 2644 | 2665 | |
| 2666 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2667 | +#[serde(rename_all = "PascalCase")] | |
| 2668 | +pub struct UseSerializers { | |
| 2669 | + pub use_serializers: i64, | |
| 2670 | +} | |
| 2671 | + | |
| 2645 | 2672 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2646 | 2673 | pub struct Ushort { |
| 2647 | 2674 | pub ushort: i64, |
Mscala3-upickledefault / TopLevel.scala+72 −57
| @@ -804,6 +804,7 @@ case class Obj3 ( | ||
| 804 | 804 | val left : Left, |
| 805 | 805 | val let : Let, |
| 806 | 806 | val list : ListClass, |
| 807 | + val LocalDate : LocalDate, | |
| 807 | 808 | val Locale : Locale, |
| 808 | 809 | val lock : Lock, |
| 809 | 810 | val long : LongClass, |
| @@ -817,8 +818,6 @@ case class Obj3 ( | ||
| 817 | 818 | val namespace : Namespace, |
| 818 | 819 | val native : Native, |
| 819 | 820 | val newtonsoft : Newtonsoft, |
| 820 | - val nil : Nil, | |
| 821 | - val NO : No, | |
| 822 | 821 | val `if` : If, |
| 823 | 822 | val `implicit` : Implicit, |
| 824 | 823 | val `import` : Import, |
| @@ -1007,6 +1006,10 @@ case class ListClass ( | ||
| 1007 | 1006 | val list : Long |
| 1008 | 1007 | ) derives OptionPickler.ReadWriter |
| 1009 | 1008 | |
| 1009 | +case class LocalDate ( | |
| 1010 | + val LocalDate : Long | |
| 1011 | +) derives OptionPickler.ReadWriter | |
| 1012 | + | |
| 1010 | 1013 | case class Locale ( |
| 1011 | 1014 | val Locale : Long |
| 1012 | 1015 | ) derives OptionPickler.ReadWriter |
| @@ -1059,14 +1062,6 @@ case class Newtonsoft ( | ||
| 1059 | 1062 | val newtonsoft : Long |
| 1060 | 1063 | ) derives OptionPickler.ReadWriter |
| 1061 | 1064 | |
| 1062 | -case class Nil ( | |
| 1063 | - val nil : Long | |
| 1064 | -) derives OptionPickler.ReadWriter | |
| 1065 | - | |
| 1066 | -case class No ( | |
| 1067 | - val NO : Long | |
| 1068 | -) derives OptionPickler.ReadWriter | |
| 1069 | - | |
| 1070 | 1065 | case class If ( |
| 1071 | 1066 | val `if` : Long |
| 1072 | 1067 | ) derives OptionPickler.ReadWriter |
| @@ -1089,6 +1084,8 @@ case class New ( | ||
| 1089 | 1084 | |
| 1090 | 1085 | case class Obj4 ( |
| 1091 | 1086 | val dummy : Long, |
| 1087 | + val nil : Nil, | |
| 1088 | + val NO : No, | |
| 1092 | 1089 | val noSuchMethod : NoSuchMethod, |
| 1093 | 1090 | val noexcept : Noexcept, |
| 1094 | 1091 | val nonatomic : Nonatomic, |
| @@ -1112,9 +1109,10 @@ case class Obj4 ( | ||
| 1112 | 1109 | val `protected` : Protected, |
| 1113 | 1110 | val protocol : ProtocolClass, |
| 1114 | 1111 | val `return` : Return, |
| 1115 | - val `sealed` : Sealed, | |
| 1116 | 1112 | val ObjectMapper : ObjectMapper, |
| 1117 | 1113 | val of : Of, |
| 1114 | + val OffsetDateTime : OffsetDateTime, | |
| 1115 | + val OffsetTime : OffsetTime, | |
| 1118 | 1116 | val oneway : Oneway, |
| 1119 | 1117 | val open : Open, |
| 1120 | 1118 | val operator : Operator, |
| @@ -1149,10 +1147,15 @@ case class Obj4 ( | ||
| 1149 | 1147 | val retain : Retain, |
| 1150 | 1148 | val rethrows : Rethrows, |
| 1151 | 1149 | val right : Right, |
| 1152 | - val runtimeType : RuntimeType, | |
| 1153 | - val s : S, | |
| 1154 | - val sbyte : Sbyte, | |
| 1155 | - val SEL : Sel | |
| 1150 | + val runtimeType : RuntimeType | |
| 1151 | +) derives OptionPickler.ReadWriter | |
| 1152 | + | |
| 1153 | +case class Nil ( | |
| 1154 | + val nil : Long | |
| 1155 | +) derives OptionPickler.ReadWriter | |
| 1156 | + | |
| 1157 | +case class No ( | |
| 1158 | + val NO : Long | |
| 1156 | 1159 | ) derives OptionPickler.ReadWriter |
| 1157 | 1160 | |
| 1158 | 1161 | case class NoSuchMethod ( |
| @@ -1247,10 +1250,6 @@ case class Return ( | ||
| 1247 | 1250 | val `return` : Long |
| 1248 | 1251 | ) derives OptionPickler.ReadWriter |
| 1249 | 1252 | |
| 1250 | -case class Sealed ( | |
| 1251 | - val `sealed` : Long | |
| 1252 | -) derives OptionPickler.ReadWriter | |
| 1253 | - | |
| 1254 | 1253 | case class ObjectMapper ( |
| 1255 | 1254 | val ObjectMapper : Long |
| 1256 | 1255 | ) derives OptionPickler.ReadWriter |
| @@ -1259,6 +1258,14 @@ case class Of ( | ||
| 1259 | 1258 | val of : Long |
| 1260 | 1259 | ) derives OptionPickler.ReadWriter |
| 1261 | 1260 | |
| 1261 | +case class OffsetDateTime ( | |
| 1262 | + val OffsetDateTime : Long | |
| 1263 | +) derives OptionPickler.ReadWriter | |
| 1264 | + | |
| 1265 | +case class OffsetTime ( | |
| 1266 | + val OffsetTime : Long | |
| 1267 | +) derives OptionPickler.ReadWriter | |
| 1268 | + | |
| 1262 | 1269 | case class Oneway ( |
| 1263 | 1270 | val oneway : Long |
| 1264 | 1271 | ) derives OptionPickler.ReadWriter |
| @@ -1399,21 +1406,10 @@ case class RuntimeType ( | ||
| 1399 | 1406 | val runtimeType : Long |
| 1400 | 1407 | ) derives OptionPickler.ReadWriter |
| 1401 | 1408 | |
| 1402 | -case class S ( | |
| 1403 | - val s : Long | |
| 1404 | -) derives OptionPickler.ReadWriter | |
| 1405 | - | |
| 1406 | -case class Sbyte ( | |
| 1407 | - val sbyte : Long | |
| 1408 | -) derives OptionPickler.ReadWriter | |
| 1409 | - | |
| 1410 | -case class Sel ( | |
| 1411 | - val SEL : Long | |
| 1412 | -) derives OptionPickler.ReadWriter | |
| 1413 | - | |
| 1414 | 1409 | case class Obj5 ( |
| 1415 | 1410 | val dummy : Long, |
| 1416 | 1411 | val KSerializer : KSerializer, |
| 1412 | + val `sealed` : Sealed, | |
| 1417 | 1413 | val self : SelfClass, |
| 1418 | 1414 | val `super` : Super, |
| 1419 | 1415 | val `then` : Then, |
| @@ -1425,6 +1421,9 @@ case class Obj5 ( | ||
| 1425 | 1421 | val PrimitiveKind : PrimitiveKind, |
| 1426 | 1422 | val `true` : TrueClass, |
| 1427 | 1423 | val `type` : TypeClass, |
| 1424 | + val s : S, | |
| 1425 | + val sbyte : Sbyte, | |
| 1426 | + val SEL : Sel, | |
| 1428 | 1427 | val select : Select, |
| 1429 | 1428 | val Self : Self, |
| 1430 | 1429 | val Sendable : Sendable, |
| @@ -1474,18 +1473,17 @@ case class Obj5 ( | ||
| 1474 | 1473 | val uint : Uint, |
| 1475 | 1474 | val ulong : Ulong, |
| 1476 | 1475 | val unchecked : Unchecked, |
| 1477 | - val undefined : Undefined, | |
| 1478 | - val union : Union, | |
| 1479 | - val UnmarshalJSON : UnmarshalJSON, | |
| 1480 | - val unowned : Unowned, | |
| 1481 | - val unsafe : Unsafe, | |
| 1482 | - val UseSerializers : UseSerializers | |
| 1476 | + val undefined : Undefined | |
| 1483 | 1477 | ) derives OptionPickler.ReadWriter |
| 1484 | 1478 | |
| 1485 | 1479 | case class KSerializer ( |
| 1486 | 1480 | val KSerializer : Long |
| 1487 | 1481 | ) derives OptionPickler.ReadWriter |
| 1488 | 1482 | |
| 1483 | +case class Sealed ( | |
| 1484 | + val `sealed` : Long | |
| 1485 | +) derives OptionPickler.ReadWriter | |
| 1486 | + | |
| 1489 | 1487 | case class SelfClass ( |
| 1490 | 1488 | val self : Long |
| 1491 | 1489 | ) derives OptionPickler.ReadWriter |
| @@ -1530,6 +1528,18 @@ case class TypeClass ( | ||
| 1530 | 1528 | val `type` : Long |
| 1531 | 1529 | ) derives OptionPickler.ReadWriter |
| 1532 | 1530 | |
| 1531 | +case class S ( | |
| 1532 | + val s : Long | |
| 1533 | +) derives OptionPickler.ReadWriter | |
| 1534 | + | |
| 1535 | +case class Sbyte ( | |
| 1536 | + val sbyte : Long | |
| 1537 | +) derives OptionPickler.ReadWriter | |
| 1538 | + | |
| 1539 | +case class Sel ( | |
| 1540 | + val SEL : Long | |
| 1541 | +) derives OptionPickler.ReadWriter | |
| 1542 | + | |
| 1533 | 1543 | case class Select ( |
| 1534 | 1544 | val select : Long |
| 1535 | 1545 | ) derives OptionPickler.ReadWriter |
| @@ -1724,33 +1734,18 @@ case class Undefined ( | ||
| 1724 | 1734 | val undefined : Long |
| 1725 | 1735 | ) derives OptionPickler.ReadWriter |
| 1726 | 1736 | |
| 1727 | -case class Union ( | |
| 1728 | - val union : Long | |
| 1729 | -) derives OptionPickler.ReadWriter | |
| 1730 | - | |
| 1731 | -case class UnmarshalJSON ( | |
| 1732 | - val UnmarshalJSON : Long | |
| 1733 | -) derives OptionPickler.ReadWriter | |
| 1734 | - | |
| 1735 | -case class Unowned ( | |
| 1736 | - val unowned : Long | |
| 1737 | -) derives OptionPickler.ReadWriter | |
| 1738 | - | |
| 1739 | -case class Unsafe ( | |
| 1740 | - val unsafe : Long | |
| 1741 | -) derives OptionPickler.ReadWriter | |
| 1742 | - | |
| 1743 | -case class UseSerializers ( | |
| 1744 | - val UseSerializers : Long | |
| 1745 | -) derives OptionPickler.ReadWriter | |
| 1746 | - | |
| 1747 | 1737 | case class Obj6 ( |
| 1748 | 1738 | val dummy : Long, |
| 1749 | 1739 | val `var` : Var, |
| 1750 | 1740 | val `while` : While, |
| 1751 | 1741 | val `with` : With, |
| 1752 | 1742 | val `yield` : Yield, |
| 1743 | + val union : Union, | |
| 1744 | + val UnmarshalJSON : UnmarshalJSON, | |
| 1745 | + val unowned : Unowned, | |
| 1746 | + val unsafe : Unsafe, | |
| 1753 | 1747 | val unsigned : Unsigned, |
| 1748 | + val UseSerializers : UseSerializers, | |
| 1754 | 1749 | val ushort : Ushort, |
| 1755 | 1750 | val using : Using, |
| 1756 | 1751 | val Utf8JsonReader : Utf8JSONReader, |
| @@ -1784,10 +1779,30 @@ case class Yield ( | ||
| 1784 | 1779 | val `yield` : Long |
| 1785 | 1780 | ) derives OptionPickler.ReadWriter |
| 1786 | 1781 | |
| 1782 | +case class Union ( | |
| 1783 | + val union : Long | |
| 1784 | +) derives OptionPickler.ReadWriter | |
| 1785 | + | |
| 1786 | +case class UnmarshalJSON ( | |
| 1787 | + val UnmarshalJSON : Long | |
| 1788 | +) derives OptionPickler.ReadWriter | |
| 1789 | + | |
| 1790 | +case class Unowned ( | |
| 1791 | + val unowned : Long | |
| 1792 | +) derives OptionPickler.ReadWriter | |
| 1793 | + | |
| 1794 | +case class Unsafe ( | |
| 1795 | + val unsafe : Long | |
| 1796 | +) derives OptionPickler.ReadWriter | |
| 1797 | + | |
| 1787 | 1798 | case class Unsigned ( |
| 1788 | 1799 | val unsigned : Long |
| 1789 | 1800 | ) derives OptionPickler.ReadWriter |
| 1790 | 1801 | |
| 1802 | +case class UseSerializers ( | |
| 1803 | + val UseSerializers : Long | |
| 1804 | +) derives OptionPickler.ReadWriter | |
| 1805 | + | |
| 1791 | 1806 | case class Ushort ( |
| 1792 | 1807 | val ushort : Long |
| 1793 | 1808 | ) derives OptionPickler.ReadWriter |
Mscala3default / TopLevel.scala+72 −57
| @@ -754,6 +754,7 @@ case class Obj3 ( | ||
| 754 | 754 | val left : Left, |
| 755 | 755 | val let : Let, |
| 756 | 756 | val list : ListClass, |
| 757 | + val LocalDate : LocalDate, | |
| 757 | 758 | val Locale : Locale, |
| 758 | 759 | val lock : Lock, |
| 759 | 760 | val long : LongClass, |
| @@ -767,8 +768,6 @@ case class Obj3 ( | ||
| 767 | 768 | val namespace : Namespace, |
| 768 | 769 | val native : Native, |
| 769 | 770 | val newtonsoft : Newtonsoft, |
| 770 | - val nil : Nil, | |
| 771 | - val NO : No, | |
| 772 | 771 | val `if` : If, |
| 773 | 772 | val `implicit` : Implicit, |
| 774 | 773 | val `import` : Import, |
| @@ -974,6 +973,10 @@ case class ListClass ( | ||
| 974 | 973 | val list : Long |
| 975 | 974 | ) derives Encoder.AsObject, Decoder |
| 976 | 975 | |
| 976 | +case class LocalDate ( | |
| 977 | + val LocalDate : Long | |
| 978 | +) derives Encoder.AsObject, Decoder | |
| 979 | + | |
| 977 | 980 | case class Locale ( |
| 978 | 981 | val Locale : Long |
| 979 | 982 | ) derives Encoder.AsObject, Decoder |
| @@ -1026,14 +1029,6 @@ case class Newtonsoft ( | ||
| 1026 | 1029 | val newtonsoft : Long |
| 1027 | 1030 | ) derives Encoder.AsObject, Decoder |
| 1028 | 1031 | |
| 1029 | -case class Nil ( | |
| 1030 | - val nil : Long | |
| 1031 | -) derives Encoder.AsObject, Decoder | |
| 1032 | - | |
| 1033 | -case class No ( | |
| 1034 | - val NO : Long | |
| 1035 | -) derives Encoder.AsObject, Decoder | |
| 1036 | - | |
| 1037 | 1032 | case class If ( |
| 1038 | 1033 | val `if` : Long |
| 1039 | 1034 | ) derives Encoder.AsObject, Decoder |
| @@ -1056,6 +1051,8 @@ case class New ( | ||
| 1056 | 1051 | |
| 1057 | 1052 | case class Obj4 ( |
| 1058 | 1053 | val dummy : Long, |
| 1054 | + val nil : Nil, | |
| 1055 | + val NO : No, | |
| 1059 | 1056 | val noSuchMethod : NoSuchMethod, |
| 1060 | 1057 | val noexcept : Noexcept, |
| 1061 | 1058 | val nonatomic : Nonatomic, |
| @@ -1079,9 +1076,10 @@ case class Obj4 ( | ||
| 1079 | 1076 | val `protected` : Protected, |
| 1080 | 1077 | val protocol : ProtocolClass, |
| 1081 | 1078 | val `return` : Return, |
| 1082 | - val `sealed` : Sealed, | |
| 1083 | 1079 | val ObjectMapper : ObjectMapper, |
| 1084 | 1080 | val of : Of, |
| 1081 | + val OffsetDateTime : OffsetDateTime, | |
| 1082 | + val OffsetTime : OffsetTime, | |
| 1085 | 1083 | val oneway : Oneway, |
| 1086 | 1084 | val open : Open, |
| 1087 | 1085 | val operator : Operator, |
| @@ -1116,10 +1114,15 @@ case class Obj4 ( | ||
| 1116 | 1114 | val retain : Retain, |
| 1117 | 1115 | val rethrows : Rethrows, |
| 1118 | 1116 | val right : Right, |
| 1119 | - val runtimeType : RuntimeType, | |
| 1120 | - val s : S, | |
| 1121 | - val sbyte : Sbyte, | |
| 1122 | - val SEL : Sel | |
| 1117 | + val runtimeType : RuntimeType | |
| 1118 | +) derives Encoder.AsObject, Decoder | |
| 1119 | + | |
| 1120 | +case class Nil ( | |
| 1121 | + val nil : Long | |
| 1122 | +) derives Encoder.AsObject, Decoder | |
| 1123 | + | |
| 1124 | +case class No ( | |
| 1125 | + val NO : Long | |
| 1123 | 1126 | ) derives Encoder.AsObject, Decoder |
| 1124 | 1127 | |
| 1125 | 1128 | case class NoSuchMethod ( |
| @@ -1214,10 +1217,6 @@ case class Return ( | ||
| 1214 | 1217 | val `return` : Long |
| 1215 | 1218 | ) derives Encoder.AsObject, Decoder |
| 1216 | 1219 | |
| 1217 | -case class Sealed ( | |
| 1218 | - val `sealed` : Long | |
| 1219 | -) derives Encoder.AsObject, Decoder | |
| 1220 | - | |
| 1221 | 1220 | case class ObjectMapper ( |
| 1222 | 1221 | val ObjectMapper : Long |
| 1223 | 1222 | ) derives Encoder.AsObject, Decoder |
| @@ -1226,6 +1225,14 @@ case class Of ( | ||
| 1226 | 1225 | val of : Long |
| 1227 | 1226 | ) derives Encoder.AsObject, Decoder |
| 1228 | 1227 | |
| 1228 | +case class OffsetDateTime ( | |
| 1229 | + val OffsetDateTime : Long | |
| 1230 | +) derives Encoder.AsObject, Decoder | |
| 1231 | + | |
| 1232 | +case class OffsetTime ( | |
| 1233 | + val OffsetTime : Long | |
| 1234 | +) derives Encoder.AsObject, Decoder | |
| 1235 | + | |
| 1229 | 1236 | case class Oneway ( |
| 1230 | 1237 | val oneway : Long |
| 1231 | 1238 | ) derives Encoder.AsObject, Decoder |
| @@ -1366,21 +1373,10 @@ case class RuntimeType ( | ||
| 1366 | 1373 | val runtimeType : Long |
| 1367 | 1374 | ) derives Encoder.AsObject, Decoder |
| 1368 | 1375 | |
| 1369 | -case class S ( | |
| 1370 | - val s : Long | |
| 1371 | -) derives Encoder.AsObject, Decoder | |
| 1372 | - | |
| 1373 | -case class Sbyte ( | |
| 1374 | - val sbyte : Long | |
| 1375 | -) derives Encoder.AsObject, Decoder | |
| 1376 | - | |
| 1377 | -case class Sel ( | |
| 1378 | - val SEL : Long | |
| 1379 | -) derives Encoder.AsObject, Decoder | |
| 1380 | - | |
| 1381 | 1376 | case class Obj5 ( |
| 1382 | 1377 | val dummy : Long, |
| 1383 | 1378 | val KSerializer : KSerializer, |
| 1379 | + val `sealed` : Sealed, | |
| 1384 | 1380 | val self : SelfClass, |
| 1385 | 1381 | val `super` : Super, |
| 1386 | 1382 | val `then` : Then, |
| @@ -1392,6 +1388,9 @@ case class Obj5 ( | ||
| 1392 | 1388 | val PrimitiveKind : PrimitiveKind, |
| 1393 | 1389 | val `true` : TrueClass, |
| 1394 | 1390 | val `type` : TypeClass, |
| 1391 | + val s : S, | |
| 1392 | + val sbyte : Sbyte, | |
| 1393 | + val SEL : Sel, | |
| 1395 | 1394 | val select : Select, |
| 1396 | 1395 | val Self : Self, |
| 1397 | 1396 | val Sendable : Sendable, |
| @@ -1439,12 +1438,7 @@ case class Obj5 ( | ||
| 1439 | 1438 | val uint : Uint, |
| 1440 | 1439 | val ulong : Ulong, |
| 1441 | 1440 | val unchecked : Unchecked, |
| 1442 | - val undefined : Undefined, | |
| 1443 | - val union : Union, | |
| 1444 | - val UnmarshalJSON : UnmarshalJSON, | |
| 1445 | - val unowned : Unowned, | |
| 1446 | - val unsafe : Unsafe, | |
| 1447 | - val UseSerializers : UseSerializers | |
| 1441 | + val undefined : Undefined | |
| 1448 | 1442 | ) |
| 1449 | 1443 | |
| 1450 | 1444 | object Obj5: |
| @@ -1461,6 +1455,10 @@ case class KSerializer ( | ||
| 1461 | 1455 | val KSerializer : Long |
| 1462 | 1456 | ) derives Encoder.AsObject, Decoder |
| 1463 | 1457 | |
| 1458 | +case class Sealed ( | |
| 1459 | + val `sealed` : Long | |
| 1460 | +) derives Encoder.AsObject, Decoder | |
| 1461 | + | |
| 1464 | 1462 | case class SelfClass ( |
| 1465 | 1463 | val self : Long |
| 1466 | 1464 | ) derives Encoder.AsObject, Decoder |
| @@ -1505,6 +1503,18 @@ case class TypeClass ( | ||
| 1505 | 1503 | val `type` : Long |
| 1506 | 1504 | ) derives Encoder.AsObject, Decoder |
| 1507 | 1505 | |
| 1506 | +case class S ( | |
| 1507 | + val s : Long | |
| 1508 | +) derives Encoder.AsObject, Decoder | |
| 1509 | + | |
| 1510 | +case class Sbyte ( | |
| 1511 | + val sbyte : Long | |
| 1512 | +) derives Encoder.AsObject, Decoder | |
| 1513 | + | |
| 1514 | +case class Sel ( | |
| 1515 | + val SEL : Long | |
| 1516 | +) derives Encoder.AsObject, Decoder | |
| 1517 | + | |
| 1508 | 1518 | case class Select ( |
| 1509 | 1519 | val select : Long |
| 1510 | 1520 | ) derives Encoder.AsObject, Decoder |
| @@ -1715,33 +1725,18 @@ case class Undefined ( | ||
| 1715 | 1725 | val undefined : Long |
| 1716 | 1726 | ) derives Encoder.AsObject, Decoder |
| 1717 | 1727 | |
| 1718 | -case class Union ( | |
| 1719 | - val union : Long | |
| 1720 | -) derives Encoder.AsObject, Decoder | |
| 1721 | - | |
| 1722 | -case class UnmarshalJSON ( | |
| 1723 | - val UnmarshalJSON : Long | |
| 1724 | -) derives Encoder.AsObject, Decoder | |
| 1725 | - | |
| 1726 | -case class Unowned ( | |
| 1727 | - val unowned : Long | |
| 1728 | -) derives Encoder.AsObject, Decoder | |
| 1729 | - | |
| 1730 | -case class Unsafe ( | |
| 1731 | - val unsafe : Long | |
| 1732 | -) derives Encoder.AsObject, Decoder | |
| 1733 | - | |
| 1734 | -case class UseSerializers ( | |
| 1735 | - val UseSerializers : Long | |
| 1736 | -) derives Encoder.AsObject, Decoder | |
| 1737 | - | |
| 1738 | 1728 | case class Obj6 ( |
| 1739 | 1729 | val dummy : Long, |
| 1740 | 1730 | val `var` : Var, |
| 1741 | 1731 | val `while` : While, |
| 1742 | 1732 | val `with` : With, |
| 1743 | 1733 | val `yield` : Yield, |
| 1734 | + val union : Union, | |
| 1735 | + val UnmarshalJSON : UnmarshalJSON, | |
| 1736 | + val unowned : Unowned, | |
| 1737 | + val unsafe : Unsafe, | |
| 1744 | 1738 | val unsigned : Unsigned, |
| 1739 | + val UseSerializers : UseSerializers, | |
| 1745 | 1740 | val ushort : Ushort, |
| 1746 | 1741 | val using : Using, |
| 1747 | 1742 | val Utf8JsonReader : Utf8JSONReader, |
| @@ -1775,10 +1770,30 @@ case class Yield ( | ||
| 1775 | 1770 | val `yield` : Long |
| 1776 | 1771 | ) derives Encoder.AsObject, Decoder |
| 1777 | 1772 | |
| 1773 | +case class Union ( | |
| 1774 | + val union : Long | |
| 1775 | +) derives Encoder.AsObject, Decoder | |
| 1776 | + | |
| 1777 | +case class UnmarshalJSON ( | |
| 1778 | + val UnmarshalJSON : Long | |
| 1779 | +) derives Encoder.AsObject, Decoder | |
| 1780 | + | |
| 1781 | +case class Unowned ( | |
| 1782 | + val unowned : Long | |
| 1783 | +) derives Encoder.AsObject, Decoder | |
| 1784 | + | |
| 1785 | +case class Unsafe ( | |
| 1786 | + val unsafe : Long | |
| 1787 | +) derives Encoder.AsObject, Decoder | |
| 1788 | + | |
| 1778 | 1789 | case class Unsigned ( |
| 1779 | 1790 | val unsigned : Long |
| 1780 | 1791 | ) derives Encoder.AsObject, Decoder |
| 1781 | 1792 | |
| 1793 | +case class UseSerializers ( | |
| 1794 | + val UseSerializers : Long | |
| 1795 | +) derives Encoder.AsObject, Decoder | |
| 1796 | + | |
| 1782 | 1797 | case class Ushort ( |
| 1783 | 1798 | val ushort : Long |
| 1784 | 1799 | ) derives Encoder.AsObject, Decoder |
Mswiftdefault / quicktype.swift+838 −694
| @@ -6348,6 +6348,7 @@ struct Obj3: Codable { | ||
| 6348 | 6348 | let jsonWriter: JSONWriter |
| 6349 | 6349 | let lambda: Lambda |
| 6350 | 6350 | let list: List |
| 6351 | + let localDate: LocalDate | |
| 6351 | 6352 | let locale: LocaleClass |
| 6352 | 6353 | let lock: Lock |
| 6353 | 6354 | let long: Long |
| @@ -6361,7 +6362,6 @@ struct Obj3: Codable { | ||
| 6361 | 6362 | let native: Native |
| 6362 | 6363 | let new: New |
| 6363 | 6364 | let newtonsoft: Newtonsoft |
| 6364 | - let no: No | |
| 6365 | 6365 | let obj3Guard: Guard |
| 6366 | 6366 | let obj3If: If |
| 6367 | 6367 | let obj3Import: Import |
| @@ -6377,7 +6377,6 @@ struct Obj3: Codable { | ||
| 6377 | 6377 | let obj3Left: Left |
| 6378 | 6378 | let obj3Let: Let |
| 6379 | 6379 | let obj3Mutating: Mutating |
| 6380 | - let obj3Nil: Nil | |
| 6381 | 6380 | |
| 6382 | 6381 | enum CodingKeys: String, CodingKey { |
| 6383 | 6382 | case dummy = "dummy" |
| @@ -6416,6 +6415,7 @@ struct Obj3: Codable { | ||
| 6416 | 6415 | case jsonWriter = "json_writer" |
| 6417 | 6416 | case lambda = "lambda" |
| 6418 | 6417 | case list = "list" |
| 6418 | + case localDate = "LocalDate" | |
| 6419 | 6419 | case locale = "Locale" |
| 6420 | 6420 | case lock = "lock" |
| 6421 | 6421 | case long = "long" |
| @@ -6429,7 +6429,6 @@ struct Obj3: Codable { | ||
| 6429 | 6429 | case native = "native" |
| 6430 | 6430 | case new = "new" |
| 6431 | 6431 | case newtonsoft = "newtonsoft" |
| 6432 | - case no = "NO" | |
| 6433 | 6432 | case obj3Guard = "guard" |
| 6434 | 6433 | case obj3If = "if" |
| 6435 | 6434 | case obj3Import = "import" |
| @@ -6445,7 +6444,6 @@ struct Obj3: Codable { | ||
| 6445 | 6444 | case obj3Left = "left" |
| 6446 | 6445 | case obj3Let = "let" |
| 6447 | 6446 | case obj3Mutating = "mutating" |
| 6448 | - case obj3Nil = "nil" | |
| 6449 | 6447 | } |
| 6450 | 6448 | } |
| 6451 | 6449 | |
| @@ -6504,6 +6502,7 @@ extension Obj3 { | ||
| 6504 | 6502 | jsonWriter: JSONWriter? = nil, |
| 6505 | 6503 | lambda: Lambda? = nil, |
| 6506 | 6504 | list: List? = nil, |
| 6505 | + localDate: LocalDate? = nil, | |
| 6507 | 6506 | locale: LocaleClass? = nil, |
| 6508 | 6507 | lock: Lock? = nil, |
| 6509 | 6508 | long: Long? = nil, |
| @@ -6517,7 +6516,6 @@ extension Obj3 { | ||
| 6517 | 6516 | native: Native? = nil, |
| 6518 | 6517 | new: New? = nil, |
| 6519 | 6518 | newtonsoft: Newtonsoft? = nil, |
| 6520 | - no: No? = nil, | |
| 6521 | 6519 | obj3Guard: Guard? = nil, |
| 6522 | 6520 | obj3If: If? = nil, |
| 6523 | 6521 | obj3Import: Import? = nil, |
| @@ -6532,8 +6530,7 @@ extension Obj3 { | ||
| 6532 | 6530 | obj3Lazy: Lazy? = nil, |
| 6533 | 6531 | obj3Left: Left? = nil, |
| 6534 | 6532 | obj3Let: Let? = nil, |
| 6535 | - obj3Mutating: Mutating? = nil, | |
| 6536 | - obj3Nil: Nil? = nil | |
| 6533 | + obj3Mutating: Mutating? = nil | |
| 6537 | 6534 | ) -> Obj3 { |
| 6538 | 6535 | return Obj3( |
| 6539 | 6536 | dummy: dummy ?? self.dummy, |
| @@ -6572,6 +6569,7 @@ extension Obj3 { | ||
| 6572 | 6569 | jsonWriter: jsonWriter ?? self.jsonWriter, |
| 6573 | 6570 | lambda: lambda ?? self.lambda, |
| 6574 | 6571 | list: list ?? self.list, |
| 6572 | + localDate: localDate ?? self.localDate, | |
| 6575 | 6573 | locale: locale ?? self.locale, |
| 6576 | 6574 | lock: lock ?? self.lock, |
| 6577 | 6575 | long: long ?? self.long, |
| @@ -6585,7 +6583,6 @@ extension Obj3 { | ||
| 6585 | 6583 | native: native ?? self.native, |
| 6586 | 6584 | new: new ?? self.new, |
| 6587 | 6585 | newtonsoft: newtonsoft ?? self.newtonsoft, |
| 6588 | - no: no ?? self.no, | |
| 6589 | 6586 | obj3Guard: obj3Guard ?? self.obj3Guard, |
| 6590 | 6587 | obj3If: obj3If ?? self.obj3If, |
| 6591 | 6588 | obj3Import: obj3Import ?? self.obj3Import, |
| @@ -6600,8 +6597,7 @@ extension Obj3 { | ||
| 6600 | 6597 | obj3Lazy: obj3Lazy ?? self.obj3Lazy, |
| 6601 | 6598 | obj3Left: obj3Left ?? self.obj3Left, |
| 6602 | 6599 | obj3Let: obj3Let ?? self.obj3Let, |
| 6603 | - obj3Mutating: obj3Mutating ?? self.obj3Mutating, | |
| 6604 | - obj3Nil: obj3Nil ?? self.obj3Nil | |
| 6600 | + obj3Mutating: obj3Mutating ?? self.obj3Mutating | |
| 6605 | 6601 | ) |
| 6606 | 6602 | } |
| 6607 | 6603 | |
| @@ -8154,6 +8150,50 @@ extension List { | ||
| 8154 | 8150 | } |
| 8155 | 8151 | } |
| 8156 | 8152 | |
| 8153 | +// MARK: - LocalDate | |
| 8154 | +struct LocalDate: Codable { | |
| 8155 | + let localDate: Int | |
| 8156 | + | |
| 8157 | + enum CodingKeys: String, CodingKey { | |
| 8158 | + case localDate = "LocalDate" | |
| 8159 | + } | |
| 8160 | +} | |
| 8161 | + | |
| 8162 | +// MARK: LocalDate convenience initializers and mutators | |
| 8163 | + | |
| 8164 | +extension LocalDate { | |
| 8165 | + init(data: Data) throws { | |
| 8166 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 8167 | + } | |
| 8168 | + | |
| 8169 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 8170 | + guard let data = json.data(using: encoding) else { | |
| 8171 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 8172 | + } | |
| 8173 | + try self.init(data: data) | |
| 8174 | + } | |
| 8175 | + | |
| 8176 | + init(fromURL url: URL) throws { | |
| 8177 | + try self.init(data: try Data(contentsOf: url)) | |
| 8178 | + } | |
| 8179 | + | |
| 8180 | + func with( | |
| 8181 | + localDate: Int? = nil | |
| 8182 | + ) -> LocalDate { | |
| 8183 | + return LocalDate( | |
| 8184 | + localDate: localDate ?? self.localDate | |
| 8185 | + ) | |
| 8186 | + } | |
| 8187 | + | |
| 8188 | + func jsonData() throws -> Data { | |
| 8189 | + return try newJSONEncoder().encode(self) | |
| 8190 | + } | |
| 8191 | + | |
| 8192 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 8193 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 8194 | + } | |
| 8195 | +} | |
| 8196 | + | |
| 8157 | 8197 | // MARK: - LocaleClass |
| 8158 | 8198 | struct LocaleClass: Codable { |
| 8159 | 8199 | let locale: Int |
| @@ -8726,50 +8766,6 @@ extension Newtonsoft { | ||
| 8726 | 8766 | } |
| 8727 | 8767 | } |
| 8728 | 8768 | |
| 8729 | -// MARK: - No | |
| 8730 | -struct No: Codable { | |
| 8731 | - let no: Int | |
| 8732 | - | |
| 8733 | - enum CodingKeys: String, CodingKey { | |
| 8734 | - case no = "NO" | |
| 8735 | - } | |
| 8736 | -} | |
| 8737 | - | |
| 8738 | -// MARK: No convenience initializers and mutators | |
| 8739 | - | |
| 8740 | -extension No { | |
| 8741 | - init(data: Data) throws { | |
| 8742 | - self = try newJSONDecoder().decode(No.self, from: data) | |
| 8743 | - } | |
| 8744 | - | |
| 8745 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 8746 | - guard let data = json.data(using: encoding) else { | |
| 8747 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 8748 | - } | |
| 8749 | - try self.init(data: data) | |
| 8750 | - } | |
| 8751 | - | |
| 8752 | - init(fromURL url: URL) throws { | |
| 8753 | - try self.init(data: try Data(contentsOf: url)) | |
| 8754 | - } | |
| 8755 | - | |
| 8756 | - func with( | |
| 8757 | - no: Int? = nil | |
| 8758 | - ) -> No { | |
| 8759 | - return No( | |
| 8760 | - no: no ?? self.no | |
| 8761 | - ) | |
| 8762 | - } | |
| 8763 | - | |
| 8764 | - func jsonData() throws -> Data { | |
| 8765 | - return try newJSONEncoder().encode(self) | |
| 8766 | - } | |
| 8767 | - | |
| 8768 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 8769 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 8770 | - } | |
| 8771 | -} | |
| 8772 | - | |
| 8773 | 8769 | // MARK: - Guard |
| 8774 | 8770 | struct Guard: Codable { |
| 8775 | 8771 | let guardGuard: Int |
| @@ -9430,53 +9426,10 @@ extension Mutating { | ||
| 9430 | 9426 | } |
| 9431 | 9427 | } |
| 9432 | 9428 | |
| 9433 | -// MARK: - Nil | |
| 9434 | -struct Nil: Codable { | |
| 9435 | - let nilNil: Int | |
| 9436 | - | |
| 9437 | - enum CodingKeys: String, CodingKey { | |
| 9438 | - case nilNil = "nil" | |
| 9439 | - } | |
| 9440 | -} | |
| 9441 | - | |
| 9442 | -// MARK: Nil convenience initializers and mutators | |
| 9443 | - | |
| 9444 | -extension Nil { | |
| 9445 | - init(data: Data) throws { | |
| 9446 | - self = try newJSONDecoder().decode(Nil.self, from: data) | |
| 9447 | - } | |
| 9448 | - | |
| 9449 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9450 | - guard let data = json.data(using: encoding) else { | |
| 9451 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9452 | - } | |
| 9453 | - try self.init(data: data) | |
| 9454 | - } | |
| 9455 | - | |
| 9456 | - init(fromURL url: URL) throws { | |
| 9457 | - try self.init(data: try Data(contentsOf: url)) | |
| 9458 | - } | |
| 9459 | - | |
| 9460 | - func with( | |
| 9461 | - nilNil: Int? = nil | |
| 9462 | - ) -> Nil { | |
| 9463 | - return Nil( | |
| 9464 | - nilNil: nilNil ?? self.nilNil | |
| 9465 | - ) | |
| 9466 | - } | |
| 9467 | - | |
| 9468 | - func jsonData() throws -> Data { | |
| 9469 | - return try newJSONEncoder().encode(self) | |
| 9470 | - } | |
| 9471 | - | |
| 9472 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9473 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 9474 | - } | |
| 9475 | -} | |
| 9476 | - | |
| 9477 | 9429 | // MARK: - Obj4 |
| 9478 | 9430 | struct Obj4: Codable { |
| 9479 | 9431 | let dummy: Int |
| 9432 | + let no: No | |
| 9480 | 9433 | let noSuchMethod: NoSuchMethod |
| 9481 | 9434 | let noexcept: Noexcept |
| 9482 | 9435 | let nonatomic: Nonatomic |
| @@ -9490,6 +9443,7 @@ struct Obj4: Codable { | ||
| 9490 | 9443 | let null: Null |
| 9491 | 9444 | let nullptr: Nullptr |
| 9492 | 9445 | let number: Number |
| 9446 | + let obj4Nil: Nil | |
| 9493 | 9447 | let obj4None: NoneClass |
| 9494 | 9448 | let obj4Nonmutating: Nonmutating |
| 9495 | 9449 | let obj4Null: NullClass |
| @@ -9511,6 +9465,8 @@ struct Obj4: Codable { | ||
| 9511 | 9465 | let object: Object |
| 9512 | 9466 | let objectMapper: ObjectMapper |
| 9513 | 9467 | let of: Of |
| 9468 | + let offsetDateTime: OffsetDateTime | |
| 9469 | + let offsetTime: OffsetTime | |
| 9514 | 9470 | let oneway: Oneway |
| 9515 | 9471 | let or: Or |
| 9516 | 9472 | let orEq: OrEq |
| @@ -9537,13 +9493,10 @@ struct Obj4: Codable { | ||
| 9537 | 9493 | let restrict: Restrict |
| 9538 | 9494 | let retain: Retain |
| 9539 | 9495 | let runtimeType: RuntimeType |
| 9540 | - let s: S | |
| 9541 | - let sbyte: Sbyte | |
| 9542 | - let sealed: Sealed | |
| 9543 | - let sel: Sel | |
| 9544 | 9496 | |
| 9545 | 9497 | enum CodingKeys: String, CodingKey { |
| 9546 | 9498 | case dummy = "dummy" |
| 9499 | + case no = "NO" | |
| 9547 | 9500 | case noSuchMethod = "noSuchMethod" |
| 9548 | 9501 | case noexcept = "noexcept" |
| 9549 | 9502 | case nonatomic = "nonatomic" |
| @@ -9557,6 +9510,7 @@ struct Obj4: Codable { | ||
| 9557 | 9510 | case null = "NULL" |
| 9558 | 9511 | case nullptr = "nullptr" |
| 9559 | 9512 | case number = "number" |
| 9513 | + case obj4Nil = "nil" | |
| 9560 | 9514 | case obj4None = "none" |
| 9561 | 9515 | case obj4Nonmutating = "nonmutating" |
| 9562 | 9516 | case obj4Null = "null" |
| @@ -9578,6 +9532,8 @@ struct Obj4: Codable { | ||
| 9578 | 9532 | case object = "object" |
| 9579 | 9533 | case objectMapper = "ObjectMapper" |
| 9580 | 9534 | case of = "of" |
| 9535 | + case offsetDateTime = "OffsetDateTime" | |
| 9536 | + case offsetTime = "OffsetTime" | |
| 9581 | 9537 | case oneway = "oneway" |
| 9582 | 9538 | case or = "or" |
| 9583 | 9539 | case orEq = "or_eq" |
| @@ -9604,10 +9560,6 @@ struct Obj4: Codable { | ||
| 9604 | 9560 | case restrict = "restrict" |
| 9605 | 9561 | case retain = "retain" |
| 9606 | 9562 | case runtimeType = "runtimeType" |
| 9607 | - case s = "s" | |
| 9608 | - case sbyte = "sbyte" | |
| 9609 | - case sealed = "sealed" | |
| 9610 | - case sel = "SEL" | |
| 9611 | 9563 | } |
| 9612 | 9564 | } |
| 9613 | 9565 | |
| @@ -9631,6 +9583,7 @@ extension Obj4 { | ||
| 9631 | 9583 | |
| 9632 | 9584 | func with( |
| 9633 | 9585 | dummy: Int? = nil, |
| 9586 | + no: No? = nil, | |
| 9634 | 9587 | noSuchMethod: NoSuchMethod? = nil, |
| 9635 | 9588 | noexcept: Noexcept? = nil, |
| 9636 | 9589 | nonatomic: Nonatomic? = nil, |
| @@ -9644,6 +9597,7 @@ extension Obj4 { | ||
| 9644 | 9597 | null: Null? = nil, |
| 9645 | 9598 | nullptr: Nullptr? = nil, |
| 9646 | 9599 | number: Number? = nil, |
| 9600 | + obj4Nil: Nil? = nil, | |
| 9647 | 9601 | obj4None: NoneClass? = nil, |
| 9648 | 9602 | obj4Nonmutating: Nonmutating? = nil, |
| 9649 | 9603 | obj4Null: NullClass? = nil, |
| @@ -9665,6 +9619,8 @@ extension Obj4 { | ||
| 9665 | 9619 | object: Object? = nil, |
| 9666 | 9620 | objectMapper: ObjectMapper? = nil, |
| 9667 | 9621 | of: Of? = nil, |
| 9622 | + offsetDateTime: OffsetDateTime? = nil, | |
| 9623 | + offsetTime: OffsetTime? = nil, | |
| 9668 | 9624 | oneway: Oneway? = nil, |
| 9669 | 9625 | or: Or? = nil, |
| 9670 | 9626 | orEq: OrEq? = nil, |
| @@ -9690,14 +9646,11 @@ extension Obj4 { | ||
| 9690 | 9646 | requires: Requires? = nil, |
| 9691 | 9647 | restrict: Restrict? = nil, |
| 9692 | 9648 | retain: Retain? = nil, |
| 9693 | - runtimeType: RuntimeType? = nil, | |
| 9694 | - s: S? = nil, | |
| 9695 | - sbyte: Sbyte? = nil, | |
| 9696 | - sealed: Sealed? = nil, | |
| 9697 | - sel: Sel? = nil | |
| 9649 | + runtimeType: RuntimeType? = nil | |
| 9698 | 9650 | ) -> Obj4 { |
| 9699 | 9651 | return Obj4( |
| 9700 | 9652 | dummy: dummy ?? self.dummy, |
| 9653 | + no: no ?? self.no, | |
| 9701 | 9654 | noSuchMethod: noSuchMethod ?? self.noSuchMethod, |
| 9702 | 9655 | noexcept: noexcept ?? self.noexcept, |
| 9703 | 9656 | nonatomic: nonatomic ?? self.nonatomic, |
| @@ -9711,6 +9664,7 @@ extension Obj4 { | ||
| 9711 | 9664 | null: null ?? self.null, |
| 9712 | 9665 | nullptr: nullptr ?? self.nullptr, |
| 9713 | 9666 | number: number ?? self.number, |
| 9667 | + obj4Nil: obj4Nil ?? self.obj4Nil, | |
| 9714 | 9668 | obj4None: obj4None ?? self.obj4None, |
| 9715 | 9669 | obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating, |
| 9716 | 9670 | obj4Null: obj4Null ?? self.obj4Null, |
| @@ -9732,6 +9686,8 @@ extension Obj4 { | ||
| 9732 | 9686 | object: object ?? self.object, |
| 9733 | 9687 | objectMapper: objectMapper ?? self.objectMapper, |
| 9734 | 9688 | of: of ?? self.of, |
| 9689 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 9690 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 9735 | 9691 | oneway: oneway ?? self.oneway, |
| 9736 | 9692 | or: or ?? self.or, |
| 9737 | 9693 | orEq: orEq ?? self.orEq, |
| @@ -9757,11 +9713,51 @@ extension Obj4 { | ||
| 9757 | 9713 | requires: requires ?? self.requires, |
| 9758 | 9714 | restrict: restrict ?? self.restrict, |
| 9759 | 9715 | retain: retain ?? self.retain, |
| 9760 | - runtimeType: runtimeType ?? self.runtimeType, | |
| 9761 | - s: s ?? self.s, | |
| 9762 | - sbyte: sbyte ?? self.sbyte, | |
| 9763 | - sealed: sealed ?? self.sealed, | |
| 9764 | - sel: sel ?? self.sel | |
| 9716 | + runtimeType: runtimeType ?? self.runtimeType | |
| 9717 | + ) | |
| 9718 | + } | |
| 9719 | + | |
| 9720 | + func jsonData() throws -> Data { | |
| 9721 | + return try newJSONEncoder().encode(self) | |
| 9722 | + } | |
| 9723 | + | |
| 9724 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9725 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 9726 | + } | |
| 9727 | +} | |
| 9728 | + | |
| 9729 | +// MARK: - No | |
| 9730 | +struct No: Codable { | |
| 9731 | + let no: Int | |
| 9732 | + | |
| 9733 | + enum CodingKeys: String, CodingKey { | |
| 9734 | + case no = "NO" | |
| 9735 | + } | |
| 9736 | +} | |
| 9737 | + | |
| 9738 | +// MARK: No convenience initializers and mutators | |
| 9739 | + | |
| 9740 | +extension No { | |
| 9741 | + init(data: Data) throws { | |
| 9742 | + self = try newJSONDecoder().decode(No.self, from: data) | |
| 9743 | + } | |
| 9744 | + | |
| 9745 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9746 | + guard let data = json.data(using: encoding) else { | |
| 9747 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9748 | + } | |
| 9749 | + try self.init(data: data) | |
| 9750 | + } | |
| 9751 | + | |
| 9752 | + init(fromURL url: URL) throws { | |
| 9753 | + try self.init(data: try Data(contentsOf: url)) | |
| 9754 | + } | |
| 9755 | + | |
| 9756 | + func with( | |
| 9757 | + no: Int? = nil | |
| 9758 | + ) -> No { | |
| 9759 | + return No( | |
| 9760 | + no: no ?? self.no | |
| 9765 | 9761 | ) |
| 9766 | 9762 | } |
| 9767 | 9763 | |
| @@ -10346,6 +10342,50 @@ extension Number { | ||
| 10346 | 10342 | } |
| 10347 | 10343 | } |
| 10348 | 10344 | |
| 10345 | +// MARK: - Nil | |
| 10346 | +struct Nil: Codable { | |
| 10347 | + let nilNil: Int | |
| 10348 | + | |
| 10349 | + enum CodingKeys: String, CodingKey { | |
| 10350 | + case nilNil = "nil" | |
| 10351 | + } | |
| 10352 | +} | |
| 10353 | + | |
| 10354 | +// MARK: Nil convenience initializers and mutators | |
| 10355 | + | |
| 10356 | +extension Nil { | |
| 10357 | + init(data: Data) throws { | |
| 10358 | + self = try newJSONDecoder().decode(Nil.self, from: data) | |
| 10359 | + } | |
| 10360 | + | |
| 10361 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10362 | + guard let data = json.data(using: encoding) else { | |
| 10363 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 10364 | + } | |
| 10365 | + try self.init(data: data) | |
| 10366 | + } | |
| 10367 | + | |
| 10368 | + init(fromURL url: URL) throws { | |
| 10369 | + try self.init(data: try Data(contentsOf: url)) | |
| 10370 | + } | |
| 10371 | + | |
| 10372 | + func with( | |
| 10373 | + nilNil: Int? = nil | |
| 10374 | + ) -> Nil { | |
| 10375 | + return Nil( | |
| 10376 | + nilNil: nilNil ?? self.nilNil | |
| 10377 | + ) | |
| 10378 | + } | |
| 10379 | + | |
| 10380 | + func jsonData() throws -> Data { | |
| 10381 | + return try newJSONEncoder().encode(self) | |
| 10382 | + } | |
| 10383 | + | |
| 10384 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 10385 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 10386 | + } | |
| 10387 | +} | |
| 10388 | + | |
| 10349 | 10389 | // MARK: - NoneClass |
| 10350 | 10390 | struct NoneClass: Codable { |
| 10351 | 10391 | let none: Int |
| @@ -11270,20 +11310,20 @@ extension Of { | ||
| 11270 | 11310 | } |
| 11271 | 11311 | } |
| 11272 | 11312 | |
| 11273 | -// MARK: - Oneway | |
| 11274 | -struct Oneway: Codable { | |
| 11275 | - let oneway: Int | |
| 11313 | +// MARK: - OffsetDateTime | |
| 11314 | +struct OffsetDateTime: Codable { | |
| 11315 | + let offsetDateTime: Int | |
| 11276 | 11316 | |
| 11277 | 11317 | enum CodingKeys: String, CodingKey { |
| 11278 | - case oneway = "oneway" | |
| 11318 | + case offsetDateTime = "OffsetDateTime" | |
| 11279 | 11319 | } |
| 11280 | 11320 | } |
| 11281 | 11321 | |
| 11282 | -// MARK: Oneway convenience initializers and mutators | |
| 11322 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 11283 | 11323 | |
| 11284 | -extension Oneway { | |
| 11324 | +extension OffsetDateTime { | |
| 11285 | 11325 | init(data: Data) throws { |
| 11286 | - self = try newJSONDecoder().decode(Oneway.self, from: data) | |
| 11326 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 11287 | 11327 | } |
| 11288 | 11328 | |
| 11289 | 11329 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11298,10 +11338,10 @@ extension Oneway { | ||
| 11298 | 11338 | } |
| 11299 | 11339 | |
| 11300 | 11340 | func with( |
| 11301 | - oneway: Int? = nil | |
| 11302 | - ) -> Oneway { | |
| 11303 | - return Oneway( | |
| 11304 | - oneway: oneway ?? self.oneway | |
| 11341 | + offsetDateTime: Int? = nil | |
| 11342 | + ) -> OffsetDateTime { | |
| 11343 | + return OffsetDateTime( | |
| 11344 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime | |
| 11305 | 11345 | ) |
| 11306 | 11346 | } |
| 11307 | 11347 | |
| @@ -11314,20 +11354,20 @@ extension Oneway { | ||
| 11314 | 11354 | } |
| 11315 | 11355 | } |
| 11316 | 11356 | |
| 11317 | -// MARK: - Or | |
| 11318 | -struct Or: Codable { | |
| 11319 | - let or: Int | |
| 11357 | +// MARK: - OffsetTime | |
| 11358 | +struct OffsetTime: Codable { | |
| 11359 | + let offsetTime: Int | |
| 11320 | 11360 | |
| 11321 | 11361 | enum CodingKeys: String, CodingKey { |
| 11322 | - case or = "or" | |
| 11362 | + case offsetTime = "OffsetTime" | |
| 11323 | 11363 | } |
| 11324 | 11364 | } |
| 11325 | 11365 | |
| 11326 | -// MARK: Or convenience initializers and mutators | |
| 11366 | +// MARK: OffsetTime convenience initializers and mutators | |
| 11327 | 11367 | |
| 11328 | -extension Or { | |
| 11368 | +extension OffsetTime { | |
| 11329 | 11369 | init(data: Data) throws { |
| 11330 | - self = try newJSONDecoder().decode(Or.self, from: data) | |
| 11370 | + self = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 11331 | 11371 | } |
| 11332 | 11372 | |
| 11333 | 11373 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11342,10 +11382,10 @@ extension Or { | ||
| 11342 | 11382 | } |
| 11343 | 11383 | |
| 11344 | 11384 | func with( |
| 11345 | - or: Int? = nil | |
| 11346 | - ) -> Or { | |
| 11347 | - return Or( | |
| 11348 | - or: or ?? self.or | |
| 11385 | + offsetTime: Int? = nil | |
| 11386 | + ) -> OffsetTime { | |
| 11387 | + return OffsetTime( | |
| 11388 | + offsetTime: offsetTime ?? self.offsetTime | |
| 11349 | 11389 | ) |
| 11350 | 11390 | } |
| 11351 | 11391 | |
| @@ -11358,7 +11398,95 @@ extension Or { | ||
| 11358 | 11398 | } |
| 11359 | 11399 | } |
| 11360 | 11400 | |
| 11361 | -// MARK: - OrEq | |
| 11401 | +// MARK: - Oneway | |
| 11402 | +struct Oneway: Codable { | |
| 11403 | + let oneway: Int | |
| 11404 | + | |
| 11405 | + enum CodingKeys: String, CodingKey { | |
| 11406 | + case oneway = "oneway" | |
| 11407 | + } | |
| 11408 | +} | |
| 11409 | + | |
| 11410 | +// MARK: Oneway convenience initializers and mutators | |
| 11411 | + | |
| 11412 | +extension Oneway { | |
| 11413 | + init(data: Data) throws { | |
| 11414 | + self = try newJSONDecoder().decode(Oneway.self, from: data) | |
| 11415 | + } | |
| 11416 | + | |
| 11417 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11418 | + guard let data = json.data(using: encoding) else { | |
| 11419 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11420 | + } | |
| 11421 | + try self.init(data: data) | |
| 11422 | + } | |
| 11423 | + | |
| 11424 | + init(fromURL url: URL) throws { | |
| 11425 | + try self.init(data: try Data(contentsOf: url)) | |
| 11426 | + } | |
| 11427 | + | |
| 11428 | + func with( | |
| 11429 | + oneway: Int? = nil | |
| 11430 | + ) -> Oneway { | |
| 11431 | + return Oneway( | |
| 11432 | + oneway: oneway ?? self.oneway | |
| 11433 | + ) | |
| 11434 | + } | |
| 11435 | + | |
| 11436 | + func jsonData() throws -> Data { | |
| 11437 | + return try newJSONEncoder().encode(self) | |
| 11438 | + } | |
| 11439 | + | |
| 11440 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11441 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11442 | + } | |
| 11443 | +} | |
| 11444 | + | |
| 11445 | +// MARK: - Or | |
| 11446 | +struct Or: Codable { | |
| 11447 | + let or: Int | |
| 11448 | + | |
| 11449 | + enum CodingKeys: String, CodingKey { | |
| 11450 | + case or = "or" | |
| 11451 | + } | |
| 11452 | +} | |
| 11453 | + | |
| 11454 | +// MARK: Or convenience initializers and mutators | |
| 11455 | + | |
| 11456 | +extension Or { | |
| 11457 | + init(data: Data) throws { | |
| 11458 | + self = try newJSONDecoder().decode(Or.self, from: data) | |
| 11459 | + } | |
| 11460 | + | |
| 11461 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11462 | + guard let data = json.data(using: encoding) else { | |
| 11463 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11464 | + } | |
| 11465 | + try self.init(data: data) | |
| 11466 | + } | |
| 11467 | + | |
| 11468 | + init(fromURL url: URL) throws { | |
| 11469 | + try self.init(data: try Data(contentsOf: url)) | |
| 11470 | + } | |
| 11471 | + | |
| 11472 | + func with( | |
| 11473 | + or: Int? = nil | |
| 11474 | + ) -> Or { | |
| 11475 | + return Or( | |
| 11476 | + or: or ?? self.or | |
| 11477 | + ) | |
| 11478 | + } | |
| 11479 | + | |
| 11480 | + func jsonData() throws -> Data { | |
| 11481 | + return try newJSONEncoder().encode(self) | |
| 11482 | + } | |
| 11483 | + | |
| 11484 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11485 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11486 | + } | |
| 11487 | +} | |
| 11488 | + | |
| 11489 | +// MARK: - OrEq | |
| 11362 | 11490 | struct OrEq: Codable { |
| 11363 | 11491 | let orEq: Int |
| 11364 | 11492 | |
| @@ -12414,326 +12542,148 @@ extension RuntimeType { | ||
| 12414 | 12542 | } |
| 12415 | 12543 | } |
| 12416 | 12544 | |
| 12417 | -// MARK: - S | |
| 12418 | -struct S: Codable { | |
| 12419 | - let s: Int | |
| 12545 | +// MARK: - Obj5 | |
| 12546 | +struct Obj5: Codable { | |
| 12547 | + let dummy: Int | |
| 12548 | + let kSerializer: KSerializer | |
| 12549 | + let obj5Self: SelfClass | |
| 12550 | + let obj5Set: Set | |
| 12551 | + let obj5Static: Static | |
| 12552 | + let obj5Struct: Struct | |
| 12553 | + let obj5Subscript: Subscript | |
| 12554 | + let obj5Super: Super | |
| 12555 | + let obj5Switch: Switch | |
| 12556 | + let obj5Throw: Throw | |
| 12557 | + let obj5Throws: Throws | |
| 12558 | + let obj5True: True | |
| 12559 | + let obj5Try: Try | |
| 12560 | + let obj5Type: Obj5Type | |
| 12561 | + let obj5Typealias: Typealias | |
| 12562 | + let primitiveKind: PrimitiveKind | |
| 12563 | + let purpleSelf: Obj5Self | |
| 12564 | + let purpleTrue: TrueClass | |
| 12565 | + let s: S | |
| 12566 | + let sbyte: Sbyte | |
| 12567 | + let sealed: Sealed | |
| 12568 | + let sel: Sel | |
| 12569 | + let select: Select | |
| 12570 | + let sendable: Sendable | |
| 12571 | + let serialDescriptor: SerialDescriptor | |
| 12572 | + let serialName: SerialName | |
| 12573 | + let serializable: Serializable | |
| 12574 | + let serialize: Serialize | |
| 12575 | + let serializerProvider: SerializerProvider | |
| 12576 | + let short: Short | |
| 12577 | + let signed: Signed | |
| 12578 | + let simpleModule: SimpleModule | |
| 12579 | + let sizeof: Sizeof | |
| 12580 | + let stackalloc: Stackalloc | |
| 12581 | + let standards: Standards | |
| 12582 | + let staticAssert: StaticAssert | |
| 12583 | + let staticCast: StaticCast | |
| 12584 | + let stdDeserializer: StdDeserializer | |
| 12585 | + let stdSerializer: StdSerializer | |
| 12586 | + let strictfp: Strictfp | |
| 12587 | + let string: StringClass | |
| 12588 | + let symbol: Symbol | |
| 12589 | + let synchronized: Synchronized | |
| 12590 | + let system: System | |
| 12591 | + let template: Template | |
| 12592 | + let then: Then | |
| 12593 | + let this: This | |
| 12594 | + let threadLocal: ThreadLocal | |
| 12595 | + let timeOnly: TimeOnly | |
| 12596 | + let timeOnlyConverter: TimeOnlyConverter | |
| 12597 | + let timeZone: TimeZoneClass | |
| 12598 | + let toDict: ToDict | |
| 12599 | + let toJSON: ToJSON | |
| 12600 | + let toString: ToString | |
| 12601 | + let topLevel: TopLevelClass | |
| 12602 | + let transient: Transient | |
| 12603 | + let type: TypeClass | |
| 12604 | + let typedef: Typedef | |
| 12605 | + let typeid: Typeid | |
| 12606 | + let typename: Typename | |
| 12607 | + let typeof: Typeof | |
| 12608 | + let uint: Uint | |
| 12609 | + let ulong: Ulong | |
| 12610 | + let unchecked: Unchecked | |
| 12611 | + let undefined: Undefined | |
| 12420 | 12612 | |
| 12421 | 12613 | enum CodingKeys: String, CodingKey { |
| 12614 | + case dummy = "dummy" | |
| 12615 | + case kSerializer = "KSerializer" | |
| 12616 | + case obj5Self = "Self" | |
| 12617 | + case obj5Set = "set" | |
| 12618 | + case obj5Static = "static" | |
| 12619 | + case obj5Struct = "struct" | |
| 12620 | + case obj5Subscript = "subscript" | |
| 12621 | + case obj5Super = "super" | |
| 12622 | + case obj5Switch = "switch" | |
| 12623 | + case obj5Throw = "throw" | |
| 12624 | + case obj5Throws = "throws" | |
| 12625 | + case obj5True = "True" | |
| 12626 | + case obj5Try = "try" | |
| 12627 | + case obj5Type = "type" | |
| 12628 | + case obj5Typealias = "typealias" | |
| 12629 | + case primitiveKind = "PrimitiveKind" | |
| 12630 | + case purpleSelf = "self" | |
| 12631 | + case purpleTrue = "true" | |
| 12422 | 12632 | case s = "s" |
| 12633 | + case sbyte = "sbyte" | |
| 12634 | + case sealed = "sealed" | |
| 12635 | + case sel = "SEL" | |
| 12636 | + case select = "select" | |
| 12637 | + case sendable = "Sendable" | |
| 12638 | + case serialDescriptor = "SerialDescriptor" | |
| 12639 | + case serialName = "SerialName" | |
| 12640 | + case serializable = "Serializable" | |
| 12641 | + case serialize = "serialize" | |
| 12642 | + case serializerProvider = "SerializerProvider" | |
| 12643 | + case short = "short" | |
| 12644 | + case signed = "signed" | |
| 12645 | + case simpleModule = "SimpleModule" | |
| 12646 | + case sizeof = "sizeof" | |
| 12647 | + case stackalloc = "stackalloc" | |
| 12648 | + case standards = "Standards" | |
| 12649 | + case staticAssert = "static_assert" | |
| 12650 | + case staticCast = "static_cast" | |
| 12651 | + case stdDeserializer = "StdDeserializer" | |
| 12652 | + case stdSerializer = "StdSerializer" | |
| 12653 | + case strictfp = "strictfp" | |
| 12654 | + case string = "string" | |
| 12655 | + case symbol = "symbol" | |
| 12656 | + case synchronized = "synchronized" | |
| 12657 | + case system = "system" | |
| 12658 | + case template = "template" | |
| 12659 | + case then = "then" | |
| 12660 | + case this = "this" | |
| 12661 | + case threadLocal = "thread_local" | |
| 12662 | + case timeOnly = "TimeOnly" | |
| 12663 | + case timeOnlyConverter = "TimeOnlyConverter" | |
| 12664 | + case timeZone = "TimeZone" | |
| 12665 | + case toDict = "to_dict" | |
| 12666 | + case toJSON = "to_json" | |
| 12667 | + case toString = "toString" | |
| 12668 | + case topLevel = "top_level" | |
| 12669 | + case transient = "transient" | |
| 12670 | + case type = "Type" | |
| 12671 | + case typedef = "typedef" | |
| 12672 | + case typeid = "typeid" | |
| 12673 | + case typename = "typename" | |
| 12674 | + case typeof = "typeof" | |
| 12675 | + case uint = "uint" | |
| 12676 | + case ulong = "ulong" | |
| 12677 | + case unchecked = "unchecked" | |
| 12678 | + case undefined = "undefined" | |
| 12423 | 12679 | } |
| 12424 | 12680 | } |
| 12425 | 12681 | |
| 12426 | -// MARK: S convenience initializers and mutators | |
| 12682 | +// MARK: Obj5 convenience initializers and mutators | |
| 12427 | 12683 | |
| 12428 | -extension S { | |
| 12684 | +extension Obj5 { | |
| 12429 | 12685 | init(data: Data) throws { |
| 12430 | - self = try newJSONDecoder().decode(S.self, from: data) | |
| 12431 | - } | |
| 12432 | - | |
| 12433 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12434 | - guard let data = json.data(using: encoding) else { | |
| 12435 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12436 | - } | |
| 12437 | - try self.init(data: data) | |
| 12438 | - } | |
| 12439 | - | |
| 12440 | - init(fromURL url: URL) throws { | |
| 12441 | - try self.init(data: try Data(contentsOf: url)) | |
| 12442 | - } | |
| 12443 | - | |
| 12444 | - func with( | |
| 12445 | - s: Int? = nil | |
| 12446 | - ) -> S { | |
| 12447 | - return S( | |
| 12448 | - s: s ?? self.s | |
| 12449 | - ) | |
| 12450 | - } | |
| 12451 | - | |
| 12452 | - func jsonData() throws -> Data { | |
| 12453 | - return try newJSONEncoder().encode(self) | |
| 12454 | - } | |
| 12455 | - | |
| 12456 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12457 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12458 | - } | |
| 12459 | -} | |
| 12460 | - | |
| 12461 | -// MARK: - Sbyte | |
| 12462 | -struct Sbyte: Codable { | |
| 12463 | - let sbyte: Int | |
| 12464 | - | |
| 12465 | - enum CodingKeys: String, CodingKey { | |
| 12466 | - case sbyte = "sbyte" | |
| 12467 | - } | |
| 12468 | -} | |
| 12469 | - | |
| 12470 | -// MARK: Sbyte convenience initializers and mutators | |
| 12471 | - | |
| 12472 | -extension Sbyte { | |
| 12473 | - init(data: Data) throws { | |
| 12474 | - self = try newJSONDecoder().decode(Sbyte.self, from: data) | |
| 12475 | - } | |
| 12476 | - | |
| 12477 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12478 | - guard let data = json.data(using: encoding) else { | |
| 12479 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12480 | - } | |
| 12481 | - try self.init(data: data) | |
| 12482 | - } | |
| 12483 | - | |
| 12484 | - init(fromURL url: URL) throws { | |
| 12485 | - try self.init(data: try Data(contentsOf: url)) | |
| 12486 | - } | |
| 12487 | - | |
| 12488 | - func with( | |
| 12489 | - sbyte: Int? = nil | |
| 12490 | - ) -> Sbyte { | |
| 12491 | - return Sbyte( | |
| 12492 | - sbyte: sbyte ?? self.sbyte | |
| 12493 | - ) | |
| 12494 | - } | |
| 12495 | - | |
| 12496 | - func jsonData() throws -> Data { | |
| 12497 | - return try newJSONEncoder().encode(self) | |
| 12498 | - } | |
| 12499 | - | |
| 12500 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12501 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12502 | - } | |
| 12503 | -} | |
| 12504 | - | |
| 12505 | -// MARK: - Sealed | |
| 12506 | -struct Sealed: Codable { | |
| 12507 | - let sealed: Int | |
| 12508 | - | |
| 12509 | - enum CodingKeys: String, CodingKey { | |
| 12510 | - case sealed = "sealed" | |
| 12511 | - } | |
| 12512 | -} | |
| 12513 | - | |
| 12514 | -// MARK: Sealed convenience initializers and mutators | |
| 12515 | - | |
| 12516 | -extension Sealed { | |
| 12517 | - init(data: Data) throws { | |
| 12518 | - self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 12519 | - } | |
| 12520 | - | |
| 12521 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12522 | - guard let data = json.data(using: encoding) else { | |
| 12523 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12524 | - } | |
| 12525 | - try self.init(data: data) | |
| 12526 | - } | |
| 12527 | - | |
| 12528 | - init(fromURL url: URL) throws { | |
| 12529 | - try self.init(data: try Data(contentsOf: url)) | |
| 12530 | - } | |
| 12531 | - | |
| 12532 | - func with( | |
| 12533 | - sealed: Int? = nil | |
| 12534 | - ) -> Sealed { | |
| 12535 | - return Sealed( | |
| 12536 | - sealed: sealed ?? self.sealed | |
| 12537 | - ) | |
| 12538 | - } | |
| 12539 | - | |
| 12540 | - func jsonData() throws -> Data { | |
| 12541 | - return try newJSONEncoder().encode(self) | |
| 12542 | - } | |
| 12543 | - | |
| 12544 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12545 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12546 | - } | |
| 12547 | -} | |
| 12548 | - | |
| 12549 | -// MARK: - Sel | |
| 12550 | -struct Sel: Codable { | |
| 12551 | - let sel: Int | |
| 12552 | - | |
| 12553 | - enum CodingKeys: String, CodingKey { | |
| 12554 | - case sel = "SEL" | |
| 12555 | - } | |
| 12556 | -} | |
| 12557 | - | |
| 12558 | -// MARK: Sel convenience initializers and mutators | |
| 12559 | - | |
| 12560 | -extension Sel { | |
| 12561 | - init(data: Data) throws { | |
| 12562 | - self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 12563 | - } | |
| 12564 | - | |
| 12565 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12566 | - guard let data = json.data(using: encoding) else { | |
| 12567 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12568 | - } | |
| 12569 | - try self.init(data: data) | |
| 12570 | - } | |
| 12571 | - | |
| 12572 | - init(fromURL url: URL) throws { | |
| 12573 | - try self.init(data: try Data(contentsOf: url)) | |
| 12574 | - } | |
| 12575 | - | |
| 12576 | - func with( | |
| 12577 | - sel: Int? = nil | |
| 12578 | - ) -> Sel { | |
| 12579 | - return Sel( | |
| 12580 | - sel: sel ?? self.sel | |
| 12581 | - ) | |
| 12582 | - } | |
| 12583 | - | |
| 12584 | - func jsonData() throws -> Data { | |
| 12585 | - return try newJSONEncoder().encode(self) | |
| 12586 | - } | |
| 12587 | - | |
| 12588 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12589 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12590 | - } | |
| 12591 | -} | |
| 12592 | - | |
| 12593 | -// MARK: - Obj5 | |
| 12594 | -struct Obj5: Codable { | |
| 12595 | - let dummy: Int | |
| 12596 | - let kSerializer: KSerializer | |
| 12597 | - let obj5Self: SelfClass | |
| 12598 | - let obj5Set: Set | |
| 12599 | - let obj5Static: Static | |
| 12600 | - let obj5Struct: Struct | |
| 12601 | - let obj5Subscript: Subscript | |
| 12602 | - let obj5Super: Super | |
| 12603 | - let obj5Switch: Switch | |
| 12604 | - let obj5Throw: Throw | |
| 12605 | - let obj5Throws: Throws | |
| 12606 | - let obj5True: True | |
| 12607 | - let obj5Try: Try | |
| 12608 | - let obj5Type: Obj5Type | |
| 12609 | - let obj5Typealias: Typealias | |
| 12610 | - let obj5Unowned: Unowned | |
| 12611 | - let primitiveKind: PrimitiveKind | |
| 12612 | - let purpleSelf: Obj5Self | |
| 12613 | - let purpleTrue: TrueClass | |
| 12614 | - let select: Select | |
| 12615 | - let sendable: Sendable | |
| 12616 | - let serialDescriptor: SerialDescriptor | |
| 12617 | - let serialName: SerialName | |
| 12618 | - let serializable: Serializable | |
| 12619 | - let serialize: Serialize | |
| 12620 | - let serializerProvider: SerializerProvider | |
| 12621 | - let short: Short | |
| 12622 | - let signed: Signed | |
| 12623 | - let simpleModule: SimpleModule | |
| 12624 | - let sizeof: Sizeof | |
| 12625 | - let stackalloc: Stackalloc | |
| 12626 | - let standards: Standards | |
| 12627 | - let staticAssert: StaticAssert | |
| 12628 | - let staticCast: StaticCast | |
| 12629 | - let stdDeserializer: StdDeserializer | |
| 12630 | - let stdSerializer: StdSerializer | |
| 12631 | - let strictfp: Strictfp | |
| 12632 | - let string: StringClass | |
| 12633 | - let symbol: Symbol | |
| 12634 | - let synchronized: Synchronized | |
| 12635 | - let system: System | |
| 12636 | - let template: Template | |
| 12637 | - let then: Then | |
| 12638 | - let this: This | |
| 12639 | - let threadLocal: ThreadLocal | |
| 12640 | - let timeOnly: TimeOnly | |
| 12641 | - let timeOnlyConverter: TimeOnlyConverter | |
| 12642 | - let timeZone: TimeZoneClass | |
| 12643 | - let toDict: ToDict | |
| 12644 | - let toJSON: ToJSON | |
| 12645 | - let toString: ToString | |
| 12646 | - let topLevel: TopLevelClass | |
| 12647 | - let transient: Transient | |
| 12648 | - let type: TypeClass | |
| 12649 | - let typedef: Typedef | |
| 12650 | - let typeid: Typeid | |
| 12651 | - let typename: Typename | |
| 12652 | - let typeof: Typeof | |
| 12653 | - let uint: Uint | |
| 12654 | - let ulong: Ulong | |
| 12655 | - let unchecked: Unchecked | |
| 12656 | - let undefined: Undefined | |
| 12657 | - let union: Union | |
| 12658 | - let unmarshalJSON: UnmarshalJSON | |
| 12659 | - let unsafe: Unsafe | |
| 12660 | - let useSerializers: UseSerializers | |
| 12661 | - | |
| 12662 | - enum CodingKeys: String, CodingKey { | |
| 12663 | - case dummy = "dummy" | |
| 12664 | - case kSerializer = "KSerializer" | |
| 12665 | - case obj5Self = "Self" | |
| 12666 | - case obj5Set = "set" | |
| 12667 | - case obj5Static = "static" | |
| 12668 | - case obj5Struct = "struct" | |
| 12669 | - case obj5Subscript = "subscript" | |
| 12670 | - case obj5Super = "super" | |
| 12671 | - case obj5Switch = "switch" | |
| 12672 | - case obj5Throw = "throw" | |
| 12673 | - case obj5Throws = "throws" | |
| 12674 | - case obj5True = "True" | |
| 12675 | - case obj5Try = "try" | |
| 12676 | - case obj5Type = "type" | |
| 12677 | - case obj5Typealias = "typealias" | |
| 12678 | - case obj5Unowned = "unowned" | |
| 12679 | - case primitiveKind = "PrimitiveKind" | |
| 12680 | - case purpleSelf = "self" | |
| 12681 | - case purpleTrue = "true" | |
| 12682 | - case select = "select" | |
| 12683 | - case sendable = "Sendable" | |
| 12684 | - case serialDescriptor = "SerialDescriptor" | |
| 12685 | - case serialName = "SerialName" | |
| 12686 | - case serializable = "Serializable" | |
| 12687 | - case serialize = "serialize" | |
| 12688 | - case serializerProvider = "SerializerProvider" | |
| 12689 | - case short = "short" | |
| 12690 | - case signed = "signed" | |
| 12691 | - case simpleModule = "SimpleModule" | |
| 12692 | - case sizeof = "sizeof" | |
| 12693 | - case stackalloc = "stackalloc" | |
| 12694 | - case standards = "Standards" | |
| 12695 | - case staticAssert = "static_assert" | |
| 12696 | - case staticCast = "static_cast" | |
| 12697 | - case stdDeserializer = "StdDeserializer" | |
| 12698 | - case stdSerializer = "StdSerializer" | |
| 12699 | - case strictfp = "strictfp" | |
| 12700 | - case string = "string" | |
| 12701 | - case symbol = "symbol" | |
| 12702 | - case synchronized = "synchronized" | |
| 12703 | - case system = "system" | |
| 12704 | - case template = "template" | |
| 12705 | - case then = "then" | |
| 12706 | - case this = "this" | |
| 12707 | - case threadLocal = "thread_local" | |
| 12708 | - case timeOnly = "TimeOnly" | |
| 12709 | - case timeOnlyConverter = "TimeOnlyConverter" | |
| 12710 | - case timeZone = "TimeZone" | |
| 12711 | - case toDict = "to_dict" | |
| 12712 | - case toJSON = "to_json" | |
| 12713 | - case toString = "toString" | |
| 12714 | - case topLevel = "top_level" | |
| 12715 | - case transient = "transient" | |
| 12716 | - case type = "Type" | |
| 12717 | - case typedef = "typedef" | |
| 12718 | - case typeid = "typeid" | |
| 12719 | - case typename = "typename" | |
| 12720 | - case typeof = "typeof" | |
| 12721 | - case uint = "uint" | |
| 12722 | - case ulong = "ulong" | |
| 12723 | - case unchecked = "unchecked" | |
| 12724 | - case undefined = "undefined" | |
| 12725 | - case union = "union" | |
| 12726 | - case unmarshalJSON = "UnmarshalJSON" | |
| 12727 | - case unsafe = "unsafe" | |
| 12728 | - case useSerializers = "UseSerializers" | |
| 12729 | - } | |
| 12730 | -} | |
| 12731 | - | |
| 12732 | -// MARK: Obj5 convenience initializers and mutators | |
| 12733 | - | |
| 12734 | -extension Obj5 { | |
| 12735 | - init(data: Data) throws { | |
| 12736 | - self = try newJSONDecoder().decode(Obj5.self, from: data) | |
| 12686 | + self = try newJSONDecoder().decode(Obj5.self, from: data) | |
| 12737 | 12687 | } |
| 12738 | 12688 | |
| 12739 | 12689 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -12763,10 +12713,13 @@ extension Obj5 { | ||
| 12763 | 12713 | obj5Try: Try? = nil, |
| 12764 | 12714 | obj5Type: Obj5Type? = nil, |
| 12765 | 12715 | obj5Typealias: Typealias? = nil, |
| 12766 | - obj5Unowned: Unowned? = nil, | |
| 12767 | 12716 | primitiveKind: PrimitiveKind? = nil, |
| 12768 | 12717 | purpleSelf: Obj5Self? = nil, |
| 12769 | 12718 | purpleTrue: TrueClass? = nil, |
| 12719 | + s: S? = nil, | |
| 12720 | + sbyte: Sbyte? = nil, | |
| 12721 | + sealed: Sealed? = nil, | |
| 12722 | + sel: Sel? = nil, | |
| 12770 | 12723 | select: Select? = nil, |
| 12771 | 12724 | sendable: Sendable? = nil, |
| 12772 | 12725 | serialDescriptor: SerialDescriptor? = nil, |
| @@ -12809,11 +12762,7 @@ extension Obj5 { | ||
| 12809 | 12762 | uint: Uint? = nil, |
| 12810 | 12763 | ulong: Ulong? = nil, |
| 12811 | 12764 | unchecked: Unchecked? = nil, |
| 12812 | - undefined: Undefined? = nil, | |
| 12813 | - union: Union? = nil, | |
| 12814 | - unmarshalJSON: UnmarshalJSON? = nil, | |
| 12815 | - unsafe: Unsafe? = nil, | |
| 12816 | - useSerializers: UseSerializers? = nil | |
| 12765 | + undefined: Undefined? = nil | |
| 12817 | 12766 | ) -> Obj5 { |
| 12818 | 12767 | return Obj5( |
| 12819 | 12768 | dummy: dummy ?? self.dummy, |
| @@ -12831,10 +12780,13 @@ extension Obj5 { | ||
| 12831 | 12780 | obj5Try: obj5Try ?? self.obj5Try, |
| 12832 | 12781 | obj5Type: obj5Type ?? self.obj5Type, |
| 12833 | 12782 | obj5Typealias: obj5Typealias ?? self.obj5Typealias, |
| 12834 | - obj5Unowned: obj5Unowned ?? self.obj5Unowned, | |
| 12835 | 12783 | primitiveKind: primitiveKind ?? self.primitiveKind, |
| 12836 | 12784 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 12837 | 12785 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 12786 | + s: s ?? self.s, | |
| 12787 | + sbyte: sbyte ?? self.sbyte, | |
| 12788 | + sealed: sealed ?? self.sealed, | |
| 12789 | + sel: sel ?? self.sel, | |
| 12838 | 12790 | select: select ?? self.select, |
| 12839 | 12791 | sendable: sendable ?? self.sendable, |
| 12840 | 12792 | serialDescriptor: serialDescriptor ?? self.serialDescriptor, |
| @@ -12877,11 +12829,7 @@ extension Obj5 { | ||
| 12877 | 12829 | uint: uint ?? self.uint, |
| 12878 | 12830 | ulong: ulong ?? self.ulong, |
| 12879 | 12831 | unchecked: unchecked ?? self.unchecked, |
| 12880 | - undefined: undefined ?? self.undefined, | |
| 12881 | - union: union ?? self.union, | |
| 12882 | - unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON, | |
| 12883 | - unsafe: unsafe ?? self.unsafe, | |
| 12884 | - useSerializers: useSerializers ?? self.useSerializers | |
| 12832 | + undefined: undefined ?? self.undefined | |
| 12885 | 12833 | ) |
| 12886 | 12834 | } |
| 12887 | 12835 | |
| @@ -13510,20 +13458,152 @@ extension Typealias { | ||
| 13510 | 13458 | } |
| 13511 | 13459 | } |
| 13512 | 13460 | |
| 13513 | -// MARK: - Unowned | |
| 13514 | -struct Unowned: Codable { | |
| 13515 | - let unownedUnowned: Int | |
| 13461 | +// MARK: - PrimitiveKind | |
| 13462 | +struct PrimitiveKind: Codable { | |
| 13463 | + let primitiveKind: Int | |
| 13516 | 13464 | |
| 13517 | 13465 | enum CodingKeys: String, CodingKey { |
| 13518 | - case unownedUnowned = "unowned" | |
| 13466 | + case primitiveKind = "PrimitiveKind" | |
| 13467 | + } | |
| 13468 | +} | |
| 13469 | + | |
| 13470 | +// MARK: PrimitiveKind convenience initializers and mutators | |
| 13471 | + | |
| 13472 | +extension PrimitiveKind { | |
| 13473 | + init(data: Data) throws { | |
| 13474 | + self = try newJSONDecoder().decode(PrimitiveKind.self, from: data) | |
| 13475 | + } | |
| 13476 | + | |
| 13477 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13478 | + guard let data = json.data(using: encoding) else { | |
| 13479 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13480 | + } | |
| 13481 | + try self.init(data: data) | |
| 13482 | + } | |
| 13483 | + | |
| 13484 | + init(fromURL url: URL) throws { | |
| 13485 | + try self.init(data: try Data(contentsOf: url)) | |
| 13486 | + } | |
| 13487 | + | |
| 13488 | + func with( | |
| 13489 | + primitiveKind: Int? = nil | |
| 13490 | + ) -> PrimitiveKind { | |
| 13491 | + return PrimitiveKind( | |
| 13492 | + primitiveKind: primitiveKind ?? self.primitiveKind | |
| 13493 | + ) | |
| 13494 | + } | |
| 13495 | + | |
| 13496 | + func jsonData() throws -> Data { | |
| 13497 | + return try newJSONEncoder().encode(self) | |
| 13498 | + } | |
| 13499 | + | |
| 13500 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13501 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13502 | + } | |
| 13503 | +} | |
| 13504 | + | |
| 13505 | +// MARK: - Obj5Self | |
| 13506 | +struct Obj5Self: Codable { | |
| 13507 | + let selfSelf: Int | |
| 13508 | + | |
| 13509 | + enum CodingKeys: String, CodingKey { | |
| 13510 | + case selfSelf = "self" | |
| 13511 | + } | |
| 13512 | +} | |
| 13513 | + | |
| 13514 | +// MARK: Obj5Self convenience initializers and mutators | |
| 13515 | + | |
| 13516 | +extension Obj5Self { | |
| 13517 | + init(data: Data) throws { | |
| 13518 | + self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 13519 | + } | |
| 13520 | + | |
| 13521 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13522 | + guard let data = json.data(using: encoding) else { | |
| 13523 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13524 | + } | |
| 13525 | + try self.init(data: data) | |
| 13526 | + } | |
| 13527 | + | |
| 13528 | + init(fromURL url: URL) throws { | |
| 13529 | + try self.init(data: try Data(contentsOf: url)) | |
| 13530 | + } | |
| 13531 | + | |
| 13532 | + func with( | |
| 13533 | + selfSelf: Int? = nil | |
| 13534 | + ) -> Obj5Self { | |
| 13535 | + return Obj5Self( | |
| 13536 | + selfSelf: selfSelf ?? self.selfSelf | |
| 13537 | + ) | |
| 13538 | + } | |
| 13539 | + | |
| 13540 | + func jsonData() throws -> Data { | |
| 13541 | + return try newJSONEncoder().encode(self) | |
| 13542 | + } | |
| 13543 | + | |
| 13544 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13545 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13546 | + } | |
| 13547 | +} | |
| 13548 | + | |
| 13549 | +// MARK: - TrueClass | |
| 13550 | +struct TrueClass: Codable { | |
| 13551 | + let trueTrue: Int | |
| 13552 | + | |
| 13553 | + enum CodingKeys: String, CodingKey { | |
| 13554 | + case trueTrue = "true" | |
| 13555 | + } | |
| 13556 | +} | |
| 13557 | + | |
| 13558 | +// MARK: TrueClass convenience initializers and mutators | |
| 13559 | + | |
| 13560 | +extension TrueClass { | |
| 13561 | + init(data: Data) throws { | |
| 13562 | + self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 13563 | + } | |
| 13564 | + | |
| 13565 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13566 | + guard let data = json.data(using: encoding) else { | |
| 13567 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13568 | + } | |
| 13569 | + try self.init(data: data) | |
| 13570 | + } | |
| 13571 | + | |
| 13572 | + init(fromURL url: URL) throws { | |
| 13573 | + try self.init(data: try Data(contentsOf: url)) | |
| 13574 | + } | |
| 13575 | + | |
| 13576 | + func with( | |
| 13577 | + trueTrue: Int? = nil | |
| 13578 | + ) -> TrueClass { | |
| 13579 | + return TrueClass( | |
| 13580 | + trueTrue: trueTrue ?? self.trueTrue | |
| 13581 | + ) | |
| 13582 | + } | |
| 13583 | + | |
| 13584 | + func jsonData() throws -> Data { | |
| 13585 | + return try newJSONEncoder().encode(self) | |
| 13586 | + } | |
| 13587 | + | |
| 13588 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13589 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13590 | + } | |
| 13591 | +} | |
| 13592 | + | |
| 13593 | +// MARK: - S | |
| 13594 | +struct S: Codable { | |
| 13595 | + let s: Int | |
| 13596 | + | |
| 13597 | + enum CodingKeys: String, CodingKey { | |
| 13598 | + case s = "s" | |
| 13519 | 13599 | } |
| 13520 | 13600 | } |
| 13521 | 13601 | |
| 13522 | -// MARK: Unowned convenience initializers and mutators | |
| 13602 | +// MARK: S convenience initializers and mutators | |
| 13523 | 13603 | |
| 13524 | -extension Unowned { | |
| 13604 | +extension S { | |
| 13525 | 13605 | init(data: Data) throws { |
| 13526 | - self = try newJSONDecoder().decode(Unowned.self, from: data) | |
| 13606 | + self = try newJSONDecoder().decode(S.self, from: data) | |
| 13527 | 13607 | } |
| 13528 | 13608 | |
| 13529 | 13609 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13538,10 +13618,10 @@ extension Unowned { | ||
| 13538 | 13618 | } |
| 13539 | 13619 | |
| 13540 | 13620 | func with( |
| 13541 | - unownedUnowned: Int? = nil | |
| 13542 | - ) -> Unowned { | |
| 13543 | - return Unowned( | |
| 13544 | - unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 13621 | + s: Int? = nil | |
| 13622 | + ) -> S { | |
| 13623 | + return S( | |
| 13624 | + s: s ?? self.s | |
| 13545 | 13625 | ) |
| 13546 | 13626 | } |
| 13547 | 13627 | |
| @@ -13554,20 +13634,20 @@ extension Unowned { | ||
| 13554 | 13634 | } |
| 13555 | 13635 | } |
| 13556 | 13636 | |
| 13557 | -// MARK: - PrimitiveKind | |
| 13558 | -struct PrimitiveKind: Codable { | |
| 13559 | - let primitiveKind: Int | |
| 13637 | +// MARK: - Sbyte | |
| 13638 | +struct Sbyte: Codable { | |
| 13639 | + let sbyte: Int | |
| 13560 | 13640 | |
| 13561 | 13641 | enum CodingKeys: String, CodingKey { |
| 13562 | - case primitiveKind = "PrimitiveKind" | |
| 13642 | + case sbyte = "sbyte" | |
| 13563 | 13643 | } |
| 13564 | 13644 | } |
| 13565 | 13645 | |
| 13566 | -// MARK: PrimitiveKind convenience initializers and mutators | |
| 13646 | +// MARK: Sbyte convenience initializers and mutators | |
| 13567 | 13647 | |
| 13568 | -extension PrimitiveKind { | |
| 13648 | +extension Sbyte { | |
| 13569 | 13649 | init(data: Data) throws { |
| 13570 | - self = try newJSONDecoder().decode(PrimitiveKind.self, from: data) | |
| 13650 | + self = try newJSONDecoder().decode(Sbyte.self, from: data) | |
| 13571 | 13651 | } |
| 13572 | 13652 | |
| 13573 | 13653 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13582,10 +13662,10 @@ extension PrimitiveKind { | ||
| 13582 | 13662 | } |
| 13583 | 13663 | |
| 13584 | 13664 | func with( |
| 13585 | - primitiveKind: Int? = nil | |
| 13586 | - ) -> PrimitiveKind { | |
| 13587 | - return PrimitiveKind( | |
| 13588 | - primitiveKind: primitiveKind ?? self.primitiveKind | |
| 13665 | + sbyte: Int? = nil | |
| 13666 | + ) -> Sbyte { | |
| 13667 | + return Sbyte( | |
| 13668 | + sbyte: sbyte ?? self.sbyte | |
| 13589 | 13669 | ) |
| 13590 | 13670 | } |
| 13591 | 13671 | |
| @@ -13598,20 +13678,20 @@ extension PrimitiveKind { | ||
| 13598 | 13678 | } |
| 13599 | 13679 | } |
| 13600 | 13680 | |
| 13601 | -// MARK: - Obj5Self | |
| 13602 | -struct Obj5Self: Codable { | |
| 13603 | - let selfSelf: Int | |
| 13681 | +// MARK: - Sealed | |
| 13682 | +struct Sealed: Codable { | |
| 13683 | + let sealed: Int | |
| 13604 | 13684 | |
| 13605 | 13685 | enum CodingKeys: String, CodingKey { |
| 13606 | - case selfSelf = "self" | |
| 13686 | + case sealed = "sealed" | |
| 13607 | 13687 | } |
| 13608 | 13688 | } |
| 13609 | 13689 | |
| 13610 | -// MARK: Obj5Self convenience initializers and mutators | |
| 13690 | +// MARK: Sealed convenience initializers and mutators | |
| 13611 | 13691 | |
| 13612 | -extension Obj5Self { | |
| 13692 | +extension Sealed { | |
| 13613 | 13693 | init(data: Data) throws { |
| 13614 | - self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 13694 | + self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 13615 | 13695 | } |
| 13616 | 13696 | |
| 13617 | 13697 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13626,10 +13706,10 @@ extension Obj5Self { | ||
| 13626 | 13706 | } |
| 13627 | 13707 | |
| 13628 | 13708 | func with( |
| 13629 | - selfSelf: Int? = nil | |
| 13630 | - ) -> Obj5Self { | |
| 13631 | - return Obj5Self( | |
| 13632 | - selfSelf: selfSelf ?? self.selfSelf | |
| 13709 | + sealed: Int? = nil | |
| 13710 | + ) -> Sealed { | |
| 13711 | + return Sealed( | |
| 13712 | + sealed: sealed ?? self.sealed | |
| 13633 | 13713 | ) |
| 13634 | 13714 | } |
| 13635 | 13715 | |
| @@ -13642,20 +13722,20 @@ extension Obj5Self { | ||
| 13642 | 13722 | } |
| 13643 | 13723 | } |
| 13644 | 13724 | |
| 13645 | -// MARK: - TrueClass | |
| 13646 | -struct TrueClass: Codable { | |
| 13647 | - let trueTrue: Int | |
| 13725 | +// MARK: - Sel | |
| 13726 | +struct Sel: Codable { | |
| 13727 | + let sel: Int | |
| 13648 | 13728 | |
| 13649 | 13729 | enum CodingKeys: String, CodingKey { |
| 13650 | - case trueTrue = "true" | |
| 13730 | + case sel = "SEL" | |
| 13651 | 13731 | } |
| 13652 | 13732 | } |
| 13653 | 13733 | |
| 13654 | -// MARK: TrueClass convenience initializers and mutators | |
| 13734 | +// MARK: Sel convenience initializers and mutators | |
| 13655 | 13735 | |
| 13656 | -extension TrueClass { | |
| 13736 | +extension Sel { | |
| 13657 | 13737 | init(data: Data) throws { |
| 13658 | - self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 13738 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 13659 | 13739 | } |
| 13660 | 13740 | |
| 13661 | 13741 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13670,10 +13750,10 @@ extension TrueClass { | ||
| 13670 | 13750 | } |
| 13671 | 13751 | |
| 13672 | 13752 | func with( |
| 13673 | - trueTrue: Int? = nil | |
| 13674 | - ) -> TrueClass { | |
| 13675 | - return TrueClass( | |
| 13676 | - trueTrue: trueTrue ?? self.trueTrue | |
| 13753 | + sel: Int? = nil | |
| 13754 | + ) -> Sel { | |
| 13755 | + return Sel( | |
| 13756 | + sel: sel ?? self.sel | |
| 13677 | 13757 | ) |
| 13678 | 13758 | } |
| 13679 | 13759 | |
| @@ -15534,196 +15614,20 @@ extension Unchecked { | ||
| 15534 | 15614 | } |
| 15535 | 15615 | } |
| 15536 | 15616 | |
| 15537 | -// MARK: - Undefined | |
| 15538 | -struct Undefined: Codable { | |
| 15539 | - let undefined: Int | |
| 15540 | - | |
| 15541 | - enum CodingKeys: String, CodingKey { | |
| 15542 | - case undefined = "undefined" | |
| 15543 | - } | |
| 15544 | -} | |
| 15545 | - | |
| 15546 | -// MARK: Undefined convenience initializers and mutators | |
| 15547 | - | |
| 15548 | -extension Undefined { | |
| 15549 | - init(data: Data) throws { | |
| 15550 | - self = try newJSONDecoder().decode(Undefined.self, from: data) | |
| 15551 | - } | |
| 15552 | - | |
| 15553 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15554 | - guard let data = json.data(using: encoding) else { | |
| 15555 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15556 | - } | |
| 15557 | - try self.init(data: data) | |
| 15558 | - } | |
| 15559 | - | |
| 15560 | - init(fromURL url: URL) throws { | |
| 15561 | - try self.init(data: try Data(contentsOf: url)) | |
| 15562 | - } | |
| 15563 | - | |
| 15564 | - func with( | |
| 15565 | - undefined: Int? = nil | |
| 15566 | - ) -> Undefined { | |
| 15567 | - return Undefined( | |
| 15568 | - undefined: undefined ?? self.undefined | |
| 15569 | - ) | |
| 15570 | - } | |
| 15571 | - | |
| 15572 | - func jsonData() throws -> Data { | |
| 15573 | - return try newJSONEncoder().encode(self) | |
| 15574 | - } | |
| 15575 | - | |
| 15576 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15577 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15578 | - } | |
| 15579 | -} | |
| 15580 | - | |
| 15581 | -// MARK: - Union | |
| 15582 | -struct Union: Codable { | |
| 15583 | - let union: Int | |
| 15584 | - | |
| 15585 | - enum CodingKeys: String, CodingKey { | |
| 15586 | - case union = "union" | |
| 15587 | - } | |
| 15588 | -} | |
| 15589 | - | |
| 15590 | -// MARK: Union convenience initializers and mutators | |
| 15591 | - | |
| 15592 | -extension Union { | |
| 15593 | - init(data: Data) throws { | |
| 15594 | - self = try newJSONDecoder().decode(Union.self, from: data) | |
| 15595 | - } | |
| 15596 | - | |
| 15597 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15598 | - guard let data = json.data(using: encoding) else { | |
| 15599 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15600 | - } | |
| 15601 | - try self.init(data: data) | |
| 15602 | - } | |
| 15603 | - | |
| 15604 | - init(fromURL url: URL) throws { | |
| 15605 | - try self.init(data: try Data(contentsOf: url)) | |
| 15606 | - } | |
| 15607 | - | |
| 15608 | - func with( | |
| 15609 | - union: Int? = nil | |
| 15610 | - ) -> Union { | |
| 15611 | - return Union( | |
| 15612 | - union: union ?? self.union | |
| 15613 | - ) | |
| 15614 | - } | |
| 15615 | - | |
| 15616 | - func jsonData() throws -> Data { | |
| 15617 | - return try newJSONEncoder().encode(self) | |
| 15618 | - } | |
| 15619 | - | |
| 15620 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15621 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15622 | - } | |
| 15623 | -} | |
| 15624 | - | |
| 15625 | -// MARK: - UnmarshalJSON | |
| 15626 | -struct UnmarshalJSON: Codable { | |
| 15627 | - let unmarshalJSON: Int | |
| 15628 | - | |
| 15629 | - enum CodingKeys: String, CodingKey { | |
| 15630 | - case unmarshalJSON = "UnmarshalJSON" | |
| 15631 | - } | |
| 15632 | -} | |
| 15633 | - | |
| 15634 | -// MARK: UnmarshalJSON convenience initializers and mutators | |
| 15635 | - | |
| 15636 | -extension UnmarshalJSON { | |
| 15637 | - init(data: Data) throws { | |
| 15638 | - self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data) | |
| 15639 | - } | |
| 15640 | - | |
| 15641 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15642 | - guard let data = json.data(using: encoding) else { | |
| 15643 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15644 | - } | |
| 15645 | - try self.init(data: data) | |
| 15646 | - } | |
| 15647 | - | |
| 15648 | - init(fromURL url: URL) throws { | |
| 15649 | - try self.init(data: try Data(contentsOf: url)) | |
| 15650 | - } | |
| 15651 | - | |
| 15652 | - func with( | |
| 15653 | - unmarshalJSON: Int? = nil | |
| 15654 | - ) -> UnmarshalJSON { | |
| 15655 | - return UnmarshalJSON( | |
| 15656 | - unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON | |
| 15657 | - ) | |
| 15658 | - } | |
| 15659 | - | |
| 15660 | - func jsonData() throws -> Data { | |
| 15661 | - return try newJSONEncoder().encode(self) | |
| 15662 | - } | |
| 15663 | - | |
| 15664 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15665 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15666 | - } | |
| 15667 | -} | |
| 15668 | - | |
| 15669 | -// MARK: - Unsafe | |
| 15670 | -struct Unsafe: Codable { | |
| 15671 | - let unsafe: Int | |
| 15672 | - | |
| 15673 | - enum CodingKeys: String, CodingKey { | |
| 15674 | - case unsafe = "unsafe" | |
| 15675 | - } | |
| 15676 | -} | |
| 15677 | - | |
| 15678 | -// MARK: Unsafe convenience initializers and mutators | |
| 15679 | - | |
| 15680 | -extension Unsafe { | |
| 15681 | - init(data: Data) throws { | |
| 15682 | - self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 15683 | - } | |
| 15684 | - | |
| 15685 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15686 | - guard let data = json.data(using: encoding) else { | |
| 15687 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15688 | - } | |
| 15689 | - try self.init(data: data) | |
| 15690 | - } | |
| 15691 | - | |
| 15692 | - init(fromURL url: URL) throws { | |
| 15693 | - try self.init(data: try Data(contentsOf: url)) | |
| 15694 | - } | |
| 15695 | - | |
| 15696 | - func with( | |
| 15697 | - unsafe: Int? = nil | |
| 15698 | - ) -> Unsafe { | |
| 15699 | - return Unsafe( | |
| 15700 | - unsafe: unsafe ?? self.unsafe | |
| 15701 | - ) | |
| 15702 | - } | |
| 15703 | - | |
| 15704 | - func jsonData() throws -> Data { | |
| 15705 | - return try newJSONEncoder().encode(self) | |
| 15706 | - } | |
| 15707 | - | |
| 15708 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15709 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15710 | - } | |
| 15711 | -} | |
| 15712 | - | |
| 15713 | -// MARK: - UseSerializers | |
| 15714 | -struct UseSerializers: Codable { | |
| 15715 | - let useSerializers: Int | |
| 15617 | +// MARK: - Undefined | |
| 15618 | +struct Undefined: Codable { | |
| 15619 | + let undefined: Int | |
| 15716 | 15620 | |
| 15717 | 15621 | enum CodingKeys: String, CodingKey { |
| 15718 | - case useSerializers = "UseSerializers" | |
| 15622 | + case undefined = "undefined" | |
| 15719 | 15623 | } |
| 15720 | 15624 | } |
| 15721 | 15625 | |
| 15722 | -// MARK: UseSerializers convenience initializers and mutators | |
| 15626 | +// MARK: Undefined convenience initializers and mutators | |
| 15723 | 15627 | |
| 15724 | -extension UseSerializers { | |
| 15628 | +extension Undefined { | |
| 15725 | 15629 | init(data: Data) throws { |
| 15726 | - self = try newJSONDecoder().decode(UseSerializers.self, from: data) | |
| 15630 | + self = try newJSONDecoder().decode(Undefined.self, from: data) | |
| 15727 | 15631 | } |
| 15728 | 15632 | |
| 15729 | 15633 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15738,10 +15642,10 @@ extension UseSerializers { | ||
| 15738 | 15642 | } |
| 15739 | 15643 | |
| 15740 | 15644 | func with( |
| 15741 | - useSerializers: Int? = nil | |
| 15742 | - ) -> UseSerializers { | |
| 15743 | - return UseSerializers( | |
| 15744 | - useSerializers: useSerializers ?? self.useSerializers | |
| 15645 | + undefined: Int? = nil | |
| 15646 | + ) -> Undefined { | |
| 15647 | + return Undefined( | |
| 15648 | + undefined: undefined ?? self.undefined | |
| 15745 | 15649 | ) |
| 15746 | 15650 | } |
| 15747 | 15651 | |
| @@ -15757,12 +15661,17 @@ extension UseSerializers { | ||
| 15757 | 15661 | // MARK: - Obj6 |
| 15758 | 15662 | struct Obj6: Codable { |
| 15759 | 15663 | let dummy: Int |
| 15664 | + let obj6Unowned: Unowned | |
| 15760 | 15665 | let obj6Var: Var |
| 15761 | 15666 | let obj6Weak: Weak |
| 15762 | 15667 | let obj6Where: Where |
| 15763 | 15668 | let obj6While: While |
| 15764 | 15669 | let obj6WillSet: WillSet |
| 15670 | + let union: Union | |
| 15671 | + let unmarshalJSON: UnmarshalJSON | |
| 15672 | + let unsafe: Unsafe | |
| 15765 | 15673 | let unsigned: Unsigned |
| 15674 | + let useSerializers: UseSerializers | |
| 15766 | 15675 | let ushort: Ushort |
| 15767 | 15676 | let using: Using |
| 15768 | 15677 | let utf8JSONReader: Utf8JSONReader |
| @@ -15780,12 +15689,17 @@ struct Obj6: Codable { | ||
| 15780 | 15689 | |
| 15781 | 15690 | enum CodingKeys: String, CodingKey { |
| 15782 | 15691 | case dummy = "dummy" |
| 15692 | + case obj6Unowned = "unowned" | |
| 15783 | 15693 | case obj6Var = "var" |
| 15784 | 15694 | case obj6Weak = "weak" |
| 15785 | 15695 | case obj6Where = "where" |
| 15786 | 15696 | case obj6While = "while" |
| 15787 | 15697 | case obj6WillSet = "willSet" |
| 15698 | + case union = "union" | |
| 15699 | + case unmarshalJSON = "UnmarshalJSON" | |
| 15700 | + case unsafe = "unsafe" | |
| 15788 | 15701 | case unsigned = "unsigned" |
| 15702 | + case useSerializers = "UseSerializers" | |
| 15789 | 15703 | case ushort = "ushort" |
| 15790 | 15704 | case using = "using" |
| 15791 | 15705 | case utf8JSONReader = "Utf8JsonReader" |
| @@ -15823,12 +15737,17 @@ extension Obj6 { | ||
| 15823 | 15737 | |
| 15824 | 15738 | func with( |
| 15825 | 15739 | dummy: Int? = nil, |
| 15740 | + obj6Unowned: Unowned? = nil, | |
| 15826 | 15741 | obj6Var: Var? = nil, |
| 15827 | 15742 | obj6Weak: Weak? = nil, |
| 15828 | 15743 | obj6Where: Where? = nil, |
| 15829 | 15744 | obj6While: While? = nil, |
| 15830 | 15745 | obj6WillSet: WillSet? = nil, |
| 15746 | + union: Union? = nil, | |
| 15747 | + unmarshalJSON: UnmarshalJSON? = nil, | |
| 15748 | + unsafe: Unsafe? = nil, | |
| 15831 | 15749 | unsigned: Unsigned? = nil, |
| 15750 | + useSerializers: UseSerializers? = nil, | |
| 15832 | 15751 | ushort: Ushort? = nil, |
| 15833 | 15752 | using: Using? = nil, |
| 15834 | 15753 | utf8JSONReader: Utf8JSONReader? = nil, |
| @@ -15846,12 +15765,17 @@ extension Obj6 { | ||
| 15846 | 15765 | ) -> Obj6 { |
| 15847 | 15766 | return Obj6( |
| 15848 | 15767 | dummy: dummy ?? self.dummy, |
| 15768 | + obj6Unowned: obj6Unowned ?? self.obj6Unowned, | |
| 15849 | 15769 | obj6Var: obj6Var ?? self.obj6Var, |
| 15850 | 15770 | obj6Weak: obj6Weak ?? self.obj6Weak, |
| 15851 | 15771 | obj6Where: obj6Where ?? self.obj6Where, |
| 15852 | 15772 | obj6While: obj6While ?? self.obj6While, |
| 15853 | 15773 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 15774 | + union: union ?? self.union, | |
| 15775 | + unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON, | |
| 15776 | + unsafe: unsafe ?? self.unsafe, | |
| 15854 | 15777 | unsigned: unsigned ?? self.unsigned, |
| 15778 | + useSerializers: useSerializers ?? self.useSerializers, | |
| 15855 | 15779 | ushort: ushort ?? self.ushort, |
| 15856 | 15780 | using: using ?? self.using, |
| 15857 | 15781 | utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, |
| @@ -15878,6 +15802,50 @@ extension Obj6 { | ||
| 15878 | 15802 | } |
| 15879 | 15803 | } |
| 15880 | 15804 | |
| 15805 | +// MARK: - Unowned | |
| 15806 | +struct Unowned: Codable { | |
| 15807 | + let unownedUnowned: Int | |
| 15808 | + | |
| 15809 | + enum CodingKeys: String, CodingKey { | |
| 15810 | + case unownedUnowned = "unowned" | |
| 15811 | + } | |
| 15812 | +} | |
| 15813 | + | |
| 15814 | +// MARK: Unowned convenience initializers and mutators | |
| 15815 | + | |
| 15816 | +extension Unowned { | |
| 15817 | + init(data: Data) throws { | |
| 15818 | + self = try newJSONDecoder().decode(Unowned.self, from: data) | |
| 15819 | + } | |
| 15820 | + | |
| 15821 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15822 | + guard let data = json.data(using: encoding) else { | |
| 15823 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15824 | + } | |
| 15825 | + try self.init(data: data) | |
| 15826 | + } | |
| 15827 | + | |
| 15828 | + init(fromURL url: URL) throws { | |
| 15829 | + try self.init(data: try Data(contentsOf: url)) | |
| 15830 | + } | |
| 15831 | + | |
| 15832 | + func with( | |
| 15833 | + unownedUnowned: Int? = nil | |
| 15834 | + ) -> Unowned { | |
| 15835 | + return Unowned( | |
| 15836 | + unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 15837 | + ) | |
| 15838 | + } | |
| 15839 | + | |
| 15840 | + func jsonData() throws -> Data { | |
| 15841 | + return try newJSONEncoder().encode(self) | |
| 15842 | + } | |
| 15843 | + | |
| 15844 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15845 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15846 | + } | |
| 15847 | +} | |
| 15848 | + | |
| 15881 | 15849 | // MARK: - Var |
| 15882 | 15850 | struct Var: Codable { |
| 15883 | 15851 | let varVar: Int |
| @@ -16098,6 +16066,138 @@ extension WillSet { | ||
| 16098 | 16066 | } |
| 16099 | 16067 | } |
| 16100 | 16068 | |
| 16069 | +// MARK: - Union | |
| 16070 | +struct Union: Codable { | |
| 16071 | + let union: Int | |
| 16072 | + | |
| 16073 | + enum CodingKeys: String, CodingKey { | |
| 16074 | + case union = "union" | |
| 16075 | + } | |
| 16076 | +} | |
| 16077 | + | |
| 16078 | +// MARK: Union convenience initializers and mutators | |
| 16079 | + | |
| 16080 | +extension Union { | |
| 16081 | + init(data: Data) throws { | |
| 16082 | + self = try newJSONDecoder().decode(Union.self, from: data) | |
| 16083 | + } | |
| 16084 | + | |
| 16085 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16086 | + guard let data = json.data(using: encoding) else { | |
| 16087 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16088 | + } | |
| 16089 | + try self.init(data: data) | |
| 16090 | + } | |
| 16091 | + | |
| 16092 | + init(fromURL url: URL) throws { | |
| 16093 | + try self.init(data: try Data(contentsOf: url)) | |
| 16094 | + } | |
| 16095 | + | |
| 16096 | + func with( | |
| 16097 | + union: Int? = nil | |
| 16098 | + ) -> Union { | |
| 16099 | + return Union( | |
| 16100 | + union: union ?? self.union | |
| 16101 | + ) | |
| 16102 | + } | |
| 16103 | + | |
| 16104 | + func jsonData() throws -> Data { | |
| 16105 | + return try newJSONEncoder().encode(self) | |
| 16106 | + } | |
| 16107 | + | |
| 16108 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16109 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16110 | + } | |
| 16111 | +} | |
| 16112 | + | |
| 16113 | +// MARK: - UnmarshalJSON | |
| 16114 | +struct UnmarshalJSON: Codable { | |
| 16115 | + let unmarshalJSON: Int | |
| 16116 | + | |
| 16117 | + enum CodingKeys: String, CodingKey { | |
| 16118 | + case unmarshalJSON = "UnmarshalJSON" | |
| 16119 | + } | |
| 16120 | +} | |
| 16121 | + | |
| 16122 | +// MARK: UnmarshalJSON convenience initializers and mutators | |
| 16123 | + | |
| 16124 | +extension UnmarshalJSON { | |
| 16125 | + init(data: Data) throws { | |
| 16126 | + self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data) | |
| 16127 | + } | |
| 16128 | + | |
| 16129 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16130 | + guard let data = json.data(using: encoding) else { | |
| 16131 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16132 | + } | |
| 16133 | + try self.init(data: data) | |
| 16134 | + } | |
| 16135 | + | |
| 16136 | + init(fromURL url: URL) throws { | |
| 16137 | + try self.init(data: try Data(contentsOf: url)) | |
| 16138 | + } | |
| 16139 | + | |
| 16140 | + func with( | |
| 16141 | + unmarshalJSON: Int? = nil | |
| 16142 | + ) -> UnmarshalJSON { | |
| 16143 | + return UnmarshalJSON( | |
| 16144 | + unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON | |
| 16145 | + ) | |
| 16146 | + } | |
| 16147 | + | |
| 16148 | + func jsonData() throws -> Data { | |
| 16149 | + return try newJSONEncoder().encode(self) | |
| 16150 | + } | |
| 16151 | + | |
| 16152 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16153 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16154 | + } | |
| 16155 | +} | |
| 16156 | + | |
| 16157 | +// MARK: - Unsafe | |
| 16158 | +struct Unsafe: Codable { | |
| 16159 | + let unsafe: Int | |
| 16160 | + | |
| 16161 | + enum CodingKeys: String, CodingKey { | |
| 16162 | + case unsafe = "unsafe" | |
| 16163 | + } | |
| 16164 | +} | |
| 16165 | + | |
| 16166 | +// MARK: Unsafe convenience initializers and mutators | |
| 16167 | + | |
| 16168 | +extension Unsafe { | |
| 16169 | + init(data: Data) throws { | |
| 16170 | + self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 16171 | + } | |
| 16172 | + | |
| 16173 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16174 | + guard let data = json.data(using: encoding) else { | |
| 16175 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16176 | + } | |
| 16177 | + try self.init(data: data) | |
| 16178 | + } | |
| 16179 | + | |
| 16180 | + init(fromURL url: URL) throws { | |
| 16181 | + try self.init(data: try Data(contentsOf: url)) | |
| 16182 | + } | |
| 16183 | + | |
| 16184 | + func with( | |
| 16185 | + unsafe: Int? = nil | |
| 16186 | + ) -> Unsafe { | |
| 16187 | + return Unsafe( | |
| 16188 | + unsafe: unsafe ?? self.unsafe | |
| 16189 | + ) | |
| 16190 | + } | |
| 16191 | + | |
| 16192 | + func jsonData() throws -> Data { | |
| 16193 | + return try newJSONEncoder().encode(self) | |
| 16194 | + } | |
| 16195 | + | |
| 16196 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16197 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16198 | + } | |
| 16199 | +} | |
| 16200 | + | |
| 16101 | 16201 | // MARK: - Unsigned |
| 16102 | 16202 | struct Unsigned: Codable { |
| 16103 | 16203 | let unsigned: Int |
| @@ -16142,6 +16242,50 @@ extension Unsigned { | ||
| 16142 | 16242 | } |
| 16143 | 16243 | } |
| 16144 | 16244 | |
| 16245 | +// MARK: - UseSerializers | |
| 16246 | +struct UseSerializers: Codable { | |
| 16247 | + let useSerializers: Int | |
| 16248 | + | |
| 16249 | + enum CodingKeys: String, CodingKey { | |
| 16250 | + case useSerializers = "UseSerializers" | |
| 16251 | + } | |
| 16252 | +} | |
| 16253 | + | |
| 16254 | +// MARK: UseSerializers convenience initializers and mutators | |
| 16255 | + | |
| 16256 | +extension UseSerializers { | |
| 16257 | + init(data: Data) throws { | |
| 16258 | + self = try newJSONDecoder().decode(UseSerializers.self, from: data) | |
| 16259 | + } | |
| 16260 | + | |
| 16261 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16262 | + guard let data = json.data(using: encoding) else { | |
| 16263 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16264 | + } | |
| 16265 | + try self.init(data: data) | |
| 16266 | + } | |
| 16267 | + | |
| 16268 | + init(fromURL url: URL) throws { | |
| 16269 | + try self.init(data: try Data(contentsOf: url)) | |
| 16270 | + } | |
| 16271 | + | |
| 16272 | + func with( | |
| 16273 | + useSerializers: Int? = nil | |
| 16274 | + ) -> UseSerializers { | |
| 16275 | + return UseSerializers( | |
| 16276 | + useSerializers: useSerializers ?? self.useSerializers | |
| 16277 | + ) | |
| 16278 | + } | |
| 16279 | + | |
| 16280 | + func jsonData() throws -> Data { | |
| 16281 | + return try newJSONEncoder().encode(self) | |
| 16282 | + } | |
| 16283 | + | |
| 16284 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16285 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16286 | + } | |
| 16287 | +} | |
| 16288 | + | |
| 16145 | 16289 | // MARK: - Ushort |
| 16146 | 16290 | struct Ushort: Codable { |
| 16147 | 16291 | let ushort: Int |
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+922 −760
| @@ -7137,6 +7137,7 @@ extension FalseClass { | ||
| 7137 | 7137 | let jsonWriter: JSONWriter |
| 7138 | 7138 | let lambda: Lambda |
| 7139 | 7139 | let list: List |
| 7140 | + let localDate: LocalDate | |
| 7140 | 7141 | let locale: LocaleClass |
| 7141 | 7142 | let lock: Lock |
| 7142 | 7143 | let long: Long |
| @@ -7150,7 +7151,6 @@ extension FalseClass { | ||
| 7150 | 7151 | let native: Native |
| 7151 | 7152 | let new: New |
| 7152 | 7153 | let newtonsoft: Newtonsoft |
| 7153 | - let no: No | |
| 7154 | 7154 | let obj3Guard: Guard |
| 7155 | 7155 | let obj3If: If |
| 7156 | 7156 | let obj3Import: Import |
| @@ -7166,7 +7166,6 @@ extension FalseClass { | ||
| 7166 | 7166 | let obj3Left: Left |
| 7167 | 7167 | let obj3Let: Let |
| 7168 | 7168 | let obj3Mutating: Mutating |
| 7169 | - let obj3Nil: Nil | |
| 7170 | 7169 | |
| 7171 | 7170 | enum CodingKeys: String, CodingKey { |
| 7172 | 7171 | case dummy = "dummy" |
| @@ -7205,6 +7204,7 @@ extension FalseClass { | ||
| 7205 | 7204 | case jsonWriter = "json_writer" |
| 7206 | 7205 | case lambda = "lambda" |
| 7207 | 7206 | case list = "list" |
| 7207 | + case localDate = "LocalDate" | |
| 7208 | 7208 | case locale = "Locale" |
| 7209 | 7209 | case lock = "lock" |
| 7210 | 7210 | case long = "long" |
| @@ -7218,7 +7218,6 @@ extension FalseClass { | ||
| 7218 | 7218 | case native = "native" |
| 7219 | 7219 | case new = "new" |
| 7220 | 7220 | case newtonsoft = "newtonsoft" |
| 7221 | - case no = "NO" | |
| 7222 | 7221 | case obj3Guard = "guard" |
| 7223 | 7222 | case obj3If = "if" |
| 7224 | 7223 | case obj3Import = "import" |
| @@ -7234,10 +7233,9 @@ extension FalseClass { | ||
| 7234 | 7233 | case obj3Left = "left" |
| 7235 | 7234 | case obj3Let = "let" |
| 7236 | 7235 | case obj3Mutating = "mutating" |
| 7237 | - case obj3Nil = "nil" | |
| 7238 | 7236 | } |
| 7239 | 7237 | |
| 7240 | - init(dummy: Int, goto: Goto, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, interface: Interface, isoDateTimeOffsetConverter: ISODateTimeOffsetConverter, iterable: Iterable, jdec: Jdec, jenc: Jenc, jpipe: Jpipe, jsonAny: JSONAnyClass, jsonCodingKey: JSONCodingKeyClass, jsonConverter: JSONConverter, jsonDecoder: JSONDecoderClass, jsonEncoder: JSONEncoderClass, jsonException: JSONException, jsonGenerator: JSONGenerator, jsonNode: JSONNode, jsonNull: JSONNullClass, jsonParser: JSONParser, jsonReader: JSONReader, jsonSerializer: JSONSerializer, jsonToken: JSONToken, jsonTokenType: JSONTokenType, jsonWriter: JSONWriter, lambda: Lambda, list: List, locale: LocaleClass, lock: Lock, long: Long, map: Map, mapEntry: MapEntry, marshalJSON: MarshalJSON, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, obj3Guard: Guard, obj3If: If, obj3Import: Import, obj3In: In, obj3Indirect: Indirect, obj3Infix: Infix, obj3Init: Init, obj3Inout: Inout, obj3Internal: Internal, obj3Is: Is, obj3JSON: JSON, obj3Lazy: Lazy, obj3Left: Left, obj3Let: Let, obj3Mutating: Mutating, obj3Nil: Nil) { | |
| 7238 | + init(dummy: Int, goto: Goto, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, interface: Interface, isoDateTimeOffsetConverter: ISODateTimeOffsetConverter, iterable: Iterable, jdec: Jdec, jenc: Jenc, jpipe: Jpipe, jsonAny: JSONAnyClass, jsonCodingKey: JSONCodingKeyClass, jsonConverter: JSONConverter, jsonDecoder: JSONDecoderClass, jsonEncoder: JSONEncoderClass, jsonException: JSONException, jsonGenerator: JSONGenerator, jsonNode: JSONNode, jsonNull: JSONNullClass, jsonParser: JSONParser, jsonReader: JSONReader, jsonSerializer: JSONSerializer, jsonToken: JSONToken, jsonTokenType: JSONTokenType, jsonWriter: JSONWriter, lambda: Lambda, list: List, localDate: LocalDate, locale: LocaleClass, lock: Lock, long: Long, map: Map, mapEntry: MapEntry, marshalJSON: MarshalJSON, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, obj3Guard: Guard, obj3If: If, obj3Import: Import, obj3In: In, obj3Indirect: Indirect, obj3Infix: Infix, obj3Init: Init, obj3Inout: Inout, obj3Internal: Internal, obj3Is: Is, obj3JSON: JSON, obj3Lazy: Lazy, obj3Left: Left, obj3Let: Let, obj3Mutating: Mutating) { | |
| 7241 | 7239 | self.dummy = dummy |
| 7242 | 7240 | self.goto = goto |
| 7243 | 7241 | self.hasOwnProperty = hasOwnProperty |
| @@ -7274,6 +7272,7 @@ extension FalseClass { | ||
| 7274 | 7272 | self.jsonWriter = jsonWriter |
| 7275 | 7273 | self.lambda = lambda |
| 7276 | 7274 | self.list = list |
| 7275 | + self.localDate = localDate | |
| 7277 | 7276 | self.locale = locale |
| 7278 | 7277 | self.lock = lock |
| 7279 | 7278 | self.long = long |
| @@ -7287,7 +7286,6 @@ extension FalseClass { | ||
| 7287 | 7286 | self.native = native |
| 7288 | 7287 | self.new = new |
| 7289 | 7288 | self.newtonsoft = newtonsoft |
| 7290 | - self.no = no | |
| 7291 | 7289 | self.obj3Guard = obj3Guard |
| 7292 | 7290 | self.obj3If = obj3If |
| 7293 | 7291 | self.obj3Import = obj3Import |
| @@ -7303,7 +7301,6 @@ extension FalseClass { | ||
| 7303 | 7301 | self.obj3Left = obj3Left |
| 7304 | 7302 | self.obj3Let = obj3Let |
| 7305 | 7303 | self.obj3Mutating = obj3Mutating |
| 7306 | - self.obj3Nil = obj3Nil | |
| 7307 | 7304 | } |
| 7308 | 7305 | } |
| 7309 | 7306 | |
| @@ -7312,7 +7309,7 @@ extension FalseClass { | ||
| 7312 | 7309 | extension Obj3 { |
| 7313 | 7310 | convenience init(data: Data) throws { |
| 7314 | 7311 | let me = try newJSONDecoder().decode(Obj3.self, from: data) |
| 7315 | - self.init(dummy: me.dummy, goto: me.goto, hasOwnProperty: me.hasOwnProperty, hashCode: me.hashCode, hashable: me.hashable, hasher: me.hasher, id: me.id, imp: me.imp, implements: me.implements, implicit: me.implicit, inline: me.inline, instanceof: me.instanceof, int: me.int, interface: me.interface, isoDateTimeOffsetConverter: me.isoDateTimeOffsetConverter, iterable: me.iterable, jdec: me.jdec, jenc: me.jenc, jpipe: me.jpipe, jsonAny: me.jsonAny, jsonCodingKey: me.jsonCodingKey, jsonConverter: me.jsonConverter, jsonDecoder: me.jsonDecoder, jsonEncoder: me.jsonEncoder, jsonException: me.jsonException, jsonGenerator: me.jsonGenerator, jsonNode: me.jsonNode, jsonNull: me.jsonNull, jsonParser: me.jsonParser, jsonReader: me.jsonReader, jsonSerializer: me.jsonSerializer, jsonToken: me.jsonToken, jsonTokenType: me.jsonTokenType, jsonWriter: me.jsonWriter, lambda: me.lambda, list: me.list, locale: me.locale, lock: me.lock, long: me.long, map: me.map, mapEntry: me.mapEntry, marshalJSON: me.marshalJSON, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, obj3Guard: me.obj3Guard, obj3If: me.obj3If, obj3Import: me.obj3Import, obj3In: me.obj3In, obj3Indirect: me.obj3Indirect, obj3Infix: me.obj3Infix, obj3Init: me.obj3Init, obj3Inout: me.obj3Inout, obj3Internal: me.obj3Internal, obj3Is: me.obj3Is, obj3JSON: me.obj3JSON, obj3Lazy: me.obj3Lazy, obj3Left: me.obj3Left, obj3Let: me.obj3Let, obj3Mutating: me.obj3Mutating, obj3Nil: me.obj3Nil) | |
| 7312 | + self.init(dummy: me.dummy, goto: me.goto, hasOwnProperty: me.hasOwnProperty, hashCode: me.hashCode, hashable: me.hashable, hasher: me.hasher, id: me.id, imp: me.imp, implements: me.implements, implicit: me.implicit, inline: me.inline, instanceof: me.instanceof, int: me.int, interface: me.interface, isoDateTimeOffsetConverter: me.isoDateTimeOffsetConverter, iterable: me.iterable, jdec: me.jdec, jenc: me.jenc, jpipe: me.jpipe, jsonAny: me.jsonAny, jsonCodingKey: me.jsonCodingKey, jsonConverter: me.jsonConverter, jsonDecoder: me.jsonDecoder, jsonEncoder: me.jsonEncoder, jsonException: me.jsonException, jsonGenerator: me.jsonGenerator, jsonNode: me.jsonNode, jsonNull: me.jsonNull, jsonParser: me.jsonParser, jsonReader: me.jsonReader, jsonSerializer: me.jsonSerializer, jsonToken: me.jsonToken, jsonTokenType: me.jsonTokenType, jsonWriter: me.jsonWriter, lambda: me.lambda, list: me.list, localDate: me.localDate, locale: me.locale, lock: me.lock, long: me.long, map: me.map, mapEntry: me.mapEntry, marshalJSON: me.marshalJSON, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, obj3Guard: me.obj3Guard, obj3If: me.obj3If, obj3Import: me.obj3Import, obj3In: me.obj3In, obj3Indirect: me.obj3Indirect, obj3Infix: me.obj3Infix, obj3Init: me.obj3Init, obj3Inout: me.obj3Inout, obj3Internal: me.obj3Internal, obj3Is: me.obj3Is, obj3JSON: me.obj3JSON, obj3Lazy: me.obj3Lazy, obj3Left: me.obj3Left, obj3Let: me.obj3Let, obj3Mutating: me.obj3Mutating) | |
| 7316 | 7313 | } |
| 7317 | 7314 | |
| 7318 | 7315 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -7363,6 +7360,7 @@ extension Obj3 { | ||
| 7363 | 7360 | jsonWriter: JSONWriter? = nil, |
| 7364 | 7361 | lambda: Lambda? = nil, |
| 7365 | 7362 | list: List? = nil, |
| 7363 | + localDate: LocalDate? = nil, | |
| 7366 | 7364 | locale: LocaleClass? = nil, |
| 7367 | 7365 | lock: Lock? = nil, |
| 7368 | 7366 | long: Long? = nil, |
| @@ -7376,7 +7374,6 @@ extension Obj3 { | ||
| 7376 | 7374 | native: Native? = nil, |
| 7377 | 7375 | new: New? = nil, |
| 7378 | 7376 | newtonsoft: Newtonsoft? = nil, |
| 7379 | - no: No? = nil, | |
| 7380 | 7377 | obj3Guard: Guard? = nil, |
| 7381 | 7378 | obj3If: If? = nil, |
| 7382 | 7379 | obj3Import: Import? = nil, |
| @@ -7391,8 +7388,7 @@ extension Obj3 { | ||
| 7391 | 7388 | obj3Lazy: Lazy? = nil, |
| 7392 | 7389 | obj3Left: Left? = nil, |
| 7393 | 7390 | obj3Let: Let? = nil, |
| 7394 | - obj3Mutating: Mutating? = nil, | |
| 7395 | - obj3Nil: Nil? = nil | |
| 7391 | + obj3Mutating: Mutating? = nil | |
| 7396 | 7392 | ) -> Obj3 { |
| 7397 | 7393 | return Obj3( |
| 7398 | 7394 | dummy: dummy ?? self.dummy, |
| @@ -7431,6 +7427,7 @@ extension Obj3 { | ||
| 7431 | 7427 | jsonWriter: jsonWriter ?? self.jsonWriter, |
| 7432 | 7428 | lambda: lambda ?? self.lambda, |
| 7433 | 7429 | list: list ?? self.list, |
| 7430 | + localDate: localDate ?? self.localDate, | |
| 7434 | 7431 | locale: locale ?? self.locale, |
| 7435 | 7432 | lock: lock ?? self.lock, |
| 7436 | 7433 | long: long ?? self.long, |
| @@ -7444,7 +7441,6 @@ extension Obj3 { | ||
| 7444 | 7441 | native: native ?? self.native, |
| 7445 | 7442 | new: new ?? self.new, |
| 7446 | 7443 | newtonsoft: newtonsoft ?? self.newtonsoft, |
| 7447 | - no: no ?? self.no, | |
| 7448 | 7444 | obj3Guard: obj3Guard ?? self.obj3Guard, |
| 7449 | 7445 | obj3If: obj3If ?? self.obj3If, |
| 7450 | 7446 | obj3Import: obj3Import ?? self.obj3Import, |
| @@ -7459,8 +7455,7 @@ extension Obj3 { | ||
| 7459 | 7455 | obj3Lazy: obj3Lazy ?? self.obj3Lazy, |
| 7460 | 7456 | obj3Left: obj3Left ?? self.obj3Left, |
| 7461 | 7457 | obj3Let: obj3Let ?? self.obj3Let, |
| 7462 | - obj3Mutating: obj3Mutating ?? self.obj3Mutating, | |
| 7463 | - obj3Nil: obj3Nil ?? self.obj3Nil | |
| 7458 | + obj3Mutating: obj3Mutating ?? self.obj3Mutating | |
| 7464 | 7459 | ) |
| 7465 | 7460 | } |
| 7466 | 7461 | |
| @@ -9188,6 +9183,55 @@ extension List { | ||
| 9188 | 9183 | } |
| 9189 | 9184 | } |
| 9190 | 9185 | |
| 9186 | +// MARK: - LocalDate | |
| 9187 | +@objcMembers class LocalDate: NSObject, Codable { | |
| 9188 | + let localDate: Int | |
| 9189 | + | |
| 9190 | + enum CodingKeys: String, CodingKey { | |
| 9191 | + case localDate = "LocalDate" | |
| 9192 | + } | |
| 9193 | + | |
| 9194 | + init(localDate: Int) { | |
| 9195 | + self.localDate = localDate | |
| 9196 | + } | |
| 9197 | +} | |
| 9198 | + | |
| 9199 | +// MARK: LocalDate convenience initializers and mutators | |
| 9200 | + | |
| 9201 | +extension LocalDate { | |
| 9202 | + convenience init(data: Data) throws { | |
| 9203 | + let me = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 9204 | + self.init(localDate: me.localDate) | |
| 9205 | + } | |
| 9206 | + | |
| 9207 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9208 | + guard let data = json.data(using: encoding) else { | |
| 9209 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9210 | + } | |
| 9211 | + try self.init(data: data) | |
| 9212 | + } | |
| 9213 | + | |
| 9214 | + convenience init(fromURL url: URL) throws { | |
| 9215 | + try self.init(data: try Data(contentsOf: url)) | |
| 9216 | + } | |
| 9217 | + | |
| 9218 | + func with( | |
| 9219 | + localDate: Int? = nil | |
| 9220 | + ) -> LocalDate { | |
| 9221 | + return LocalDate( | |
| 9222 | + localDate: localDate ?? self.localDate | |
| 9223 | + ) | |
| 9224 | + } | |
| 9225 | + | |
| 9226 | + func jsonData() throws -> Data { | |
| 9227 | + return try newJSONEncoder().encode(self) | |
| 9228 | + } | |
| 9229 | + | |
| 9230 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9231 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 9232 | + } | |
| 9233 | +} | |
| 9234 | + | |
| 9191 | 9235 | // MARK: - LocaleClass |
| 9192 | 9236 | @objcMembers class LocaleClass: NSObject, Codable { |
| 9193 | 9237 | let locale: Int |
| @@ -9825,55 +9869,6 @@ extension Newtonsoft { | ||
| 9825 | 9869 | } |
| 9826 | 9870 | } |
| 9827 | 9871 | |
| 9828 | -// MARK: - No | |
| 9829 | -@objcMembers class No: NSObject, Codable { | |
| 9830 | - let no: Int | |
| 9831 | - | |
| 9832 | - enum CodingKeys: String, CodingKey { | |
| 9833 | - case no = "NO" | |
| 9834 | - } | |
| 9835 | - | |
| 9836 | - init(no: Int) { | |
| 9837 | - self.no = no | |
| 9838 | - } | |
| 9839 | -} | |
| 9840 | - | |
| 9841 | -// MARK: No convenience initializers and mutators | |
| 9842 | - | |
| 9843 | -extension No { | |
| 9844 | - convenience init(data: Data) throws { | |
| 9845 | - let me = try newJSONDecoder().decode(No.self, from: data) | |
| 9846 | - self.init(no: me.no) | |
| 9847 | - } | |
| 9848 | - | |
| 9849 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9850 | - guard let data = json.data(using: encoding) else { | |
| 9851 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9852 | - } | |
| 9853 | - try self.init(data: data) | |
| 9854 | - } | |
| 9855 | - | |
| 9856 | - convenience init(fromURL url: URL) throws { | |
| 9857 | - try self.init(data: try Data(contentsOf: url)) | |
| 9858 | - } | |
| 9859 | - | |
| 9860 | - func with( | |
| 9861 | - no: Int? = nil | |
| 9862 | - ) -> No { | |
| 9863 | - return No( | |
| 9864 | - no: no ?? self.no | |
| 9865 | - ) | |
| 9866 | - } | |
| 9867 | - | |
| 9868 | - func jsonData() throws -> Data { | |
| 9869 | - return try newJSONEncoder().encode(self) | |
| 9870 | - } | |
| 9871 | - | |
| 9872 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9873 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 9874 | - } | |
| 9875 | -} | |
| 9876 | - | |
| 9877 | 9872 | // MARK: - Guard |
| 9878 | 9873 | @objcMembers class Guard: NSObject, Codable { |
| 9879 | 9874 | let guardGuard: Int |
| @@ -10609,58 +10604,10 @@ extension Mutating { | ||
| 10609 | 10604 | } |
| 10610 | 10605 | } |
| 10611 | 10606 | |
| 10612 | -// MARK: - Nil | |
| 10613 | -@objcMembers class Nil: NSObject, Codable { | |
| 10614 | - let nilNil: Int | |
| 10615 | - | |
| 10616 | - enum CodingKeys: String, CodingKey { | |
| 10617 | - case nilNil = "nil" | |
| 10618 | - } | |
| 10619 | - | |
| 10620 | - init(nilNil: Int) { | |
| 10621 | - self.nilNil = nilNil | |
| 10622 | - } | |
| 10623 | -} | |
| 10624 | - | |
| 10625 | -// MARK: Nil convenience initializers and mutators | |
| 10626 | - | |
| 10627 | -extension Nil { | |
| 10628 | - convenience init(data: Data) throws { | |
| 10629 | - let me = try newJSONDecoder().decode(Nil.self, from: data) | |
| 10630 | - self.init(nilNil: me.nilNil) | |
| 10631 | - } | |
| 10632 | - | |
| 10633 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10634 | - guard let data = json.data(using: encoding) else { | |
| 10635 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 10636 | - } | |
| 10637 | - try self.init(data: data) | |
| 10638 | - } | |
| 10639 | - | |
| 10640 | - convenience init(fromURL url: URL) throws { | |
| 10641 | - try self.init(data: try Data(contentsOf: url)) | |
| 10642 | - } | |
| 10643 | - | |
| 10644 | - func with( | |
| 10645 | - nilNil: Int? = nil | |
| 10646 | - ) -> Nil { | |
| 10647 | - return Nil( | |
| 10648 | - nilNil: nilNil ?? self.nilNil | |
| 10649 | - ) | |
| 10650 | - } | |
| 10651 | - | |
| 10652 | - func jsonData() throws -> Data { | |
| 10653 | - return try newJSONEncoder().encode(self) | |
| 10654 | - } | |
| 10655 | - | |
| 10656 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 10657 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 10658 | - } | |
| 10659 | -} | |
| 10660 | - | |
| 10661 | 10607 | // MARK: - Obj4 |
| 10662 | 10608 | @objcMembers class Obj4: NSObject, Codable { |
| 10663 | 10609 | let dummy: Int |
| 10610 | + let no: No | |
| 10664 | 10611 | let noSuchMethod: NoSuchMethod |
| 10665 | 10612 | let noexcept: Noexcept |
| 10666 | 10613 | let nonatomic: Nonatomic |
| @@ -10674,6 +10621,7 @@ extension Nil { | ||
| 10674 | 10621 | let null: Null |
| 10675 | 10622 | let nullptr: Nullptr |
| 10676 | 10623 | let number: Number |
| 10624 | + let obj4Nil: Nil | |
| 10677 | 10625 | let obj4None: NoneClass |
| 10678 | 10626 | let obj4Nonmutating: Nonmutating |
| 10679 | 10627 | let obj4Null: NullClass |
| @@ -10696,6 +10644,8 @@ extension Nil { | ||
| 10696 | 10644 | let object: Object |
| 10697 | 10645 | let objectMapper: ObjectMapper |
| 10698 | 10646 | let of: Of |
| 10647 | + let offsetDateTime: OffsetDateTime | |
| 10648 | + let offsetTime: OffsetTime | |
| 10699 | 10649 | let oneway: Oneway |
| 10700 | 10650 | let or: Or |
| 10701 | 10651 | let orEq: OrEq |
| @@ -10721,13 +10671,10 @@ extension Nil { | ||
| 10721 | 10671 | let requires: Requires |
| 10722 | 10672 | let restrict: Restrict |
| 10723 | 10673 | let runtimeType: RuntimeType |
| 10724 | - let s: S | |
| 10725 | - let sbyte: Sbyte | |
| 10726 | - let sealed: Sealed | |
| 10727 | - let sel: Sel | |
| 10728 | 10674 | |
| 10729 | 10675 | enum CodingKeys: String, CodingKey { |
| 10730 | 10676 | case dummy = "dummy" |
| 10677 | + case no = "NO" | |
| 10731 | 10678 | case noSuchMethod = "noSuchMethod" |
| 10732 | 10679 | case noexcept = "noexcept" |
| 10733 | 10680 | case nonatomic = "nonatomic" |
| @@ -10741,6 +10688,7 @@ extension Nil { | ||
| 10741 | 10688 | case null = "NULL" |
| 10742 | 10689 | case nullptr = "nullptr" |
| 10743 | 10690 | case number = "number" |
| 10691 | + case obj4Nil = "nil" | |
| 10744 | 10692 | case obj4None = "none" |
| 10745 | 10693 | case obj4Nonmutating = "nonmutating" |
| 10746 | 10694 | case obj4Null = "null" |
| @@ -10763,6 +10711,8 @@ extension Nil { | ||
| 10763 | 10711 | case object = "object" |
| 10764 | 10712 | case objectMapper = "ObjectMapper" |
| 10765 | 10713 | case of = "of" |
| 10714 | + case offsetDateTime = "OffsetDateTime" | |
| 10715 | + case offsetTime = "OffsetTime" | |
| 10766 | 10716 | case oneway = "oneway" |
| 10767 | 10717 | case or = "or" |
| 10768 | 10718 | case orEq = "or_eq" |
| @@ -10788,14 +10738,11 @@ extension Nil { | ||
| 10788 | 10738 | case requires = "requires" |
| 10789 | 10739 | case restrict = "restrict" |
| 10790 | 10740 | case runtimeType = "runtimeType" |
| 10791 | - case s = "s" | |
| 10792 | - case sbyte = "sbyte" | |
| 10793 | - case sealed = "sealed" | |
| 10794 | - case sel = "SEL" | |
| 10795 | 10741 | } |
| 10796 | 10742 | |
| 10797 | - init(dummy: Int, noSuchMethod: NoSuchMethod, noexcept: Noexcept, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullptr: Nullptr, number: Number, obj4None: NoneClass, obj4Nonmutating: Nonmutating, obj4Null: NullClass, obj4Open: Open, obj4Operator: Operator, obj4Optional: Optional, obj4Override: Override, obj4Postfix: Postfix, obj4Precedence: Precedence, obj4Prefix: Prefix, obj4Private: Private, obj4Protocol: ProtocolClass, obj4Public: Public, obj4Repeat: Repeat, obj4Required: Required, obj4Retain: Retain, obj4Rethrows: Rethrows, obj4Return: Return, obj4Right: Right, object: Object, objectMapper: ObjectMapper, of: Of, oneway: Oneway, or: Or, orEq: OrEq, out: Out, package: Package, params: Params, pass: Pass, port: Port, print: Print, printMembers: PrintMembers, printf: Printf, protected: Protected, purpleProtocol: Obj4Protocol, quicktype: Quicktype, raise: Raise, range: Range, readonly: Readonly, ref: Ref, regExp: RegExp, register: Register, reinterpretCast: ReinterpretCast, require: Require, requires: Requires, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel) { | |
| 10743 | + init(dummy: Int, no: No, noSuchMethod: NoSuchMethod, noexcept: Noexcept, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullptr: Nullptr, number: Number, obj4Nil: Nil, obj4None: NoneClass, obj4Nonmutating: Nonmutating, obj4Null: NullClass, obj4Open: Open, obj4Operator: Operator, obj4Optional: Optional, obj4Override: Override, obj4Postfix: Postfix, obj4Precedence: Precedence, obj4Prefix: Prefix, obj4Private: Private, obj4Protocol: ProtocolClass, obj4Public: Public, obj4Repeat: Repeat, obj4Required: Required, obj4Retain: Retain, obj4Rethrows: Rethrows, obj4Return: Return, obj4Right: Right, object: Object, objectMapper: ObjectMapper, of: Of, offsetDateTime: OffsetDateTime, offsetTime: OffsetTime, oneway: Oneway, or: Or, orEq: OrEq, out: Out, package: Package, params: Params, pass: Pass, port: Port, print: Print, printMembers: PrintMembers, printf: Printf, protected: Protected, purpleProtocol: Obj4Protocol, quicktype: Quicktype, raise: Raise, range: Range, readonly: Readonly, ref: Ref, regExp: RegExp, register: Register, reinterpretCast: ReinterpretCast, require: Require, requires: Requires, restrict: Restrict, runtimeType: RuntimeType) { | |
| 10798 | 10744 | self.dummy = dummy |
| 10745 | + self.no = no | |
| 10799 | 10746 | self.noSuchMethod = noSuchMethod |
| 10800 | 10747 | self.noexcept = noexcept |
| 10801 | 10748 | self.nonatomic = nonatomic |
| @@ -10809,6 +10756,7 @@ extension Nil { | ||
| 10809 | 10756 | self.null = null |
| 10810 | 10757 | self.nullptr = nullptr |
| 10811 | 10758 | self.number = number |
| 10759 | + self.obj4Nil = obj4Nil | |
| 10812 | 10760 | self.obj4None = obj4None |
| 10813 | 10761 | self.obj4Nonmutating = obj4Nonmutating |
| 10814 | 10762 | self.obj4Null = obj4Null |
| @@ -10831,6 +10779,8 @@ extension Nil { | ||
| 10831 | 10779 | self.object = object |
| 10832 | 10780 | self.objectMapper = objectMapper |
| 10833 | 10781 | self.of = of |
| 10782 | + self.offsetDateTime = offsetDateTime | |
| 10783 | + self.offsetTime = offsetTime | |
| 10834 | 10784 | self.oneway = oneway |
| 10835 | 10785 | self.or = or |
| 10836 | 10786 | self.orEq = orEq |
| @@ -10856,10 +10806,6 @@ extension Nil { | ||
| 10856 | 10806 | self.requires = requires |
| 10857 | 10807 | self.restrict = restrict |
| 10858 | 10808 | self.runtimeType = runtimeType |
| 10859 | - self.s = s | |
| 10860 | - self.sbyte = sbyte | |
| 10861 | - self.sealed = sealed | |
| 10862 | - self.sel = sel | |
| 10863 | 10809 | } |
| 10864 | 10810 | } |
| 10865 | 10811 | |
| @@ -10868,7 +10814,7 @@ extension Nil { | ||
| 10868 | 10814 | extension Obj4 { |
| 10869 | 10815 | convenience init(data: Data) throws { |
| 10870 | 10816 | let me = try newJSONDecoder().decode(Obj4.self, from: data) |
| 10871 | - self.init(dummy: me.dummy, noSuchMethod: me.noSuchMethod, noexcept: me.noexcept, nonatomic: me.nonatomic, none: me.none, nonlocal: me.nonlocal, not: me.not, notEq: me.notEq, nsError: me.nsError, nsObject: me.nsObject, nsString: me.nsString, null: me.null, nullptr: me.nullptr, number: me.number, obj4None: me.obj4None, obj4Nonmutating: me.obj4Nonmutating, obj4Null: me.obj4Null, obj4Open: me.obj4Open, obj4Operator: me.obj4Operator, obj4Optional: me.obj4Optional, obj4Override: me.obj4Override, obj4Postfix: me.obj4Postfix, obj4Precedence: me.obj4Precedence, obj4Prefix: me.obj4Prefix, obj4Private: me.obj4Private, obj4Protocol: me.obj4Protocol, obj4Public: me.obj4Public, obj4Repeat: me.obj4Repeat, obj4Required: me.obj4Required, obj4Retain: me.obj4Retain, obj4Rethrows: me.obj4Rethrows, obj4Return: me.obj4Return, obj4Right: me.obj4Right, object: me.object, objectMapper: me.objectMapper, of: me.of, oneway: me.oneway, or: me.or, orEq: me.orEq, out: me.out, package: me.package, params: me.params, pass: me.pass, port: me.port, print: me.print, printMembers: me.printMembers, printf: me.printf, protected: me.protected, purpleProtocol: me.purpleProtocol, quicktype: me.quicktype, raise: me.raise, range: me.range, readonly: me.readonly, ref: me.ref, regExp: me.regExp, register: me.register, reinterpretCast: me.reinterpretCast, require: me.require, requires: me.requires, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel) | |
| 10817 | + self.init(dummy: me.dummy, no: me.no, noSuchMethod: me.noSuchMethod, noexcept: me.noexcept, nonatomic: me.nonatomic, none: me.none, nonlocal: me.nonlocal, not: me.not, notEq: me.notEq, nsError: me.nsError, nsObject: me.nsObject, nsString: me.nsString, null: me.null, nullptr: me.nullptr, number: me.number, obj4Nil: me.obj4Nil, obj4None: me.obj4None, obj4Nonmutating: me.obj4Nonmutating, obj4Null: me.obj4Null, obj4Open: me.obj4Open, obj4Operator: me.obj4Operator, obj4Optional: me.obj4Optional, obj4Override: me.obj4Override, obj4Postfix: me.obj4Postfix, obj4Precedence: me.obj4Precedence, obj4Prefix: me.obj4Prefix, obj4Private: me.obj4Private, obj4Protocol: me.obj4Protocol, obj4Public: me.obj4Public, obj4Repeat: me.obj4Repeat, obj4Required: me.obj4Required, obj4Retain: me.obj4Retain, obj4Rethrows: me.obj4Rethrows, obj4Return: me.obj4Return, obj4Right: me.obj4Right, object: me.object, objectMapper: me.objectMapper, of: me.of, offsetDateTime: me.offsetDateTime, offsetTime: me.offsetTime, oneway: me.oneway, or: me.or, orEq: me.orEq, out: me.out, package: me.package, params: me.params, pass: me.pass, port: me.port, print: me.print, printMembers: me.printMembers, printf: me.printf, protected: me.protected, purpleProtocol: me.purpleProtocol, quicktype: me.quicktype, raise: me.raise, range: me.range, readonly: me.readonly, ref: me.ref, regExp: me.regExp, register: me.register, reinterpretCast: me.reinterpretCast, require: me.require, requires: me.requires, restrict: me.restrict, runtimeType: me.runtimeType) | |
| 10872 | 10818 | } |
| 10873 | 10819 | |
| 10874 | 10820 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -10884,6 +10830,7 @@ extension Obj4 { | ||
| 10884 | 10830 | |
| 10885 | 10831 | func with( |
| 10886 | 10832 | dummy: Int? = nil, |
| 10833 | + no: No? = nil, | |
| 10887 | 10834 | noSuchMethod: NoSuchMethod? = nil, |
| 10888 | 10835 | noexcept: Noexcept? = nil, |
| 10889 | 10836 | nonatomic: Nonatomic? = nil, |
| @@ -10897,6 +10844,7 @@ extension Obj4 { | ||
| 10897 | 10844 | null: Null? = nil, |
| 10898 | 10845 | nullptr: Nullptr? = nil, |
| 10899 | 10846 | number: Number? = nil, |
| 10847 | + obj4Nil: Nil? = nil, | |
| 10900 | 10848 | obj4None: NoneClass? = nil, |
| 10901 | 10849 | obj4Nonmutating: Nonmutating? = nil, |
| 10902 | 10850 | obj4Null: NullClass? = nil, |
| @@ -10919,6 +10867,8 @@ extension Obj4 { | ||
| 10919 | 10867 | object: Object? = nil, |
| 10920 | 10868 | objectMapper: ObjectMapper? = nil, |
| 10921 | 10869 | of: Of? = nil, |
| 10870 | + offsetDateTime: OffsetDateTime? = nil, | |
| 10871 | + offsetTime: OffsetTime? = nil, | |
| 10922 | 10872 | oneway: Oneway? = nil, |
| 10923 | 10873 | or: Or? = nil, |
| 10924 | 10874 | orEq: OrEq? = nil, |
| @@ -10943,14 +10893,11 @@ extension Obj4 { | ||
| 10943 | 10893 | require: Require? = nil, |
| 10944 | 10894 | requires: Requires? = nil, |
| 10945 | 10895 | restrict: Restrict? = nil, |
| 10946 | - runtimeType: RuntimeType? = nil, | |
| 10947 | - s: S? = nil, | |
| 10948 | - sbyte: Sbyte? = nil, | |
| 10949 | - sealed: Sealed? = nil, | |
| 10950 | - sel: Sel? = nil | |
| 10896 | + runtimeType: RuntimeType? = nil | |
| 10951 | 10897 | ) -> Obj4 { |
| 10952 | 10898 | return Obj4( |
| 10953 | 10899 | dummy: dummy ?? self.dummy, |
| 10900 | + no: no ?? self.no, | |
| 10954 | 10901 | noSuchMethod: noSuchMethod ?? self.noSuchMethod, |
| 10955 | 10902 | noexcept: noexcept ?? self.noexcept, |
| 10956 | 10903 | nonatomic: nonatomic ?? self.nonatomic, |
| @@ -10964,6 +10911,7 @@ extension Obj4 { | ||
| 10964 | 10911 | null: null ?? self.null, |
| 10965 | 10912 | nullptr: nullptr ?? self.nullptr, |
| 10966 | 10913 | number: number ?? self.number, |
| 10914 | + obj4Nil: obj4Nil ?? self.obj4Nil, | |
| 10967 | 10915 | obj4None: obj4None ?? self.obj4None, |
| 10968 | 10916 | obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating, |
| 10969 | 10917 | obj4Null: obj4Null ?? self.obj4Null, |
| @@ -10986,6 +10934,8 @@ extension Obj4 { | ||
| 10986 | 10934 | object: object ?? self.object, |
| 10987 | 10935 | objectMapper: objectMapper ?? self.objectMapper, |
| 10988 | 10936 | of: of ?? self.of, |
| 10937 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 10938 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 10989 | 10939 | oneway: oneway ?? self.oneway, |
| 10990 | 10940 | or: or ?? self.or, |
| 10991 | 10941 | orEq: orEq ?? self.orEq, |
| @@ -11010,11 +10960,56 @@ extension Obj4 { | ||
| 11010 | 10960 | require: require ?? self.require, |
| 11011 | 10961 | requires: requires ?? self.requires, |
| 11012 | 10962 | restrict: restrict ?? self.restrict, |
| 11013 | - runtimeType: runtimeType ?? self.runtimeType, | |
| 11014 | - s: s ?? self.s, | |
| 11015 | - sbyte: sbyte ?? self.sbyte, | |
| 11016 | - sealed: sealed ?? self.sealed, | |
| 11017 | - sel: sel ?? self.sel | |
| 10963 | + runtimeType: runtimeType ?? self.runtimeType | |
| 10964 | + ) | |
| 10965 | + } | |
| 10966 | + | |
| 10967 | + func jsonData() throws -> Data { | |
| 10968 | + return try newJSONEncoder().encode(self) | |
| 10969 | + } | |
| 10970 | + | |
| 10971 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 10972 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 10973 | + } | |
| 10974 | +} | |
| 10975 | + | |
| 10976 | +// MARK: - No | |
| 10977 | +@objcMembers class No: NSObject, Codable { | |
| 10978 | + let no: Int | |
| 10979 | + | |
| 10980 | + enum CodingKeys: String, CodingKey { | |
| 10981 | + case no = "NO" | |
| 10982 | + } | |
| 10983 | + | |
| 10984 | + init(no: Int) { | |
| 10985 | + self.no = no | |
| 10986 | + } | |
| 10987 | +} | |
| 10988 | + | |
| 10989 | +// MARK: No convenience initializers and mutators | |
| 10990 | + | |
| 10991 | +extension No { | |
| 10992 | + convenience init(data: Data) throws { | |
| 10993 | + let me = try newJSONDecoder().decode(No.self, from: data) | |
| 10994 | + self.init(no: me.no) | |
| 10995 | + } | |
| 10996 | + | |
| 10997 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10998 | + guard let data = json.data(using: encoding) else { | |
| 10999 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11000 | + } | |
| 11001 | + try self.init(data: data) | |
| 11002 | + } | |
| 11003 | + | |
| 11004 | + convenience init(fromURL url: URL) throws { | |
| 11005 | + try self.init(data: try Data(contentsOf: url)) | |
| 11006 | + } | |
| 11007 | + | |
| 11008 | + func with( | |
| 11009 | + no: Int? = nil | |
| 11010 | + ) -> No { | |
| 11011 | + return No( | |
| 11012 | + no: no ?? self.no | |
| 11018 | 11013 | ) |
| 11019 | 11014 | } |
| 11020 | 11015 | |
| @@ -11664,25 +11659,25 @@ extension Number { | ||
| 11664 | 11659 | } |
| 11665 | 11660 | } |
| 11666 | 11661 | |
| 11667 | -// MARK: - NoneClass | |
| 11668 | -@objcMembers class NoneClass: NSObject, Codable { | |
| 11669 | - let none: Int | |
| 11662 | +// MARK: - Nil | |
| 11663 | +@objcMembers class Nil: NSObject, Codable { | |
| 11664 | + let nilNil: Int | |
| 11670 | 11665 | |
| 11671 | 11666 | enum CodingKeys: String, CodingKey { |
| 11672 | - case none = "none" | |
| 11667 | + case nilNil = "nil" | |
| 11673 | 11668 | } |
| 11674 | 11669 | |
| 11675 | - init(none: Int) { | |
| 11676 | - self.none = none | |
| 11670 | + init(nilNil: Int) { | |
| 11671 | + self.nilNil = nilNil | |
| 11677 | 11672 | } |
| 11678 | 11673 | } |
| 11679 | 11674 | |
| 11680 | -// MARK: NoneClass convenience initializers and mutators | |
| 11675 | +// MARK: Nil convenience initializers and mutators | |
| 11681 | 11676 | |
| 11682 | -extension NoneClass { | |
| 11677 | +extension Nil { | |
| 11683 | 11678 | convenience init(data: Data) throws { |
| 11684 | - let me = try newJSONDecoder().decode(NoneClass.self, from: data) | |
| 11685 | - self.init(none: me.none) | |
| 11679 | + let me = try newJSONDecoder().decode(Nil.self, from: data) | |
| 11680 | + self.init(nilNil: me.nilNil) | |
| 11686 | 11681 | } |
| 11687 | 11682 | |
| 11688 | 11683 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11697,10 +11692,10 @@ extension NoneClass { | ||
| 11697 | 11692 | } |
| 11698 | 11693 | |
| 11699 | 11694 | func with( |
| 11700 | - none: Int? = nil | |
| 11701 | - ) -> NoneClass { | |
| 11702 | - return NoneClass( | |
| 11703 | - none: none ?? self.none | |
| 11695 | + nilNil: Int? = nil | |
| 11696 | + ) -> Nil { | |
| 11697 | + return Nil( | |
| 11698 | + nilNil: nilNil ?? self.nilNil | |
| 11704 | 11699 | ) |
| 11705 | 11700 | } |
| 11706 | 11701 | |
| @@ -11713,22 +11708,71 @@ extension NoneClass { | ||
| 11713 | 11708 | } |
| 11714 | 11709 | } |
| 11715 | 11710 | |
| 11716 | -// MARK: - Nonmutating | |
| 11717 | -@objcMembers class Nonmutating: NSObject, Codable { | |
| 11718 | - let nonmutatingNonmutating: Int | |
| 11711 | +// MARK: - NoneClass | |
| 11712 | +@objcMembers class NoneClass: NSObject, Codable { | |
| 11713 | + let none: Int | |
| 11719 | 11714 | |
| 11720 | 11715 | enum CodingKeys: String, CodingKey { |
| 11721 | - case nonmutatingNonmutating = "nonmutating" | |
| 11716 | + case none = "none" | |
| 11722 | 11717 | } |
| 11723 | 11718 | |
| 11724 | - init(nonmutatingNonmutating: Int) { | |
| 11725 | - self.nonmutatingNonmutating = nonmutatingNonmutating | |
| 11719 | + init(none: Int) { | |
| 11720 | + self.none = none | |
| 11726 | 11721 | } |
| 11727 | 11722 | } |
| 11728 | 11723 | |
| 11729 | -// MARK: Nonmutating convenience initializers and mutators | |
| 11724 | +// MARK: NoneClass convenience initializers and mutators | |
| 11730 | 11725 | |
| 11731 | -extension Nonmutating { | |
| 11726 | +extension NoneClass { | |
| 11727 | + convenience init(data: Data) throws { | |
| 11728 | + let me = try newJSONDecoder().decode(NoneClass.self, from: data) | |
| 11729 | + self.init(none: me.none) | |
| 11730 | + } | |
| 11731 | + | |
| 11732 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11733 | + guard let data = json.data(using: encoding) else { | |
| 11734 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11735 | + } | |
| 11736 | + try self.init(data: data) | |
| 11737 | + } | |
| 11738 | + | |
| 11739 | + convenience init(fromURL url: URL) throws { | |
| 11740 | + try self.init(data: try Data(contentsOf: url)) | |
| 11741 | + } | |
| 11742 | + | |
| 11743 | + func with( | |
| 11744 | + none: Int? = nil | |
| 11745 | + ) -> NoneClass { | |
| 11746 | + return NoneClass( | |
| 11747 | + none: none ?? self.none | |
| 11748 | + ) | |
| 11749 | + } | |
| 11750 | + | |
| 11751 | + func jsonData() throws -> Data { | |
| 11752 | + return try newJSONEncoder().encode(self) | |
| 11753 | + } | |
| 11754 | + | |
| 11755 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11756 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11757 | + } | |
| 11758 | +} | |
| 11759 | + | |
| 11760 | +// MARK: - Nonmutating | |
| 11761 | +@objcMembers class Nonmutating: NSObject, Codable { | |
| 11762 | + let nonmutatingNonmutating: Int | |
| 11763 | + | |
| 11764 | + enum CodingKeys: String, CodingKey { | |
| 11765 | + case nonmutatingNonmutating = "nonmutating" | |
| 11766 | + } | |
| 11767 | + | |
| 11768 | + init(nonmutatingNonmutating: Int) { | |
| 11769 | + self.nonmutatingNonmutating = nonmutatingNonmutating | |
| 11770 | + } | |
| 11771 | +} | |
| 11772 | + | |
| 11773 | +// MARK: Nonmutating convenience initializers and mutators | |
| 11774 | + | |
| 11775 | +extension Nonmutating { | |
| 11732 | 11776 | convenience init(data: Data) throws { |
| 11733 | 11777 | let me = try newJSONDecoder().decode(Nonmutating.self, from: data) |
| 11734 | 11778 | self.init(nonmutatingNonmutating: me.nonmutatingNonmutating) |
| @@ -12742,6 +12786,104 @@ extension Of { | ||
| 12742 | 12786 | } |
| 12743 | 12787 | } |
| 12744 | 12788 | |
| 12789 | +// MARK: - OffsetDateTime | |
| 12790 | +@objcMembers class OffsetDateTime: NSObject, Codable { | |
| 12791 | + let offsetDateTime: Int | |
| 12792 | + | |
| 12793 | + enum CodingKeys: String, CodingKey { | |
| 12794 | + case offsetDateTime = "OffsetDateTime" | |
| 12795 | + } | |
| 12796 | + | |
| 12797 | + init(offsetDateTime: Int) { | |
| 12798 | + self.offsetDateTime = offsetDateTime | |
| 12799 | + } | |
| 12800 | +} | |
| 12801 | + | |
| 12802 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 12803 | + | |
| 12804 | +extension OffsetDateTime { | |
| 12805 | + convenience init(data: Data) throws { | |
| 12806 | + let me = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 12807 | + self.init(offsetDateTime: me.offsetDateTime) | |
| 12808 | + } | |
| 12809 | + | |
| 12810 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12811 | + guard let data = json.data(using: encoding) else { | |
| 12812 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12813 | + } | |
| 12814 | + try self.init(data: data) | |
| 12815 | + } | |
| 12816 | + | |
| 12817 | + convenience init(fromURL url: URL) throws { | |
| 12818 | + try self.init(data: try Data(contentsOf: url)) | |
| 12819 | + } | |
| 12820 | + | |
| 12821 | + func with( | |
| 12822 | + offsetDateTime: Int? = nil | |
| 12823 | + ) -> OffsetDateTime { | |
| 12824 | + return OffsetDateTime( | |
| 12825 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime | |
| 12826 | + ) | |
| 12827 | + } | |
| 12828 | + | |
| 12829 | + func jsonData() throws -> Data { | |
| 12830 | + return try newJSONEncoder().encode(self) | |
| 12831 | + } | |
| 12832 | + | |
| 12833 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12834 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12835 | + } | |
| 12836 | +} | |
| 12837 | + | |
| 12838 | +// MARK: - OffsetTime | |
| 12839 | +@objcMembers class OffsetTime: NSObject, Codable { | |
| 12840 | + let offsetTime: Int | |
| 12841 | + | |
| 12842 | + enum CodingKeys: String, CodingKey { | |
| 12843 | + case offsetTime = "OffsetTime" | |
| 12844 | + } | |
| 12845 | + | |
| 12846 | + init(offsetTime: Int) { | |
| 12847 | + self.offsetTime = offsetTime | |
| 12848 | + } | |
| 12849 | +} | |
| 12850 | + | |
| 12851 | +// MARK: OffsetTime convenience initializers and mutators | |
| 12852 | + | |
| 12853 | +extension OffsetTime { | |
| 12854 | + convenience init(data: Data) throws { | |
| 12855 | + let me = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 12856 | + self.init(offsetTime: me.offsetTime) | |
| 12857 | + } | |
| 12858 | + | |
| 12859 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12860 | + guard let data = json.data(using: encoding) else { | |
| 12861 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12862 | + } | |
| 12863 | + try self.init(data: data) | |
| 12864 | + } | |
| 12865 | + | |
| 12866 | + convenience init(fromURL url: URL) throws { | |
| 12867 | + try self.init(data: try Data(contentsOf: url)) | |
| 12868 | + } | |
| 12869 | + | |
| 12870 | + func with( | |
| 12871 | + offsetTime: Int? = nil | |
| 12872 | + ) -> OffsetTime { | |
| 12873 | + return OffsetTime( | |
| 12874 | + offsetTime: offsetTime ?? self.offsetTime | |
| 12875 | + ) | |
| 12876 | + } | |
| 12877 | + | |
| 12878 | + func jsonData() throws -> Data { | |
| 12879 | + return try newJSONEncoder().encode(self) | |
| 12880 | + } | |
| 12881 | + | |
| 12882 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12883 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12884 | + } | |
| 12885 | +} | |
| 12886 | + | |
| 12745 | 12887 | // MARK: - Oneway |
| 12746 | 12888 | @objcMembers class Oneway: NSObject, Codable { |
| 12747 | 12889 | let oneway: Int |
| @@ -13967,341 +14109,143 @@ extension RuntimeType { | ||
| 13967 | 14109 | } |
| 13968 | 14110 | } |
| 13969 | 14111 | |
| 13970 | -// MARK: - S | |
| 13971 | -@objcMembers class S: NSObject, Codable { | |
| 13972 | - let s: Int | |
| 14112 | +// MARK: - Obj5 | |
| 14113 | +@objcMembers class Obj5: NSObject, Codable { | |
| 14114 | + let dummy: Int | |
| 14115 | + let kSerializer: KSerializer | |
| 14116 | + let obj5Self: SelfClass | |
| 14117 | + let obj5Set: Set | |
| 14118 | + let obj5Static: Static | |
| 14119 | + let obj5Struct: Struct | |
| 14120 | + let obj5Subscript: Subscript | |
| 14121 | + let obj5Super: Super | |
| 14122 | + let obj5Switch: Switch | |
| 14123 | + let obj5Throw: Throw | |
| 14124 | + let obj5Throws: Throws | |
| 14125 | + let obj5True: True | |
| 14126 | + let obj5Try: Try | |
| 14127 | + let obj5Type: Obj5Type | |
| 14128 | + let obj5Typealias: Typealias | |
| 14129 | + let primitiveKind: PrimitiveKind | |
| 14130 | + let purpleSelf: Obj5Self | |
| 14131 | + let purpleTrue: TrueClass | |
| 14132 | + let s: S | |
| 14133 | + let sbyte: Sbyte | |
| 14134 | + let sealed: Sealed | |
| 14135 | + let sel: Sel | |
| 14136 | + let select: Select | |
| 14137 | + let sendable: Sendable | |
| 14138 | + let serialDescriptor: SerialDescriptor | |
| 14139 | + let serialName: SerialName | |
| 14140 | + let serializable: Serializable | |
| 14141 | + let serialize: Serialize | |
| 14142 | + let serializerProvider: SerializerProvider | |
| 14143 | + let short: Short | |
| 14144 | + let signed: Signed | |
| 14145 | + let simpleModule: SimpleModule | |
| 14146 | + let sizeof: Sizeof | |
| 14147 | + let stackalloc: Stackalloc | |
| 14148 | + let standards: Standards | |
| 14149 | + let staticAssert: StaticAssert | |
| 14150 | + let staticCast: StaticCast | |
| 14151 | + let stdDeserializer: StdDeserializer | |
| 14152 | + let stdSerializer: StdSerializer | |
| 14153 | + let strictfp: Strictfp | |
| 14154 | + let string: StringClass | |
| 14155 | + let symbol: Symbol | |
| 14156 | + let synchronized: Synchronized | |
| 14157 | + let system: System | |
| 14158 | + let template: Template | |
| 14159 | + let then: Then | |
| 14160 | + let this: This | |
| 14161 | + let threadLocal: ThreadLocal | |
| 14162 | + let timeOnly: TimeOnly | |
| 14163 | + let timeOnlyConverter: TimeOnlyConverter | |
| 14164 | + let timeZone: TimeZoneClass | |
| 14165 | + let toDict: ToDict | |
| 14166 | + let toJSON: ToJSON | |
| 14167 | + let toString: ToString | |
| 14168 | + let topLevel: TopLevelClass | |
| 14169 | + let transient: Transient | |
| 14170 | + let type: TypeClass | |
| 14171 | + let typedef: Typedef | |
| 14172 | + let typeid: Typeid | |
| 14173 | + let typename: Typename | |
| 14174 | + let typeof: Typeof | |
| 14175 | + let uint: Uint | |
| 14176 | + let ulong: Ulong | |
| 14177 | + let unchecked: Unchecked | |
| 14178 | + let undefined: Undefined | |
| 13973 | 14179 | |
| 13974 | 14180 | enum CodingKeys: String, CodingKey { |
| 14181 | + case dummy = "dummy" | |
| 14182 | + case kSerializer = "KSerializer" | |
| 14183 | + case obj5Self = "Self" | |
| 14184 | + case obj5Set = "set" | |
| 14185 | + case obj5Static = "static" | |
| 14186 | + case obj5Struct = "struct" | |
| 14187 | + case obj5Subscript = "subscript" | |
| 14188 | + case obj5Super = "super" | |
| 14189 | + case obj5Switch = "switch" | |
| 14190 | + case obj5Throw = "throw" | |
| 14191 | + case obj5Throws = "throws" | |
| 14192 | + case obj5True = "True" | |
| 14193 | + case obj5Try = "try" | |
| 14194 | + case obj5Type = "type" | |
| 14195 | + case obj5Typealias = "typealias" | |
| 14196 | + case primitiveKind = "PrimitiveKind" | |
| 14197 | + case purpleSelf = "self" | |
| 14198 | + case purpleTrue = "true" | |
| 13975 | 14199 | case s = "s" |
| 14200 | + case sbyte = "sbyte" | |
| 14201 | + case sealed = "sealed" | |
| 14202 | + case sel = "SEL" | |
| 14203 | + case select = "select" | |
| 14204 | + case sendable = "Sendable" | |
| 14205 | + case serialDescriptor = "SerialDescriptor" | |
| 14206 | + case serialName = "SerialName" | |
| 14207 | + case serializable = "Serializable" | |
| 14208 | + case serialize = "serialize" | |
| 14209 | + case serializerProvider = "SerializerProvider" | |
| 14210 | + case short = "short" | |
| 14211 | + case signed = "signed" | |
| 14212 | + case simpleModule = "SimpleModule" | |
| 14213 | + case sizeof = "sizeof" | |
| 14214 | + case stackalloc = "stackalloc" | |
| 14215 | + case standards = "Standards" | |
| 14216 | + case staticAssert = "static_assert" | |
| 14217 | + case staticCast = "static_cast" | |
| 14218 | + case stdDeserializer = "StdDeserializer" | |
| 14219 | + case stdSerializer = "StdSerializer" | |
| 14220 | + case strictfp = "strictfp" | |
| 14221 | + case string = "string" | |
| 14222 | + case symbol = "symbol" | |
| 14223 | + case synchronized = "synchronized" | |
| 14224 | + case system = "system" | |
| 14225 | + case template = "template" | |
| 14226 | + case then = "then" | |
| 14227 | + case this = "this" | |
| 14228 | + case threadLocal = "thread_local" | |
| 14229 | + case timeOnly = "TimeOnly" | |
| 14230 | + case timeOnlyConverter = "TimeOnlyConverter" | |
| 14231 | + case timeZone = "TimeZone" | |
| 14232 | + case toDict = "to_dict" | |
| 14233 | + case toJSON = "to_json" | |
| 14234 | + case toString = "toString" | |
| 14235 | + case topLevel = "top_level" | |
| 14236 | + case transient = "transient" | |
| 14237 | + case type = "Type" | |
| 14238 | + case typedef = "typedef" | |
| 14239 | + case typeid = "typeid" | |
| 14240 | + case typename = "typename" | |
| 14241 | + case typeof = "typeof" | |
| 14242 | + case uint = "uint" | |
| 14243 | + case ulong = "ulong" | |
| 14244 | + case unchecked = "unchecked" | |
| 14245 | + case undefined = "undefined" | |
| 13976 | 14246 | } |
| 13977 | 14247 | |
| 13978 | - init(s: Int) { | |
| 13979 | - self.s = s | |
| 13980 | - } | |
| 13981 | -} | |
| 13982 | - | |
| 13983 | -// MARK: S convenience initializers and mutators | |
| 13984 | - | |
| 13985 | -extension S { | |
| 13986 | - convenience init(data: Data) throws { | |
| 13987 | - let me = try newJSONDecoder().decode(S.self, from: data) | |
| 13988 | - self.init(s: me.s) | |
| 13989 | - } | |
| 13990 | - | |
| 13991 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13992 | - guard let data = json.data(using: encoding) else { | |
| 13993 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13994 | - } | |
| 13995 | - try self.init(data: data) | |
| 13996 | - } | |
| 13997 | - | |
| 13998 | - convenience init(fromURL url: URL) throws { | |
| 13999 | - try self.init(data: try Data(contentsOf: url)) | |
| 14000 | - } | |
| 14001 | - | |
| 14002 | - func with( | |
| 14003 | - s: Int? = nil | |
| 14004 | - ) -> S { | |
| 14005 | - return S( | |
| 14006 | - s: s ?? self.s | |
| 14007 | - ) | |
| 14008 | - } | |
| 14009 | - | |
| 14010 | - func jsonData() throws -> Data { | |
| 14011 | - return try newJSONEncoder().encode(self) | |
| 14012 | - } | |
| 14013 | - | |
| 14014 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14015 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14016 | - } | |
| 14017 | -} | |
| 14018 | - | |
| 14019 | -// MARK: - Sbyte | |
| 14020 | -@objcMembers class Sbyte: NSObject, Codable { | |
| 14021 | - let sbyte: Int | |
| 14022 | - | |
| 14023 | - enum CodingKeys: String, CodingKey { | |
| 14024 | - case sbyte = "sbyte" | |
| 14025 | - } | |
| 14026 | - | |
| 14027 | - init(sbyte: Int) { | |
| 14028 | - self.sbyte = sbyte | |
| 14029 | - } | |
| 14030 | -} | |
| 14031 | - | |
| 14032 | -// MARK: Sbyte convenience initializers and mutators | |
| 14033 | - | |
| 14034 | -extension Sbyte { | |
| 14035 | - convenience init(data: Data) throws { | |
| 14036 | - let me = try newJSONDecoder().decode(Sbyte.self, from: data) | |
| 14037 | - self.init(sbyte: me.sbyte) | |
| 14038 | - } | |
| 14039 | - | |
| 14040 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14041 | - guard let data = json.data(using: encoding) else { | |
| 14042 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14043 | - } | |
| 14044 | - try self.init(data: data) | |
| 14045 | - } | |
| 14046 | - | |
| 14047 | - convenience init(fromURL url: URL) throws { | |
| 14048 | - try self.init(data: try Data(contentsOf: url)) | |
| 14049 | - } | |
| 14050 | - | |
| 14051 | - func with( | |
| 14052 | - sbyte: Int? = nil | |
| 14053 | - ) -> Sbyte { | |
| 14054 | - return Sbyte( | |
| 14055 | - sbyte: sbyte ?? self.sbyte | |
| 14056 | - ) | |
| 14057 | - } | |
| 14058 | - | |
| 14059 | - func jsonData() throws -> Data { | |
| 14060 | - return try newJSONEncoder().encode(self) | |
| 14061 | - } | |
| 14062 | - | |
| 14063 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14064 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14065 | - } | |
| 14066 | -} | |
| 14067 | - | |
| 14068 | -// MARK: - Sealed | |
| 14069 | -@objcMembers class Sealed: NSObject, Codable { | |
| 14070 | - let sealed: Int | |
| 14071 | - | |
| 14072 | - enum CodingKeys: String, CodingKey { | |
| 14073 | - case sealed = "sealed" | |
| 14074 | - } | |
| 14075 | - | |
| 14076 | - init(sealed: Int) { | |
| 14077 | - self.sealed = sealed | |
| 14078 | - } | |
| 14079 | -} | |
| 14080 | - | |
| 14081 | -// MARK: Sealed convenience initializers and mutators | |
| 14082 | - | |
| 14083 | -extension Sealed { | |
| 14084 | - convenience init(data: Data) throws { | |
| 14085 | - let me = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 14086 | - self.init(sealed: me.sealed) | |
| 14087 | - } | |
| 14088 | - | |
| 14089 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14090 | - guard let data = json.data(using: encoding) else { | |
| 14091 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14092 | - } | |
| 14093 | - try self.init(data: data) | |
| 14094 | - } | |
| 14095 | - | |
| 14096 | - convenience init(fromURL url: URL) throws { | |
| 14097 | - try self.init(data: try Data(contentsOf: url)) | |
| 14098 | - } | |
| 14099 | - | |
| 14100 | - func with( | |
| 14101 | - sealed: Int? = nil | |
| 14102 | - ) -> Sealed { | |
| 14103 | - return Sealed( | |
| 14104 | - sealed: sealed ?? self.sealed | |
| 14105 | - ) | |
| 14106 | - } | |
| 14107 | - | |
| 14108 | - func jsonData() throws -> Data { | |
| 14109 | - return try newJSONEncoder().encode(self) | |
| 14110 | - } | |
| 14111 | - | |
| 14112 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14113 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14114 | - } | |
| 14115 | -} | |
| 14116 | - | |
| 14117 | -// MARK: - Sel | |
| 14118 | -@objcMembers class Sel: NSObject, Codable { | |
| 14119 | - let sel: Int | |
| 14120 | - | |
| 14121 | - enum CodingKeys: String, CodingKey { | |
| 14122 | - case sel = "SEL" | |
| 14123 | - } | |
| 14124 | - | |
| 14125 | - init(sel: Int) { | |
| 14126 | - self.sel = sel | |
| 14127 | - } | |
| 14128 | -} | |
| 14129 | - | |
| 14130 | -// MARK: Sel convenience initializers and mutators | |
| 14131 | - | |
| 14132 | -extension Sel { | |
| 14133 | - convenience init(data: Data) throws { | |
| 14134 | - let me = try newJSONDecoder().decode(Sel.self, from: data) | |
| 14135 | - self.init(sel: me.sel) | |
| 14136 | - } | |
| 14137 | - | |
| 14138 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14139 | - guard let data = json.data(using: encoding) else { | |
| 14140 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14141 | - } | |
| 14142 | - try self.init(data: data) | |
| 14143 | - } | |
| 14144 | - | |
| 14145 | - convenience init(fromURL url: URL) throws { | |
| 14146 | - try self.init(data: try Data(contentsOf: url)) | |
| 14147 | - } | |
| 14148 | - | |
| 14149 | - func with( | |
| 14150 | - sel: Int? = nil | |
| 14151 | - ) -> Sel { | |
| 14152 | - return Sel( | |
| 14153 | - sel: sel ?? self.sel | |
| 14154 | - ) | |
| 14155 | - } | |
| 14156 | - | |
| 14157 | - func jsonData() throws -> Data { | |
| 14158 | - return try newJSONEncoder().encode(self) | |
| 14159 | - } | |
| 14160 | - | |
| 14161 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14162 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14163 | - } | |
| 14164 | -} | |
| 14165 | - | |
| 14166 | -// MARK: - Obj5 | |
| 14167 | -@objcMembers class Obj5: NSObject, Codable { | |
| 14168 | - let dummy: Int | |
| 14169 | - let kSerializer: KSerializer | |
| 14170 | - let obj5Self: SelfClass | |
| 14171 | - let obj5Set: Set | |
| 14172 | - let obj5Static: Static | |
| 14173 | - let obj5Struct: Struct | |
| 14174 | - let obj5Subscript: Subscript | |
| 14175 | - let obj5Super: Super | |
| 14176 | - let obj5Switch: Switch | |
| 14177 | - let obj5Throw: Throw | |
| 14178 | - let obj5Throws: Throws | |
| 14179 | - let obj5True: True | |
| 14180 | - let obj5Try: Try | |
| 14181 | - let obj5Type: Obj5Type | |
| 14182 | - let obj5Typealias: Typealias | |
| 14183 | - let obj5Unowned: Unowned | |
| 14184 | - let primitiveKind: PrimitiveKind | |
| 14185 | - let purpleSelf: Obj5Self | |
| 14186 | - let purpleTrue: TrueClass | |
| 14187 | - let select: Select | |
| 14188 | - let sendable: Sendable | |
| 14189 | - let serialDescriptor: SerialDescriptor | |
| 14190 | - let serialName: SerialName | |
| 14191 | - let serializable: Serializable | |
| 14192 | - let serialize: Serialize | |
| 14193 | - let serializerProvider: SerializerProvider | |
| 14194 | - let short: Short | |
| 14195 | - let signed: Signed | |
| 14196 | - let simpleModule: SimpleModule | |
| 14197 | - let sizeof: Sizeof | |
| 14198 | - let stackalloc: Stackalloc | |
| 14199 | - let standards: Standards | |
| 14200 | - let staticAssert: StaticAssert | |
| 14201 | - let staticCast: StaticCast | |
| 14202 | - let stdDeserializer: StdDeserializer | |
| 14203 | - let stdSerializer: StdSerializer | |
| 14204 | - let strictfp: Strictfp | |
| 14205 | - let string: StringClass | |
| 14206 | - let symbol: Symbol | |
| 14207 | - let synchronized: Synchronized | |
| 14208 | - let system: System | |
| 14209 | - let template: Template | |
| 14210 | - let then: Then | |
| 14211 | - let this: This | |
| 14212 | - let threadLocal: ThreadLocal | |
| 14213 | - let timeOnly: TimeOnly | |
| 14214 | - let timeOnlyConverter: TimeOnlyConverter | |
| 14215 | - let timeZone: TimeZoneClass | |
| 14216 | - let toDict: ToDict | |
| 14217 | - let toJSON: ToJSON | |
| 14218 | - let toString: ToString | |
| 14219 | - let topLevel: TopLevelClass | |
| 14220 | - let transient: Transient | |
| 14221 | - let type: TypeClass | |
| 14222 | - let typedef: Typedef | |
| 14223 | - let typeid: Typeid | |
| 14224 | - let typename: Typename | |
| 14225 | - let typeof: Typeof | |
| 14226 | - let uint: Uint | |
| 14227 | - let ulong: Ulong | |
| 14228 | - let unchecked: Unchecked | |
| 14229 | - let undefined: Undefined | |
| 14230 | - let union: Union | |
| 14231 | - let unmarshalJSON: UnmarshalJSON | |
| 14232 | - let unsafe: Unsafe | |
| 14233 | - let useSerializers: UseSerializers | |
| 14234 | - | |
| 14235 | - enum CodingKeys: String, CodingKey { | |
| 14236 | - case dummy = "dummy" | |
| 14237 | - case kSerializer = "KSerializer" | |
| 14238 | - case obj5Self = "Self" | |
| 14239 | - case obj5Set = "set" | |
| 14240 | - case obj5Static = "static" | |
| 14241 | - case obj5Struct = "struct" | |
| 14242 | - case obj5Subscript = "subscript" | |
| 14243 | - case obj5Super = "super" | |
| 14244 | - case obj5Switch = "switch" | |
| 14245 | - case obj5Throw = "throw" | |
| 14246 | - case obj5Throws = "throws" | |
| 14247 | - case obj5True = "True" | |
| 14248 | - case obj5Try = "try" | |
| 14249 | - case obj5Type = "type" | |
| 14250 | - case obj5Typealias = "typealias" | |
| 14251 | - case obj5Unowned = "unowned" | |
| 14252 | - case primitiveKind = "PrimitiveKind" | |
| 14253 | - case purpleSelf = "self" | |
| 14254 | - case purpleTrue = "true" | |
| 14255 | - case select = "select" | |
| 14256 | - case sendable = "Sendable" | |
| 14257 | - case serialDescriptor = "SerialDescriptor" | |
| 14258 | - case serialName = "SerialName" | |
| 14259 | - case serializable = "Serializable" | |
| 14260 | - case serialize = "serialize" | |
| 14261 | - case serializerProvider = "SerializerProvider" | |
| 14262 | - case short = "short" | |
| 14263 | - case signed = "signed" | |
| 14264 | - case simpleModule = "SimpleModule" | |
| 14265 | - case sizeof = "sizeof" | |
| 14266 | - case stackalloc = "stackalloc" | |
| 14267 | - case standards = "Standards" | |
| 14268 | - case staticAssert = "static_assert" | |
| 14269 | - case staticCast = "static_cast" | |
| 14270 | - case stdDeserializer = "StdDeserializer" | |
| 14271 | - case stdSerializer = "StdSerializer" | |
| 14272 | - case strictfp = "strictfp" | |
| 14273 | - case string = "string" | |
| 14274 | - case symbol = "symbol" | |
| 14275 | - case synchronized = "synchronized" | |
| 14276 | - case system = "system" | |
| 14277 | - case template = "template" | |
| 14278 | - case then = "then" | |
| 14279 | - case this = "this" | |
| 14280 | - case threadLocal = "thread_local" | |
| 14281 | - case timeOnly = "TimeOnly" | |
| 14282 | - case timeOnlyConverter = "TimeOnlyConverter" | |
| 14283 | - case timeZone = "TimeZone" | |
| 14284 | - case toDict = "to_dict" | |
| 14285 | - case toJSON = "to_json" | |
| 14286 | - case toString = "toString" | |
| 14287 | - case topLevel = "top_level" | |
| 14288 | - case transient = "transient" | |
| 14289 | - case type = "Type" | |
| 14290 | - case typedef = "typedef" | |
| 14291 | - case typeid = "typeid" | |
| 14292 | - case typename = "typename" | |
| 14293 | - case typeof = "typeof" | |
| 14294 | - case uint = "uint" | |
| 14295 | - case ulong = "ulong" | |
| 14296 | - case unchecked = "unchecked" | |
| 14297 | - case undefined = "undefined" | |
| 14298 | - case union = "union" | |
| 14299 | - case unmarshalJSON = "UnmarshalJSON" | |
| 14300 | - case unsafe = "unsafe" | |
| 14301 | - case useSerializers = "UseSerializers" | |
| 14302 | - } | |
| 14303 | - | |
| 14304 | - init(dummy: Int, kSerializer: KSerializer, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, obj5Unowned: Unowned, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, select: Select, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toDict: ToDict, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unmarshalJSON: UnmarshalJSON, unsafe: Unsafe, useSerializers: UseSerializers) { | |
| 14248 | + init(dummy: Int, kSerializer: KSerializer, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel, select: Select, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toDict: ToDict, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined) { | |
| 14305 | 14249 | self.dummy = dummy |
| 14306 | 14250 | self.kSerializer = kSerializer |
| 14307 | 14251 | self.obj5Self = obj5Self |
| @@ -14317,10 +14261,13 @@ extension Sel { | ||
| 14317 | 14261 | self.obj5Try = obj5Try |
| 14318 | 14262 | self.obj5Type = obj5Type |
| 14319 | 14263 | self.obj5Typealias = obj5Typealias |
| 14320 | - self.obj5Unowned = obj5Unowned | |
| 14321 | 14264 | self.primitiveKind = primitiveKind |
| 14322 | 14265 | self.purpleSelf = purpleSelf |
| 14323 | 14266 | self.purpleTrue = purpleTrue |
| 14267 | + self.s = s | |
| 14268 | + self.sbyte = sbyte | |
| 14269 | + self.sealed = sealed | |
| 14270 | + self.sel = sel | |
| 14324 | 14271 | self.select = select |
| 14325 | 14272 | self.sendable = sendable |
| 14326 | 14273 | self.serialDescriptor = serialDescriptor |
| @@ -14364,10 +14311,6 @@ extension Sel { | ||
| 14364 | 14311 | self.ulong = ulong |
| 14365 | 14312 | self.unchecked = unchecked |
| 14366 | 14313 | self.undefined = undefined |
| 14367 | - self.union = union | |
| 14368 | - self.unmarshalJSON = unmarshalJSON | |
| 14369 | - self.unsafe = unsafe | |
| 14370 | - self.useSerializers = useSerializers | |
| 14371 | 14314 | } |
| 14372 | 14315 | } |
| 14373 | 14316 | |
| @@ -14376,7 +14319,7 @@ extension Sel { | ||
| 14376 | 14319 | extension Obj5 { |
| 14377 | 14320 | convenience init(data: Data) throws { |
| 14378 | 14321 | let me = try newJSONDecoder().decode(Obj5.self, from: data) |
| 14379 | - self.init(dummy: me.dummy, kSerializer: me.kSerializer, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, obj5Unowned: me.obj5Unowned, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, select: me.select, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toDict: me.toDict, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unmarshalJSON: me.unmarshalJSON, unsafe: me.unsafe, useSerializers: me.useSerializers) | |
| 14322 | + self.init(dummy: me.dummy, kSerializer: me.kSerializer, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel, select: me.select, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toDict: me.toDict, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined) | |
| 14380 | 14323 | } |
| 14381 | 14324 | |
| 14382 | 14325 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -14406,10 +14349,13 @@ extension Obj5 { | ||
| 14406 | 14349 | obj5Try: Try? = nil, |
| 14407 | 14350 | obj5Type: Obj5Type? = nil, |
| 14408 | 14351 | obj5Typealias: Typealias? = nil, |
| 14409 | - obj5Unowned: Unowned? = nil, | |
| 14410 | 14352 | primitiveKind: PrimitiveKind? = nil, |
| 14411 | 14353 | purpleSelf: Obj5Self? = nil, |
| 14412 | 14354 | purpleTrue: TrueClass? = nil, |
| 14355 | + s: S? = nil, | |
| 14356 | + sbyte: Sbyte? = nil, | |
| 14357 | + sealed: Sealed? = nil, | |
| 14358 | + sel: Sel? = nil, | |
| 14413 | 14359 | select: Select? = nil, |
| 14414 | 14360 | sendable: Sendable? = nil, |
| 14415 | 14361 | serialDescriptor: SerialDescriptor? = nil, |
| @@ -14452,11 +14398,7 @@ extension Obj5 { | ||
| 14452 | 14398 | uint: Uint? = nil, |
| 14453 | 14399 | ulong: Ulong? = nil, |
| 14454 | 14400 | unchecked: Unchecked? = nil, |
| 14455 | - undefined: Undefined? = nil, | |
| 14456 | - union: Union? = nil, | |
| 14457 | - unmarshalJSON: UnmarshalJSON? = nil, | |
| 14458 | - unsafe: Unsafe? = nil, | |
| 14459 | - useSerializers: UseSerializers? = nil | |
| 14401 | + undefined: Undefined? = nil | |
| 14460 | 14402 | ) -> Obj5 { |
| 14461 | 14403 | return Obj5( |
| 14462 | 14404 | dummy: dummy ?? self.dummy, |
| @@ -14474,10 +14416,13 @@ extension Obj5 { | ||
| 14474 | 14416 | obj5Try: obj5Try ?? self.obj5Try, |
| 14475 | 14417 | obj5Type: obj5Type ?? self.obj5Type, |
| 14476 | 14418 | obj5Typealias: obj5Typealias ?? self.obj5Typealias, |
| 14477 | - obj5Unowned: obj5Unowned ?? self.obj5Unowned, | |
| 14478 | 14419 | primitiveKind: primitiveKind ?? self.primitiveKind, |
| 14479 | 14420 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 14480 | 14421 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 14422 | + s: s ?? self.s, | |
| 14423 | + sbyte: sbyte ?? self.sbyte, | |
| 14424 | + sealed: sealed ?? self.sealed, | |
| 14425 | + sel: sel ?? self.sel, | |
| 14481 | 14426 | select: select ?? self.select, |
| 14482 | 14427 | sendable: sendable ?? self.sendable, |
| 14483 | 14428 | serialDescriptor: serialDescriptor ?? self.serialDescriptor, |
| @@ -14520,11 +14465,7 @@ extension Obj5 { | ||
| 14520 | 14465 | uint: uint ?? self.uint, |
| 14521 | 14466 | ulong: ulong ?? self.ulong, |
| 14522 | 14467 | unchecked: unchecked ?? self.unchecked, |
| 14523 | - undefined: undefined ?? self.undefined, | |
| 14524 | - union: union ?? self.union, | |
| 14525 | - unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON, | |
| 14526 | - unsafe: unsafe ?? self.unsafe, | |
| 14527 | - useSerializers: useSerializers ?? self.useSerializers | |
| 14468 | + undefined: undefined ?? self.undefined | |
| 14528 | 14469 | ) |
| 14529 | 14470 | } |
| 14530 | 14471 | |
| @@ -15223,25 +15164,25 @@ extension Typealias { | ||
| 15223 | 15164 | } |
| 15224 | 15165 | } |
| 15225 | 15166 | |
| 15226 | -// MARK: - Unowned | |
| 15227 | -@objcMembers class Unowned: NSObject, Codable { | |
| 15228 | - let unownedUnowned: Int | |
| 15167 | +// MARK: - PrimitiveKind | |
| 15168 | +@objcMembers class PrimitiveKind: NSObject, Codable { | |
| 15169 | + let primitiveKind: Int | |
| 15229 | 15170 | |
| 15230 | 15171 | enum CodingKeys: String, CodingKey { |
| 15231 | - case unownedUnowned = "unowned" | |
| 15172 | + case primitiveKind = "PrimitiveKind" | |
| 15232 | 15173 | } |
| 15233 | 15174 | |
| 15234 | - init(unownedUnowned: Int) { | |
| 15235 | - self.unownedUnowned = unownedUnowned | |
| 15175 | + init(primitiveKind: Int) { | |
| 15176 | + self.primitiveKind = primitiveKind | |
| 15236 | 15177 | } |
| 15237 | 15178 | } |
| 15238 | 15179 | |
| 15239 | -// MARK: Unowned convenience initializers and mutators | |
| 15180 | +// MARK: PrimitiveKind convenience initializers and mutators | |
| 15240 | 15181 | |
| 15241 | -extension Unowned { | |
| 15182 | +extension PrimitiveKind { | |
| 15242 | 15183 | convenience init(data: Data) throws { |
| 15243 | - let me = try newJSONDecoder().decode(Unowned.self, from: data) | |
| 15244 | - self.init(unownedUnowned: me.unownedUnowned) | |
| 15184 | + let me = try newJSONDecoder().decode(PrimitiveKind.self, from: data) | |
| 15185 | + self.init(primitiveKind: me.primitiveKind) | |
| 15245 | 15186 | } |
| 15246 | 15187 | |
| 15247 | 15188 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15256,10 +15197,10 @@ extension Unowned { | ||
| 15256 | 15197 | } |
| 15257 | 15198 | |
| 15258 | 15199 | func with( |
| 15259 | - unownedUnowned: Int? = nil | |
| 15260 | - ) -> Unowned { | |
| 15261 | - return Unowned( | |
| 15262 | - unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 15200 | + primitiveKind: Int? = nil | |
| 15201 | + ) -> PrimitiveKind { | |
| 15202 | + return PrimitiveKind( | |
| 15203 | + primitiveKind: primitiveKind ?? self.primitiveKind | |
| 15263 | 15204 | ) |
| 15264 | 15205 | } |
| 15265 | 15206 | |
| @@ -15272,25 +15213,25 @@ extension Unowned { | ||
| 15272 | 15213 | } |
| 15273 | 15214 | } |
| 15274 | 15215 | |
| 15275 | -// MARK: - PrimitiveKind | |
| 15276 | -@objcMembers class PrimitiveKind: NSObject, Codable { | |
| 15277 | - let primitiveKind: Int | |
| 15216 | +// MARK: - Obj5Self | |
| 15217 | +@objcMembers class Obj5Self: NSObject, Codable { | |
| 15218 | + let selfSelf: Int | |
| 15278 | 15219 | |
| 15279 | 15220 | enum CodingKeys: String, CodingKey { |
| 15280 | - case primitiveKind = "PrimitiveKind" | |
| 15221 | + case selfSelf = "self" | |
| 15281 | 15222 | } |
| 15282 | 15223 | |
| 15283 | - init(primitiveKind: Int) { | |
| 15284 | - self.primitiveKind = primitiveKind | |
| 15224 | + init(selfSelf: Int) { | |
| 15225 | + self.selfSelf = selfSelf | |
| 15285 | 15226 | } |
| 15286 | 15227 | } |
| 15287 | 15228 | |
| 15288 | -// MARK: PrimitiveKind convenience initializers and mutators | |
| 15229 | +// MARK: Obj5Self convenience initializers and mutators | |
| 15289 | 15230 | |
| 15290 | -extension PrimitiveKind { | |
| 15231 | +extension Obj5Self { | |
| 15291 | 15232 | convenience init(data: Data) throws { |
| 15292 | - let me = try newJSONDecoder().decode(PrimitiveKind.self, from: data) | |
| 15293 | - self.init(primitiveKind: me.primitiveKind) | |
| 15233 | + let me = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 15234 | + self.init(selfSelf: me.selfSelf) | |
| 15294 | 15235 | } |
| 15295 | 15236 | |
| 15296 | 15237 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15305,10 +15246,10 @@ extension PrimitiveKind { | ||
| 15305 | 15246 | } |
| 15306 | 15247 | |
| 15307 | 15248 | func with( |
| 15308 | - primitiveKind: Int? = nil | |
| 15309 | - ) -> PrimitiveKind { | |
| 15310 | - return PrimitiveKind( | |
| 15311 | - primitiveKind: primitiveKind ?? self.primitiveKind | |
| 15249 | + selfSelf: Int? = nil | |
| 15250 | + ) -> Obj5Self { | |
| 15251 | + return Obj5Self( | |
| 15252 | + selfSelf: selfSelf ?? self.selfSelf | |
| 15312 | 15253 | ) |
| 15313 | 15254 | } |
| 15314 | 15255 | |
| @@ -15321,25 +15262,172 @@ extension PrimitiveKind { | ||
| 15321 | 15262 | } |
| 15322 | 15263 | } |
| 15323 | 15264 | |
| 15324 | -// MARK: - Obj5Self | |
| 15325 | -@objcMembers class Obj5Self: NSObject, Codable { | |
| 15326 | - let selfSelf: Int | |
| 15265 | +// MARK: - TrueClass | |
| 15266 | +@objcMembers class TrueClass: NSObject, Codable { | |
| 15267 | + let trueTrue: Int | |
| 15268 | + | |
| 15269 | + enum CodingKeys: String, CodingKey { | |
| 15270 | + case trueTrue = "true" | |
| 15271 | + } | |
| 15272 | + | |
| 15273 | + init(trueTrue: Int) { | |
| 15274 | + self.trueTrue = trueTrue | |
| 15275 | + } | |
| 15276 | +} | |
| 15277 | + | |
| 15278 | +// MARK: TrueClass convenience initializers and mutators | |
| 15279 | + | |
| 15280 | +extension TrueClass { | |
| 15281 | + convenience init(data: Data) throws { | |
| 15282 | + let me = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 15283 | + self.init(trueTrue: me.trueTrue) | |
| 15284 | + } | |
| 15285 | + | |
| 15286 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15287 | + guard let data = json.data(using: encoding) else { | |
| 15288 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15289 | + } | |
| 15290 | + try self.init(data: data) | |
| 15291 | + } | |
| 15292 | + | |
| 15293 | + convenience init(fromURL url: URL) throws { | |
| 15294 | + try self.init(data: try Data(contentsOf: url)) | |
| 15295 | + } | |
| 15296 | + | |
| 15297 | + func with( | |
| 15298 | + trueTrue: Int? = nil | |
| 15299 | + ) -> TrueClass { | |
| 15300 | + return TrueClass( | |
| 15301 | + trueTrue: trueTrue ?? self.trueTrue | |
| 15302 | + ) | |
| 15303 | + } | |
| 15304 | + | |
| 15305 | + func jsonData() throws -> Data { | |
| 15306 | + return try newJSONEncoder().encode(self) | |
| 15307 | + } | |
| 15308 | + | |
| 15309 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15310 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15311 | + } | |
| 15312 | +} | |
| 15313 | + | |
| 15314 | +// MARK: - S | |
| 15315 | +@objcMembers class S: NSObject, Codable { | |
| 15316 | + let s: Int | |
| 15317 | + | |
| 15318 | + enum CodingKeys: String, CodingKey { | |
| 15319 | + case s = "s" | |
| 15320 | + } | |
| 15321 | + | |
| 15322 | + init(s: Int) { | |
| 15323 | + self.s = s | |
| 15324 | + } | |
| 15325 | +} | |
| 15326 | + | |
| 15327 | +// MARK: S convenience initializers and mutators | |
| 15328 | + | |
| 15329 | +extension S { | |
| 15330 | + convenience init(data: Data) throws { | |
| 15331 | + let me = try newJSONDecoder().decode(S.self, from: data) | |
| 15332 | + self.init(s: me.s) | |
| 15333 | + } | |
| 15334 | + | |
| 15335 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15336 | + guard let data = json.data(using: encoding) else { | |
| 15337 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15338 | + } | |
| 15339 | + try self.init(data: data) | |
| 15340 | + } | |
| 15341 | + | |
| 15342 | + convenience init(fromURL url: URL) throws { | |
| 15343 | + try self.init(data: try Data(contentsOf: url)) | |
| 15344 | + } | |
| 15345 | + | |
| 15346 | + func with( | |
| 15347 | + s: Int? = nil | |
| 15348 | + ) -> S { | |
| 15349 | + return S( | |
| 15350 | + s: s ?? self.s | |
| 15351 | + ) | |
| 15352 | + } | |
| 15353 | + | |
| 15354 | + func jsonData() throws -> Data { | |
| 15355 | + return try newJSONEncoder().encode(self) | |
| 15356 | + } | |
| 15357 | + | |
| 15358 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15359 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15360 | + } | |
| 15361 | +} | |
| 15362 | + | |
| 15363 | +// MARK: - Sbyte | |
| 15364 | +@objcMembers class Sbyte: NSObject, Codable { | |
| 15365 | + let sbyte: Int | |
| 15366 | + | |
| 15367 | + enum CodingKeys: String, CodingKey { | |
| 15368 | + case sbyte = "sbyte" | |
| 15369 | + } | |
| 15370 | + | |
| 15371 | + init(sbyte: Int) { | |
| 15372 | + self.sbyte = sbyte | |
| 15373 | + } | |
| 15374 | +} | |
| 15375 | + | |
| 15376 | +// MARK: Sbyte convenience initializers and mutators | |
| 15377 | + | |
| 15378 | +extension Sbyte { | |
| 15379 | + convenience init(data: Data) throws { | |
| 15380 | + let me = try newJSONDecoder().decode(Sbyte.self, from: data) | |
| 15381 | + self.init(sbyte: me.sbyte) | |
| 15382 | + } | |
| 15383 | + | |
| 15384 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15385 | + guard let data = json.data(using: encoding) else { | |
| 15386 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15387 | + } | |
| 15388 | + try self.init(data: data) | |
| 15389 | + } | |
| 15390 | + | |
| 15391 | + convenience init(fromURL url: URL) throws { | |
| 15392 | + try self.init(data: try Data(contentsOf: url)) | |
| 15393 | + } | |
| 15394 | + | |
| 15395 | + func with( | |
| 15396 | + sbyte: Int? = nil | |
| 15397 | + ) -> Sbyte { | |
| 15398 | + return Sbyte( | |
| 15399 | + sbyte: sbyte ?? self.sbyte | |
| 15400 | + ) | |
| 15401 | + } | |
| 15402 | + | |
| 15403 | + func jsonData() throws -> Data { | |
| 15404 | + return try newJSONEncoder().encode(self) | |
| 15405 | + } | |
| 15406 | + | |
| 15407 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15408 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15409 | + } | |
| 15410 | +} | |
| 15411 | + | |
| 15412 | +// MARK: - Sealed | |
| 15413 | +@objcMembers class Sealed: NSObject, Codable { | |
| 15414 | + let sealed: Int | |
| 15327 | 15415 | |
| 15328 | 15416 | enum CodingKeys: String, CodingKey { |
| 15329 | - case selfSelf = "self" | |
| 15417 | + case sealed = "sealed" | |
| 15330 | 15418 | } |
| 15331 | 15419 | |
| 15332 | - init(selfSelf: Int) { | |
| 15333 | - self.selfSelf = selfSelf | |
| 15420 | + init(sealed: Int) { | |
| 15421 | + self.sealed = sealed | |
| 15334 | 15422 | } |
| 15335 | 15423 | } |
| 15336 | 15424 | |
| 15337 | -// MARK: Obj5Self convenience initializers and mutators | |
| 15425 | +// MARK: Sealed convenience initializers and mutators | |
| 15338 | 15426 | |
| 15339 | -extension Obj5Self { | |
| 15427 | +extension Sealed { | |
| 15340 | 15428 | convenience init(data: Data) throws { |
| 15341 | - let me = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 15342 | - self.init(selfSelf: me.selfSelf) | |
| 15429 | + let me = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 15430 | + self.init(sealed: me.sealed) | |
| 15343 | 15431 | } |
| 15344 | 15432 | |
| 15345 | 15433 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15354,10 +15442,10 @@ extension Obj5Self { | ||
| 15354 | 15442 | } |
| 15355 | 15443 | |
| 15356 | 15444 | func with( |
| 15357 | - selfSelf: Int? = nil | |
| 15358 | - ) -> Obj5Self { | |
| 15359 | - return Obj5Self( | |
| 15360 | - selfSelf: selfSelf ?? self.selfSelf | |
| 15445 | + sealed: Int? = nil | |
| 15446 | + ) -> Sealed { | |
| 15447 | + return Sealed( | |
| 15448 | + sealed: sealed ?? self.sealed | |
| 15361 | 15449 | ) |
| 15362 | 15450 | } |
| 15363 | 15451 | |
| @@ -15370,25 +15458,25 @@ extension Obj5Self { | ||
| 15370 | 15458 | } |
| 15371 | 15459 | } |
| 15372 | 15460 | |
| 15373 | -// MARK: - TrueClass | |
| 15374 | -@objcMembers class TrueClass: NSObject, Codable { | |
| 15375 | - let trueTrue: Int | |
| 15461 | +// MARK: - Sel | |
| 15462 | +@objcMembers class Sel: NSObject, Codable { | |
| 15463 | + let sel: Int | |
| 15376 | 15464 | |
| 15377 | 15465 | enum CodingKeys: String, CodingKey { |
| 15378 | - case trueTrue = "true" | |
| 15466 | + case sel = "SEL" | |
| 15379 | 15467 | } |
| 15380 | 15468 | |
| 15381 | - init(trueTrue: Int) { | |
| 15382 | - self.trueTrue = trueTrue | |
| 15469 | + init(sel: Int) { | |
| 15470 | + self.sel = sel | |
| 15383 | 15471 | } |
| 15384 | 15472 | } |
| 15385 | 15473 | |
| 15386 | -// MARK: TrueClass convenience initializers and mutators | |
| 15474 | +// MARK: Sel convenience initializers and mutators | |
| 15387 | 15475 | |
| 15388 | -extension TrueClass { | |
| 15476 | +extension Sel { | |
| 15389 | 15477 | convenience init(data: Data) throws { |
| 15390 | - let me = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 15391 | - self.init(trueTrue: me.trueTrue) | |
| 15478 | + let me = try newJSONDecoder().decode(Sel.self, from: data) | |
| 15479 | + self.init(sel: me.sel) | |
| 15392 | 15480 | } |
| 15393 | 15481 | |
| 15394 | 15482 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15403,10 +15491,10 @@ extension TrueClass { | ||
| 15403 | 15491 | } |
| 15404 | 15492 | |
| 15405 | 15493 | func with( |
| 15406 | - trueTrue: Int? = nil | |
| 15407 | - ) -> TrueClass { | |
| 15408 | - return TrueClass( | |
| 15409 | - trueTrue: trueTrue ?? self.trueTrue | |
| 15494 | + sel: Int? = nil | |
| 15495 | + ) -> Sel { | |
| 15496 | + return Sel( | |
| 15497 | + sel: sel ?? self.sel | |
| 15410 | 15498 | ) |
| 15411 | 15499 | } |
| 15412 | 15500 | |
| @@ -17526,211 +17614,20 @@ extension Undefined { | ||
| 17526 | 17614 | } |
| 17527 | 17615 | } |
| 17528 | 17616 | |
| 17529 | -// MARK: - Union | |
| 17530 | -@objcMembers class Union: NSObject, Codable { | |
| 17531 | - let union: Int | |
| 17532 | - | |
| 17533 | - enum CodingKeys: String, CodingKey { | |
| 17534 | - case union = "union" | |
| 17535 | - } | |
| 17536 | - | |
| 17537 | - init(union: Int) { | |
| 17538 | - self.union = union | |
| 17539 | - } | |
| 17540 | -} | |
| 17541 | - | |
| 17542 | -// MARK: Union convenience initializers and mutators | |
| 17543 | - | |
| 17544 | -extension Union { | |
| 17545 | - convenience init(data: Data) throws { | |
| 17546 | - let me = try newJSONDecoder().decode(Union.self, from: data) | |
| 17547 | - self.init(union: me.union) | |
| 17548 | - } | |
| 17549 | - | |
| 17550 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17551 | - guard let data = json.data(using: encoding) else { | |
| 17552 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17553 | - } | |
| 17554 | - try self.init(data: data) | |
| 17555 | - } | |
| 17556 | - | |
| 17557 | - convenience init(fromURL url: URL) throws { | |
| 17558 | - try self.init(data: try Data(contentsOf: url)) | |
| 17559 | - } | |
| 17560 | - | |
| 17561 | - func with( | |
| 17562 | - union: Int? = nil | |
| 17563 | - ) -> Union { | |
| 17564 | - return Union( | |
| 17565 | - union: union ?? self.union | |
| 17566 | - ) | |
| 17567 | - } | |
| 17568 | - | |
| 17569 | - func jsonData() throws -> Data { | |
| 17570 | - return try newJSONEncoder().encode(self) | |
| 17571 | - } | |
| 17572 | - | |
| 17573 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17574 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17575 | - } | |
| 17576 | -} | |
| 17577 | - | |
| 17578 | -// MARK: - UnmarshalJSON | |
| 17579 | -@objcMembers class UnmarshalJSON: NSObject, Codable { | |
| 17580 | - let unmarshalJSON: Int | |
| 17581 | - | |
| 17582 | - enum CodingKeys: String, CodingKey { | |
| 17583 | - case unmarshalJSON = "UnmarshalJSON" | |
| 17584 | - } | |
| 17585 | - | |
| 17586 | - init(unmarshalJSON: Int) { | |
| 17587 | - self.unmarshalJSON = unmarshalJSON | |
| 17588 | - } | |
| 17589 | -} | |
| 17590 | - | |
| 17591 | -// MARK: UnmarshalJSON convenience initializers and mutators | |
| 17592 | - | |
| 17593 | -extension UnmarshalJSON { | |
| 17594 | - convenience init(data: Data) throws { | |
| 17595 | - let me = try newJSONDecoder().decode(UnmarshalJSON.self, from: data) | |
| 17596 | - self.init(unmarshalJSON: me.unmarshalJSON) | |
| 17597 | - } | |
| 17598 | - | |
| 17599 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17600 | - guard let data = json.data(using: encoding) else { | |
| 17601 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17602 | - } | |
| 17603 | - try self.init(data: data) | |
| 17604 | - } | |
| 17605 | - | |
| 17606 | - convenience init(fromURL url: URL) throws { | |
| 17607 | - try self.init(data: try Data(contentsOf: url)) | |
| 17608 | - } | |
| 17609 | - | |
| 17610 | - func with( | |
| 17611 | - unmarshalJSON: Int? = nil | |
| 17612 | - ) -> UnmarshalJSON { | |
| 17613 | - return UnmarshalJSON( | |
| 17614 | - unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON | |
| 17615 | - ) | |
| 17616 | - } | |
| 17617 | - | |
| 17618 | - func jsonData() throws -> Data { | |
| 17619 | - return try newJSONEncoder().encode(self) | |
| 17620 | - } | |
| 17621 | - | |
| 17622 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17623 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17624 | - } | |
| 17625 | -} | |
| 17626 | - | |
| 17627 | -// MARK: - Unsafe | |
| 17628 | -@objcMembers class Unsafe: NSObject, Codable { | |
| 17629 | - let unsafe: Int | |
| 17630 | - | |
| 17631 | - enum CodingKeys: String, CodingKey { | |
| 17632 | - case unsafe = "unsafe" | |
| 17633 | - } | |
| 17634 | - | |
| 17635 | - init(unsafe: Int) { | |
| 17636 | - self.unsafe = unsafe | |
| 17637 | - } | |
| 17638 | -} | |
| 17639 | - | |
| 17640 | -// MARK: Unsafe convenience initializers and mutators | |
| 17641 | - | |
| 17642 | -extension Unsafe { | |
| 17643 | - convenience init(data: Data) throws { | |
| 17644 | - let me = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 17645 | - self.init(unsafe: me.unsafe) | |
| 17646 | - } | |
| 17647 | - | |
| 17648 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17649 | - guard let data = json.data(using: encoding) else { | |
| 17650 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17651 | - } | |
| 17652 | - try self.init(data: data) | |
| 17653 | - } | |
| 17654 | - | |
| 17655 | - convenience init(fromURL url: URL) throws { | |
| 17656 | - try self.init(data: try Data(contentsOf: url)) | |
| 17657 | - } | |
| 17658 | - | |
| 17659 | - func with( | |
| 17660 | - unsafe: Int? = nil | |
| 17661 | - ) -> Unsafe { | |
| 17662 | - return Unsafe( | |
| 17663 | - unsafe: unsafe ?? self.unsafe | |
| 17664 | - ) | |
| 17665 | - } | |
| 17666 | - | |
| 17667 | - func jsonData() throws -> Data { | |
| 17668 | - return try newJSONEncoder().encode(self) | |
| 17669 | - } | |
| 17670 | - | |
| 17671 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17672 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17673 | - } | |
| 17674 | -} | |
| 17675 | - | |
| 17676 | -// MARK: - UseSerializers | |
| 17677 | -@objcMembers class UseSerializers: NSObject, Codable { | |
| 17678 | - let useSerializers: Int | |
| 17679 | - | |
| 17680 | - enum CodingKeys: String, CodingKey { | |
| 17681 | - case useSerializers = "UseSerializers" | |
| 17682 | - } | |
| 17683 | - | |
| 17684 | - init(useSerializers: Int) { | |
| 17685 | - self.useSerializers = useSerializers | |
| 17686 | - } | |
| 17687 | -} | |
| 17688 | - | |
| 17689 | -// MARK: UseSerializers convenience initializers and mutators | |
| 17690 | - | |
| 17691 | -extension UseSerializers { | |
| 17692 | - convenience init(data: Data) throws { | |
| 17693 | - let me = try newJSONDecoder().decode(UseSerializers.self, from: data) | |
| 17694 | - self.init(useSerializers: me.useSerializers) | |
| 17695 | - } | |
| 17696 | - | |
| 17697 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17698 | - guard let data = json.data(using: encoding) else { | |
| 17699 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17700 | - } | |
| 17701 | - try self.init(data: data) | |
| 17702 | - } | |
| 17703 | - | |
| 17704 | - convenience init(fromURL url: URL) throws { | |
| 17705 | - try self.init(data: try Data(contentsOf: url)) | |
| 17706 | - } | |
| 17707 | - | |
| 17708 | - func with( | |
| 17709 | - useSerializers: Int? = nil | |
| 17710 | - ) -> UseSerializers { | |
| 17711 | - return UseSerializers( | |
| 17712 | - useSerializers: useSerializers ?? self.useSerializers | |
| 17713 | - ) | |
| 17714 | - } | |
| 17715 | - | |
| 17716 | - func jsonData() throws -> Data { | |
| 17717 | - return try newJSONEncoder().encode(self) | |
| 17718 | - } | |
| 17719 | - | |
| 17720 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17721 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17722 | - } | |
| 17723 | -} | |
| 17724 | - | |
| 17725 | 17617 | // MARK: - Obj6 |
| 17726 | 17618 | @objcMembers class Obj6: NSObject, Codable { |
| 17727 | 17619 | let dummy: Int |
| 17620 | + let obj6Unowned: Unowned | |
| 17728 | 17621 | let obj6Var: Var |
| 17729 | 17622 | let obj6Weak: Weak |
| 17730 | 17623 | let obj6Where: Where |
| 17731 | 17624 | let obj6While: While |
| 17732 | 17625 | let obj6WillSet: WillSet |
| 17626 | + let union: Union | |
| 17627 | + let unmarshalJSON: UnmarshalJSON | |
| 17628 | + let unsafe: Unsafe | |
| 17733 | 17629 | let unsigned: Unsigned |
| 17630 | + let useSerializers: UseSerializers | |
| 17734 | 17631 | let ushort: Ushort |
| 17735 | 17632 | let using: Using |
| 17736 | 17633 | let utf8JSONReader: Utf8JSONReader |
| @@ -17748,12 +17645,17 @@ extension UseSerializers { | ||
| 17748 | 17645 | |
| 17749 | 17646 | enum CodingKeys: String, CodingKey { |
| 17750 | 17647 | case dummy = "dummy" |
| 17648 | + case obj6Unowned = "unowned" | |
| 17751 | 17649 | case obj6Var = "var" |
| 17752 | 17650 | case obj6Weak = "weak" |
| 17753 | 17651 | case obj6Where = "where" |
| 17754 | 17652 | case obj6While = "while" |
| 17755 | 17653 | case obj6WillSet = "willSet" |
| 17654 | + case union = "union" | |
| 17655 | + case unmarshalJSON = "UnmarshalJSON" | |
| 17656 | + case unsafe = "unsafe" | |
| 17756 | 17657 | case unsigned = "unsigned" |
| 17658 | + case useSerializers = "UseSerializers" | |
| 17757 | 17659 | case ushort = "ushort" |
| 17758 | 17660 | case using = "using" |
| 17759 | 17661 | case utf8JSONReader = "Utf8JsonReader" |
| @@ -17770,14 +17672,19 @@ extension UseSerializers { | ||
| 17770 | 17672 | case yield = "yield" |
| 17771 | 17673 | } |
| 17772 | 17674 | |
| 17773 | - init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, unsigned: Unsigned, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) { | |
| 17675 | + init(dummy: Int, obj6Unowned: Unowned, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, union: Union, unmarshalJSON: UnmarshalJSON, unsafe: Unsafe, unsigned: Unsigned, useSerializers: UseSerializers, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) { | |
| 17774 | 17676 | self.dummy = dummy |
| 17677 | + self.obj6Unowned = obj6Unowned | |
| 17775 | 17678 | self.obj6Var = obj6Var |
| 17776 | 17679 | self.obj6Weak = obj6Weak |
| 17777 | 17680 | self.obj6Where = obj6Where |
| 17778 | 17681 | self.obj6While = obj6While |
| 17779 | 17682 | self.obj6WillSet = obj6WillSet |
| 17683 | + self.union = union | |
| 17684 | + self.unmarshalJSON = unmarshalJSON | |
| 17685 | + self.unsafe = unsafe | |
| 17780 | 17686 | self.unsigned = unsigned |
| 17687 | + self.useSerializers = useSerializers | |
| 17781 | 17688 | self.ushort = ushort |
| 17782 | 17689 | self.using = using |
| 17783 | 17690 | self.utf8JSONReader = utf8JSONReader |
| @@ -17800,7 +17707,7 @@ extension UseSerializers { | ||
| 17800 | 17707 | extension Obj6 { |
| 17801 | 17708 | convenience init(data: Data) throws { |
| 17802 | 17709 | let me = try newJSONDecoder().decode(Obj6.self, from: data) |
| 17803 | - self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, unsigned: me.unsigned, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield) | |
| 17710 | + self.init(dummy: me.dummy, obj6Unowned: me.obj6Unowned, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, union: me.union, unmarshalJSON: me.unmarshalJSON, unsafe: me.unsafe, unsigned: me.unsigned, useSerializers: me.useSerializers, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield) | |
| 17804 | 17711 | } |
| 17805 | 17712 | |
| 17806 | 17713 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17816,12 +17723,17 @@ extension Obj6 { | ||
| 17816 | 17723 | |
| 17817 | 17724 | func with( |
| 17818 | 17725 | dummy: Int? = nil, |
| 17726 | + obj6Unowned: Unowned? = nil, | |
| 17819 | 17727 | obj6Var: Var? = nil, |
| 17820 | 17728 | obj6Weak: Weak? = nil, |
| 17821 | 17729 | obj6Where: Where? = nil, |
| 17822 | 17730 | obj6While: While? = nil, |
| 17823 | 17731 | obj6WillSet: WillSet? = nil, |
| 17732 | + union: Union? = nil, | |
| 17733 | + unmarshalJSON: UnmarshalJSON? = nil, | |
| 17734 | + unsafe: Unsafe? = nil, | |
| 17824 | 17735 | unsigned: Unsigned? = nil, |
| 17736 | + useSerializers: UseSerializers? = nil, | |
| 17825 | 17737 | ushort: Ushort? = nil, |
| 17826 | 17738 | using: Using? = nil, |
| 17827 | 17739 | utf8JSONReader: Utf8JSONReader? = nil, |
| @@ -17839,12 +17751,17 @@ extension Obj6 { | ||
| 17839 | 17751 | ) -> Obj6 { |
| 17840 | 17752 | return Obj6( |
| 17841 | 17753 | dummy: dummy ?? self.dummy, |
| 17754 | + obj6Unowned: obj6Unowned ?? self.obj6Unowned, | |
| 17842 | 17755 | obj6Var: obj6Var ?? self.obj6Var, |
| 17843 | 17756 | obj6Weak: obj6Weak ?? self.obj6Weak, |
| 17844 | 17757 | obj6Where: obj6Where ?? self.obj6Where, |
| 17845 | 17758 | obj6While: obj6While ?? self.obj6While, |
| 17846 | 17759 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 17760 | + union: union ?? self.union, | |
| 17761 | + unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON, | |
| 17762 | + unsafe: unsafe ?? self.unsafe, | |
| 17847 | 17763 | unsigned: unsigned ?? self.unsigned, |
| 17764 | + useSerializers: useSerializers ?? self.useSerializers, | |
| 17848 | 17765 | ushort: ushort ?? self.ushort, |
| 17849 | 17766 | using: using ?? self.using, |
| 17850 | 17767 | utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, |
| @@ -17871,6 +17788,55 @@ extension Obj6 { | ||
| 17871 | 17788 | } |
| 17872 | 17789 | } |
| 17873 | 17790 | |
| 17791 | +// MARK: - Unowned | |
| 17792 | +@objcMembers class Unowned: NSObject, Codable { | |
| 17793 | + let unownedUnowned: Int | |
| 17794 | + | |
| 17795 | + enum CodingKeys: String, CodingKey { | |
| 17796 | + case unownedUnowned = "unowned" | |
| 17797 | + } | |
| 17798 | + | |
| 17799 | + init(unownedUnowned: Int) { | |
| 17800 | + self.unownedUnowned = unownedUnowned | |
| 17801 | + } | |
| 17802 | +} | |
| 17803 | + | |
| 17804 | +// MARK: Unowned convenience initializers and mutators | |
| 17805 | + | |
| 17806 | +extension Unowned { | |
| 17807 | + convenience init(data: Data) throws { | |
| 17808 | + let me = try newJSONDecoder().decode(Unowned.self, from: data) | |
| 17809 | + self.init(unownedUnowned: me.unownedUnowned) | |
| 17810 | + } | |
| 17811 | + | |
| 17812 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17813 | + guard let data = json.data(using: encoding) else { | |
| 17814 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17815 | + } | |
| 17816 | + try self.init(data: data) | |
| 17817 | + } | |
| 17818 | + | |
| 17819 | + convenience init(fromURL url: URL) throws { | |
| 17820 | + try self.init(data: try Data(contentsOf: url)) | |
| 17821 | + } | |
| 17822 | + | |
| 17823 | + func with( | |
| 17824 | + unownedUnowned: Int? = nil | |
| 17825 | + ) -> Unowned { | |
| 17826 | + return Unowned( | |
| 17827 | + unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 17828 | + ) | |
| 17829 | + } | |
| 17830 | + | |
| 17831 | + func jsonData() throws -> Data { | |
| 17832 | + return try newJSONEncoder().encode(self) | |
| 17833 | + } | |
| 17834 | + | |
| 17835 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17836 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 17837 | + } | |
| 17838 | +} | |
| 17839 | + | |
| 17874 | 17840 | // MARK: - Var |
| 17875 | 17841 | @objcMembers class Var: NSObject, Codable { |
| 17876 | 17842 | let varVar: Int |
| @@ -18116,6 +18082,153 @@ extension WillSet { | ||
| 18116 | 18082 | } |
| 18117 | 18083 | } |
| 18118 | 18084 | |
| 18085 | +// MARK: - Union | |
| 18086 | +@objcMembers class Union: NSObject, Codable { | |
| 18087 | + let union: Int | |
| 18088 | + | |
| 18089 | + enum CodingKeys: String, CodingKey { | |
| 18090 | + case union = "union" | |
| 18091 | + } | |
| 18092 | + | |
| 18093 | + init(union: Int) { | |
| 18094 | + self.union = union | |
| 18095 | + } | |
| 18096 | +} | |
| 18097 | + | |
| 18098 | +// MARK: Union convenience initializers and mutators | |
| 18099 | + | |
| 18100 | +extension Union { | |
| 18101 | + convenience init(data: Data) throws { | |
| 18102 | + let me = try newJSONDecoder().decode(Union.self, from: data) | |
| 18103 | + self.init(union: me.union) | |
| 18104 | + } | |
| 18105 | + | |
| 18106 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18107 | + guard let data = json.data(using: encoding) else { | |
| 18108 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18109 | + } | |
| 18110 | + try self.init(data: data) | |
| 18111 | + } | |
| 18112 | + | |
| 18113 | + convenience init(fromURL url: URL) throws { | |
| 18114 | + try self.init(data: try Data(contentsOf: url)) | |
| 18115 | + } | |
| 18116 | + | |
| 18117 | + func with( | |
| 18118 | + union: Int? = nil | |
| 18119 | + ) -> Union { | |
| 18120 | + return Union( | |
| 18121 | + union: union ?? self.union | |
| 18122 | + ) | |
| 18123 | + } | |
| 18124 | + | |
| 18125 | + func jsonData() throws -> Data { | |
| 18126 | + return try newJSONEncoder().encode(self) | |
| 18127 | + } | |
| 18128 | + | |
| 18129 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18130 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18131 | + } | |
| 18132 | +} | |
| 18133 | + | |
| 18134 | +// MARK: - UnmarshalJSON | |
| 18135 | +@objcMembers class UnmarshalJSON: NSObject, Codable { | |
| 18136 | + let unmarshalJSON: Int | |
| 18137 | + | |
| 18138 | + enum CodingKeys: String, CodingKey { | |
| 18139 | + case unmarshalJSON = "UnmarshalJSON" | |
| 18140 | + } | |
| 18141 | + | |
| 18142 | + init(unmarshalJSON: Int) { | |
| 18143 | + self.unmarshalJSON = unmarshalJSON | |
| 18144 | + } | |
| 18145 | +} | |
| 18146 | + | |
| 18147 | +// MARK: UnmarshalJSON convenience initializers and mutators | |
| 18148 | + | |
| 18149 | +extension UnmarshalJSON { | |
| 18150 | + convenience init(data: Data) throws { | |
| 18151 | + let me = try newJSONDecoder().decode(UnmarshalJSON.self, from: data) | |
| 18152 | + self.init(unmarshalJSON: me.unmarshalJSON) | |
| 18153 | + } | |
| 18154 | + | |
| 18155 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18156 | + guard let data = json.data(using: encoding) else { | |
| 18157 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18158 | + } | |
| 18159 | + try self.init(data: data) | |
| 18160 | + } | |
| 18161 | + | |
| 18162 | + convenience init(fromURL url: URL) throws { | |
| 18163 | + try self.init(data: try Data(contentsOf: url)) | |
| 18164 | + } | |
| 18165 | + | |
| 18166 | + func with( | |
| 18167 | + unmarshalJSON: Int? = nil | |
| 18168 | + ) -> UnmarshalJSON { | |
| 18169 | + return UnmarshalJSON( | |
| 18170 | + unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON | |
| 18171 | + ) | |
| 18172 | + } | |
| 18173 | + | |
| 18174 | + func jsonData() throws -> Data { | |
| 18175 | + return try newJSONEncoder().encode(self) | |
| 18176 | + } | |
| 18177 | + | |
| 18178 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18179 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18180 | + } | |
| 18181 | +} | |
| 18182 | + | |
| 18183 | +// MARK: - Unsafe | |
| 18184 | +@objcMembers class Unsafe: NSObject, Codable { | |
| 18185 | + let unsafe: Int | |
| 18186 | + | |
| 18187 | + enum CodingKeys: String, CodingKey { | |
| 18188 | + case unsafe = "unsafe" | |
| 18189 | + } | |
| 18190 | + | |
| 18191 | + init(unsafe: Int) { | |
| 18192 | + self.unsafe = unsafe | |
| 18193 | + } | |
| 18194 | +} | |
| 18195 | + | |
| 18196 | +// MARK: Unsafe convenience initializers and mutators | |
| 18197 | + | |
| 18198 | +extension Unsafe { | |
| 18199 | + convenience init(data: Data) throws { | |
| 18200 | + let me = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 18201 | + self.init(unsafe: me.unsafe) | |
| 18202 | + } | |
| 18203 | + | |
| 18204 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18205 | + guard let data = json.data(using: encoding) else { | |
| 18206 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18207 | + } | |
| 18208 | + try self.init(data: data) | |
| 18209 | + } | |
| 18210 | + | |
| 18211 | + convenience init(fromURL url: URL) throws { | |
| 18212 | + try self.init(data: try Data(contentsOf: url)) | |
| 18213 | + } | |
| 18214 | + | |
| 18215 | + func with( | |
| 18216 | + unsafe: Int? = nil | |
| 18217 | + ) -> Unsafe { | |
| 18218 | + return Unsafe( | |
| 18219 | + unsafe: unsafe ?? self.unsafe | |
| 18220 | + ) | |
| 18221 | + } | |
| 18222 | + | |
| 18223 | + func jsonData() throws -> Data { | |
| 18224 | + return try newJSONEncoder().encode(self) | |
| 18225 | + } | |
| 18226 | + | |
| 18227 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18228 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18229 | + } | |
| 18230 | +} | |
| 18231 | + | |
| 18119 | 18232 | // MARK: - Unsigned |
| 18120 | 18233 | @objcMembers class Unsigned: NSObject, Codable { |
| 18121 | 18234 | let unsigned: Int |
| @@ -18165,6 +18278,55 @@ extension Unsigned { | ||
| 18165 | 18278 | } |
| 18166 | 18279 | } |
| 18167 | 18280 | |
| 18281 | +// MARK: - UseSerializers | |
| 18282 | +@objcMembers class UseSerializers: NSObject, Codable { | |
| 18283 | + let useSerializers: Int | |
| 18284 | + | |
| 18285 | + enum CodingKeys: String, CodingKey { | |
| 18286 | + case useSerializers = "UseSerializers" | |
| 18287 | + } | |
| 18288 | + | |
| 18289 | + init(useSerializers: Int) { | |
| 18290 | + self.useSerializers = useSerializers | |
| 18291 | + } | |
| 18292 | +} | |
| 18293 | + | |
| 18294 | +// MARK: UseSerializers convenience initializers and mutators | |
| 18295 | + | |
| 18296 | +extension UseSerializers { | |
| 18297 | + convenience init(data: Data) throws { | |
| 18298 | + let me = try newJSONDecoder().decode(UseSerializers.self, from: data) | |
| 18299 | + self.init(useSerializers: me.useSerializers) | |
| 18300 | + } | |
| 18301 | + | |
| 18302 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18303 | + guard let data = json.data(using: encoding) else { | |
| 18304 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18305 | + } | |
| 18306 | + try self.init(data: data) | |
| 18307 | + } | |
| 18308 | + | |
| 18309 | + convenience init(fromURL url: URL) throws { | |
| 18310 | + try self.init(data: try Data(contentsOf: url)) | |
| 18311 | + } | |
| 18312 | + | |
| 18313 | + func with( | |
| 18314 | + useSerializers: Int? = nil | |
| 18315 | + ) -> UseSerializers { | |
| 18316 | + return UseSerializers( | |
| 18317 | + useSerializers: useSerializers ?? self.useSerializers | |
| 18318 | + ) | |
| 18319 | + } | |
| 18320 | + | |
| 18321 | + func jsonData() throws -> Data { | |
| 18322 | + return try newJSONEncoder().encode(self) | |
| 18323 | + } | |
| 18324 | + | |
| 18325 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18326 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18327 | + } | |
| 18328 | +} | |
| 18329 | + | |
| 18168 | 18330 | // MARK: - Ushort |
| 18169 | 18331 | @objcMembers class Ushort: NSObject, Codable { |
| 18170 | 18332 | let ushort: Int |
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+858 −696
| @@ -7140,6 +7140,7 @@ struct Obj3: Codable, Equatable { | ||
| 7140 | 7140 | let jsonWriter: JSONWriter |
| 7141 | 7141 | let lambda: Lambda |
| 7142 | 7142 | let list: List |
| 7143 | + let localDate: LocalDate | |
| 7143 | 7144 | let locale: LocaleClass |
| 7144 | 7145 | let lock: Lock |
| 7145 | 7146 | let long: Long |
| @@ -7153,7 +7154,6 @@ struct Obj3: Codable, Equatable { | ||
| 7153 | 7154 | let native: Native |
| 7154 | 7155 | let new: New |
| 7155 | 7156 | let newtonsoft: Newtonsoft |
| 7156 | - let no: No | |
| 7157 | 7157 | let obj3Guard: Guard |
| 7158 | 7158 | let obj3If: If |
| 7159 | 7159 | let obj3Import: Import |
| @@ -7169,7 +7169,6 @@ struct Obj3: Codable, Equatable { | ||
| 7169 | 7169 | let obj3Left: Left |
| 7170 | 7170 | let obj3Let: Let |
| 7171 | 7171 | let obj3Mutating: Mutating |
| 7172 | - let obj3Nil: Nil | |
| 7173 | 7172 | |
| 7174 | 7173 | enum CodingKeys: String, CodingKey { |
| 7175 | 7174 | case dummy = "dummy" |
| @@ -7208,6 +7207,7 @@ struct Obj3: Codable, Equatable { | ||
| 7208 | 7207 | case jsonWriter = "json_writer" |
| 7209 | 7208 | case lambda = "lambda" |
| 7210 | 7209 | case list = "list" |
| 7210 | + case localDate = "LocalDate" | |
| 7211 | 7211 | case locale = "Locale" |
| 7212 | 7212 | case lock = "lock" |
| 7213 | 7213 | case long = "long" |
| @@ -7221,7 +7221,6 @@ struct Obj3: Codable, Equatable { | ||
| 7221 | 7221 | case native = "native" |
| 7222 | 7222 | case new = "new" |
| 7223 | 7223 | case newtonsoft = "newtonsoft" |
| 7224 | - case no = "NO" | |
| 7225 | 7224 | case obj3Guard = "guard" |
| 7226 | 7225 | case obj3If = "if" |
| 7227 | 7226 | case obj3Import = "import" |
| @@ -7237,7 +7236,6 @@ struct Obj3: Codable, Equatable { | ||
| 7237 | 7236 | case obj3Left = "left" |
| 7238 | 7237 | case obj3Let = "let" |
| 7239 | 7238 | case obj3Mutating = "mutating" |
| 7240 | - case obj3Nil = "nil" | |
| 7241 | 7239 | } |
| 7242 | 7240 | } |
| 7243 | 7241 | |
| @@ -7296,6 +7294,7 @@ extension Obj3 { | ||
| 7296 | 7294 | jsonWriter: JSONWriter? = nil, |
| 7297 | 7295 | lambda: Lambda? = nil, |
| 7298 | 7296 | list: List? = nil, |
| 7297 | + localDate: LocalDate? = nil, | |
| 7299 | 7298 | locale: LocaleClass? = nil, |
| 7300 | 7299 | lock: Lock? = nil, |
| 7301 | 7300 | long: Long? = nil, |
| @@ -7309,7 +7308,6 @@ extension Obj3 { | ||
| 7309 | 7308 | native: Native? = nil, |
| 7310 | 7309 | new: New? = nil, |
| 7311 | 7310 | newtonsoft: Newtonsoft? = nil, |
| 7312 | - no: No? = nil, | |
| 7313 | 7311 | obj3Guard: Guard? = nil, |
| 7314 | 7312 | obj3If: If? = nil, |
| 7315 | 7313 | obj3Import: Import? = nil, |
| @@ -7324,8 +7322,7 @@ extension Obj3 { | ||
| 7324 | 7322 | obj3Lazy: Lazy? = nil, |
| 7325 | 7323 | obj3Left: Left? = nil, |
| 7326 | 7324 | obj3Let: Let? = nil, |
| 7327 | - obj3Mutating: Mutating? = nil, | |
| 7328 | - obj3Nil: Nil? = nil | |
| 7325 | + obj3Mutating: Mutating? = nil | |
| 7329 | 7326 | ) -> Obj3 { |
| 7330 | 7327 | return Obj3( |
| 7331 | 7328 | dummy: dummy ?? self.dummy, |
| @@ -7364,6 +7361,7 @@ extension Obj3 { | ||
| 7364 | 7361 | jsonWriter: jsonWriter ?? self.jsonWriter, |
| 7365 | 7362 | lambda: lambda ?? self.lambda, |
| 7366 | 7363 | list: list ?? self.list, |
| 7364 | + localDate: localDate ?? self.localDate, | |
| 7367 | 7365 | locale: locale ?? self.locale, |
| 7368 | 7366 | lock: lock ?? self.lock, |
| 7369 | 7367 | long: long ?? self.long, |
| @@ -7377,7 +7375,6 @@ extension Obj3 { | ||
| 7377 | 7375 | native: native ?? self.native, |
| 7378 | 7376 | new: new ?? self.new, |
| 7379 | 7377 | newtonsoft: newtonsoft ?? self.newtonsoft, |
| 7380 | - no: no ?? self.no, | |
| 7381 | 7378 | obj3Guard: obj3Guard ?? self.obj3Guard, |
| 7382 | 7379 | obj3If: obj3If ?? self.obj3If, |
| 7383 | 7380 | obj3Import: obj3Import ?? self.obj3Import, |
| @@ -7392,8 +7389,7 @@ extension Obj3 { | ||
| 7392 | 7389 | obj3Lazy: obj3Lazy ?? self.obj3Lazy, |
| 7393 | 7390 | obj3Left: obj3Left ?? self.obj3Left, |
| 7394 | 7391 | obj3Let: obj3Let ?? self.obj3Let, |
| 7395 | - obj3Mutating: obj3Mutating ?? self.obj3Mutating, | |
| 7396 | - obj3Nil: obj3Nil ?? self.obj3Nil | |
| 7392 | + obj3Mutating: obj3Mutating ?? self.obj3Mutating | |
| 7397 | 7393 | ) |
| 7398 | 7394 | } |
| 7399 | 7395 | |
| @@ -9162,6 +9158,56 @@ extension List { | ||
| 9162 | 9158 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 9163 | 9159 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 9164 | 9160 | |
| 9161 | +// MARK: - LocalDate | |
| 9162 | +struct LocalDate: Codable, Equatable { | |
| 9163 | + let localDate: Int | |
| 9164 | + | |
| 9165 | + enum CodingKeys: String, CodingKey { | |
| 9166 | + case localDate = "LocalDate" | |
| 9167 | + } | |
| 9168 | +} | |
| 9169 | + | |
| 9170 | +// MARK: LocalDate convenience initializers and mutators | |
| 9171 | + | |
| 9172 | +extension LocalDate { | |
| 9173 | + init(data: Data) throws { | |
| 9174 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 9175 | + } | |
| 9176 | + | |
| 9177 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9178 | + guard let data = json.data(using: encoding) else { | |
| 9179 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9180 | + } | |
| 9181 | + try self.init(data: data) | |
| 9182 | + } | |
| 9183 | + | |
| 9184 | + init(fromURL url: URL) throws { | |
| 9185 | + try self.init(data: try Data(contentsOf: url)) | |
| 9186 | + } | |
| 9187 | + | |
| 9188 | + func with( | |
| 9189 | + localDate: Int? = nil | |
| 9190 | + ) -> LocalDate { | |
| 9191 | + return LocalDate( | |
| 9192 | + localDate: localDate ?? self.localDate | |
| 9193 | + ) | |
| 9194 | + } | |
| 9195 | + | |
| 9196 | + func jsonData() throws -> Data { | |
| 9197 | + return try newJSONEncoder().encode(self) | |
| 9198 | + } | |
| 9199 | + | |
| 9200 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9201 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 9202 | + } | |
| 9203 | +} | |
| 9204 | + | |
| 9205 | +// | |
| 9206 | +// Hashable or Equatable: | |
| 9207 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 9208 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 9209 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 9210 | + | |
| 9165 | 9211 | // MARK: - LocaleClass |
| 9166 | 9212 | struct LocaleClass: Codable, Equatable { |
| 9167 | 9213 | let locale: Int |
| @@ -9812,56 +9858,6 @@ extension Newtonsoft { | ||
| 9812 | 9858 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 9813 | 9859 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 9814 | 9860 | |
| 9815 | -// MARK: - No | |
| 9816 | -struct No: Codable, Equatable { | |
| 9817 | - let no: Int | |
| 9818 | - | |
| 9819 | - enum CodingKeys: String, CodingKey { | |
| 9820 | - case no = "NO" | |
| 9821 | - } | |
| 9822 | -} | |
| 9823 | - | |
| 9824 | -// MARK: No convenience initializers and mutators | |
| 9825 | - | |
| 9826 | -extension No { | |
| 9827 | - init(data: Data) throws { | |
| 9828 | - self = try newJSONDecoder().decode(No.self, from: data) | |
| 9829 | - } | |
| 9830 | - | |
| 9831 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9832 | - guard let data = json.data(using: encoding) else { | |
| 9833 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9834 | - } | |
| 9835 | - try self.init(data: data) | |
| 9836 | - } | |
| 9837 | - | |
| 9838 | - init(fromURL url: URL) throws { | |
| 9839 | - try self.init(data: try Data(contentsOf: url)) | |
| 9840 | - } | |
| 9841 | - | |
| 9842 | - func with( | |
| 9843 | - no: Int? = nil | |
| 9844 | - ) -> No { | |
| 9845 | - return No( | |
| 9846 | - no: no ?? self.no | |
| 9847 | - ) | |
| 9848 | - } | |
| 9849 | - | |
| 9850 | - func jsonData() throws -> Data { | |
| 9851 | - return try newJSONEncoder().encode(self) | |
| 9852 | - } | |
| 9853 | - | |
| 9854 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9855 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 9856 | - } | |
| 9857 | -} | |
| 9858 | - | |
| 9859 | -// | |
| 9860 | -// Hashable or Equatable: | |
| 9861 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 9862 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 9863 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 9864 | - | |
| 9865 | 9861 | // MARK: - Guard |
| 9866 | 9862 | struct Guard: Codable, Equatable { |
| 9867 | 9863 | let guardGuard: Int |
| @@ -10612,59 +10608,10 @@ extension Mutating { | ||
| 10612 | 10608 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 10613 | 10609 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 10614 | 10610 | |
| 10615 | -// MARK: - Nil | |
| 10616 | -struct Nil: Codable, Equatable { | |
| 10617 | - let nilNil: Int | |
| 10618 | - | |
| 10619 | - enum CodingKeys: String, CodingKey { | |
| 10620 | - case nilNil = "nil" | |
| 10621 | - } | |
| 10622 | -} | |
| 10623 | - | |
| 10624 | -// MARK: Nil convenience initializers and mutators | |
| 10625 | - | |
| 10626 | -extension Nil { | |
| 10627 | - init(data: Data) throws { | |
| 10628 | - self = try newJSONDecoder().decode(Nil.self, from: data) | |
| 10629 | - } | |
| 10630 | - | |
| 10631 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10632 | - guard let data = json.data(using: encoding) else { | |
| 10633 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 10634 | - } | |
| 10635 | - try self.init(data: data) | |
| 10636 | - } | |
| 10637 | - | |
| 10638 | - init(fromURL url: URL) throws { | |
| 10639 | - try self.init(data: try Data(contentsOf: url)) | |
| 10640 | - } | |
| 10641 | - | |
| 10642 | - func with( | |
| 10643 | - nilNil: Int? = nil | |
| 10644 | - ) -> Nil { | |
| 10645 | - return Nil( | |
| 10646 | - nilNil: nilNil ?? self.nilNil | |
| 10647 | - ) | |
| 10648 | - } | |
| 10649 | - | |
| 10650 | - func jsonData() throws -> Data { | |
| 10651 | - return try newJSONEncoder().encode(self) | |
| 10652 | - } | |
| 10653 | - | |
| 10654 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 10655 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 10656 | - } | |
| 10657 | -} | |
| 10658 | - | |
| 10659 | -// | |
| 10660 | -// Hashable or Equatable: | |
| 10661 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 10662 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 10663 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 10664 | - | |
| 10665 | 10611 | // MARK: - Obj4 |
| 10666 | 10612 | struct Obj4: Codable, Equatable { |
| 10667 | 10613 | let dummy: Int |
| 10614 | + let no: No | |
| 10668 | 10615 | let noSuchMethod: NoSuchMethod |
| 10669 | 10616 | let noexcept: Noexcept |
| 10670 | 10617 | let nonatomic: Nonatomic |
| @@ -10678,6 +10625,7 @@ struct Obj4: Codable, Equatable { | ||
| 10678 | 10625 | let null: Null |
| 10679 | 10626 | let nullptr: Nullptr |
| 10680 | 10627 | let number: Number |
| 10628 | + let obj4Nil: Nil | |
| 10681 | 10629 | let obj4None: NoneClass |
| 10682 | 10630 | let obj4Nonmutating: Nonmutating |
| 10683 | 10631 | let obj4Null: NullClass |
| @@ -10699,6 +10647,8 @@ struct Obj4: Codable, Equatable { | ||
| 10699 | 10647 | let object: Object |
| 10700 | 10648 | let objectMapper: ObjectMapper |
| 10701 | 10649 | let of: Of |
| 10650 | + let offsetDateTime: OffsetDateTime | |
| 10651 | + let offsetTime: OffsetTime | |
| 10702 | 10652 | let oneway: Oneway |
| 10703 | 10653 | let or: Or |
| 10704 | 10654 | let orEq: OrEq |
| @@ -10725,13 +10675,10 @@ struct Obj4: Codable, Equatable { | ||
| 10725 | 10675 | let restrict: Restrict |
| 10726 | 10676 | let retain: Retain |
| 10727 | 10677 | let runtimeType: RuntimeType |
| 10728 | - let s: S | |
| 10729 | - let sbyte: Sbyte | |
| 10730 | - let sealed: Sealed | |
| 10731 | - let sel: Sel | |
| 10732 | 10678 | |
| 10733 | 10679 | enum CodingKeys: String, CodingKey { |
| 10734 | 10680 | case dummy = "dummy" |
| 10681 | + case no = "NO" | |
| 10735 | 10682 | case noSuchMethod = "noSuchMethod" |
| 10736 | 10683 | case noexcept = "noexcept" |
| 10737 | 10684 | case nonatomic = "nonatomic" |
| @@ -10745,6 +10692,7 @@ struct Obj4: Codable, Equatable { | ||
| 10745 | 10692 | case null = "NULL" |
| 10746 | 10693 | case nullptr = "nullptr" |
| 10747 | 10694 | case number = "number" |
| 10695 | + case obj4Nil = "nil" | |
| 10748 | 10696 | case obj4None = "none" |
| 10749 | 10697 | case obj4Nonmutating = "nonmutating" |
| 10750 | 10698 | case obj4Null = "null" |
| @@ -10766,6 +10714,8 @@ struct Obj4: Codable, Equatable { | ||
| 10766 | 10714 | case object = "object" |
| 10767 | 10715 | case objectMapper = "ObjectMapper" |
| 10768 | 10716 | case of = "of" |
| 10717 | + case offsetDateTime = "OffsetDateTime" | |
| 10718 | + case offsetTime = "OffsetTime" | |
| 10769 | 10719 | case oneway = "oneway" |
| 10770 | 10720 | case or = "or" |
| 10771 | 10721 | case orEq = "or_eq" |
| @@ -10792,10 +10742,6 @@ struct Obj4: Codable, Equatable { | ||
| 10792 | 10742 | case restrict = "restrict" |
| 10793 | 10743 | case retain = "retain" |
| 10794 | 10744 | case runtimeType = "runtimeType" |
| 10795 | - case s = "s" | |
| 10796 | - case sbyte = "sbyte" | |
| 10797 | - case sealed = "sealed" | |
| 10798 | - case sel = "SEL" | |
| 10799 | 10745 | } |
| 10800 | 10746 | } |
| 10801 | 10747 | |
| @@ -10819,6 +10765,7 @@ extension Obj4 { | ||
| 10819 | 10765 | |
| 10820 | 10766 | func with( |
| 10821 | 10767 | dummy: Int? = nil, |
| 10768 | + no: No? = nil, | |
| 10822 | 10769 | noSuchMethod: NoSuchMethod? = nil, |
| 10823 | 10770 | noexcept: Noexcept? = nil, |
| 10824 | 10771 | nonatomic: Nonatomic? = nil, |
| @@ -10832,6 +10779,7 @@ extension Obj4 { | ||
| 10832 | 10779 | null: Null? = nil, |
| 10833 | 10780 | nullptr: Nullptr? = nil, |
| 10834 | 10781 | number: Number? = nil, |
| 10782 | + obj4Nil: Nil? = nil, | |
| 10835 | 10783 | obj4None: NoneClass? = nil, |
| 10836 | 10784 | obj4Nonmutating: Nonmutating? = nil, |
| 10837 | 10785 | obj4Null: NullClass? = nil, |
| @@ -10853,6 +10801,8 @@ extension Obj4 { | ||
| 10853 | 10801 | object: Object? = nil, |
| 10854 | 10802 | objectMapper: ObjectMapper? = nil, |
| 10855 | 10803 | of: Of? = nil, |
| 10804 | + offsetDateTime: OffsetDateTime? = nil, | |
| 10805 | + offsetTime: OffsetTime? = nil, | |
| 10856 | 10806 | oneway: Oneway? = nil, |
| 10857 | 10807 | or: Or? = nil, |
| 10858 | 10808 | orEq: OrEq? = nil, |
| @@ -10878,14 +10828,11 @@ extension Obj4 { | ||
| 10878 | 10828 | requires: Requires? = nil, |
| 10879 | 10829 | restrict: Restrict? = nil, |
| 10880 | 10830 | retain: Retain? = nil, |
| 10881 | - runtimeType: RuntimeType? = nil, | |
| 10882 | - s: S? = nil, | |
| 10883 | - sbyte: Sbyte? = nil, | |
| 10884 | - sealed: Sealed? = nil, | |
| 10885 | - sel: Sel? = nil | |
| 10831 | + runtimeType: RuntimeType? = nil | |
| 10886 | 10832 | ) -> Obj4 { |
| 10887 | 10833 | return Obj4( |
| 10888 | 10834 | dummy: dummy ?? self.dummy, |
| 10835 | + no: no ?? self.no, | |
| 10889 | 10836 | noSuchMethod: noSuchMethod ?? self.noSuchMethod, |
| 10890 | 10837 | noexcept: noexcept ?? self.noexcept, |
| 10891 | 10838 | nonatomic: nonatomic ?? self.nonatomic, |
| @@ -10899,6 +10846,7 @@ extension Obj4 { | ||
| 10899 | 10846 | null: null ?? self.null, |
| 10900 | 10847 | nullptr: nullptr ?? self.nullptr, |
| 10901 | 10848 | number: number ?? self.number, |
| 10849 | + obj4Nil: obj4Nil ?? self.obj4Nil, | |
| 10902 | 10850 | obj4None: obj4None ?? self.obj4None, |
| 10903 | 10851 | obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating, |
| 10904 | 10852 | obj4Null: obj4Null ?? self.obj4Null, |
| @@ -10920,6 +10868,8 @@ extension Obj4 { | ||
| 10920 | 10868 | object: object ?? self.object, |
| 10921 | 10869 | objectMapper: objectMapper ?? self.objectMapper, |
| 10922 | 10870 | of: of ?? self.of, |
| 10871 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 10872 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 10923 | 10873 | oneway: oneway ?? self.oneway, |
| 10924 | 10874 | or: or ?? self.or, |
| 10925 | 10875 | orEq: orEq ?? self.orEq, |
| @@ -10945,11 +10895,57 @@ extension Obj4 { | ||
| 10945 | 10895 | requires: requires ?? self.requires, |
| 10946 | 10896 | restrict: restrict ?? self.restrict, |
| 10947 | 10897 | retain: retain ?? self.retain, |
| 10948 | - runtimeType: runtimeType ?? self.runtimeType, | |
| 10949 | - s: s ?? self.s, | |
| 10950 | - sbyte: sbyte ?? self.sbyte, | |
| 10951 | - sealed: sealed ?? self.sealed, | |
| 10952 | - sel: sel ?? self.sel | |
| 10898 | + runtimeType: runtimeType ?? self.runtimeType | |
| 10899 | + ) | |
| 10900 | + } | |
| 10901 | + | |
| 10902 | + func jsonData() throws -> Data { | |
| 10903 | + return try newJSONEncoder().encode(self) | |
| 10904 | + } | |
| 10905 | + | |
| 10906 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 10907 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 10908 | + } | |
| 10909 | +} | |
| 10910 | + | |
| 10911 | +// | |
| 10912 | +// Hashable or Equatable: | |
| 10913 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 10914 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 10915 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 10916 | + | |
| 10917 | +// MARK: - No | |
| 10918 | +struct No: Codable, Equatable { | |
| 10919 | + let no: Int | |
| 10920 | + | |
| 10921 | + enum CodingKeys: String, CodingKey { | |
| 10922 | + case no = "NO" | |
| 10923 | + } | |
| 10924 | +} | |
| 10925 | + | |
| 10926 | +// MARK: No convenience initializers and mutators | |
| 10927 | + | |
| 10928 | +extension No { | |
| 10929 | + init(data: Data) throws { | |
| 10930 | + self = try newJSONDecoder().decode(No.self, from: data) | |
| 10931 | + } | |
| 10932 | + | |
| 10933 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10934 | + guard let data = json.data(using: encoding) else { | |
| 10935 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 10936 | + } | |
| 10937 | + try self.init(data: data) | |
| 10938 | + } | |
| 10939 | + | |
| 10940 | + init(fromURL url: URL) throws { | |
| 10941 | + try self.init(data: try Data(contentsOf: url)) | |
| 10942 | + } | |
| 10943 | + | |
| 10944 | + func with( | |
| 10945 | + no: Int? = nil | |
| 10946 | + ) -> No { | |
| 10947 | + return No( | |
| 10948 | + no: no ?? self.no | |
| 10953 | 10949 | ) |
| 10954 | 10950 | } |
| 10955 | 10951 | |
| @@ -11618,20 +11614,20 @@ extension Number { | ||
| 11618 | 11614 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 11619 | 11615 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 11620 | 11616 | |
| 11621 | -// MARK: - NoneClass | |
| 11622 | -struct NoneClass: Codable, Equatable { | |
| 11623 | - let none: Int | |
| 11617 | +// MARK: - Nil | |
| 11618 | +struct Nil: Codable, Equatable { | |
| 11619 | + let nilNil: Int | |
| 11624 | 11620 | |
| 11625 | 11621 | enum CodingKeys: String, CodingKey { |
| 11626 | - case none = "none" | |
| 11622 | + case nilNil = "nil" | |
| 11627 | 11623 | } |
| 11628 | 11624 | } |
| 11629 | 11625 | |
| 11630 | -// MARK: NoneClass convenience initializers and mutators | |
| 11626 | +// MARK: Nil convenience initializers and mutators | |
| 11631 | 11627 | |
| 11632 | -extension NoneClass { | |
| 11628 | +extension Nil { | |
| 11633 | 11629 | init(data: Data) throws { |
| 11634 | - self = try newJSONDecoder().decode(NoneClass.self, from: data) | |
| 11630 | + self = try newJSONDecoder().decode(Nil.self, from: data) | |
| 11635 | 11631 | } |
| 11636 | 11632 | |
| 11637 | 11633 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11646,10 +11642,10 @@ extension NoneClass { | ||
| 11646 | 11642 | } |
| 11647 | 11643 | |
| 11648 | 11644 | func with( |
| 11649 | - none: Int? = nil | |
| 11650 | - ) -> NoneClass { | |
| 11651 | - return NoneClass( | |
| 11652 | - none: none ?? self.none | |
| 11645 | + nilNil: Int? = nil | |
| 11646 | + ) -> Nil { | |
| 11647 | + return Nil( | |
| 11648 | + nilNil: nilNil ?? self.nilNil | |
| 11653 | 11649 | ) |
| 11654 | 11650 | } |
| 11655 | 11651 | |
| @@ -11668,20 +11664,20 @@ extension NoneClass { | ||
| 11668 | 11664 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 11669 | 11665 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 11670 | 11666 | |
| 11671 | -// MARK: - Nonmutating | |
| 11672 | -struct Nonmutating: Codable, Equatable { | |
| 11673 | - let nonmutatingNonmutating: Int | |
| 11667 | +// MARK: - NoneClass | |
| 11668 | +struct NoneClass: Codable, Equatable { | |
| 11669 | + let none: Int | |
| 11674 | 11670 | |
| 11675 | 11671 | enum CodingKeys: String, CodingKey { |
| 11676 | - case nonmutatingNonmutating = "nonmutating" | |
| 11672 | + case none = "none" | |
| 11677 | 11673 | } |
| 11678 | 11674 | } |
| 11679 | 11675 | |
| 11680 | -// MARK: Nonmutating convenience initializers and mutators | |
| 11676 | +// MARK: NoneClass convenience initializers and mutators | |
| 11681 | 11677 | |
| 11682 | -extension Nonmutating { | |
| 11678 | +extension NoneClass { | |
| 11683 | 11679 | init(data: Data) throws { |
| 11684 | - self = try newJSONDecoder().decode(Nonmutating.self, from: data) | |
| 11680 | + self = try newJSONDecoder().decode(NoneClass.self, from: data) | |
| 11685 | 11681 | } |
| 11686 | 11682 | |
| 11687 | 11683 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11696,13 +11692,63 @@ extension Nonmutating { | ||
| 11696 | 11692 | } |
| 11697 | 11693 | |
| 11698 | 11694 | func with( |
| 11699 | - nonmutatingNonmutating: Int? = nil | |
| 11700 | - ) -> Nonmutating { | |
| 11701 | - return Nonmutating( | |
| 11702 | - nonmutatingNonmutating: nonmutatingNonmutating ?? self.nonmutatingNonmutating | |
| 11703 | - ) | |
| 11704 | - } | |
| 11705 | - | |
| 11695 | + none: Int? = nil | |
| 11696 | + ) -> NoneClass { | |
| 11697 | + return NoneClass( | |
| 11698 | + none: none ?? self.none | |
| 11699 | + ) | |
| 11700 | + } | |
| 11701 | + | |
| 11702 | + func jsonData() throws -> Data { | |
| 11703 | + return try newJSONEncoder().encode(self) | |
| 11704 | + } | |
| 11705 | + | |
| 11706 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11707 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11708 | + } | |
| 11709 | +} | |
| 11710 | + | |
| 11711 | +// | |
| 11712 | +// Hashable or Equatable: | |
| 11713 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 11714 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 11715 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 11716 | + | |
| 11717 | +// MARK: - Nonmutating | |
| 11718 | +struct Nonmutating: Codable, Equatable { | |
| 11719 | + let nonmutatingNonmutating: Int | |
| 11720 | + | |
| 11721 | + enum CodingKeys: String, CodingKey { | |
| 11722 | + case nonmutatingNonmutating = "nonmutating" | |
| 11723 | + } | |
| 11724 | +} | |
| 11725 | + | |
| 11726 | +// MARK: Nonmutating convenience initializers and mutators | |
| 11727 | + | |
| 11728 | +extension Nonmutating { | |
| 11729 | + init(data: Data) throws { | |
| 11730 | + self = try newJSONDecoder().decode(Nonmutating.self, from: data) | |
| 11731 | + } | |
| 11732 | + | |
| 11733 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11734 | + guard let data = json.data(using: encoding) else { | |
| 11735 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11736 | + } | |
| 11737 | + try self.init(data: data) | |
| 11738 | + } | |
| 11739 | + | |
| 11740 | + init(fromURL url: URL) throws { | |
| 11741 | + try self.init(data: try Data(contentsOf: url)) | |
| 11742 | + } | |
| 11743 | + | |
| 11744 | + func with( | |
| 11745 | + nonmutatingNonmutating: Int? = nil | |
| 11746 | + ) -> Nonmutating { | |
| 11747 | + return Nonmutating( | |
| 11748 | + nonmutatingNonmutating: nonmutatingNonmutating ?? self.nonmutatingNonmutating | |
| 11749 | + ) | |
| 11750 | + } | |
| 11751 | + | |
| 11706 | 11752 | func jsonData() throws -> Data { |
| 11707 | 11753 | return try newJSONEncoder().encode(self) |
| 11708 | 11754 | } |
| @@ -12668,6 +12714,106 @@ extension Of { | ||
| 12668 | 12714 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 12669 | 12715 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 12670 | 12716 | |
| 12717 | +// MARK: - OffsetDateTime | |
| 12718 | +struct OffsetDateTime: Codable, Equatable { | |
| 12719 | + let offsetDateTime: Int | |
| 12720 | + | |
| 12721 | + enum CodingKeys: String, CodingKey { | |
| 12722 | + case offsetDateTime = "OffsetDateTime" | |
| 12723 | + } | |
| 12724 | +} | |
| 12725 | + | |
| 12726 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 12727 | + | |
| 12728 | +extension OffsetDateTime { | |
| 12729 | + init(data: Data) throws { | |
| 12730 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 12731 | + } | |
| 12732 | + | |
| 12733 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12734 | + guard let data = json.data(using: encoding) else { | |
| 12735 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12736 | + } | |
| 12737 | + try self.init(data: data) | |
| 12738 | + } | |
| 12739 | + | |
| 12740 | + init(fromURL url: URL) throws { | |
| 12741 | + try self.init(data: try Data(contentsOf: url)) | |
| 12742 | + } | |
| 12743 | + | |
| 12744 | + func with( | |
| 12745 | + offsetDateTime: Int? = nil | |
| 12746 | + ) -> OffsetDateTime { | |
| 12747 | + return OffsetDateTime( | |
| 12748 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime | |
| 12749 | + ) | |
| 12750 | + } | |
| 12751 | + | |
| 12752 | + func jsonData() throws -> Data { | |
| 12753 | + return try newJSONEncoder().encode(self) | |
| 12754 | + } | |
| 12755 | + | |
| 12756 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12757 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12758 | + } | |
| 12759 | +} | |
| 12760 | + | |
| 12761 | +// | |
| 12762 | +// Hashable or Equatable: | |
| 12763 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 12764 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 12765 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 12766 | + | |
| 12767 | +// MARK: - OffsetTime | |
| 12768 | +struct OffsetTime: Codable, Equatable { | |
| 12769 | + let offsetTime: Int | |
| 12770 | + | |
| 12771 | + enum CodingKeys: String, CodingKey { | |
| 12772 | + case offsetTime = "OffsetTime" | |
| 12773 | + } | |
| 12774 | +} | |
| 12775 | + | |
| 12776 | +// MARK: OffsetTime convenience initializers and mutators | |
| 12777 | + | |
| 12778 | +extension OffsetTime { | |
| 12779 | + init(data: Data) throws { | |
| 12780 | + self = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 12781 | + } | |
| 12782 | + | |
| 12783 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12784 | + guard let data = json.data(using: encoding) else { | |
| 12785 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12786 | + } | |
| 12787 | + try self.init(data: data) | |
| 12788 | + } | |
| 12789 | + | |
| 12790 | + init(fromURL url: URL) throws { | |
| 12791 | + try self.init(data: try Data(contentsOf: url)) | |
| 12792 | + } | |
| 12793 | + | |
| 12794 | + func with( | |
| 12795 | + offsetTime: Int? = nil | |
| 12796 | + ) -> OffsetTime { | |
| 12797 | + return OffsetTime( | |
| 12798 | + offsetTime: offsetTime ?? self.offsetTime | |
| 12799 | + ) | |
| 12800 | + } | |
| 12801 | + | |
| 12802 | + func jsonData() throws -> Data { | |
| 12803 | + return try newJSONEncoder().encode(self) | |
| 12804 | + } | |
| 12805 | + | |
| 12806 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12807 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12808 | + } | |
| 12809 | +} | |
| 12810 | + | |
| 12811 | +// | |
| 12812 | +// Hashable or Equatable: | |
| 12813 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 12814 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 12815 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 12816 | + | |
| 12671 | 12817 | // MARK: - Oneway |
| 12672 | 12818 | struct Oneway: Codable, Equatable { |
| 12673 | 12819 | let oneway: Int |
| @@ -13968,295 +14114,97 @@ extension RuntimeType { | ||
| 13968 | 14114 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 13969 | 14115 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 13970 | 14116 | |
| 13971 | -// MARK: - S | |
| 13972 | -struct S: Codable, Equatable { | |
| 13973 | - let s: Int | |
| 14117 | +// MARK: - Obj5 | |
| 14118 | +struct Obj5: Codable, Equatable { | |
| 14119 | + let dummy: Int | |
| 14120 | + let kSerializer: KSerializer | |
| 14121 | + let obj5Self: SelfClass | |
| 14122 | + let obj5Set: Set | |
| 14123 | + let obj5Static: Static | |
| 14124 | + let obj5Struct: Struct | |
| 14125 | + let obj5Subscript: Subscript | |
| 14126 | + let obj5Super: Super | |
| 14127 | + let obj5Switch: Switch | |
| 14128 | + let obj5Throw: Throw | |
| 14129 | + let obj5Throws: Throws | |
| 14130 | + let obj5True: True | |
| 14131 | + let obj5Try: Try | |
| 14132 | + let obj5Type: Obj5Type | |
| 14133 | + let obj5Typealias: Typealias | |
| 14134 | + let primitiveKind: PrimitiveKind | |
| 14135 | + let purpleSelf: Obj5Self | |
| 14136 | + let purpleTrue: TrueClass | |
| 14137 | + let s: S | |
| 14138 | + let sbyte: Sbyte | |
| 14139 | + let sealed: Sealed | |
| 14140 | + let sel: Sel | |
| 14141 | + let select: Select | |
| 14142 | + let sendable: Sendable | |
| 14143 | + let serialDescriptor: SerialDescriptor | |
| 14144 | + let serialName: SerialName | |
| 14145 | + let serializable: Serializable | |
| 14146 | + let serialize: Serialize | |
| 14147 | + let serializerProvider: SerializerProvider | |
| 14148 | + let short: Short | |
| 14149 | + let signed: Signed | |
| 14150 | + let simpleModule: SimpleModule | |
| 14151 | + let sizeof: Sizeof | |
| 14152 | + let stackalloc: Stackalloc | |
| 14153 | + let standards: Standards | |
| 14154 | + let staticAssert: StaticAssert | |
| 14155 | + let staticCast: StaticCast | |
| 14156 | + let stdDeserializer: StdDeserializer | |
| 14157 | + let stdSerializer: StdSerializer | |
| 14158 | + let strictfp: Strictfp | |
| 14159 | + let string: StringClass | |
| 14160 | + let symbol: Symbol | |
| 14161 | + let synchronized: Synchronized | |
| 14162 | + let system: System | |
| 14163 | + let template: Template | |
| 14164 | + let then: Then | |
| 14165 | + let this: This | |
| 14166 | + let threadLocal: ThreadLocal | |
| 14167 | + let timeOnly: TimeOnly | |
| 14168 | + let timeOnlyConverter: TimeOnlyConverter | |
| 14169 | + let timeZone: TimeZoneClass | |
| 14170 | + let toDict: ToDict | |
| 14171 | + let toJSON: ToJSON | |
| 14172 | + let toString: ToString | |
| 14173 | + let topLevel: TopLevelClass | |
| 14174 | + let transient: Transient | |
| 14175 | + let type: TypeClass | |
| 14176 | + let typedef: Typedef | |
| 14177 | + let typeid: Typeid | |
| 14178 | + let typename: Typename | |
| 14179 | + let typeof: Typeof | |
| 14180 | + let uint: Uint | |
| 14181 | + let ulong: Ulong | |
| 14182 | + let unchecked: Unchecked | |
| 14183 | + let undefined: Undefined | |
| 13974 | 14184 | |
| 13975 | 14185 | enum CodingKeys: String, CodingKey { |
| 14186 | + case dummy = "dummy" | |
| 14187 | + case kSerializer = "KSerializer" | |
| 14188 | + case obj5Self = "Self" | |
| 14189 | + case obj5Set = "set" | |
| 14190 | + case obj5Static = "static" | |
| 14191 | + case obj5Struct = "struct" | |
| 14192 | + case obj5Subscript = "subscript" | |
| 14193 | + case obj5Super = "super" | |
| 14194 | + case obj5Switch = "switch" | |
| 14195 | + case obj5Throw = "throw" | |
| 14196 | + case obj5Throws = "throws" | |
| 14197 | + case obj5True = "True" | |
| 14198 | + case obj5Try = "try" | |
| 14199 | + case obj5Type = "type" | |
| 14200 | + case obj5Typealias = "typealias" | |
| 14201 | + case primitiveKind = "PrimitiveKind" | |
| 14202 | + case purpleSelf = "self" | |
| 14203 | + case purpleTrue = "true" | |
| 13976 | 14204 | case s = "s" |
| 13977 | - } | |
| 13978 | -} | |
| 13979 | - | |
| 13980 | -// MARK: S convenience initializers and mutators | |
| 13981 | - | |
| 13982 | -extension S { | |
| 13983 | - init(data: Data) throws { | |
| 13984 | - self = try newJSONDecoder().decode(S.self, from: data) | |
| 13985 | - } | |
| 13986 | - | |
| 13987 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13988 | - guard let data = json.data(using: encoding) else { | |
| 13989 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13990 | - } | |
| 13991 | - try self.init(data: data) | |
| 13992 | - } | |
| 13993 | - | |
| 13994 | - init(fromURL url: URL) throws { | |
| 13995 | - try self.init(data: try Data(contentsOf: url)) | |
| 13996 | - } | |
| 13997 | - | |
| 13998 | - func with( | |
| 13999 | - s: Int? = nil | |
| 14000 | - ) -> S { | |
| 14001 | - return S( | |
| 14002 | - s: s ?? self.s | |
| 14003 | - ) | |
| 14004 | - } | |
| 14005 | - | |
| 14006 | - func jsonData() throws -> Data { | |
| 14007 | - return try newJSONEncoder().encode(self) | |
| 14008 | - } | |
| 14009 | - | |
| 14010 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14011 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14012 | - } | |
| 14013 | -} | |
| 14014 | - | |
| 14015 | -// | |
| 14016 | -// Hashable or Equatable: | |
| 14017 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 14018 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 14019 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 14020 | - | |
| 14021 | -// MARK: - Sbyte | |
| 14022 | -struct Sbyte: Codable, Equatable { | |
| 14023 | - let sbyte: Int | |
| 14024 | - | |
| 14025 | - enum CodingKeys: String, CodingKey { | |
| 14026 | 14205 | case sbyte = "sbyte" |
| 14027 | - } | |
| 14028 | -} | |
| 14029 | - | |
| 14030 | -// MARK: Sbyte convenience initializers and mutators | |
| 14031 | - | |
| 14032 | -extension Sbyte { | |
| 14033 | - init(data: Data) throws { | |
| 14034 | - self = try newJSONDecoder().decode(Sbyte.self, from: data) | |
| 14035 | - } | |
| 14036 | - | |
| 14037 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14038 | - guard let data = json.data(using: encoding) else { | |
| 14039 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14040 | - } | |
| 14041 | - try self.init(data: data) | |
| 14042 | - } | |
| 14043 | - | |
| 14044 | - init(fromURL url: URL) throws { | |
| 14045 | - try self.init(data: try Data(contentsOf: url)) | |
| 14046 | - } | |
| 14047 | - | |
| 14048 | - func with( | |
| 14049 | - sbyte: Int? = nil | |
| 14050 | - ) -> Sbyte { | |
| 14051 | - return Sbyte( | |
| 14052 | - sbyte: sbyte ?? self.sbyte | |
| 14053 | - ) | |
| 14054 | - } | |
| 14055 | - | |
| 14056 | - func jsonData() throws -> Data { | |
| 14057 | - return try newJSONEncoder().encode(self) | |
| 14058 | - } | |
| 14059 | - | |
| 14060 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14061 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14062 | - } | |
| 14063 | -} | |
| 14064 | - | |
| 14065 | -// | |
| 14066 | -// Hashable or Equatable: | |
| 14067 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 14068 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 14069 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 14070 | - | |
| 14071 | -// MARK: - Sealed | |
| 14072 | -struct Sealed: Codable, Equatable { | |
| 14073 | - let sealed: Int | |
| 14074 | - | |
| 14075 | - enum CodingKeys: String, CodingKey { | |
| 14076 | 14206 | case sealed = "sealed" |
| 14077 | - } | |
| 14078 | -} | |
| 14079 | - | |
| 14080 | -// MARK: Sealed convenience initializers and mutators | |
| 14081 | - | |
| 14082 | -extension Sealed { | |
| 14083 | - init(data: Data) throws { | |
| 14084 | - self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 14085 | - } | |
| 14086 | - | |
| 14087 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14088 | - guard let data = json.data(using: encoding) else { | |
| 14089 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14090 | - } | |
| 14091 | - try self.init(data: data) | |
| 14092 | - } | |
| 14093 | - | |
| 14094 | - init(fromURL url: URL) throws { | |
| 14095 | - try self.init(data: try Data(contentsOf: url)) | |
| 14096 | - } | |
| 14097 | - | |
| 14098 | - func with( | |
| 14099 | - sealed: Int? = nil | |
| 14100 | - ) -> Sealed { | |
| 14101 | - return Sealed( | |
| 14102 | - sealed: sealed ?? self.sealed | |
| 14103 | - ) | |
| 14104 | - } | |
| 14105 | - | |
| 14106 | - func jsonData() throws -> Data { | |
| 14107 | - return try newJSONEncoder().encode(self) | |
| 14108 | - } | |
| 14109 | - | |
| 14110 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14111 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14112 | - } | |
| 14113 | -} | |
| 14114 | - | |
| 14115 | -// | |
| 14116 | -// Hashable or Equatable: | |
| 14117 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 14118 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 14119 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 14120 | - | |
| 14121 | -// MARK: - Sel | |
| 14122 | -struct Sel: Codable, Equatable { | |
| 14123 | - let sel: Int | |
| 14124 | - | |
| 14125 | - enum CodingKeys: String, CodingKey { | |
| 14126 | 14207 | case sel = "SEL" |
| 14127 | - } | |
| 14128 | -} | |
| 14129 | - | |
| 14130 | -// MARK: Sel convenience initializers and mutators | |
| 14131 | - | |
| 14132 | -extension Sel { | |
| 14133 | - init(data: Data) throws { | |
| 14134 | - self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 14135 | - } | |
| 14136 | - | |
| 14137 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14138 | - guard let data = json.data(using: encoding) else { | |
| 14139 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14140 | - } | |
| 14141 | - try self.init(data: data) | |
| 14142 | - } | |
| 14143 | - | |
| 14144 | - init(fromURL url: URL) throws { | |
| 14145 | - try self.init(data: try Data(contentsOf: url)) | |
| 14146 | - } | |
| 14147 | - | |
| 14148 | - func with( | |
| 14149 | - sel: Int? = nil | |
| 14150 | - ) -> Sel { | |
| 14151 | - return Sel( | |
| 14152 | - sel: sel ?? self.sel | |
| 14153 | - ) | |
| 14154 | - } | |
| 14155 | - | |
| 14156 | - func jsonData() throws -> Data { | |
| 14157 | - return try newJSONEncoder().encode(self) | |
| 14158 | - } | |
| 14159 | - | |
| 14160 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14161 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14162 | - } | |
| 14163 | -} | |
| 14164 | - | |
| 14165 | -// | |
| 14166 | -// Hashable or Equatable: | |
| 14167 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 14168 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 14169 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 14170 | - | |
| 14171 | -// MARK: - Obj5 | |
| 14172 | -struct Obj5: Codable, Equatable { | |
| 14173 | - let dummy: Int | |
| 14174 | - let kSerializer: KSerializer | |
| 14175 | - let obj5Self: SelfClass | |
| 14176 | - let obj5Set: Set | |
| 14177 | - let obj5Static: Static | |
| 14178 | - let obj5Struct: Struct | |
| 14179 | - let obj5Subscript: Subscript | |
| 14180 | - let obj5Super: Super | |
| 14181 | - let obj5Switch: Switch | |
| 14182 | - let obj5Throw: Throw | |
| 14183 | - let obj5Throws: Throws | |
| 14184 | - let obj5True: True | |
| 14185 | - let obj5Try: Try | |
| 14186 | - let obj5Type: Obj5Type | |
| 14187 | - let obj5Typealias: Typealias | |
| 14188 | - let obj5Unowned: Unowned | |
| 14189 | - let primitiveKind: PrimitiveKind | |
| 14190 | - let purpleSelf: Obj5Self | |
| 14191 | - let purpleTrue: TrueClass | |
| 14192 | - let select: Select | |
| 14193 | - let sendable: Sendable | |
| 14194 | - let serialDescriptor: SerialDescriptor | |
| 14195 | - let serialName: SerialName | |
| 14196 | - let serializable: Serializable | |
| 14197 | - let serialize: Serialize | |
| 14198 | - let serializerProvider: SerializerProvider | |
| 14199 | - let short: Short | |
| 14200 | - let signed: Signed | |
| 14201 | - let simpleModule: SimpleModule | |
| 14202 | - let sizeof: Sizeof | |
| 14203 | - let stackalloc: Stackalloc | |
| 14204 | - let standards: Standards | |
| 14205 | - let staticAssert: StaticAssert | |
| 14206 | - let staticCast: StaticCast | |
| 14207 | - let stdDeserializer: StdDeserializer | |
| 14208 | - let stdSerializer: StdSerializer | |
| 14209 | - let strictfp: Strictfp | |
| 14210 | - let string: StringClass | |
| 14211 | - let symbol: Symbol | |
| 14212 | - let synchronized: Synchronized | |
| 14213 | - let system: System | |
| 14214 | - let template: Template | |
| 14215 | - let then: Then | |
| 14216 | - let this: This | |
| 14217 | - let threadLocal: ThreadLocal | |
| 14218 | - let timeOnly: TimeOnly | |
| 14219 | - let timeOnlyConverter: TimeOnlyConverter | |
| 14220 | - let timeZone: TimeZoneClass | |
| 14221 | - let toDict: ToDict | |
| 14222 | - let toJSON: ToJSON | |
| 14223 | - let toString: ToString | |
| 14224 | - let topLevel: TopLevelClass | |
| 14225 | - let transient: Transient | |
| 14226 | - let type: TypeClass | |
| 14227 | - let typedef: Typedef | |
| 14228 | - let typeid: Typeid | |
| 14229 | - let typename: Typename | |
| 14230 | - let typeof: Typeof | |
| 14231 | - let uint: Uint | |
| 14232 | - let ulong: Ulong | |
| 14233 | - let unchecked: Unchecked | |
| 14234 | - let undefined: Undefined | |
| 14235 | - let union: Union | |
| 14236 | - let unmarshalJSON: UnmarshalJSON | |
| 14237 | - let unsafe: Unsafe | |
| 14238 | - let useSerializers: UseSerializers | |
| 14239 | - | |
| 14240 | - enum CodingKeys: String, CodingKey { | |
| 14241 | - case dummy = "dummy" | |
| 14242 | - case kSerializer = "KSerializer" | |
| 14243 | - case obj5Self = "Self" | |
| 14244 | - case obj5Set = "set" | |
| 14245 | - case obj5Static = "static" | |
| 14246 | - case obj5Struct = "struct" | |
| 14247 | - case obj5Subscript = "subscript" | |
| 14248 | - case obj5Super = "super" | |
| 14249 | - case obj5Switch = "switch" | |
| 14250 | - case obj5Throw = "throw" | |
| 14251 | - case obj5Throws = "throws" | |
| 14252 | - case obj5True = "True" | |
| 14253 | - case obj5Try = "try" | |
| 14254 | - case obj5Type = "type" | |
| 14255 | - case obj5Typealias = "typealias" | |
| 14256 | - case obj5Unowned = "unowned" | |
| 14257 | - case primitiveKind = "PrimitiveKind" | |
| 14258 | - case purpleSelf = "self" | |
| 14259 | - case purpleTrue = "true" | |
| 14260 | 14208 | case select = "select" |
| 14261 | 14209 | case sendable = "Sendable" |
| 14262 | 14210 | case serialDescriptor = "SerialDescriptor" |
| @@ -14300,10 +14248,6 @@ struct Obj5: Codable, Equatable { | ||
| 14300 | 14248 | case ulong = "ulong" |
| 14301 | 14249 | case unchecked = "unchecked" |
| 14302 | 14250 | case undefined = "undefined" |
| 14303 | - case union = "union" | |
| 14304 | - case unmarshalJSON = "UnmarshalJSON" | |
| 14305 | - case unsafe = "unsafe" | |
| 14306 | - case useSerializers = "UseSerializers" | |
| 14307 | 14251 | } |
| 14308 | 14252 | } |
| 14309 | 14253 | |
| @@ -14341,10 +14285,13 @@ extension Obj5 { | ||
| 14341 | 14285 | obj5Try: Try? = nil, |
| 14342 | 14286 | obj5Type: Obj5Type? = nil, |
| 14343 | 14287 | obj5Typealias: Typealias? = nil, |
| 14344 | - obj5Unowned: Unowned? = nil, | |
| 14345 | 14288 | primitiveKind: PrimitiveKind? = nil, |
| 14346 | 14289 | purpleSelf: Obj5Self? = nil, |
| 14347 | 14290 | purpleTrue: TrueClass? = nil, |
| 14291 | + s: S? = nil, | |
| 14292 | + sbyte: Sbyte? = nil, | |
| 14293 | + sealed: Sealed? = nil, | |
| 14294 | + sel: Sel? = nil, | |
| 14348 | 14295 | select: Select? = nil, |
| 14349 | 14296 | sendable: Sendable? = nil, |
| 14350 | 14297 | serialDescriptor: SerialDescriptor? = nil, |
| @@ -14387,11 +14334,7 @@ extension Obj5 { | ||
| 14387 | 14334 | uint: Uint? = nil, |
| 14388 | 14335 | ulong: Ulong? = nil, |
| 14389 | 14336 | unchecked: Unchecked? = nil, |
| 14390 | - undefined: Undefined? = nil, | |
| 14391 | - union: Union? = nil, | |
| 14392 | - unmarshalJSON: UnmarshalJSON? = nil, | |
| 14393 | - unsafe: Unsafe? = nil, | |
| 14394 | - useSerializers: UseSerializers? = nil | |
| 14337 | + undefined: Undefined? = nil | |
| 14395 | 14338 | ) -> Obj5 { |
| 14396 | 14339 | return Obj5( |
| 14397 | 14340 | dummy: dummy ?? self.dummy, |
| @@ -14409,10 +14352,13 @@ extension Obj5 { | ||
| 14409 | 14352 | obj5Try: obj5Try ?? self.obj5Try, |
| 14410 | 14353 | obj5Type: obj5Type ?? self.obj5Type, |
| 14411 | 14354 | obj5Typealias: obj5Typealias ?? self.obj5Typealias, |
| 14412 | - obj5Unowned: obj5Unowned ?? self.obj5Unowned, | |
| 14413 | 14355 | primitiveKind: primitiveKind ?? self.primitiveKind, |
| 14414 | 14356 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 14415 | 14357 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 14358 | + s: s ?? self.s, | |
| 14359 | + sbyte: sbyte ?? self.sbyte, | |
| 14360 | + sealed: sealed ?? self.sealed, | |
| 14361 | + sel: sel ?? self.sel, | |
| 14416 | 14362 | select: select ?? self.select, |
| 14417 | 14363 | sendable: sendable ?? self.sendable, |
| 14418 | 14364 | serialDescriptor: serialDescriptor ?? self.serialDescriptor, |
| @@ -14455,11 +14401,7 @@ extension Obj5 { | ||
| 14455 | 14401 | uint: uint ?? self.uint, |
| 14456 | 14402 | ulong: ulong ?? self.ulong, |
| 14457 | 14403 | unchecked: unchecked ?? self.unchecked, |
| 14458 | - undefined: undefined ?? self.undefined, | |
| 14459 | - union: union ?? self.union, | |
| 14460 | - unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON, | |
| 14461 | - unsafe: unsafe ?? self.unsafe, | |
| 14462 | - useSerializers: useSerializers ?? self.useSerializers | |
| 14404 | + undefined: undefined ?? self.undefined | |
| 14463 | 14405 | ) |
| 14464 | 14406 | } |
| 14465 | 14407 | |
| @@ -15178,20 +15120,20 @@ extension Typealias { | ||
| 15178 | 15120 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15179 | 15121 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15180 | 15122 | |
| 15181 | -// MARK: - Unowned | |
| 15182 | -struct Unowned: Codable, Equatable { | |
| 15183 | - let unownedUnowned: Int | |
| 15123 | +// MARK: - PrimitiveKind | |
| 15124 | +struct PrimitiveKind: Codable, Equatable { | |
| 15125 | + let primitiveKind: Int | |
| 15184 | 15126 | |
| 15185 | 15127 | enum CodingKeys: String, CodingKey { |
| 15186 | - case unownedUnowned = "unowned" | |
| 15128 | + case primitiveKind = "PrimitiveKind" | |
| 15187 | 15129 | } |
| 15188 | 15130 | } |
| 15189 | 15131 | |
| 15190 | -// MARK: Unowned convenience initializers and mutators | |
| 15132 | +// MARK: PrimitiveKind convenience initializers and mutators | |
| 15191 | 15133 | |
| 15192 | -extension Unowned { | |
| 15134 | +extension PrimitiveKind { | |
| 15193 | 15135 | init(data: Data) throws { |
| 15194 | - self = try newJSONDecoder().decode(Unowned.self, from: data) | |
| 15136 | + self = try newJSONDecoder().decode(PrimitiveKind.self, from: data) | |
| 15195 | 15137 | } |
| 15196 | 15138 | |
| 15197 | 15139 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15206,10 +15148,10 @@ extension Unowned { | ||
| 15206 | 15148 | } |
| 15207 | 15149 | |
| 15208 | 15150 | func with( |
| 15209 | - unownedUnowned: Int? = nil | |
| 15210 | - ) -> Unowned { | |
| 15211 | - return Unowned( | |
| 15212 | - unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 15151 | + primitiveKind: Int? = nil | |
| 15152 | + ) -> PrimitiveKind { | |
| 15153 | + return PrimitiveKind( | |
| 15154 | + primitiveKind: primitiveKind ?? self.primitiveKind | |
| 15213 | 15155 | ) |
| 15214 | 15156 | } |
| 15215 | 15157 | |
| @@ -15228,20 +15170,20 @@ extension Unowned { | ||
| 15228 | 15170 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15229 | 15171 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15230 | 15172 | |
| 15231 | -// MARK: - PrimitiveKind | |
| 15232 | -struct PrimitiveKind: Codable, Equatable { | |
| 15233 | - let primitiveKind: Int | |
| 15173 | +// MARK: - Obj5Self | |
| 15174 | +struct Obj5Self: Codable, Equatable { | |
| 15175 | + let selfSelf: Int | |
| 15234 | 15176 | |
| 15235 | 15177 | enum CodingKeys: String, CodingKey { |
| 15236 | - case primitiveKind = "PrimitiveKind" | |
| 15178 | + case selfSelf = "self" | |
| 15237 | 15179 | } |
| 15238 | 15180 | } |
| 15239 | 15181 | |
| 15240 | -// MARK: PrimitiveKind convenience initializers and mutators | |
| 15182 | +// MARK: Obj5Self convenience initializers and mutators | |
| 15241 | 15183 | |
| 15242 | -extension PrimitiveKind { | |
| 15184 | +extension Obj5Self { | |
| 15243 | 15185 | init(data: Data) throws { |
| 15244 | - self = try newJSONDecoder().decode(PrimitiveKind.self, from: data) | |
| 15186 | + self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 15245 | 15187 | } |
| 15246 | 15188 | |
| 15247 | 15189 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15256,10 +15198,160 @@ extension PrimitiveKind { | ||
| 15256 | 15198 | } |
| 15257 | 15199 | |
| 15258 | 15200 | func with( |
| 15259 | - primitiveKind: Int? = nil | |
| 15260 | - ) -> PrimitiveKind { | |
| 15261 | - return PrimitiveKind( | |
| 15262 | - primitiveKind: primitiveKind ?? self.primitiveKind | |
| 15201 | + selfSelf: Int? = nil | |
| 15202 | + ) -> Obj5Self { | |
| 15203 | + return Obj5Self( | |
| 15204 | + selfSelf: selfSelf ?? self.selfSelf | |
| 15205 | + ) | |
| 15206 | + } | |
| 15207 | + | |
| 15208 | + func jsonData() throws -> Data { | |
| 15209 | + return try newJSONEncoder().encode(self) | |
| 15210 | + } | |
| 15211 | + | |
| 15212 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15213 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15214 | + } | |
| 15215 | +} | |
| 15216 | + | |
| 15217 | +// | |
| 15218 | +// Hashable or Equatable: | |
| 15219 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15220 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15221 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15222 | + | |
| 15223 | +// MARK: - TrueClass | |
| 15224 | +struct TrueClass: Codable, Equatable { | |
| 15225 | + let trueTrue: Int | |
| 15226 | + | |
| 15227 | + enum CodingKeys: String, CodingKey { | |
| 15228 | + case trueTrue = "true" | |
| 15229 | + } | |
| 15230 | +} | |
| 15231 | + | |
| 15232 | +// MARK: TrueClass convenience initializers and mutators | |
| 15233 | + | |
| 15234 | +extension TrueClass { | |
| 15235 | + init(data: Data) throws { | |
| 15236 | + self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 15237 | + } | |
| 15238 | + | |
| 15239 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15240 | + guard let data = json.data(using: encoding) else { | |
| 15241 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15242 | + } | |
| 15243 | + try self.init(data: data) | |
| 15244 | + } | |
| 15245 | + | |
| 15246 | + init(fromURL url: URL) throws { | |
| 15247 | + try self.init(data: try Data(contentsOf: url)) | |
| 15248 | + } | |
| 15249 | + | |
| 15250 | + func with( | |
| 15251 | + trueTrue: Int? = nil | |
| 15252 | + ) -> TrueClass { | |
| 15253 | + return TrueClass( | |
| 15254 | + trueTrue: trueTrue ?? self.trueTrue | |
| 15255 | + ) | |
| 15256 | + } | |
| 15257 | + | |
| 15258 | + func jsonData() throws -> Data { | |
| 15259 | + return try newJSONEncoder().encode(self) | |
| 15260 | + } | |
| 15261 | + | |
| 15262 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15263 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15264 | + } | |
| 15265 | +} | |
| 15266 | + | |
| 15267 | +// | |
| 15268 | +// Hashable or Equatable: | |
| 15269 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15270 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15271 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15272 | + | |
| 15273 | +// MARK: - S | |
| 15274 | +struct S: Codable, Equatable { | |
| 15275 | + let s: Int | |
| 15276 | + | |
| 15277 | + enum CodingKeys: String, CodingKey { | |
| 15278 | + case s = "s" | |
| 15279 | + } | |
| 15280 | +} | |
| 15281 | + | |
| 15282 | +// MARK: S convenience initializers and mutators | |
| 15283 | + | |
| 15284 | +extension S { | |
| 15285 | + init(data: Data) throws { | |
| 15286 | + self = try newJSONDecoder().decode(S.self, from: data) | |
| 15287 | + } | |
| 15288 | + | |
| 15289 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15290 | + guard let data = json.data(using: encoding) else { | |
| 15291 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15292 | + } | |
| 15293 | + try self.init(data: data) | |
| 15294 | + } | |
| 15295 | + | |
| 15296 | + init(fromURL url: URL) throws { | |
| 15297 | + try self.init(data: try Data(contentsOf: url)) | |
| 15298 | + } | |
| 15299 | + | |
| 15300 | + func with( | |
| 15301 | + s: Int? = nil | |
| 15302 | + ) -> S { | |
| 15303 | + return S( | |
| 15304 | + s: s ?? self.s | |
| 15305 | + ) | |
| 15306 | + } | |
| 15307 | + | |
| 15308 | + func jsonData() throws -> Data { | |
| 15309 | + return try newJSONEncoder().encode(self) | |
| 15310 | + } | |
| 15311 | + | |
| 15312 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15313 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15314 | + } | |
| 15315 | +} | |
| 15316 | + | |
| 15317 | +// | |
| 15318 | +// Hashable or Equatable: | |
| 15319 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15320 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15321 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15322 | + | |
| 15323 | +// MARK: - Sbyte | |
| 15324 | +struct Sbyte: Codable, Equatable { | |
| 15325 | + let sbyte: Int | |
| 15326 | + | |
| 15327 | + enum CodingKeys: String, CodingKey { | |
| 15328 | + case sbyte = "sbyte" | |
| 15329 | + } | |
| 15330 | +} | |
| 15331 | + | |
| 15332 | +// MARK: Sbyte convenience initializers and mutators | |
| 15333 | + | |
| 15334 | +extension Sbyte { | |
| 15335 | + init(data: Data) throws { | |
| 15336 | + self = try newJSONDecoder().decode(Sbyte.self, from: data) | |
| 15337 | + } | |
| 15338 | + | |
| 15339 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15340 | + guard let data = json.data(using: encoding) else { | |
| 15341 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15342 | + } | |
| 15343 | + try self.init(data: data) | |
| 15344 | + } | |
| 15345 | + | |
| 15346 | + init(fromURL url: URL) throws { | |
| 15347 | + try self.init(data: try Data(contentsOf: url)) | |
| 15348 | + } | |
| 15349 | + | |
| 15350 | + func with( | |
| 15351 | + sbyte: Int? = nil | |
| 15352 | + ) -> Sbyte { | |
| 15353 | + return Sbyte( | |
| 15354 | + sbyte: sbyte ?? self.sbyte | |
| 15263 | 15355 | ) |
| 15264 | 15356 | } |
| 15265 | 15357 | |
| @@ -15278,20 +15370,20 @@ extension PrimitiveKind { | ||
| 15278 | 15370 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15279 | 15371 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15280 | 15372 | |
| 15281 | -// MARK: - Obj5Self | |
| 15282 | -struct Obj5Self: Codable, Equatable { | |
| 15283 | - let selfSelf: Int | |
| 15373 | +// MARK: - Sealed | |
| 15374 | +struct Sealed: Codable, Equatable { | |
| 15375 | + let sealed: Int | |
| 15284 | 15376 | |
| 15285 | 15377 | enum CodingKeys: String, CodingKey { |
| 15286 | - case selfSelf = "self" | |
| 15378 | + case sealed = "sealed" | |
| 15287 | 15379 | } |
| 15288 | 15380 | } |
| 15289 | 15381 | |
| 15290 | -// MARK: Obj5Self convenience initializers and mutators | |
| 15382 | +// MARK: Sealed convenience initializers and mutators | |
| 15291 | 15383 | |
| 15292 | -extension Obj5Self { | |
| 15384 | +extension Sealed { | |
| 15293 | 15385 | init(data: Data) throws { |
| 15294 | - self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 15386 | + self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 15295 | 15387 | } |
| 15296 | 15388 | |
| 15297 | 15389 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15306,10 +15398,10 @@ extension Obj5Self { | ||
| 15306 | 15398 | } |
| 15307 | 15399 | |
| 15308 | 15400 | func with( |
| 15309 | - selfSelf: Int? = nil | |
| 15310 | - ) -> Obj5Self { | |
| 15311 | - return Obj5Self( | |
| 15312 | - selfSelf: selfSelf ?? self.selfSelf | |
| 15401 | + sealed: Int? = nil | |
| 15402 | + ) -> Sealed { | |
| 15403 | + return Sealed( | |
| 15404 | + sealed: sealed ?? self.sealed | |
| 15313 | 15405 | ) |
| 15314 | 15406 | } |
| 15315 | 15407 | |
| @@ -15328,20 +15420,20 @@ extension Obj5Self { | ||
| 15328 | 15420 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15329 | 15421 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15330 | 15422 | |
| 15331 | -// MARK: - TrueClass | |
| 15332 | -struct TrueClass: Codable, Equatable { | |
| 15333 | - let trueTrue: Int | |
| 15423 | +// MARK: - Sel | |
| 15424 | +struct Sel: Codable, Equatable { | |
| 15425 | + let sel: Int | |
| 15334 | 15426 | |
| 15335 | 15427 | enum CodingKeys: String, CodingKey { |
| 15336 | - case trueTrue = "true" | |
| 15428 | + case sel = "SEL" | |
| 15337 | 15429 | } |
| 15338 | 15430 | } |
| 15339 | 15431 | |
| 15340 | -// MARK: TrueClass convenience initializers and mutators | |
| 15432 | +// MARK: Sel convenience initializers and mutators | |
| 15341 | 15433 | |
| 15342 | -extension TrueClass { | |
| 15434 | +extension Sel { | |
| 15343 | 15435 | init(data: Data) throws { |
| 15344 | - self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 15436 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 15345 | 15437 | } |
| 15346 | 15438 | |
| 15347 | 15439 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15356,10 +15448,10 @@ extension TrueClass { | ||
| 15356 | 15448 | } |
| 15357 | 15449 | |
| 15358 | 15450 | func with( |
| 15359 | - trueTrue: Int? = nil | |
| 15360 | - ) -> TrueClass { | |
| 15361 | - return TrueClass( | |
| 15362 | - trueTrue: trueTrue ?? self.trueTrue | |
| 15451 | + sel: Int? = nil | |
| 15452 | + ) -> Sel { | |
| 15453 | + return Sel( | |
| 15454 | + sel: sel ?? self.sel | |
| 15363 | 15455 | ) |
| 15364 | 15456 | } |
| 15365 | 15457 | |
| @@ -17528,215 +17620,20 @@ extension Undefined { | ||
| 17528 | 17620 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17529 | 17621 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17530 | 17622 | |
| 17531 | -// MARK: - Union | |
| 17532 | -struct Union: Codable, Equatable { | |
| 17533 | - let union: Int | |
| 17534 | - | |
| 17535 | - enum CodingKeys: String, CodingKey { | |
| 17536 | - case union = "union" | |
| 17537 | - } | |
| 17538 | -} | |
| 17539 | - | |
| 17540 | -// MARK: Union convenience initializers and mutators | |
| 17541 | - | |
| 17542 | -extension Union { | |
| 17543 | - init(data: Data) throws { | |
| 17544 | - self = try newJSONDecoder().decode(Union.self, from: data) | |
| 17545 | - } | |
| 17546 | - | |
| 17547 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17548 | - guard let data = json.data(using: encoding) else { | |
| 17549 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17550 | - } | |
| 17551 | - try self.init(data: data) | |
| 17552 | - } | |
| 17553 | - | |
| 17554 | - init(fromURL url: URL) throws { | |
| 17555 | - try self.init(data: try Data(contentsOf: url)) | |
| 17556 | - } | |
| 17557 | - | |
| 17558 | - func with( | |
| 17559 | - union: Int? = nil | |
| 17560 | - ) -> Union { | |
| 17561 | - return Union( | |
| 17562 | - union: union ?? self.union | |
| 17563 | - ) | |
| 17564 | - } | |
| 17565 | - | |
| 17566 | - func jsonData() throws -> Data { | |
| 17567 | - return try newJSONEncoder().encode(self) | |
| 17568 | - } | |
| 17569 | - | |
| 17570 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17571 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17572 | - } | |
| 17573 | -} | |
| 17574 | - | |
| 17575 | -// | |
| 17576 | -// Hashable or Equatable: | |
| 17577 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17578 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17579 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 17580 | - | |
| 17581 | -// MARK: - UnmarshalJSON | |
| 17582 | -struct UnmarshalJSON: Codable, Equatable { | |
| 17583 | - let unmarshalJSON: Int | |
| 17584 | - | |
| 17585 | - enum CodingKeys: String, CodingKey { | |
| 17586 | - case unmarshalJSON = "UnmarshalJSON" | |
| 17587 | - } | |
| 17588 | -} | |
| 17589 | - | |
| 17590 | -// MARK: UnmarshalJSON convenience initializers and mutators | |
| 17591 | - | |
| 17592 | -extension UnmarshalJSON { | |
| 17593 | - init(data: Data) throws { | |
| 17594 | - self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data) | |
| 17595 | - } | |
| 17596 | - | |
| 17597 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17598 | - guard let data = json.data(using: encoding) else { | |
| 17599 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17600 | - } | |
| 17601 | - try self.init(data: data) | |
| 17602 | - } | |
| 17603 | - | |
| 17604 | - init(fromURL url: URL) throws { | |
| 17605 | - try self.init(data: try Data(contentsOf: url)) | |
| 17606 | - } | |
| 17607 | - | |
| 17608 | - func with( | |
| 17609 | - unmarshalJSON: Int? = nil | |
| 17610 | - ) -> UnmarshalJSON { | |
| 17611 | - return UnmarshalJSON( | |
| 17612 | - unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON | |
| 17613 | - ) | |
| 17614 | - } | |
| 17615 | - | |
| 17616 | - func jsonData() throws -> Data { | |
| 17617 | - return try newJSONEncoder().encode(self) | |
| 17618 | - } | |
| 17619 | - | |
| 17620 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17621 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17622 | - } | |
| 17623 | -} | |
| 17624 | - | |
| 17625 | -// | |
| 17626 | -// Hashable or Equatable: | |
| 17627 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17628 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17629 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 17630 | - | |
| 17631 | -// MARK: - Unsafe | |
| 17632 | -struct Unsafe: Codable, Equatable { | |
| 17633 | - let unsafe: Int | |
| 17634 | - | |
| 17635 | - enum CodingKeys: String, CodingKey { | |
| 17636 | - case unsafe = "unsafe" | |
| 17637 | - } | |
| 17638 | -} | |
| 17639 | - | |
| 17640 | -// MARK: Unsafe convenience initializers and mutators | |
| 17641 | - | |
| 17642 | -extension Unsafe { | |
| 17643 | - init(data: Data) throws { | |
| 17644 | - self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 17645 | - } | |
| 17646 | - | |
| 17647 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17648 | - guard let data = json.data(using: encoding) else { | |
| 17649 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17650 | - } | |
| 17651 | - try self.init(data: data) | |
| 17652 | - } | |
| 17653 | - | |
| 17654 | - init(fromURL url: URL) throws { | |
| 17655 | - try self.init(data: try Data(contentsOf: url)) | |
| 17656 | - } | |
| 17657 | - | |
| 17658 | - func with( | |
| 17659 | - unsafe: Int? = nil | |
| 17660 | - ) -> Unsafe { | |
| 17661 | - return Unsafe( | |
| 17662 | - unsafe: unsafe ?? self.unsafe | |
| 17663 | - ) | |
| 17664 | - } | |
| 17665 | - | |
| 17666 | - func jsonData() throws -> Data { | |
| 17667 | - return try newJSONEncoder().encode(self) | |
| 17668 | - } | |
| 17669 | - | |
| 17670 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17671 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17672 | - } | |
| 17673 | -} | |
| 17674 | - | |
| 17675 | -// | |
| 17676 | -// Hashable or Equatable: | |
| 17677 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17678 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17679 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 17680 | - | |
| 17681 | -// MARK: - UseSerializers | |
| 17682 | -struct UseSerializers: Codable, Equatable { | |
| 17683 | - let useSerializers: Int | |
| 17684 | - | |
| 17685 | - enum CodingKeys: String, CodingKey { | |
| 17686 | - case useSerializers = "UseSerializers" | |
| 17687 | - } | |
| 17688 | -} | |
| 17689 | - | |
| 17690 | -// MARK: UseSerializers convenience initializers and mutators | |
| 17691 | - | |
| 17692 | -extension UseSerializers { | |
| 17693 | - init(data: Data) throws { | |
| 17694 | - self = try newJSONDecoder().decode(UseSerializers.self, from: data) | |
| 17695 | - } | |
| 17696 | - | |
| 17697 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17698 | - guard let data = json.data(using: encoding) else { | |
| 17699 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17700 | - } | |
| 17701 | - try self.init(data: data) | |
| 17702 | - } | |
| 17703 | - | |
| 17704 | - init(fromURL url: URL) throws { | |
| 17705 | - try self.init(data: try Data(contentsOf: url)) | |
| 17706 | - } | |
| 17707 | - | |
| 17708 | - func with( | |
| 17709 | - useSerializers: Int? = nil | |
| 17710 | - ) -> UseSerializers { | |
| 17711 | - return UseSerializers( | |
| 17712 | - useSerializers: useSerializers ?? self.useSerializers | |
| 17713 | - ) | |
| 17714 | - } | |
| 17715 | - | |
| 17716 | - func jsonData() throws -> Data { | |
| 17717 | - return try newJSONEncoder().encode(self) | |
| 17718 | - } | |
| 17719 | - | |
| 17720 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17721 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17722 | - } | |
| 17723 | -} | |
| 17724 | - | |
| 17725 | -// | |
| 17726 | -// Hashable or Equatable: | |
| 17727 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17728 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17729 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 17730 | - | |
| 17731 | 17623 | // MARK: - Obj6 |
| 17732 | 17624 | struct Obj6: Codable, Equatable { |
| 17733 | 17625 | let dummy: Int |
| 17626 | + let obj6Unowned: Unowned | |
| 17734 | 17627 | let obj6Var: Var |
| 17735 | 17628 | let obj6Weak: Weak |
| 17736 | 17629 | let obj6Where: Where |
| 17737 | 17630 | let obj6While: While |
| 17738 | 17631 | let obj6WillSet: WillSet |
| 17632 | + let union: Union | |
| 17633 | + let unmarshalJSON: UnmarshalJSON | |
| 17634 | + let unsafe: Unsafe | |
| 17739 | 17635 | let unsigned: Unsigned |
| 17636 | + let useSerializers: UseSerializers | |
| 17740 | 17637 | let ushort: Ushort |
| 17741 | 17638 | let using: Using |
| 17742 | 17639 | let utf8JSONReader: Utf8JSONReader |
| @@ -17754,12 +17651,17 @@ struct Obj6: Codable, Equatable { | ||
| 17754 | 17651 | |
| 17755 | 17652 | enum CodingKeys: String, CodingKey { |
| 17756 | 17653 | case dummy = "dummy" |
| 17654 | + case obj6Unowned = "unowned" | |
| 17757 | 17655 | case obj6Var = "var" |
| 17758 | 17656 | case obj6Weak = "weak" |
| 17759 | 17657 | case obj6Where = "where" |
| 17760 | 17658 | case obj6While = "while" |
| 17761 | 17659 | case obj6WillSet = "willSet" |
| 17660 | + case union = "union" | |
| 17661 | + case unmarshalJSON = "UnmarshalJSON" | |
| 17662 | + case unsafe = "unsafe" | |
| 17762 | 17663 | case unsigned = "unsigned" |
| 17664 | + case useSerializers = "UseSerializers" | |
| 17763 | 17665 | case ushort = "ushort" |
| 17764 | 17666 | case using = "using" |
| 17765 | 17667 | case utf8JSONReader = "Utf8JsonReader" |
| @@ -17797,12 +17699,17 @@ extension Obj6 { | ||
| 17797 | 17699 | |
| 17798 | 17700 | func with( |
| 17799 | 17701 | dummy: Int? = nil, |
| 17702 | + obj6Unowned: Unowned? = nil, | |
| 17800 | 17703 | obj6Var: Var? = nil, |
| 17801 | 17704 | obj6Weak: Weak? = nil, |
| 17802 | 17705 | obj6Where: Where? = nil, |
| 17803 | 17706 | obj6While: While? = nil, |
| 17804 | 17707 | obj6WillSet: WillSet? = nil, |
| 17708 | + union: Union? = nil, | |
| 17709 | + unmarshalJSON: UnmarshalJSON? = nil, | |
| 17710 | + unsafe: Unsafe? = nil, | |
| 17805 | 17711 | unsigned: Unsigned? = nil, |
| 17712 | + useSerializers: UseSerializers? = nil, | |
| 17806 | 17713 | ushort: Ushort? = nil, |
| 17807 | 17714 | using: Using? = nil, |
| 17808 | 17715 | utf8JSONReader: Utf8JSONReader? = nil, |
| @@ -17820,12 +17727,17 @@ extension Obj6 { | ||
| 17820 | 17727 | ) -> Obj6 { |
| 17821 | 17728 | return Obj6( |
| 17822 | 17729 | dummy: dummy ?? self.dummy, |
| 17730 | + obj6Unowned: obj6Unowned ?? self.obj6Unowned, | |
| 17823 | 17731 | obj6Var: obj6Var ?? self.obj6Var, |
| 17824 | 17732 | obj6Weak: obj6Weak ?? self.obj6Weak, |
| 17825 | 17733 | obj6Where: obj6Where ?? self.obj6Where, |
| 17826 | 17734 | obj6While: obj6While ?? self.obj6While, |
| 17827 | 17735 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 17736 | + union: union ?? self.union, | |
| 17737 | + unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON, | |
| 17738 | + unsafe: unsafe ?? self.unsafe, | |
| 17828 | 17739 | unsigned: unsigned ?? self.unsigned, |
| 17740 | + useSerializers: useSerializers ?? self.useSerializers, | |
| 17829 | 17741 | ushort: ushort ?? self.ushort, |
| 17830 | 17742 | using: using ?? self.using, |
| 17831 | 17743 | utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, |
| @@ -17858,6 +17770,56 @@ extension Obj6 { | ||
| 17858 | 17770 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17859 | 17771 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17860 | 17772 | |
| 17773 | +// MARK: - Unowned | |
| 17774 | +struct Unowned: Codable, Equatable { | |
| 17775 | + let unownedUnowned: Int | |
| 17776 | + | |
| 17777 | + enum CodingKeys: String, CodingKey { | |
| 17778 | + case unownedUnowned = "unowned" | |
| 17779 | + } | |
| 17780 | +} | |
| 17781 | + | |
| 17782 | +// MARK: Unowned convenience initializers and mutators | |
| 17783 | + | |
| 17784 | +extension Unowned { | |
| 17785 | + init(data: Data) throws { | |
| 17786 | + self = try newJSONDecoder().decode(Unowned.self, from: data) | |
| 17787 | + } | |
| 17788 | + | |
| 17789 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17790 | + guard let data = json.data(using: encoding) else { | |
| 17791 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17792 | + } | |
| 17793 | + try self.init(data: data) | |
| 17794 | + } | |
| 17795 | + | |
| 17796 | + init(fromURL url: URL) throws { | |
| 17797 | + try self.init(data: try Data(contentsOf: url)) | |
| 17798 | + } | |
| 17799 | + | |
| 17800 | + func with( | |
| 17801 | + unownedUnowned: Int? = nil | |
| 17802 | + ) -> Unowned { | |
| 17803 | + return Unowned( | |
| 17804 | + unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 17805 | + ) | |
| 17806 | + } | |
| 17807 | + | |
| 17808 | + func jsonData() throws -> Data { | |
| 17809 | + return try newJSONEncoder().encode(self) | |
| 17810 | + } | |
| 17811 | + | |
| 17812 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17813 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 17814 | + } | |
| 17815 | +} | |
| 17816 | + | |
| 17817 | +// | |
| 17818 | +// Hashable or Equatable: | |
| 17819 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17820 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17821 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 17822 | + | |
| 17861 | 17823 | // MARK: - Var |
| 17862 | 17824 | struct Var: Codable, Equatable { |
| 17863 | 17825 | let varVar: Int |
| @@ -18108,6 +18070,156 @@ extension WillSet { | ||
| 18108 | 18070 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 18109 | 18071 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 18110 | 18072 | |
| 18073 | +// MARK: - Union | |
| 18074 | +struct Union: Codable, Equatable { | |
| 18075 | + let union: Int | |
| 18076 | + | |
| 18077 | + enum CodingKeys: String, CodingKey { | |
| 18078 | + case union = "union" | |
| 18079 | + } | |
| 18080 | +} | |
| 18081 | + | |
| 18082 | +// MARK: Union convenience initializers and mutators | |
| 18083 | + | |
| 18084 | +extension Union { | |
| 18085 | + init(data: Data) throws { | |
| 18086 | + self = try newJSONDecoder().decode(Union.self, from: data) | |
| 18087 | + } | |
| 18088 | + | |
| 18089 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18090 | + guard let data = json.data(using: encoding) else { | |
| 18091 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18092 | + } | |
| 18093 | + try self.init(data: data) | |
| 18094 | + } | |
| 18095 | + | |
| 18096 | + init(fromURL url: URL) throws { | |
| 18097 | + try self.init(data: try Data(contentsOf: url)) | |
| 18098 | + } | |
| 18099 | + | |
| 18100 | + func with( | |
| 18101 | + union: Int? = nil | |
| 18102 | + ) -> Union { | |
| 18103 | + return Union( | |
| 18104 | + union: union ?? self.union | |
| 18105 | + ) | |
| 18106 | + } | |
| 18107 | + | |
| 18108 | + func jsonData() throws -> Data { | |
| 18109 | + return try newJSONEncoder().encode(self) | |
| 18110 | + } | |
| 18111 | + | |
| 18112 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18113 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18114 | + } | |
| 18115 | +} | |
| 18116 | + | |
| 18117 | +// | |
| 18118 | +// Hashable or Equatable: | |
| 18119 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 18120 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 18121 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 18122 | + | |
| 18123 | +// MARK: - UnmarshalJSON | |
| 18124 | +struct UnmarshalJSON: Codable, Equatable { | |
| 18125 | + let unmarshalJSON: Int | |
| 18126 | + | |
| 18127 | + enum CodingKeys: String, CodingKey { | |
| 18128 | + case unmarshalJSON = "UnmarshalJSON" | |
| 18129 | + } | |
| 18130 | +} | |
| 18131 | + | |
| 18132 | +// MARK: UnmarshalJSON convenience initializers and mutators | |
| 18133 | + | |
| 18134 | +extension UnmarshalJSON { | |
| 18135 | + init(data: Data) throws { | |
| 18136 | + self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data) | |
| 18137 | + } | |
| 18138 | + | |
| 18139 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18140 | + guard let data = json.data(using: encoding) else { | |
| 18141 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18142 | + } | |
| 18143 | + try self.init(data: data) | |
| 18144 | + } | |
| 18145 | + | |
| 18146 | + init(fromURL url: URL) throws { | |
| 18147 | + try self.init(data: try Data(contentsOf: url)) | |
| 18148 | + } | |
| 18149 | + | |
| 18150 | + func with( | |
| 18151 | + unmarshalJSON: Int? = nil | |
| 18152 | + ) -> UnmarshalJSON { | |
| 18153 | + return UnmarshalJSON( | |
| 18154 | + unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON | |
| 18155 | + ) | |
| 18156 | + } | |
| 18157 | + | |
| 18158 | + func jsonData() throws -> Data { | |
| 18159 | + return try newJSONEncoder().encode(self) | |
| 18160 | + } | |
| 18161 | + | |
| 18162 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18163 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18164 | + } | |
| 18165 | +} | |
| 18166 | + | |
| 18167 | +// | |
| 18168 | +// Hashable or Equatable: | |
| 18169 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 18170 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 18171 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 18172 | + | |
| 18173 | +// MARK: - Unsafe | |
| 18174 | +struct Unsafe: Codable, Equatable { | |
| 18175 | + let unsafe: Int | |
| 18176 | + | |
| 18177 | + enum CodingKeys: String, CodingKey { | |
| 18178 | + case unsafe = "unsafe" | |
| 18179 | + } | |
| 18180 | +} | |
| 18181 | + | |
| 18182 | +// MARK: Unsafe convenience initializers and mutators | |
| 18183 | + | |
| 18184 | +extension Unsafe { | |
| 18185 | + init(data: Data) throws { | |
| 18186 | + self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 18187 | + } | |
| 18188 | + | |
| 18189 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18190 | + guard let data = json.data(using: encoding) else { | |
| 18191 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18192 | + } | |
| 18193 | + try self.init(data: data) | |
| 18194 | + } | |
| 18195 | + | |
| 18196 | + init(fromURL url: URL) throws { | |
| 18197 | + try self.init(data: try Data(contentsOf: url)) | |
| 18198 | + } | |
| 18199 | + | |
| 18200 | + func with( | |
| 18201 | + unsafe: Int? = nil | |
| 18202 | + ) -> Unsafe { | |
| 18203 | + return Unsafe( | |
| 18204 | + unsafe: unsafe ?? self.unsafe | |
| 18205 | + ) | |
| 18206 | + } | |
| 18207 | + | |
| 18208 | + func jsonData() throws -> Data { | |
| 18209 | + return try newJSONEncoder().encode(self) | |
| 18210 | + } | |
| 18211 | + | |
| 18212 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18213 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18214 | + } | |
| 18215 | +} | |
| 18216 | + | |
| 18217 | +// | |
| 18218 | +// Hashable or Equatable: | |
| 18219 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 18220 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 18221 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 18222 | + | |
| 18111 | 18223 | // MARK: - Unsigned |
| 18112 | 18224 | struct Unsigned: Codable, Equatable { |
| 18113 | 18225 | let unsigned: Int |
| @@ -18158,6 +18270,56 @@ extension Unsigned { | ||
| 18158 | 18270 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 18159 | 18271 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 18160 | 18272 | |
| 18273 | +// MARK: - UseSerializers | |
| 18274 | +struct UseSerializers: Codable, Equatable { | |
| 18275 | + let useSerializers: Int | |
| 18276 | + | |
| 18277 | + enum CodingKeys: String, CodingKey { | |
| 18278 | + case useSerializers = "UseSerializers" | |
| 18279 | + } | |
| 18280 | +} | |
| 18281 | + | |
| 18282 | +// MARK: UseSerializers convenience initializers and mutators | |
| 18283 | + | |
| 18284 | +extension UseSerializers { | |
| 18285 | + init(data: Data) throws { | |
| 18286 | + self = try newJSONDecoder().decode(UseSerializers.self, from: data) | |
| 18287 | + } | |
| 18288 | + | |
| 18289 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18290 | + guard let data = json.data(using: encoding) else { | |
| 18291 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18292 | + } | |
| 18293 | + try self.init(data: data) | |
| 18294 | + } | |
| 18295 | + | |
| 18296 | + init(fromURL url: URL) throws { | |
| 18297 | + try self.init(data: try Data(contentsOf: url)) | |
| 18298 | + } | |
| 18299 | + | |
| 18300 | + func with( | |
| 18301 | + useSerializers: Int? = nil | |
| 18302 | + ) -> UseSerializers { | |
| 18303 | + return UseSerializers( | |
| 18304 | + useSerializers: useSerializers ?? self.useSerializers | |
| 18305 | + ) | |
| 18306 | + } | |
| 18307 | + | |
| 18308 | + func jsonData() throws -> Data { | |
| 18309 | + return try newJSONEncoder().encode(self) | |
| 18310 | + } | |
| 18311 | + | |
| 18312 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18313 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18314 | + } | |
| 18315 | +} | |
| 18316 | + | |
| 18317 | +// | |
| 18318 | +// Hashable or Equatable: | |
| 18319 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 18320 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 18321 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 18322 | + | |
| 18161 | 18323 | // MARK: - Ushort |
| 18162 | 18324 | struct Ushort: Codable, Equatable { |
| 18163 | 18325 | let ushort: Int |
Mswiftsendable-true--1c3982c78639 / quicktype.swift+838 −694
| @@ -6348,6 +6348,7 @@ struct Obj3: Codable, Sendable { | ||
| 6348 | 6348 | let jsonWriter: JSONWriter |
| 6349 | 6349 | let lambda: Lambda |
| 6350 | 6350 | let list: List |
| 6351 | + let localDate: LocalDate | |
| 6351 | 6352 | let locale: LocaleClass |
| 6352 | 6353 | let lock: Lock |
| 6353 | 6354 | let long: Long |
| @@ -6361,7 +6362,6 @@ struct Obj3: Codable, Sendable { | ||
| 6361 | 6362 | let native: Native |
| 6362 | 6363 | let new: New |
| 6363 | 6364 | let newtonsoft: Newtonsoft |
| 6364 | - let no: No | |
| 6365 | 6365 | let obj3Guard: Guard |
| 6366 | 6366 | let obj3If: If |
| 6367 | 6367 | let obj3Import: Import |
| @@ -6377,7 +6377,6 @@ struct Obj3: Codable, Sendable { | ||
| 6377 | 6377 | let obj3Left: Left |
| 6378 | 6378 | let obj3Let: Let |
| 6379 | 6379 | let obj3Mutating: Mutating |
| 6380 | - let obj3Nil: Nil | |
| 6381 | 6380 | |
| 6382 | 6381 | enum CodingKeys: String, CodingKey { |
| 6383 | 6382 | case dummy = "dummy" |
| @@ -6416,6 +6415,7 @@ struct Obj3: Codable, Sendable { | ||
| 6416 | 6415 | case jsonWriter = "json_writer" |
| 6417 | 6416 | case lambda = "lambda" |
| 6418 | 6417 | case list = "list" |
| 6418 | + case localDate = "LocalDate" | |
| 6419 | 6419 | case locale = "Locale" |
| 6420 | 6420 | case lock = "lock" |
| 6421 | 6421 | case long = "long" |
| @@ -6429,7 +6429,6 @@ struct Obj3: Codable, Sendable { | ||
| 6429 | 6429 | case native = "native" |
| 6430 | 6430 | case new = "new" |
| 6431 | 6431 | case newtonsoft = "newtonsoft" |
| 6432 | - case no = "NO" | |
| 6433 | 6432 | case obj3Guard = "guard" |
| 6434 | 6433 | case obj3If = "if" |
| 6435 | 6434 | case obj3Import = "import" |
| @@ -6445,7 +6444,6 @@ struct Obj3: Codable, Sendable { | ||
| 6445 | 6444 | case obj3Left = "left" |
| 6446 | 6445 | case obj3Let = "let" |
| 6447 | 6446 | case obj3Mutating = "mutating" |
| 6448 | - case obj3Nil = "nil" | |
| 6449 | 6447 | } |
| 6450 | 6448 | } |
| 6451 | 6449 | |
| @@ -6504,6 +6502,7 @@ extension Obj3 { | ||
| 6504 | 6502 | jsonWriter: JSONWriter? = nil, |
| 6505 | 6503 | lambda: Lambda? = nil, |
| 6506 | 6504 | list: List? = nil, |
| 6505 | + localDate: LocalDate? = nil, | |
| 6507 | 6506 | locale: LocaleClass? = nil, |
| 6508 | 6507 | lock: Lock? = nil, |
| 6509 | 6508 | long: Long? = nil, |
| @@ -6517,7 +6516,6 @@ extension Obj3 { | ||
| 6517 | 6516 | native: Native? = nil, |
| 6518 | 6517 | new: New? = nil, |
| 6519 | 6518 | newtonsoft: Newtonsoft? = nil, |
| 6520 | - no: No? = nil, | |
| 6521 | 6519 | obj3Guard: Guard? = nil, |
| 6522 | 6520 | obj3If: If? = nil, |
| 6523 | 6521 | obj3Import: Import? = nil, |
| @@ -6532,8 +6530,7 @@ extension Obj3 { | ||
| 6532 | 6530 | obj3Lazy: Lazy? = nil, |
| 6533 | 6531 | obj3Left: Left? = nil, |
| 6534 | 6532 | obj3Let: Let? = nil, |
| 6535 | - obj3Mutating: Mutating? = nil, | |
| 6536 | - obj3Nil: Nil? = nil | |
| 6533 | + obj3Mutating: Mutating? = nil | |
| 6537 | 6534 | ) -> Obj3 { |
| 6538 | 6535 | return Obj3( |
| 6539 | 6536 | dummy: dummy ?? self.dummy, |
| @@ -6572,6 +6569,7 @@ extension Obj3 { | ||
| 6572 | 6569 | jsonWriter: jsonWriter ?? self.jsonWriter, |
| 6573 | 6570 | lambda: lambda ?? self.lambda, |
| 6574 | 6571 | list: list ?? self.list, |
| 6572 | + localDate: localDate ?? self.localDate, | |
| 6575 | 6573 | locale: locale ?? self.locale, |
| 6576 | 6574 | lock: lock ?? self.lock, |
| 6577 | 6575 | long: long ?? self.long, |
| @@ -6585,7 +6583,6 @@ extension Obj3 { | ||
| 6585 | 6583 | native: native ?? self.native, |
| 6586 | 6584 | new: new ?? self.new, |
| 6587 | 6585 | newtonsoft: newtonsoft ?? self.newtonsoft, |
| 6588 | - no: no ?? self.no, | |
| 6589 | 6586 | obj3Guard: obj3Guard ?? self.obj3Guard, |
| 6590 | 6587 | obj3If: obj3If ?? self.obj3If, |
| 6591 | 6588 | obj3Import: obj3Import ?? self.obj3Import, |
| @@ -6600,8 +6597,7 @@ extension Obj3 { | ||
| 6600 | 6597 | obj3Lazy: obj3Lazy ?? self.obj3Lazy, |
| 6601 | 6598 | obj3Left: obj3Left ?? self.obj3Left, |
| 6602 | 6599 | obj3Let: obj3Let ?? self.obj3Let, |
| 6603 | - obj3Mutating: obj3Mutating ?? self.obj3Mutating, | |
| 6604 | - obj3Nil: obj3Nil ?? self.obj3Nil | |
| 6600 | + obj3Mutating: obj3Mutating ?? self.obj3Mutating | |
| 6605 | 6601 | ) |
| 6606 | 6602 | } |
| 6607 | 6603 | |
| @@ -8154,6 +8150,50 @@ extension List { | ||
| 8154 | 8150 | } |
| 8155 | 8151 | } |
| 8156 | 8152 | |
| 8153 | +// MARK: - LocalDate | |
| 8154 | +struct LocalDate: Codable, Sendable { | |
| 8155 | + let localDate: Int | |
| 8156 | + | |
| 8157 | + enum CodingKeys: String, CodingKey { | |
| 8158 | + case localDate = "LocalDate" | |
| 8159 | + } | |
| 8160 | +} | |
| 8161 | + | |
| 8162 | +// MARK: LocalDate convenience initializers and mutators | |
| 8163 | + | |
| 8164 | +extension LocalDate { | |
| 8165 | + init(data: Data) throws { | |
| 8166 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 8167 | + } | |
| 8168 | + | |
| 8169 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 8170 | + guard let data = json.data(using: encoding) else { | |
| 8171 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 8172 | + } | |
| 8173 | + try self.init(data: data) | |
| 8174 | + } | |
| 8175 | + | |
| 8176 | + init(fromURL url: URL) throws { | |
| 8177 | + try self.init(data: try Data(contentsOf: url)) | |
| 8178 | + } | |
| 8179 | + | |
| 8180 | + func with( | |
| 8181 | + localDate: Int? = nil | |
| 8182 | + ) -> LocalDate { | |
| 8183 | + return LocalDate( | |
| 8184 | + localDate: localDate ?? self.localDate | |
| 8185 | + ) | |
| 8186 | + } | |
| 8187 | + | |
| 8188 | + func jsonData() throws -> Data { | |
| 8189 | + return try newJSONEncoder().encode(self) | |
| 8190 | + } | |
| 8191 | + | |
| 8192 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 8193 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 8194 | + } | |
| 8195 | +} | |
| 8196 | + | |
| 8157 | 8197 | // MARK: - LocaleClass |
| 8158 | 8198 | struct LocaleClass: Codable, Sendable { |
| 8159 | 8199 | let locale: Int |
| @@ -8726,50 +8766,6 @@ extension Newtonsoft { | ||
| 8726 | 8766 | } |
| 8727 | 8767 | } |
| 8728 | 8768 | |
| 8729 | -// MARK: - No | |
| 8730 | -struct No: Codable, Sendable { | |
| 8731 | - let no: Int | |
| 8732 | - | |
| 8733 | - enum CodingKeys: String, CodingKey { | |
| 8734 | - case no = "NO" | |
| 8735 | - } | |
| 8736 | -} | |
| 8737 | - | |
| 8738 | -// MARK: No convenience initializers and mutators | |
| 8739 | - | |
| 8740 | -extension No { | |
| 8741 | - init(data: Data) throws { | |
| 8742 | - self = try newJSONDecoder().decode(No.self, from: data) | |
| 8743 | - } | |
| 8744 | - | |
| 8745 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 8746 | - guard let data = json.data(using: encoding) else { | |
| 8747 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 8748 | - } | |
| 8749 | - try self.init(data: data) | |
| 8750 | - } | |
| 8751 | - | |
| 8752 | - init(fromURL url: URL) throws { | |
| 8753 | - try self.init(data: try Data(contentsOf: url)) | |
| 8754 | - } | |
| 8755 | - | |
| 8756 | - func with( | |
| 8757 | - no: Int? = nil | |
| 8758 | - ) -> No { | |
| 8759 | - return No( | |
| 8760 | - no: no ?? self.no | |
| 8761 | - ) | |
| 8762 | - } | |
| 8763 | - | |
| 8764 | - func jsonData() throws -> Data { | |
| 8765 | - return try newJSONEncoder().encode(self) | |
| 8766 | - } | |
| 8767 | - | |
| 8768 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 8769 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 8770 | - } | |
| 8771 | -} | |
| 8772 | - | |
| 8773 | 8769 | // MARK: - Guard |
| 8774 | 8770 | struct Guard: Codable, Sendable { |
| 8775 | 8771 | let guardGuard: Int |
| @@ -9430,53 +9426,10 @@ extension Mutating { | ||
| 9430 | 9426 | } |
| 9431 | 9427 | } |
| 9432 | 9428 | |
| 9433 | -// MARK: - Nil | |
| 9434 | -struct Nil: Codable, Sendable { | |
| 9435 | - let nilNil: Int | |
| 9436 | - | |
| 9437 | - enum CodingKeys: String, CodingKey { | |
| 9438 | - case nilNil = "nil" | |
| 9439 | - } | |
| 9440 | -} | |
| 9441 | - | |
| 9442 | -// MARK: Nil convenience initializers and mutators | |
| 9443 | - | |
| 9444 | -extension Nil { | |
| 9445 | - init(data: Data) throws { | |
| 9446 | - self = try newJSONDecoder().decode(Nil.self, from: data) | |
| 9447 | - } | |
| 9448 | - | |
| 9449 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9450 | - guard let data = json.data(using: encoding) else { | |
| 9451 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9452 | - } | |
| 9453 | - try self.init(data: data) | |
| 9454 | - } | |
| 9455 | - | |
| 9456 | - init(fromURL url: URL) throws { | |
| 9457 | - try self.init(data: try Data(contentsOf: url)) | |
| 9458 | - } | |
| 9459 | - | |
| 9460 | - func with( | |
| 9461 | - nilNil: Int? = nil | |
| 9462 | - ) -> Nil { | |
| 9463 | - return Nil( | |
| 9464 | - nilNil: nilNil ?? self.nilNil | |
| 9465 | - ) | |
| 9466 | - } | |
| 9467 | - | |
| 9468 | - func jsonData() throws -> Data { | |
| 9469 | - return try newJSONEncoder().encode(self) | |
| 9470 | - } | |
| 9471 | - | |
| 9472 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9473 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 9474 | - } | |
| 9475 | -} | |
| 9476 | - | |
| 9477 | 9429 | // MARK: - Obj4 |
| 9478 | 9430 | struct Obj4: Codable, Sendable { |
| 9479 | 9431 | let dummy: Int |
| 9432 | + let no: No | |
| 9480 | 9433 | let noSuchMethod: NoSuchMethod |
| 9481 | 9434 | let noexcept: Noexcept |
| 9482 | 9435 | let nonatomic: Nonatomic |
| @@ -9490,6 +9443,7 @@ struct Obj4: Codable, Sendable { | ||
| 9490 | 9443 | let null: Null |
| 9491 | 9444 | let nullptr: Nullptr |
| 9492 | 9445 | let number: Number |
| 9446 | + let obj4Nil: Nil | |
| 9493 | 9447 | let obj4None: NoneClass |
| 9494 | 9448 | let obj4Nonmutating: Nonmutating |
| 9495 | 9449 | let obj4Null: NullClass |
| @@ -9511,6 +9465,8 @@ struct Obj4: Codable, Sendable { | ||
| 9511 | 9465 | let object: Object |
| 9512 | 9466 | let objectMapper: ObjectMapper |
| 9513 | 9467 | let of: Of |
| 9468 | + let offsetDateTime: OffsetDateTime | |
| 9469 | + let offsetTime: OffsetTime | |
| 9514 | 9470 | let oneway: Oneway |
| 9515 | 9471 | let or: Or |
| 9516 | 9472 | let orEq: OrEq |
| @@ -9537,13 +9493,10 @@ struct Obj4: Codable, Sendable { | ||
| 9537 | 9493 | let restrict: Restrict |
| 9538 | 9494 | let retain: Retain |
| 9539 | 9495 | let runtimeType: RuntimeType |
| 9540 | - let s: S | |
| 9541 | - let sbyte: Sbyte | |
| 9542 | - let sealed: Sealed | |
| 9543 | - let sel: Sel | |
| 9544 | 9496 | |
| 9545 | 9497 | enum CodingKeys: String, CodingKey { |
| 9546 | 9498 | case dummy = "dummy" |
| 9499 | + case no = "NO" | |
| 9547 | 9500 | case noSuchMethod = "noSuchMethod" |
| 9548 | 9501 | case noexcept = "noexcept" |
| 9549 | 9502 | case nonatomic = "nonatomic" |
| @@ -9557,6 +9510,7 @@ struct Obj4: Codable, Sendable { | ||
| 9557 | 9510 | case null = "NULL" |
| 9558 | 9511 | case nullptr = "nullptr" |
| 9559 | 9512 | case number = "number" |
| 9513 | + case obj4Nil = "nil" | |
| 9560 | 9514 | case obj4None = "none" |
| 9561 | 9515 | case obj4Nonmutating = "nonmutating" |
| 9562 | 9516 | case obj4Null = "null" |
| @@ -9578,6 +9532,8 @@ struct Obj4: Codable, Sendable { | ||
| 9578 | 9532 | case object = "object" |
| 9579 | 9533 | case objectMapper = "ObjectMapper" |
| 9580 | 9534 | case of = "of" |
| 9535 | + case offsetDateTime = "OffsetDateTime" | |
| 9536 | + case offsetTime = "OffsetTime" | |
| 9581 | 9537 | case oneway = "oneway" |
| 9582 | 9538 | case or = "or" |
| 9583 | 9539 | case orEq = "or_eq" |
| @@ -9604,10 +9560,6 @@ struct Obj4: Codable, Sendable { | ||
| 9604 | 9560 | case restrict = "restrict" |
| 9605 | 9561 | case retain = "retain" |
| 9606 | 9562 | case runtimeType = "runtimeType" |
| 9607 | - case s = "s" | |
| 9608 | - case sbyte = "sbyte" | |
| 9609 | - case sealed = "sealed" | |
| 9610 | - case sel = "SEL" | |
| 9611 | 9563 | } |
| 9612 | 9564 | } |
| 9613 | 9565 | |
| @@ -9631,6 +9583,7 @@ extension Obj4 { | ||
| 9631 | 9583 | |
| 9632 | 9584 | func with( |
| 9633 | 9585 | dummy: Int? = nil, |
| 9586 | + no: No? = nil, | |
| 9634 | 9587 | noSuchMethod: NoSuchMethod? = nil, |
| 9635 | 9588 | noexcept: Noexcept? = nil, |
| 9636 | 9589 | nonatomic: Nonatomic? = nil, |
| @@ -9644,6 +9597,7 @@ extension Obj4 { | ||
| 9644 | 9597 | null: Null? = nil, |
| 9645 | 9598 | nullptr: Nullptr? = nil, |
| 9646 | 9599 | number: Number? = nil, |
| 9600 | + obj4Nil: Nil? = nil, | |
| 9647 | 9601 | obj4None: NoneClass? = nil, |
| 9648 | 9602 | obj4Nonmutating: Nonmutating? = nil, |
| 9649 | 9603 | obj4Null: NullClass? = nil, |
| @@ -9665,6 +9619,8 @@ extension Obj4 { | ||
| 9665 | 9619 | object: Object? = nil, |
| 9666 | 9620 | objectMapper: ObjectMapper? = nil, |
| 9667 | 9621 | of: Of? = nil, |
| 9622 | + offsetDateTime: OffsetDateTime? = nil, | |
| 9623 | + offsetTime: OffsetTime? = nil, | |
| 9668 | 9624 | oneway: Oneway? = nil, |
| 9669 | 9625 | or: Or? = nil, |
| 9670 | 9626 | orEq: OrEq? = nil, |
| @@ -9690,14 +9646,11 @@ extension Obj4 { | ||
| 9690 | 9646 | requires: Requires? = nil, |
| 9691 | 9647 | restrict: Restrict? = nil, |
| 9692 | 9648 | retain: Retain? = nil, |
| 9693 | - runtimeType: RuntimeType? = nil, | |
| 9694 | - s: S? = nil, | |
| 9695 | - sbyte: Sbyte? = nil, | |
| 9696 | - sealed: Sealed? = nil, | |
| 9697 | - sel: Sel? = nil | |
| 9649 | + runtimeType: RuntimeType? = nil | |
| 9698 | 9650 | ) -> Obj4 { |
| 9699 | 9651 | return Obj4( |
| 9700 | 9652 | dummy: dummy ?? self.dummy, |
| 9653 | + no: no ?? self.no, | |
| 9701 | 9654 | noSuchMethod: noSuchMethod ?? self.noSuchMethod, |
| 9702 | 9655 | noexcept: noexcept ?? self.noexcept, |
| 9703 | 9656 | nonatomic: nonatomic ?? self.nonatomic, |
| @@ -9711,6 +9664,7 @@ extension Obj4 { | ||
| 9711 | 9664 | null: null ?? self.null, |
| 9712 | 9665 | nullptr: nullptr ?? self.nullptr, |
| 9713 | 9666 | number: number ?? self.number, |
| 9667 | + obj4Nil: obj4Nil ?? self.obj4Nil, | |
| 9714 | 9668 | obj4None: obj4None ?? self.obj4None, |
| 9715 | 9669 | obj4Nonmutating: obj4Nonmutating ?? self.obj4Nonmutating, |
| 9716 | 9670 | obj4Null: obj4Null ?? self.obj4Null, |
| @@ -9732,6 +9686,8 @@ extension Obj4 { | ||
| 9732 | 9686 | object: object ?? self.object, |
| 9733 | 9687 | objectMapper: objectMapper ?? self.objectMapper, |
| 9734 | 9688 | of: of ?? self.of, |
| 9689 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 9690 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 9735 | 9691 | oneway: oneway ?? self.oneway, |
| 9736 | 9692 | or: or ?? self.or, |
| 9737 | 9693 | orEq: orEq ?? self.orEq, |
| @@ -9757,11 +9713,51 @@ extension Obj4 { | ||
| 9757 | 9713 | requires: requires ?? self.requires, |
| 9758 | 9714 | restrict: restrict ?? self.restrict, |
| 9759 | 9715 | retain: retain ?? self.retain, |
| 9760 | - runtimeType: runtimeType ?? self.runtimeType, | |
| 9761 | - s: s ?? self.s, | |
| 9762 | - sbyte: sbyte ?? self.sbyte, | |
| 9763 | - sealed: sealed ?? self.sealed, | |
| 9764 | - sel: sel ?? self.sel | |
| 9716 | + runtimeType: runtimeType ?? self.runtimeType | |
| 9717 | + ) | |
| 9718 | + } | |
| 9719 | + | |
| 9720 | + func jsonData() throws -> Data { | |
| 9721 | + return try newJSONEncoder().encode(self) | |
| 9722 | + } | |
| 9723 | + | |
| 9724 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9725 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 9726 | + } | |
| 9727 | +} | |
| 9728 | + | |
| 9729 | +// MARK: - No | |
| 9730 | +struct No: Codable, Sendable { | |
| 9731 | + let no: Int | |
| 9732 | + | |
| 9733 | + enum CodingKeys: String, CodingKey { | |
| 9734 | + case no = "NO" | |
| 9735 | + } | |
| 9736 | +} | |
| 9737 | + | |
| 9738 | +// MARK: No convenience initializers and mutators | |
| 9739 | + | |
| 9740 | +extension No { | |
| 9741 | + init(data: Data) throws { | |
| 9742 | + self = try newJSONDecoder().decode(No.self, from: data) | |
| 9743 | + } | |
| 9744 | + | |
| 9745 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9746 | + guard let data = json.data(using: encoding) else { | |
| 9747 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9748 | + } | |
| 9749 | + try self.init(data: data) | |
| 9750 | + } | |
| 9751 | + | |
| 9752 | + init(fromURL url: URL) throws { | |
| 9753 | + try self.init(data: try Data(contentsOf: url)) | |
| 9754 | + } | |
| 9755 | + | |
| 9756 | + func with( | |
| 9757 | + no: Int? = nil | |
| 9758 | + ) -> No { | |
| 9759 | + return No( | |
| 9760 | + no: no ?? self.no | |
| 9765 | 9761 | ) |
| 9766 | 9762 | } |
| 9767 | 9763 | |
| @@ -10346,6 +10342,50 @@ extension Number { | ||
| 10346 | 10342 | } |
| 10347 | 10343 | } |
| 10348 | 10344 | |
| 10345 | +// MARK: - Nil | |
| 10346 | +struct Nil: Codable, Sendable { | |
| 10347 | + let nilNil: Int | |
| 10348 | + | |
| 10349 | + enum CodingKeys: String, CodingKey { | |
| 10350 | + case nilNil = "nil" | |
| 10351 | + } | |
| 10352 | +} | |
| 10353 | + | |
| 10354 | +// MARK: Nil convenience initializers and mutators | |
| 10355 | + | |
| 10356 | +extension Nil { | |
| 10357 | + init(data: Data) throws { | |
| 10358 | + self = try newJSONDecoder().decode(Nil.self, from: data) | |
| 10359 | + } | |
| 10360 | + | |
| 10361 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10362 | + guard let data = json.data(using: encoding) else { | |
| 10363 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 10364 | + } | |
| 10365 | + try self.init(data: data) | |
| 10366 | + } | |
| 10367 | + | |
| 10368 | + init(fromURL url: URL) throws { | |
| 10369 | + try self.init(data: try Data(contentsOf: url)) | |
| 10370 | + } | |
| 10371 | + | |
| 10372 | + func with( | |
| 10373 | + nilNil: Int? = nil | |
| 10374 | + ) -> Nil { | |
| 10375 | + return Nil( | |
| 10376 | + nilNil: nilNil ?? self.nilNil | |
| 10377 | + ) | |
| 10378 | + } | |
| 10379 | + | |
| 10380 | + func jsonData() throws -> Data { | |
| 10381 | + return try newJSONEncoder().encode(self) | |
| 10382 | + } | |
| 10383 | + | |
| 10384 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 10385 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 10386 | + } | |
| 10387 | +} | |
| 10388 | + | |
| 10349 | 10389 | // MARK: - NoneClass |
| 10350 | 10390 | struct NoneClass: Codable, Sendable { |
| 10351 | 10391 | let none: Int |
| @@ -11270,20 +11310,20 @@ extension Of { | ||
| 11270 | 11310 | } |
| 11271 | 11311 | } |
| 11272 | 11312 | |
| 11273 | -// MARK: - Oneway | |
| 11274 | -struct Oneway: Codable, Sendable { | |
| 11275 | - let oneway: Int | |
| 11313 | +// MARK: - OffsetDateTime | |
| 11314 | +struct OffsetDateTime: Codable, Sendable { | |
| 11315 | + let offsetDateTime: Int | |
| 11276 | 11316 | |
| 11277 | 11317 | enum CodingKeys: String, CodingKey { |
| 11278 | - case oneway = "oneway" | |
| 11318 | + case offsetDateTime = "OffsetDateTime" | |
| 11279 | 11319 | } |
| 11280 | 11320 | } |
| 11281 | 11321 | |
| 11282 | -// MARK: Oneway convenience initializers and mutators | |
| 11322 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 11283 | 11323 | |
| 11284 | -extension Oneway { | |
| 11324 | +extension OffsetDateTime { | |
| 11285 | 11325 | init(data: Data) throws { |
| 11286 | - self = try newJSONDecoder().decode(Oneway.self, from: data) | |
| 11326 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 11287 | 11327 | } |
| 11288 | 11328 | |
| 11289 | 11329 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11298,10 +11338,10 @@ extension Oneway { | ||
| 11298 | 11338 | } |
| 11299 | 11339 | |
| 11300 | 11340 | func with( |
| 11301 | - oneway: Int? = nil | |
| 11302 | - ) -> Oneway { | |
| 11303 | - return Oneway( | |
| 11304 | - oneway: oneway ?? self.oneway | |
| 11341 | + offsetDateTime: Int? = nil | |
| 11342 | + ) -> OffsetDateTime { | |
| 11343 | + return OffsetDateTime( | |
| 11344 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime | |
| 11305 | 11345 | ) |
| 11306 | 11346 | } |
| 11307 | 11347 | |
| @@ -11314,20 +11354,20 @@ extension Oneway { | ||
| 11314 | 11354 | } |
| 11315 | 11355 | } |
| 11316 | 11356 | |
| 11317 | -// MARK: - Or | |
| 11318 | -struct Or: Codable, Sendable { | |
| 11319 | - let or: Int | |
| 11357 | +// MARK: - OffsetTime | |
| 11358 | +struct OffsetTime: Codable, Sendable { | |
| 11359 | + let offsetTime: Int | |
| 11320 | 11360 | |
| 11321 | 11361 | enum CodingKeys: String, CodingKey { |
| 11322 | - case or = "or" | |
| 11362 | + case offsetTime = "OffsetTime" | |
| 11323 | 11363 | } |
| 11324 | 11364 | } |
| 11325 | 11365 | |
| 11326 | -// MARK: Or convenience initializers and mutators | |
| 11366 | +// MARK: OffsetTime convenience initializers and mutators | |
| 11327 | 11367 | |
| 11328 | -extension Or { | |
| 11368 | +extension OffsetTime { | |
| 11329 | 11369 | init(data: Data) throws { |
| 11330 | - self = try newJSONDecoder().decode(Or.self, from: data) | |
| 11370 | + self = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 11331 | 11371 | } |
| 11332 | 11372 | |
| 11333 | 11373 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11342,10 +11382,10 @@ extension Or { | ||
| 11342 | 11382 | } |
| 11343 | 11383 | |
| 11344 | 11384 | func with( |
| 11345 | - or: Int? = nil | |
| 11346 | - ) -> Or { | |
| 11347 | - return Or( | |
| 11348 | - or: or ?? self.or | |
| 11385 | + offsetTime: Int? = nil | |
| 11386 | + ) -> OffsetTime { | |
| 11387 | + return OffsetTime( | |
| 11388 | + offsetTime: offsetTime ?? self.offsetTime | |
| 11349 | 11389 | ) |
| 11350 | 11390 | } |
| 11351 | 11391 | |
| @@ -11358,7 +11398,95 @@ extension Or { | ||
| 11358 | 11398 | } |
| 11359 | 11399 | } |
| 11360 | 11400 | |
| 11361 | -// MARK: - OrEq | |
| 11401 | +// MARK: - Oneway | |
| 11402 | +struct Oneway: Codable, Sendable { | |
| 11403 | + let oneway: Int | |
| 11404 | + | |
| 11405 | + enum CodingKeys: String, CodingKey { | |
| 11406 | + case oneway = "oneway" | |
| 11407 | + } | |
| 11408 | +} | |
| 11409 | + | |
| 11410 | +// MARK: Oneway convenience initializers and mutators | |
| 11411 | + | |
| 11412 | +extension Oneway { | |
| 11413 | + init(data: Data) throws { | |
| 11414 | + self = try newJSONDecoder().decode(Oneway.self, from: data) | |
| 11415 | + } | |
| 11416 | + | |
| 11417 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11418 | + guard let data = json.data(using: encoding) else { | |
| 11419 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11420 | + } | |
| 11421 | + try self.init(data: data) | |
| 11422 | + } | |
| 11423 | + | |
| 11424 | + init(fromURL url: URL) throws { | |
| 11425 | + try self.init(data: try Data(contentsOf: url)) | |
| 11426 | + } | |
| 11427 | + | |
| 11428 | + func with( | |
| 11429 | + oneway: Int? = nil | |
| 11430 | + ) -> Oneway { | |
| 11431 | + return Oneway( | |
| 11432 | + oneway: oneway ?? self.oneway | |
| 11433 | + ) | |
| 11434 | + } | |
| 11435 | + | |
| 11436 | + func jsonData() throws -> Data { | |
| 11437 | + return try newJSONEncoder().encode(self) | |
| 11438 | + } | |
| 11439 | + | |
| 11440 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11441 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11442 | + } | |
| 11443 | +} | |
| 11444 | + | |
| 11445 | +// MARK: - Or | |
| 11446 | +struct Or: Codable, Sendable { | |
| 11447 | + let or: Int | |
| 11448 | + | |
| 11449 | + enum CodingKeys: String, CodingKey { | |
| 11450 | + case or = "or" | |
| 11451 | + } | |
| 11452 | +} | |
| 11453 | + | |
| 11454 | +// MARK: Or convenience initializers and mutators | |
| 11455 | + | |
| 11456 | +extension Or { | |
| 11457 | + init(data: Data) throws { | |
| 11458 | + self = try newJSONDecoder().decode(Or.self, from: data) | |
| 11459 | + } | |
| 11460 | + | |
| 11461 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11462 | + guard let data = json.data(using: encoding) else { | |
| 11463 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11464 | + } | |
| 11465 | + try self.init(data: data) | |
| 11466 | + } | |
| 11467 | + | |
| 11468 | + init(fromURL url: URL) throws { | |
| 11469 | + try self.init(data: try Data(contentsOf: url)) | |
| 11470 | + } | |
| 11471 | + | |
| 11472 | + func with( | |
| 11473 | + or: Int? = nil | |
| 11474 | + ) -> Or { | |
| 11475 | + return Or( | |
| 11476 | + or: or ?? self.or | |
| 11477 | + ) | |
| 11478 | + } | |
| 11479 | + | |
| 11480 | + func jsonData() throws -> Data { | |
| 11481 | + return try newJSONEncoder().encode(self) | |
| 11482 | + } | |
| 11483 | + | |
| 11484 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11485 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11486 | + } | |
| 11487 | +} | |
| 11488 | + | |
| 11489 | +// MARK: - OrEq | |
| 11362 | 11490 | struct OrEq: Codable, Sendable { |
| 11363 | 11491 | let orEq: Int |
| 11364 | 11492 | |
| @@ -12414,326 +12542,148 @@ extension RuntimeType { | ||
| 12414 | 12542 | } |
| 12415 | 12543 | } |
| 12416 | 12544 | |
| 12417 | -// MARK: - S | |
| 12418 | -struct S: Codable, Sendable { | |
| 12419 | - let s: Int | |
| 12545 | +// MARK: - Obj5 | |
| 12546 | +struct Obj5: Codable, Sendable { | |
| 12547 | + let dummy: Int | |
| 12548 | + let kSerializer: KSerializer | |
| 12549 | + let obj5Self: SelfClass | |
| 12550 | + let obj5Set: Set | |
| 12551 | + let obj5Static: Static | |
| 12552 | + let obj5Struct: Struct | |
| 12553 | + let obj5Subscript: Subscript | |
| 12554 | + let obj5Super: Super | |
| 12555 | + let obj5Switch: Switch | |
| 12556 | + let obj5Throw: Throw | |
| 12557 | + let obj5Throws: Throws | |
| 12558 | + let obj5True: True | |
| 12559 | + let obj5Try: Try | |
| 12560 | + let obj5Type: Obj5Type | |
| 12561 | + let obj5Typealias: Typealias | |
| 12562 | + let primitiveKind: PrimitiveKind | |
| 12563 | + let purpleSelf: Obj5Self | |
| 12564 | + let purpleTrue: TrueClass | |
| 12565 | + let s: S | |
| 12566 | + let sbyte: Sbyte | |
| 12567 | + let sealed: Sealed | |
| 12568 | + let sel: Sel | |
| 12569 | + let select: Select | |
| 12570 | + let sendable: SendableClass | |
| 12571 | + let serialDescriptor: SerialDescriptor | |
| 12572 | + let serialName: SerialName | |
| 12573 | + let serializable: Serializable | |
| 12574 | + let serialize: Serialize | |
| 12575 | + let serializerProvider: SerializerProvider | |
| 12576 | + let short: Short | |
| 12577 | + let signed: Signed | |
| 12578 | + let simpleModule: SimpleModule | |
| 12579 | + let sizeof: Sizeof | |
| 12580 | + let stackalloc: Stackalloc | |
| 12581 | + let standards: Standards | |
| 12582 | + let staticAssert: StaticAssert | |
| 12583 | + let staticCast: StaticCast | |
| 12584 | + let stdDeserializer: StdDeserializer | |
| 12585 | + let stdSerializer: StdSerializer | |
| 12586 | + let strictfp: Strictfp | |
| 12587 | + let string: StringClass | |
| 12588 | + let symbol: Symbol | |
| 12589 | + let synchronized: Synchronized | |
| 12590 | + let system: System | |
| 12591 | + let template: Template | |
| 12592 | + let then: Then | |
| 12593 | + let this: This | |
| 12594 | + let threadLocal: ThreadLocal | |
| 12595 | + let timeOnly: TimeOnly | |
| 12596 | + let timeOnlyConverter: TimeOnlyConverter | |
| 12597 | + let timeZone: TimeZoneClass | |
| 12598 | + let toDict: ToDict | |
| 12599 | + let toJSON: ToJSON | |
| 12600 | + let toString: ToString | |
| 12601 | + let topLevel: TopLevelClass | |
| 12602 | + let transient: Transient | |
| 12603 | + let type: TypeClass | |
| 12604 | + let typedef: Typedef | |
| 12605 | + let typeid: Typeid | |
| 12606 | + let typename: Typename | |
| 12607 | + let typeof: Typeof | |
| 12608 | + let uint: Uint | |
| 12609 | + let ulong: Ulong | |
| 12610 | + let unchecked: Unchecked | |
| 12611 | + let undefined: Undefined | |
| 12420 | 12612 | |
| 12421 | 12613 | enum CodingKeys: String, CodingKey { |
| 12614 | + case dummy = "dummy" | |
| 12615 | + case kSerializer = "KSerializer" | |
| 12616 | + case obj5Self = "Self" | |
| 12617 | + case obj5Set = "set" | |
| 12618 | + case obj5Static = "static" | |
| 12619 | + case obj5Struct = "struct" | |
| 12620 | + case obj5Subscript = "subscript" | |
| 12621 | + case obj5Super = "super" | |
| 12622 | + case obj5Switch = "switch" | |
| 12623 | + case obj5Throw = "throw" | |
| 12624 | + case obj5Throws = "throws" | |
| 12625 | + case obj5True = "True" | |
| 12626 | + case obj5Try = "try" | |
| 12627 | + case obj5Type = "type" | |
| 12628 | + case obj5Typealias = "typealias" | |
| 12629 | + case primitiveKind = "PrimitiveKind" | |
| 12630 | + case purpleSelf = "self" | |
| 12631 | + case purpleTrue = "true" | |
| 12422 | 12632 | case s = "s" |
| 12633 | + case sbyte = "sbyte" | |
| 12634 | + case sealed = "sealed" | |
| 12635 | + case sel = "SEL" | |
| 12636 | + case select = "select" | |
| 12637 | + case sendable = "Sendable" | |
| 12638 | + case serialDescriptor = "SerialDescriptor" | |
| 12639 | + case serialName = "SerialName" | |
| 12640 | + case serializable = "Serializable" | |
| 12641 | + case serialize = "serialize" | |
| 12642 | + case serializerProvider = "SerializerProvider" | |
| 12643 | + case short = "short" | |
| 12644 | + case signed = "signed" | |
| 12645 | + case simpleModule = "SimpleModule" | |
| 12646 | + case sizeof = "sizeof" | |
| 12647 | + case stackalloc = "stackalloc" | |
| 12648 | + case standards = "Standards" | |
| 12649 | + case staticAssert = "static_assert" | |
| 12650 | + case staticCast = "static_cast" | |
| 12651 | + case stdDeserializer = "StdDeserializer" | |
| 12652 | + case stdSerializer = "StdSerializer" | |
| 12653 | + case strictfp = "strictfp" | |
| 12654 | + case string = "string" | |
| 12655 | + case symbol = "symbol" | |
| 12656 | + case synchronized = "synchronized" | |
| 12657 | + case system = "system" | |
| 12658 | + case template = "template" | |
| 12659 | + case then = "then" | |
| 12660 | + case this = "this" | |
| 12661 | + case threadLocal = "thread_local" | |
| 12662 | + case timeOnly = "TimeOnly" | |
| 12663 | + case timeOnlyConverter = "TimeOnlyConverter" | |
| 12664 | + case timeZone = "TimeZone" | |
| 12665 | + case toDict = "to_dict" | |
| 12666 | + case toJSON = "to_json" | |
| 12667 | + case toString = "toString" | |
| 12668 | + case topLevel = "top_level" | |
| 12669 | + case transient = "transient" | |
| 12670 | + case type = "Type" | |
| 12671 | + case typedef = "typedef" | |
| 12672 | + case typeid = "typeid" | |
| 12673 | + case typename = "typename" | |
| 12674 | + case typeof = "typeof" | |
| 12675 | + case uint = "uint" | |
| 12676 | + case ulong = "ulong" | |
| 12677 | + case unchecked = "unchecked" | |
| 12678 | + case undefined = "undefined" | |
| 12423 | 12679 | } |
| 12424 | 12680 | } |
| 12425 | 12681 | |
| 12426 | -// MARK: S convenience initializers and mutators | |
| 12682 | +// MARK: Obj5 convenience initializers and mutators | |
| 12427 | 12683 | |
| 12428 | -extension S { | |
| 12684 | +extension Obj5 { | |
| 12429 | 12685 | init(data: Data) throws { |
| 12430 | - self = try newJSONDecoder().decode(S.self, from: data) | |
| 12431 | - } | |
| 12432 | - | |
| 12433 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12434 | - guard let data = json.data(using: encoding) else { | |
| 12435 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12436 | - } | |
| 12437 | - try self.init(data: data) | |
| 12438 | - } | |
| 12439 | - | |
| 12440 | - init(fromURL url: URL) throws { | |
| 12441 | - try self.init(data: try Data(contentsOf: url)) | |
| 12442 | - } | |
| 12443 | - | |
| 12444 | - func with( | |
| 12445 | - s: Int? = nil | |
| 12446 | - ) -> S { | |
| 12447 | - return S( | |
| 12448 | - s: s ?? self.s | |
| 12449 | - ) | |
| 12450 | - } | |
| 12451 | - | |
| 12452 | - func jsonData() throws -> Data { | |
| 12453 | - return try newJSONEncoder().encode(self) | |
| 12454 | - } | |
| 12455 | - | |
| 12456 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12457 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12458 | - } | |
| 12459 | -} | |
| 12460 | - | |
| 12461 | -// MARK: - Sbyte | |
| 12462 | -struct Sbyte: Codable, Sendable { | |
| 12463 | - let sbyte: Int | |
| 12464 | - | |
| 12465 | - enum CodingKeys: String, CodingKey { | |
| 12466 | - case sbyte = "sbyte" | |
| 12467 | - } | |
| 12468 | -} | |
| 12469 | - | |
| 12470 | -// MARK: Sbyte convenience initializers and mutators | |
| 12471 | - | |
| 12472 | -extension Sbyte { | |
| 12473 | - init(data: Data) throws { | |
| 12474 | - self = try newJSONDecoder().decode(Sbyte.self, from: data) | |
| 12475 | - } | |
| 12476 | - | |
| 12477 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12478 | - guard let data = json.data(using: encoding) else { | |
| 12479 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12480 | - } | |
| 12481 | - try self.init(data: data) | |
| 12482 | - } | |
| 12483 | - | |
| 12484 | - init(fromURL url: URL) throws { | |
| 12485 | - try self.init(data: try Data(contentsOf: url)) | |
| 12486 | - } | |
| 12487 | - | |
| 12488 | - func with( | |
| 12489 | - sbyte: Int? = nil | |
| 12490 | - ) -> Sbyte { | |
| 12491 | - return Sbyte( | |
| 12492 | - sbyte: sbyte ?? self.sbyte | |
| 12493 | - ) | |
| 12494 | - } | |
| 12495 | - | |
| 12496 | - func jsonData() throws -> Data { | |
| 12497 | - return try newJSONEncoder().encode(self) | |
| 12498 | - } | |
| 12499 | - | |
| 12500 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12501 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12502 | - } | |
| 12503 | -} | |
| 12504 | - | |
| 12505 | -// MARK: - Sealed | |
| 12506 | -struct Sealed: Codable, Sendable { | |
| 12507 | - let sealed: Int | |
| 12508 | - | |
| 12509 | - enum CodingKeys: String, CodingKey { | |
| 12510 | - case sealed = "sealed" | |
| 12511 | - } | |
| 12512 | -} | |
| 12513 | - | |
| 12514 | -// MARK: Sealed convenience initializers and mutators | |
| 12515 | - | |
| 12516 | -extension Sealed { | |
| 12517 | - init(data: Data) throws { | |
| 12518 | - self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 12519 | - } | |
| 12520 | - | |
| 12521 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12522 | - guard let data = json.data(using: encoding) else { | |
| 12523 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12524 | - } | |
| 12525 | - try self.init(data: data) | |
| 12526 | - } | |
| 12527 | - | |
| 12528 | - init(fromURL url: URL) throws { | |
| 12529 | - try self.init(data: try Data(contentsOf: url)) | |
| 12530 | - } | |
| 12531 | - | |
| 12532 | - func with( | |
| 12533 | - sealed: Int? = nil | |
| 12534 | - ) -> Sealed { | |
| 12535 | - return Sealed( | |
| 12536 | - sealed: sealed ?? self.sealed | |
| 12537 | - ) | |
| 12538 | - } | |
| 12539 | - | |
| 12540 | - func jsonData() throws -> Data { | |
| 12541 | - return try newJSONEncoder().encode(self) | |
| 12542 | - } | |
| 12543 | - | |
| 12544 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12545 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12546 | - } | |
| 12547 | -} | |
| 12548 | - | |
| 12549 | -// MARK: - Sel | |
| 12550 | -struct Sel: Codable, Sendable { | |
| 12551 | - let sel: Int | |
| 12552 | - | |
| 12553 | - enum CodingKeys: String, CodingKey { | |
| 12554 | - case sel = "SEL" | |
| 12555 | - } | |
| 12556 | -} | |
| 12557 | - | |
| 12558 | -// MARK: Sel convenience initializers and mutators | |
| 12559 | - | |
| 12560 | -extension Sel { | |
| 12561 | - init(data: Data) throws { | |
| 12562 | - self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 12563 | - } | |
| 12564 | - | |
| 12565 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12566 | - guard let data = json.data(using: encoding) else { | |
| 12567 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12568 | - } | |
| 12569 | - try self.init(data: data) | |
| 12570 | - } | |
| 12571 | - | |
| 12572 | - init(fromURL url: URL) throws { | |
| 12573 | - try self.init(data: try Data(contentsOf: url)) | |
| 12574 | - } | |
| 12575 | - | |
| 12576 | - func with( | |
| 12577 | - sel: Int? = nil | |
| 12578 | - ) -> Sel { | |
| 12579 | - return Sel( | |
| 12580 | - sel: sel ?? self.sel | |
| 12581 | - ) | |
| 12582 | - } | |
| 12583 | - | |
| 12584 | - func jsonData() throws -> Data { | |
| 12585 | - return try newJSONEncoder().encode(self) | |
| 12586 | - } | |
| 12587 | - | |
| 12588 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12589 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12590 | - } | |
| 12591 | -} | |
| 12592 | - | |
| 12593 | -// MARK: - Obj5 | |
| 12594 | -struct Obj5: Codable, Sendable { | |
| 12595 | - let dummy: Int | |
| 12596 | - let kSerializer: KSerializer | |
| 12597 | - let obj5Self: SelfClass | |
| 12598 | - let obj5Set: Set | |
| 12599 | - let obj5Static: Static | |
| 12600 | - let obj5Struct: Struct | |
| 12601 | - let obj5Subscript: Subscript | |
| 12602 | - let obj5Super: Super | |
| 12603 | - let obj5Switch: Switch | |
| 12604 | - let obj5Throw: Throw | |
| 12605 | - let obj5Throws: Throws | |
| 12606 | - let obj5True: True | |
| 12607 | - let obj5Try: Try | |
| 12608 | - let obj5Type: Obj5Type | |
| 12609 | - let obj5Typealias: Typealias | |
| 12610 | - let obj5Unowned: Unowned | |
| 12611 | - let primitiveKind: PrimitiveKind | |
| 12612 | - let purpleSelf: Obj5Self | |
| 12613 | - let purpleTrue: TrueClass | |
| 12614 | - let select: Select | |
| 12615 | - let sendable: SendableClass | |
| 12616 | - let serialDescriptor: SerialDescriptor | |
| 12617 | - let serialName: SerialName | |
| 12618 | - let serializable: Serializable | |
| 12619 | - let serialize: Serialize | |
| 12620 | - let serializerProvider: SerializerProvider | |
| 12621 | - let short: Short | |
| 12622 | - let signed: Signed | |
| 12623 | - let simpleModule: SimpleModule | |
| 12624 | - let sizeof: Sizeof | |
| 12625 | - let stackalloc: Stackalloc | |
| 12626 | - let standards: Standards | |
| 12627 | - let staticAssert: StaticAssert | |
| 12628 | - let staticCast: StaticCast | |
| 12629 | - let stdDeserializer: StdDeserializer | |
| 12630 | - let stdSerializer: StdSerializer | |
| 12631 | - let strictfp: Strictfp | |
| 12632 | - let string: StringClass | |
| 12633 | - let symbol: Symbol | |
| 12634 | - let synchronized: Synchronized | |
| 12635 | - let system: System | |
| 12636 | - let template: Template | |
| 12637 | - let then: Then | |
| 12638 | - let this: This | |
| 12639 | - let threadLocal: ThreadLocal | |
| 12640 | - let timeOnly: TimeOnly | |
| 12641 | - let timeOnlyConverter: TimeOnlyConverter | |
| 12642 | - let timeZone: TimeZoneClass | |
| 12643 | - let toDict: ToDict | |
| 12644 | - let toJSON: ToJSON | |
| 12645 | - let toString: ToString | |
| 12646 | - let topLevel: TopLevelClass | |
| 12647 | - let transient: Transient | |
| 12648 | - let type: TypeClass | |
| 12649 | - let typedef: Typedef | |
| 12650 | - let typeid: Typeid | |
| 12651 | - let typename: Typename | |
| 12652 | - let typeof: Typeof | |
| 12653 | - let uint: Uint | |
| 12654 | - let ulong: Ulong | |
| 12655 | - let unchecked: Unchecked | |
| 12656 | - let undefined: Undefined | |
| 12657 | - let union: Union | |
| 12658 | - let unmarshalJSON: UnmarshalJSON | |
| 12659 | - let unsafe: Unsafe | |
| 12660 | - let useSerializers: UseSerializers | |
| 12661 | - | |
| 12662 | - enum CodingKeys: String, CodingKey { | |
| 12663 | - case dummy = "dummy" | |
| 12664 | - case kSerializer = "KSerializer" | |
| 12665 | - case obj5Self = "Self" | |
| 12666 | - case obj5Set = "set" | |
| 12667 | - case obj5Static = "static" | |
| 12668 | - case obj5Struct = "struct" | |
| 12669 | - case obj5Subscript = "subscript" | |
| 12670 | - case obj5Super = "super" | |
| 12671 | - case obj5Switch = "switch" | |
| 12672 | - case obj5Throw = "throw" | |
| 12673 | - case obj5Throws = "throws" | |
| 12674 | - case obj5True = "True" | |
| 12675 | - case obj5Try = "try" | |
| 12676 | - case obj5Type = "type" | |
| 12677 | - case obj5Typealias = "typealias" | |
| 12678 | - case obj5Unowned = "unowned" | |
| 12679 | - case primitiveKind = "PrimitiveKind" | |
| 12680 | - case purpleSelf = "self" | |
| 12681 | - case purpleTrue = "true" | |
| 12682 | - case select = "select" | |
| 12683 | - case sendable = "Sendable" | |
| 12684 | - case serialDescriptor = "SerialDescriptor" | |
| 12685 | - case serialName = "SerialName" | |
| 12686 | - case serializable = "Serializable" | |
| 12687 | - case serialize = "serialize" | |
| 12688 | - case serializerProvider = "SerializerProvider" | |
| 12689 | - case short = "short" | |
| 12690 | - case signed = "signed" | |
| 12691 | - case simpleModule = "SimpleModule" | |
| 12692 | - case sizeof = "sizeof" | |
| 12693 | - case stackalloc = "stackalloc" | |
| 12694 | - case standards = "Standards" | |
| 12695 | - case staticAssert = "static_assert" | |
| 12696 | - case staticCast = "static_cast" | |
| 12697 | - case stdDeserializer = "StdDeserializer" | |
| 12698 | - case stdSerializer = "StdSerializer" | |
| 12699 | - case strictfp = "strictfp" | |
| 12700 | - case string = "string" | |
| 12701 | - case symbol = "symbol" | |
| 12702 | - case synchronized = "synchronized" | |
| 12703 | - case system = "system" | |
| 12704 | - case template = "template" | |
| 12705 | - case then = "then" | |
| 12706 | - case this = "this" | |
| 12707 | - case threadLocal = "thread_local" | |
| 12708 | - case timeOnly = "TimeOnly" | |
| 12709 | - case timeOnlyConverter = "TimeOnlyConverter" | |
| 12710 | - case timeZone = "TimeZone" | |
| 12711 | - case toDict = "to_dict" | |
| 12712 | - case toJSON = "to_json" | |
| 12713 | - case toString = "toString" | |
| 12714 | - case topLevel = "top_level" | |
| 12715 | - case transient = "transient" | |
| 12716 | - case type = "Type" | |
| 12717 | - case typedef = "typedef" | |
| 12718 | - case typeid = "typeid" | |
| 12719 | - case typename = "typename" | |
| 12720 | - case typeof = "typeof" | |
| 12721 | - case uint = "uint" | |
| 12722 | - case ulong = "ulong" | |
| 12723 | - case unchecked = "unchecked" | |
| 12724 | - case undefined = "undefined" | |
| 12725 | - case union = "union" | |
| 12726 | - case unmarshalJSON = "UnmarshalJSON" | |
| 12727 | - case unsafe = "unsafe" | |
| 12728 | - case useSerializers = "UseSerializers" | |
| 12729 | - } | |
| 12730 | -} | |
| 12731 | - | |
| 12732 | -// MARK: Obj5 convenience initializers and mutators | |
| 12733 | - | |
| 12734 | -extension Obj5 { | |
| 12735 | - init(data: Data) throws { | |
| 12736 | - self = try newJSONDecoder().decode(Obj5.self, from: data) | |
| 12686 | + self = try newJSONDecoder().decode(Obj5.self, from: data) | |
| 12737 | 12687 | } |
| 12738 | 12688 | |
| 12739 | 12689 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -12763,10 +12713,13 @@ extension Obj5 { | ||
| 12763 | 12713 | obj5Try: Try? = nil, |
| 12764 | 12714 | obj5Type: Obj5Type? = nil, |
| 12765 | 12715 | obj5Typealias: Typealias? = nil, |
| 12766 | - obj5Unowned: Unowned? = nil, | |
| 12767 | 12716 | primitiveKind: PrimitiveKind? = nil, |
| 12768 | 12717 | purpleSelf: Obj5Self? = nil, |
| 12769 | 12718 | purpleTrue: TrueClass? = nil, |
| 12719 | + s: S? = nil, | |
| 12720 | + sbyte: Sbyte? = nil, | |
| 12721 | + sealed: Sealed? = nil, | |
| 12722 | + sel: Sel? = nil, | |
| 12770 | 12723 | select: Select? = nil, |
| 12771 | 12724 | sendable: SendableClass? = nil, |
| 12772 | 12725 | serialDescriptor: SerialDescriptor? = nil, |
| @@ -12809,11 +12762,7 @@ extension Obj5 { | ||
| 12809 | 12762 | uint: Uint? = nil, |
| 12810 | 12763 | ulong: Ulong? = nil, |
| 12811 | 12764 | unchecked: Unchecked? = nil, |
| 12812 | - undefined: Undefined? = nil, | |
| 12813 | - union: Union? = nil, | |
| 12814 | - unmarshalJSON: UnmarshalJSON? = nil, | |
| 12815 | - unsafe: Unsafe? = nil, | |
| 12816 | - useSerializers: UseSerializers? = nil | |
| 12765 | + undefined: Undefined? = nil | |
| 12817 | 12766 | ) -> Obj5 { |
| 12818 | 12767 | return Obj5( |
| 12819 | 12768 | dummy: dummy ?? self.dummy, |
| @@ -12831,10 +12780,13 @@ extension Obj5 { | ||
| 12831 | 12780 | obj5Try: obj5Try ?? self.obj5Try, |
| 12832 | 12781 | obj5Type: obj5Type ?? self.obj5Type, |
| 12833 | 12782 | obj5Typealias: obj5Typealias ?? self.obj5Typealias, |
| 12834 | - obj5Unowned: obj5Unowned ?? self.obj5Unowned, | |
| 12835 | 12783 | primitiveKind: primitiveKind ?? self.primitiveKind, |
| 12836 | 12784 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 12837 | 12785 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 12786 | + s: s ?? self.s, | |
| 12787 | + sbyte: sbyte ?? self.sbyte, | |
| 12788 | + sealed: sealed ?? self.sealed, | |
| 12789 | + sel: sel ?? self.sel, | |
| 12838 | 12790 | select: select ?? self.select, |
| 12839 | 12791 | sendable: sendable ?? self.sendable, |
| 12840 | 12792 | serialDescriptor: serialDescriptor ?? self.serialDescriptor, |
| @@ -12877,11 +12829,7 @@ extension Obj5 { | ||
| 12877 | 12829 | uint: uint ?? self.uint, |
| 12878 | 12830 | ulong: ulong ?? self.ulong, |
| 12879 | 12831 | unchecked: unchecked ?? self.unchecked, |
| 12880 | - undefined: undefined ?? self.undefined, | |
| 12881 | - union: union ?? self.union, | |
| 12882 | - unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON, | |
| 12883 | - unsafe: unsafe ?? self.unsafe, | |
| 12884 | - useSerializers: useSerializers ?? self.useSerializers | |
| 12832 | + undefined: undefined ?? self.undefined | |
| 12885 | 12833 | ) |
| 12886 | 12834 | } |
| 12887 | 12835 | |
| @@ -13510,20 +13458,152 @@ extension Typealias { | ||
| 13510 | 13458 | } |
| 13511 | 13459 | } |
| 13512 | 13460 | |
| 13513 | -// MARK: - Unowned | |
| 13514 | -struct Unowned: Codable, Sendable { | |
| 13515 | - let unownedUnowned: Int | |
| 13461 | +// MARK: - PrimitiveKind | |
| 13462 | +struct PrimitiveKind: Codable, Sendable { | |
| 13463 | + let primitiveKind: Int | |
| 13516 | 13464 | |
| 13517 | 13465 | enum CodingKeys: String, CodingKey { |
| 13518 | - case unownedUnowned = "unowned" | |
| 13466 | + case primitiveKind = "PrimitiveKind" | |
| 13467 | + } | |
| 13468 | +} | |
| 13469 | + | |
| 13470 | +// MARK: PrimitiveKind convenience initializers and mutators | |
| 13471 | + | |
| 13472 | +extension PrimitiveKind { | |
| 13473 | + init(data: Data) throws { | |
| 13474 | + self = try newJSONDecoder().decode(PrimitiveKind.self, from: data) | |
| 13475 | + } | |
| 13476 | + | |
| 13477 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13478 | + guard let data = json.data(using: encoding) else { | |
| 13479 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13480 | + } | |
| 13481 | + try self.init(data: data) | |
| 13482 | + } | |
| 13483 | + | |
| 13484 | + init(fromURL url: URL) throws { | |
| 13485 | + try self.init(data: try Data(contentsOf: url)) | |
| 13486 | + } | |
| 13487 | + | |
| 13488 | + func with( | |
| 13489 | + primitiveKind: Int? = nil | |
| 13490 | + ) -> PrimitiveKind { | |
| 13491 | + return PrimitiveKind( | |
| 13492 | + primitiveKind: primitiveKind ?? self.primitiveKind | |
| 13493 | + ) | |
| 13494 | + } | |
| 13495 | + | |
| 13496 | + func jsonData() throws -> Data { | |
| 13497 | + return try newJSONEncoder().encode(self) | |
| 13498 | + } | |
| 13499 | + | |
| 13500 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13501 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13502 | + } | |
| 13503 | +} | |
| 13504 | + | |
| 13505 | +// MARK: - Obj5Self | |
| 13506 | +struct Obj5Self: Codable, Sendable { | |
| 13507 | + let selfSelf: Int | |
| 13508 | + | |
| 13509 | + enum CodingKeys: String, CodingKey { | |
| 13510 | + case selfSelf = "self" | |
| 13511 | + } | |
| 13512 | +} | |
| 13513 | + | |
| 13514 | +// MARK: Obj5Self convenience initializers and mutators | |
| 13515 | + | |
| 13516 | +extension Obj5Self { | |
| 13517 | + init(data: Data) throws { | |
| 13518 | + self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 13519 | + } | |
| 13520 | + | |
| 13521 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13522 | + guard let data = json.data(using: encoding) else { | |
| 13523 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13524 | + } | |
| 13525 | + try self.init(data: data) | |
| 13526 | + } | |
| 13527 | + | |
| 13528 | + init(fromURL url: URL) throws { | |
| 13529 | + try self.init(data: try Data(contentsOf: url)) | |
| 13530 | + } | |
| 13531 | + | |
| 13532 | + func with( | |
| 13533 | + selfSelf: Int? = nil | |
| 13534 | + ) -> Obj5Self { | |
| 13535 | + return Obj5Self( | |
| 13536 | + selfSelf: selfSelf ?? self.selfSelf | |
| 13537 | + ) | |
| 13538 | + } | |
| 13539 | + | |
| 13540 | + func jsonData() throws -> Data { | |
| 13541 | + return try newJSONEncoder().encode(self) | |
| 13542 | + } | |
| 13543 | + | |
| 13544 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13545 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13546 | + } | |
| 13547 | +} | |
| 13548 | + | |
| 13549 | +// MARK: - TrueClass | |
| 13550 | +struct TrueClass: Codable, Sendable { | |
| 13551 | + let trueTrue: Int | |
| 13552 | + | |
| 13553 | + enum CodingKeys: String, CodingKey { | |
| 13554 | + case trueTrue = "true" | |
| 13555 | + } | |
| 13556 | +} | |
| 13557 | + | |
| 13558 | +// MARK: TrueClass convenience initializers and mutators | |
| 13559 | + | |
| 13560 | +extension TrueClass { | |
| 13561 | + init(data: Data) throws { | |
| 13562 | + self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 13563 | + } | |
| 13564 | + | |
| 13565 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13566 | + guard let data = json.data(using: encoding) else { | |
| 13567 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13568 | + } | |
| 13569 | + try self.init(data: data) | |
| 13570 | + } | |
| 13571 | + | |
| 13572 | + init(fromURL url: URL) throws { | |
| 13573 | + try self.init(data: try Data(contentsOf: url)) | |
| 13574 | + } | |
| 13575 | + | |
| 13576 | + func with( | |
| 13577 | + trueTrue: Int? = nil | |
| 13578 | + ) -> TrueClass { | |
| 13579 | + return TrueClass( | |
| 13580 | + trueTrue: trueTrue ?? self.trueTrue | |
| 13581 | + ) | |
| 13582 | + } | |
| 13583 | + | |
| 13584 | + func jsonData() throws -> Data { | |
| 13585 | + return try newJSONEncoder().encode(self) | |
| 13586 | + } | |
| 13587 | + | |
| 13588 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13589 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13590 | + } | |
| 13591 | +} | |
| 13592 | + | |
| 13593 | +// MARK: - S | |
| 13594 | +struct S: Codable, Sendable { | |
| 13595 | + let s: Int | |
| 13596 | + | |
| 13597 | + enum CodingKeys: String, CodingKey { | |
| 13598 | + case s = "s" | |
| 13519 | 13599 | } |
| 13520 | 13600 | } |
| 13521 | 13601 | |
| 13522 | -// MARK: Unowned convenience initializers and mutators | |
| 13602 | +// MARK: S convenience initializers and mutators | |
| 13523 | 13603 | |
| 13524 | -extension Unowned { | |
| 13604 | +extension S { | |
| 13525 | 13605 | init(data: Data) throws { |
| 13526 | - self = try newJSONDecoder().decode(Unowned.self, from: data) | |
| 13606 | + self = try newJSONDecoder().decode(S.self, from: data) | |
| 13527 | 13607 | } |
| 13528 | 13608 | |
| 13529 | 13609 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13538,10 +13618,10 @@ extension Unowned { | ||
| 13538 | 13618 | } |
| 13539 | 13619 | |
| 13540 | 13620 | func with( |
| 13541 | - unownedUnowned: Int? = nil | |
| 13542 | - ) -> Unowned { | |
| 13543 | - return Unowned( | |
| 13544 | - unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 13621 | + s: Int? = nil | |
| 13622 | + ) -> S { | |
| 13623 | + return S( | |
| 13624 | + s: s ?? self.s | |
| 13545 | 13625 | ) |
| 13546 | 13626 | } |
| 13547 | 13627 | |
| @@ -13554,20 +13634,20 @@ extension Unowned { | ||
| 13554 | 13634 | } |
| 13555 | 13635 | } |
| 13556 | 13636 | |
| 13557 | -// MARK: - PrimitiveKind | |
| 13558 | -struct PrimitiveKind: Codable, Sendable { | |
| 13559 | - let primitiveKind: Int | |
| 13637 | +// MARK: - Sbyte | |
| 13638 | +struct Sbyte: Codable, Sendable { | |
| 13639 | + let sbyte: Int | |
| 13560 | 13640 | |
| 13561 | 13641 | enum CodingKeys: String, CodingKey { |
| 13562 | - case primitiveKind = "PrimitiveKind" | |
| 13642 | + case sbyte = "sbyte" | |
| 13563 | 13643 | } |
| 13564 | 13644 | } |
| 13565 | 13645 | |
| 13566 | -// MARK: PrimitiveKind convenience initializers and mutators | |
| 13646 | +// MARK: Sbyte convenience initializers and mutators | |
| 13567 | 13647 | |
| 13568 | -extension PrimitiveKind { | |
| 13648 | +extension Sbyte { | |
| 13569 | 13649 | init(data: Data) throws { |
| 13570 | - self = try newJSONDecoder().decode(PrimitiveKind.self, from: data) | |
| 13650 | + self = try newJSONDecoder().decode(Sbyte.self, from: data) | |
| 13571 | 13651 | } |
| 13572 | 13652 | |
| 13573 | 13653 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13582,10 +13662,10 @@ extension PrimitiveKind { | ||
| 13582 | 13662 | } |
| 13583 | 13663 | |
| 13584 | 13664 | func with( |
| 13585 | - primitiveKind: Int? = nil | |
| 13586 | - ) -> PrimitiveKind { | |
| 13587 | - return PrimitiveKind( | |
| 13588 | - primitiveKind: primitiveKind ?? self.primitiveKind | |
| 13665 | + sbyte: Int? = nil | |
| 13666 | + ) -> Sbyte { | |
| 13667 | + return Sbyte( | |
| 13668 | + sbyte: sbyte ?? self.sbyte | |
| 13589 | 13669 | ) |
| 13590 | 13670 | } |
| 13591 | 13671 | |
| @@ -13598,20 +13678,20 @@ extension PrimitiveKind { | ||
| 13598 | 13678 | } |
| 13599 | 13679 | } |
| 13600 | 13680 | |
| 13601 | -// MARK: - Obj5Self | |
| 13602 | -struct Obj5Self: Codable, Sendable { | |
| 13603 | - let selfSelf: Int | |
| 13681 | +// MARK: - Sealed | |
| 13682 | +struct Sealed: Codable, Sendable { | |
| 13683 | + let sealed: Int | |
| 13604 | 13684 | |
| 13605 | 13685 | enum CodingKeys: String, CodingKey { |
| 13606 | - case selfSelf = "self" | |
| 13686 | + case sealed = "sealed" | |
| 13607 | 13687 | } |
| 13608 | 13688 | } |
| 13609 | 13689 | |
| 13610 | -// MARK: Obj5Self convenience initializers and mutators | |
| 13690 | +// MARK: Sealed convenience initializers and mutators | |
| 13611 | 13691 | |
| 13612 | -extension Obj5Self { | |
| 13692 | +extension Sealed { | |
| 13613 | 13693 | init(data: Data) throws { |
| 13614 | - self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 13694 | + self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 13615 | 13695 | } |
| 13616 | 13696 | |
| 13617 | 13697 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13626,10 +13706,10 @@ extension Obj5Self { | ||
| 13626 | 13706 | } |
| 13627 | 13707 | |
| 13628 | 13708 | func with( |
| 13629 | - selfSelf: Int? = nil | |
| 13630 | - ) -> Obj5Self { | |
| 13631 | - return Obj5Self( | |
| 13632 | - selfSelf: selfSelf ?? self.selfSelf | |
| 13709 | + sealed: Int? = nil | |
| 13710 | + ) -> Sealed { | |
| 13711 | + return Sealed( | |
| 13712 | + sealed: sealed ?? self.sealed | |
| 13633 | 13713 | ) |
| 13634 | 13714 | } |
| 13635 | 13715 | |
| @@ -13642,20 +13722,20 @@ extension Obj5Self { | ||
| 13642 | 13722 | } |
| 13643 | 13723 | } |
| 13644 | 13724 | |
| 13645 | -// MARK: - TrueClass | |
| 13646 | -struct TrueClass: Codable, Sendable { | |
| 13647 | - let trueTrue: Int | |
| 13725 | +// MARK: - Sel | |
| 13726 | +struct Sel: Codable, Sendable { | |
| 13727 | + let sel: Int | |
| 13648 | 13728 | |
| 13649 | 13729 | enum CodingKeys: String, CodingKey { |
| 13650 | - case trueTrue = "true" | |
| 13730 | + case sel = "SEL" | |
| 13651 | 13731 | } |
| 13652 | 13732 | } |
| 13653 | 13733 | |
| 13654 | -// MARK: TrueClass convenience initializers and mutators | |
| 13734 | +// MARK: Sel convenience initializers and mutators | |
| 13655 | 13735 | |
| 13656 | -extension TrueClass { | |
| 13736 | +extension Sel { | |
| 13657 | 13737 | init(data: Data) throws { |
| 13658 | - self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 13738 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 13659 | 13739 | } |
| 13660 | 13740 | |
| 13661 | 13741 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13670,10 +13750,10 @@ extension TrueClass { | ||
| 13670 | 13750 | } |
| 13671 | 13751 | |
| 13672 | 13752 | func with( |
| 13673 | - trueTrue: Int? = nil | |
| 13674 | - ) -> TrueClass { | |
| 13675 | - return TrueClass( | |
| 13676 | - trueTrue: trueTrue ?? self.trueTrue | |
| 13753 | + sel: Int? = nil | |
| 13754 | + ) -> Sel { | |
| 13755 | + return Sel( | |
| 13756 | + sel: sel ?? self.sel | |
| 13677 | 13757 | ) |
| 13678 | 13758 | } |
| 13679 | 13759 | |
| @@ -15534,196 +15614,20 @@ extension Unchecked { | ||
| 15534 | 15614 | } |
| 15535 | 15615 | } |
| 15536 | 15616 | |
| 15537 | -// MARK: - Undefined | |
| 15538 | -struct Undefined: Codable, Sendable { | |
| 15539 | - let undefined: Int | |
| 15540 | - | |
| 15541 | - enum CodingKeys: String, CodingKey { | |
| 15542 | - case undefined = "undefined" | |
| 15543 | - } | |
| 15544 | -} | |
| 15545 | - | |
| 15546 | -// MARK: Undefined convenience initializers and mutators | |
| 15547 | - | |
| 15548 | -extension Undefined { | |
| 15549 | - init(data: Data) throws { | |
| 15550 | - self = try newJSONDecoder().decode(Undefined.self, from: data) | |
| 15551 | - } | |
| 15552 | - | |
| 15553 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15554 | - guard let data = json.data(using: encoding) else { | |
| 15555 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15556 | - } | |
| 15557 | - try self.init(data: data) | |
| 15558 | - } | |
| 15559 | - | |
| 15560 | - init(fromURL url: URL) throws { | |
| 15561 | - try self.init(data: try Data(contentsOf: url)) | |
| 15562 | - } | |
| 15563 | - | |
| 15564 | - func with( | |
| 15565 | - undefined: Int? = nil | |
| 15566 | - ) -> Undefined { | |
| 15567 | - return Undefined( | |
| 15568 | - undefined: undefined ?? self.undefined | |
| 15569 | - ) | |
| 15570 | - } | |
| 15571 | - | |
| 15572 | - func jsonData() throws -> Data { | |
| 15573 | - return try newJSONEncoder().encode(self) | |
| 15574 | - } | |
| 15575 | - | |
| 15576 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15577 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15578 | - } | |
| 15579 | -} | |
| 15580 | - | |
| 15581 | -// MARK: - Union | |
| 15582 | -struct Union: Codable, Sendable { | |
| 15583 | - let union: Int | |
| 15584 | - | |
| 15585 | - enum CodingKeys: String, CodingKey { | |
| 15586 | - case union = "union" | |
| 15587 | - } | |
| 15588 | -} | |
| 15589 | - | |
| 15590 | -// MARK: Union convenience initializers and mutators | |
| 15591 | - | |
| 15592 | -extension Union { | |
| 15593 | - init(data: Data) throws { | |
| 15594 | - self = try newJSONDecoder().decode(Union.self, from: data) | |
| 15595 | - } | |
| 15596 | - | |
| 15597 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15598 | - guard let data = json.data(using: encoding) else { | |
| 15599 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15600 | - } | |
| 15601 | - try self.init(data: data) | |
| 15602 | - } | |
| 15603 | - | |
| 15604 | - init(fromURL url: URL) throws { | |
| 15605 | - try self.init(data: try Data(contentsOf: url)) | |
| 15606 | - } | |
| 15607 | - | |
| 15608 | - func with( | |
| 15609 | - union: Int? = nil | |
| 15610 | - ) -> Union { | |
| 15611 | - return Union( | |
| 15612 | - union: union ?? self.union | |
| 15613 | - ) | |
| 15614 | - } | |
| 15615 | - | |
| 15616 | - func jsonData() throws -> Data { | |
| 15617 | - return try newJSONEncoder().encode(self) | |
| 15618 | - } | |
| 15619 | - | |
| 15620 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15621 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15622 | - } | |
| 15623 | -} | |
| 15624 | - | |
| 15625 | -// MARK: - UnmarshalJSON | |
| 15626 | -struct UnmarshalJSON: Codable, Sendable { | |
| 15627 | - let unmarshalJSON: Int | |
| 15628 | - | |
| 15629 | - enum CodingKeys: String, CodingKey { | |
| 15630 | - case unmarshalJSON = "UnmarshalJSON" | |
| 15631 | - } | |
| 15632 | -} | |
| 15633 | - | |
| 15634 | -// MARK: UnmarshalJSON convenience initializers and mutators | |
| 15635 | - | |
| 15636 | -extension UnmarshalJSON { | |
| 15637 | - init(data: Data) throws { | |
| 15638 | - self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data) | |
| 15639 | - } | |
| 15640 | - | |
| 15641 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15642 | - guard let data = json.data(using: encoding) else { | |
| 15643 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15644 | - } | |
| 15645 | - try self.init(data: data) | |
| 15646 | - } | |
| 15647 | - | |
| 15648 | - init(fromURL url: URL) throws { | |
| 15649 | - try self.init(data: try Data(contentsOf: url)) | |
| 15650 | - } | |
| 15651 | - | |
| 15652 | - func with( | |
| 15653 | - unmarshalJSON: Int? = nil | |
| 15654 | - ) -> UnmarshalJSON { | |
| 15655 | - return UnmarshalJSON( | |
| 15656 | - unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON | |
| 15657 | - ) | |
| 15658 | - } | |
| 15659 | - | |
| 15660 | - func jsonData() throws -> Data { | |
| 15661 | - return try newJSONEncoder().encode(self) | |
| 15662 | - } | |
| 15663 | - | |
| 15664 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15665 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15666 | - } | |
| 15667 | -} | |
| 15668 | - | |
| 15669 | -// MARK: - Unsafe | |
| 15670 | -struct Unsafe: Codable, Sendable { | |
| 15671 | - let unsafe: Int | |
| 15672 | - | |
| 15673 | - enum CodingKeys: String, CodingKey { | |
| 15674 | - case unsafe = "unsafe" | |
| 15675 | - } | |
| 15676 | -} | |
| 15677 | - | |
| 15678 | -// MARK: Unsafe convenience initializers and mutators | |
| 15679 | - | |
| 15680 | -extension Unsafe { | |
| 15681 | - init(data: Data) throws { | |
| 15682 | - self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 15683 | - } | |
| 15684 | - | |
| 15685 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15686 | - guard let data = json.data(using: encoding) else { | |
| 15687 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15688 | - } | |
| 15689 | - try self.init(data: data) | |
| 15690 | - } | |
| 15691 | - | |
| 15692 | - init(fromURL url: URL) throws { | |
| 15693 | - try self.init(data: try Data(contentsOf: url)) | |
| 15694 | - } | |
| 15695 | - | |
| 15696 | - func with( | |
| 15697 | - unsafe: Int? = nil | |
| 15698 | - ) -> Unsafe { | |
| 15699 | - return Unsafe( | |
| 15700 | - unsafe: unsafe ?? self.unsafe | |
| 15701 | - ) | |
| 15702 | - } | |
| 15703 | - | |
| 15704 | - func jsonData() throws -> Data { | |
| 15705 | - return try newJSONEncoder().encode(self) | |
| 15706 | - } | |
| 15707 | - | |
| 15708 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15709 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15710 | - } | |
| 15711 | -} | |
| 15712 | - | |
| 15713 | -// MARK: - UseSerializers | |
| 15714 | -struct UseSerializers: Codable, Sendable { | |
| 15715 | - let useSerializers: Int | |
| 15617 | +// MARK: - Undefined | |
| 15618 | +struct Undefined: Codable, Sendable { | |
| 15619 | + let undefined: Int | |
| 15716 | 15620 | |
| 15717 | 15621 | enum CodingKeys: String, CodingKey { |
| 15718 | - case useSerializers = "UseSerializers" | |
| 15622 | + case undefined = "undefined" | |
| 15719 | 15623 | } |
| 15720 | 15624 | } |
| 15721 | 15625 | |
| 15722 | -// MARK: UseSerializers convenience initializers and mutators | |
| 15626 | +// MARK: Undefined convenience initializers and mutators | |
| 15723 | 15627 | |
| 15724 | -extension UseSerializers { | |
| 15628 | +extension Undefined { | |
| 15725 | 15629 | init(data: Data) throws { |
| 15726 | - self = try newJSONDecoder().decode(UseSerializers.self, from: data) | |
| 15630 | + self = try newJSONDecoder().decode(Undefined.self, from: data) | |
| 15727 | 15631 | } |
| 15728 | 15632 | |
| 15729 | 15633 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15738,10 +15642,10 @@ extension UseSerializers { | ||
| 15738 | 15642 | } |
| 15739 | 15643 | |
| 15740 | 15644 | func with( |
| 15741 | - useSerializers: Int? = nil | |
| 15742 | - ) -> UseSerializers { | |
| 15743 | - return UseSerializers( | |
| 15744 | - useSerializers: useSerializers ?? self.useSerializers | |
| 15645 | + undefined: Int? = nil | |
| 15646 | + ) -> Undefined { | |
| 15647 | + return Undefined( | |
| 15648 | + undefined: undefined ?? self.undefined | |
| 15745 | 15649 | ) |
| 15746 | 15650 | } |
| 15747 | 15651 | |
| @@ -15757,12 +15661,17 @@ extension UseSerializers { | ||
| 15757 | 15661 | // MARK: - Obj6 |
| 15758 | 15662 | struct Obj6: Codable, Sendable { |
| 15759 | 15663 | let dummy: Int |
| 15664 | + let obj6Unowned: Unowned | |
| 15760 | 15665 | let obj6Var: Var |
| 15761 | 15666 | let obj6Weak: Weak |
| 15762 | 15667 | let obj6Where: Where |
| 15763 | 15668 | let obj6While: While |
| 15764 | 15669 | let obj6WillSet: WillSet |
| 15670 | + let union: Union | |
| 15671 | + let unmarshalJSON: UnmarshalJSON | |
| 15672 | + let unsafe: Unsafe | |
| 15765 | 15673 | let unsigned: Unsigned |
| 15674 | + let useSerializers: UseSerializers | |
| 15766 | 15675 | let ushort: Ushort |
| 15767 | 15676 | let using: Using |
| 15768 | 15677 | let utf8JSONReader: Utf8JSONReader |
| @@ -15780,12 +15689,17 @@ struct Obj6: Codable, Sendable { | ||
| 15780 | 15689 | |
| 15781 | 15690 | enum CodingKeys: String, CodingKey { |
| 15782 | 15691 | case dummy = "dummy" |
| 15692 | + case obj6Unowned = "unowned" | |
| 15783 | 15693 | case obj6Var = "var" |
| 15784 | 15694 | case obj6Weak = "weak" |
| 15785 | 15695 | case obj6Where = "where" |
| 15786 | 15696 | case obj6While = "while" |
| 15787 | 15697 | case obj6WillSet = "willSet" |
| 15698 | + case union = "union" | |
| 15699 | + case unmarshalJSON = "UnmarshalJSON" | |
| 15700 | + case unsafe = "unsafe" | |
| 15788 | 15701 | case unsigned = "unsigned" |
| 15702 | + case useSerializers = "UseSerializers" | |
| 15789 | 15703 | case ushort = "ushort" |
| 15790 | 15704 | case using = "using" |
| 15791 | 15705 | case utf8JSONReader = "Utf8JsonReader" |
| @@ -15823,12 +15737,17 @@ extension Obj6 { | ||
| 15823 | 15737 | |
| 15824 | 15738 | func with( |
| 15825 | 15739 | dummy: Int? = nil, |
| 15740 | + obj6Unowned: Unowned? = nil, | |
| 15826 | 15741 | obj6Var: Var? = nil, |
| 15827 | 15742 | obj6Weak: Weak? = nil, |
| 15828 | 15743 | obj6Where: Where? = nil, |
| 15829 | 15744 | obj6While: While? = nil, |
| 15830 | 15745 | obj6WillSet: WillSet? = nil, |
| 15746 | + union: Union? = nil, | |
| 15747 | + unmarshalJSON: UnmarshalJSON? = nil, | |
| 15748 | + unsafe: Unsafe? = nil, | |
| 15831 | 15749 | unsigned: Unsigned? = nil, |
| 15750 | + useSerializers: UseSerializers? = nil, | |
| 15832 | 15751 | ushort: Ushort? = nil, |
| 15833 | 15752 | using: Using? = nil, |
| 15834 | 15753 | utf8JSONReader: Utf8JSONReader? = nil, |
| @@ -15846,12 +15765,17 @@ extension Obj6 { | ||
| 15846 | 15765 | ) -> Obj6 { |
| 15847 | 15766 | return Obj6( |
| 15848 | 15767 | dummy: dummy ?? self.dummy, |
| 15768 | + obj6Unowned: obj6Unowned ?? self.obj6Unowned, | |
| 15849 | 15769 | obj6Var: obj6Var ?? self.obj6Var, |
| 15850 | 15770 | obj6Weak: obj6Weak ?? self.obj6Weak, |
| 15851 | 15771 | obj6Where: obj6Where ?? self.obj6Where, |
| 15852 | 15772 | obj6While: obj6While ?? self.obj6While, |
| 15853 | 15773 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 15774 | + union: union ?? self.union, | |
| 15775 | + unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON, | |
| 15776 | + unsafe: unsafe ?? self.unsafe, | |
| 15854 | 15777 | unsigned: unsigned ?? self.unsigned, |
| 15778 | + useSerializers: useSerializers ?? self.useSerializers, | |
| 15855 | 15779 | ushort: ushort ?? self.ushort, |
| 15856 | 15780 | using: using ?? self.using, |
| 15857 | 15781 | utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, |
| @@ -15878,6 +15802,50 @@ extension Obj6 { | ||
| 15878 | 15802 | } |
| 15879 | 15803 | } |
| 15880 | 15804 | |
| 15805 | +// MARK: - Unowned | |
| 15806 | +struct Unowned: Codable, Sendable { | |
| 15807 | + let unownedUnowned: Int | |
| 15808 | + | |
| 15809 | + enum CodingKeys: String, CodingKey { | |
| 15810 | + case unownedUnowned = "unowned" | |
| 15811 | + } | |
| 15812 | +} | |
| 15813 | + | |
| 15814 | +// MARK: Unowned convenience initializers and mutators | |
| 15815 | + | |
| 15816 | +extension Unowned { | |
| 15817 | + init(data: Data) throws { | |
| 15818 | + self = try newJSONDecoder().decode(Unowned.self, from: data) | |
| 15819 | + } | |
| 15820 | + | |
| 15821 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15822 | + guard let data = json.data(using: encoding) else { | |
| 15823 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15824 | + } | |
| 15825 | + try self.init(data: data) | |
| 15826 | + } | |
| 15827 | + | |
| 15828 | + init(fromURL url: URL) throws { | |
| 15829 | + try self.init(data: try Data(contentsOf: url)) | |
| 15830 | + } | |
| 15831 | + | |
| 15832 | + func with( | |
| 15833 | + unownedUnowned: Int? = nil | |
| 15834 | + ) -> Unowned { | |
| 15835 | + return Unowned( | |
| 15836 | + unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 15837 | + ) | |
| 15838 | + } | |
| 15839 | + | |
| 15840 | + func jsonData() throws -> Data { | |
| 15841 | + return try newJSONEncoder().encode(self) | |
| 15842 | + } | |
| 15843 | + | |
| 15844 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15845 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15846 | + } | |
| 15847 | +} | |
| 15848 | + | |
| 15881 | 15849 | // MARK: - Var |
| 15882 | 15850 | struct Var: Codable, Sendable { |
| 15883 | 15851 | let varVar: Int |
| @@ -16098,6 +16066,138 @@ extension WillSet { | ||
| 16098 | 16066 | } |
| 16099 | 16067 | } |
| 16100 | 16068 | |
| 16069 | +// MARK: - Union | |
| 16070 | +struct Union: Codable, Sendable { | |
| 16071 | + let union: Int | |
| 16072 | + | |
| 16073 | + enum CodingKeys: String, CodingKey { | |
| 16074 | + case union = "union" | |
| 16075 | + } | |
| 16076 | +} | |
| 16077 | + | |
| 16078 | +// MARK: Union convenience initializers and mutators | |
| 16079 | + | |
| 16080 | +extension Union { | |
| 16081 | + init(data: Data) throws { | |
| 16082 | + self = try newJSONDecoder().decode(Union.self, from: data) | |
| 16083 | + } | |
| 16084 | + | |
| 16085 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16086 | + guard let data = json.data(using: encoding) else { | |
| 16087 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16088 | + } | |
| 16089 | + try self.init(data: data) | |
| 16090 | + } | |
| 16091 | + | |
| 16092 | + init(fromURL url: URL) throws { | |
| 16093 | + try self.init(data: try Data(contentsOf: url)) | |
| 16094 | + } | |
| 16095 | + | |
| 16096 | + func with( | |
| 16097 | + union: Int? = nil | |
| 16098 | + ) -> Union { | |
| 16099 | + return Union( | |
| 16100 | + union: union ?? self.union | |
| 16101 | + ) | |
| 16102 | + } | |
| 16103 | + | |
| 16104 | + func jsonData() throws -> Data { | |
| 16105 | + return try newJSONEncoder().encode(self) | |
| 16106 | + } | |
| 16107 | + | |
| 16108 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16109 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16110 | + } | |
| 16111 | +} | |
| 16112 | + | |
| 16113 | +// MARK: - UnmarshalJSON | |
| 16114 | +struct UnmarshalJSON: Codable, Sendable { | |
| 16115 | + let unmarshalJSON: Int | |
| 16116 | + | |
| 16117 | + enum CodingKeys: String, CodingKey { | |
| 16118 | + case unmarshalJSON = "UnmarshalJSON" | |
| 16119 | + } | |
| 16120 | +} | |
| 16121 | + | |
| 16122 | +// MARK: UnmarshalJSON convenience initializers and mutators | |
| 16123 | + | |
| 16124 | +extension UnmarshalJSON { | |
| 16125 | + init(data: Data) throws { | |
| 16126 | + self = try newJSONDecoder().decode(UnmarshalJSON.self, from: data) | |
| 16127 | + } | |
| 16128 | + | |
| 16129 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16130 | + guard let data = json.data(using: encoding) else { | |
| 16131 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16132 | + } | |
| 16133 | + try self.init(data: data) | |
| 16134 | + } | |
| 16135 | + | |
| 16136 | + init(fromURL url: URL) throws { | |
| 16137 | + try self.init(data: try Data(contentsOf: url)) | |
| 16138 | + } | |
| 16139 | + | |
| 16140 | + func with( | |
| 16141 | + unmarshalJSON: Int? = nil | |
| 16142 | + ) -> UnmarshalJSON { | |
| 16143 | + return UnmarshalJSON( | |
| 16144 | + unmarshalJSON: unmarshalJSON ?? self.unmarshalJSON | |
| 16145 | + ) | |
| 16146 | + } | |
| 16147 | + | |
| 16148 | + func jsonData() throws -> Data { | |
| 16149 | + return try newJSONEncoder().encode(self) | |
| 16150 | + } | |
| 16151 | + | |
| 16152 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16153 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16154 | + } | |
| 16155 | +} | |
| 16156 | + | |
| 16157 | +// MARK: - Unsafe | |
| 16158 | +struct Unsafe: Codable, Sendable { | |
| 16159 | + let unsafe: Int | |
| 16160 | + | |
| 16161 | + enum CodingKeys: String, CodingKey { | |
| 16162 | + case unsafe = "unsafe" | |
| 16163 | + } | |
| 16164 | +} | |
| 16165 | + | |
| 16166 | +// MARK: Unsafe convenience initializers and mutators | |
| 16167 | + | |
| 16168 | +extension Unsafe { | |
| 16169 | + init(data: Data) throws { | |
| 16170 | + self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 16171 | + } | |
| 16172 | + | |
| 16173 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16174 | + guard let data = json.data(using: encoding) else { | |
| 16175 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16176 | + } | |
| 16177 | + try self.init(data: data) | |
| 16178 | + } | |
| 16179 | + | |
| 16180 | + init(fromURL url: URL) throws { | |
| 16181 | + try self.init(data: try Data(contentsOf: url)) | |
| 16182 | + } | |
| 16183 | + | |
| 16184 | + func with( | |
| 16185 | + unsafe: Int? = nil | |
| 16186 | + ) -> Unsafe { | |
| 16187 | + return Unsafe( | |
| 16188 | + unsafe: unsafe ?? self.unsafe | |
| 16189 | + ) | |
| 16190 | + } | |
| 16191 | + | |
| 16192 | + func jsonData() throws -> Data { | |
| 16193 | + return try newJSONEncoder().encode(self) | |
| 16194 | + } | |
| 16195 | + | |
| 16196 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16197 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16198 | + } | |
| 16199 | +} | |
| 16200 | + | |
| 16101 | 16201 | // MARK: - Unsigned |
| 16102 | 16202 | struct Unsigned: Codable, Sendable { |
| 16103 | 16203 | let unsigned: Int |
| @@ -16142,6 +16242,50 @@ extension Unsigned { | ||
| 16142 | 16242 | } |
| 16143 | 16243 | } |
| 16144 | 16244 | |
| 16245 | +// MARK: - UseSerializers | |
| 16246 | +struct UseSerializers: Codable, Sendable { | |
| 16247 | + let useSerializers: Int | |
| 16248 | + | |
| 16249 | + enum CodingKeys: String, CodingKey { | |
| 16250 | + case useSerializers = "UseSerializers" | |
| 16251 | + } | |
| 16252 | +} | |
| 16253 | + | |
| 16254 | +// MARK: UseSerializers convenience initializers and mutators | |
| 16255 | + | |
| 16256 | +extension UseSerializers { | |
| 16257 | + init(data: Data) throws { | |
| 16258 | + self = try newJSONDecoder().decode(UseSerializers.self, from: data) | |
| 16259 | + } | |
| 16260 | + | |
| 16261 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16262 | + guard let data = json.data(using: encoding) else { | |
| 16263 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16264 | + } | |
| 16265 | + try self.init(data: data) | |
| 16266 | + } | |
| 16267 | + | |
| 16268 | + init(fromURL url: URL) throws { | |
| 16269 | + try self.init(data: try Data(contentsOf: url)) | |
| 16270 | + } | |
| 16271 | + | |
| 16272 | + func with( | |
| 16273 | + useSerializers: Int? = nil | |
| 16274 | + ) -> UseSerializers { | |
| 16275 | + return UseSerializers( | |
| 16276 | + useSerializers: useSerializers ?? self.useSerializers | |
| 16277 | + ) | |
| 16278 | + } | |
| 16279 | + | |
| 16280 | + func jsonData() throws -> Data { | |
| 16281 | + return try newJSONEncoder().encode(self) | |
| 16282 | + } | |
| 16283 | + | |
| 16284 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16285 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16286 | + } | |
| 16287 | +} | |
| 16288 | + | |
| 16145 | 16289 | // MARK: - Ushort |
| 16146 | 16290 | struct Ushort: Codable, Sendable { |
| 16147 | 16291 | let ushort: Int |
Mtypescript-effect-schemadefault / TopLevel.ts+70 −55
| @@ -83,13 +83,38 @@ export class Ushort extends S.Class<Ushort>("Ushort")({ | ||
| 83 | 83 | "ushort": S.Int, |
| 84 | 84 | }) {} |
| 85 | 85 | |
| 86 | +export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")({ | |
| 87 | + "UseSerializers": S.Int, | |
| 88 | +}) {} | |
| 89 | + | |
| 86 | 90 | export class Unsigned extends S.Class<Unsigned>("Unsigned")({ |
| 87 | 91 | "unsigned": S.Int, |
| 88 | 92 | }) {} |
| 89 | 93 | |
| 94 | +export class Unsafe extends S.Class<Unsafe>("Unsafe")({ | |
| 95 | + "unsafe": S.Int, | |
| 96 | +}) {} | |
| 97 | + | |
| 98 | +export class Unowned extends S.Class<Unowned>("Unowned")({ | |
| 99 | + "unowned": S.Int, | |
| 100 | +}) {} | |
| 101 | + | |
| 102 | +export class UnmarshalJson extends S.Class<UnmarshalJson>("UnmarshalJson")({ | |
| 103 | + "UnmarshalJSON": S.Int, | |
| 104 | +}) {} | |
| 105 | + | |
| 106 | +export class Union extends S.Class<Union>("Union")({ | |
| 107 | + "union": S.Int, | |
| 108 | +}) {} | |
| 109 | + | |
| 90 | 110 | export class Obj6 extends S.Class<Obj6>("Obj6")({ |
| 91 | 111 | "dummy": S.Int, |
| 112 | + "union": Union, | |
| 113 | + "UnmarshalJSON": UnmarshalJson, | |
| 114 | + "unowned": Unowned, | |
| 115 | + "unsafe": Unsafe, | |
| 92 | 116 | "unsigned": Unsigned, |
| 117 | + "UseSerializers": UseSerializers, | |
| 93 | 118 | "ushort": Ushort, |
| 94 | 119 | "using": Using, |
| 95 | 120 | "Utf8JsonReader": Utf8JsonReader, |
| @@ -111,26 +136,6 @@ export class Obj6 extends S.Class<Obj6>("Obj6")({ | ||
| 111 | 136 | "yield": Yield, |
| 112 | 137 | }) {} |
| 113 | 138 | |
| 114 | -export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")({ | |
| 115 | - "UseSerializers": S.Int, | |
| 116 | -}) {} | |
| 117 | - | |
| 118 | -export class Unsafe extends S.Class<Unsafe>("Unsafe")({ | |
| 119 | - "unsafe": S.Int, | |
| 120 | -}) {} | |
| 121 | - | |
| 122 | -export class Unowned extends S.Class<Unowned>("Unowned")({ | |
| 123 | - "unowned": S.Int, | |
| 124 | -}) {} | |
| 125 | - | |
| 126 | -export class UnmarshalJson extends S.Class<UnmarshalJson>("UnmarshalJson")({ | |
| 127 | - "UnmarshalJSON": S.Int, | |
| 128 | -}) {} | |
| 129 | - | |
| 130 | -export class Union extends S.Class<Union>("Union")({ | |
| 131 | - "union": S.Int, | |
| 132 | -}) {} | |
| 133 | - | |
| 134 | 139 | export class Undefined extends S.Class<Undefined>("Undefined")({ |
| 135 | 140 | "undefined": S.Int, |
| 136 | 141 | }) {} |
| @@ -352,6 +357,22 @@ export class Select extends S.Class<Select>("Select")({ | ||
| 352 | 357 | "select": S.Int, |
| 353 | 358 | }) {} |
| 354 | 359 | |
| 360 | +export class Sel extends S.Class<Sel>("Sel")({ | |
| 361 | + "SEL": S.Int, | |
| 362 | +}) {} | |
| 363 | + | |
| 364 | +export class Sealed extends S.Class<Sealed>("Sealed")({ | |
| 365 | + "sealed": S.Int, | |
| 366 | +}) {} | |
| 367 | + | |
| 368 | +export class Sbyte extends S.Class<Sbyte>("Sbyte")({ | |
| 369 | + "sbyte": S.Int, | |
| 370 | +}) {} | |
| 371 | + | |
| 372 | +export class SClass extends S.Class<SClass>("SClass")({ | |
| 373 | + "s": S.Int, | |
| 374 | +}) {} | |
| 375 | + | |
| 355 | 376 | export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")({ |
| 356 | 377 | "PrimitiveKind": S.Int, |
| 357 | 378 | }) {} |
| @@ -379,6 +400,10 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({ | ||
| 379 | 400 | "true": TrueClass, |
| 380 | 401 | "type": TypeClass, |
| 381 | 402 | "PrimitiveKind": PrimitiveKind, |
| 403 | + "s": SClass, | |
| 404 | + "sbyte": Sbyte, | |
| 405 | + "sealed": Sealed, | |
| 406 | + "SEL": Sel, | |
| 382 | 407 | "select": Select, |
| 383 | 408 | "Self": Self, |
| 384 | 409 | "Sendable": Sendable, |
| @@ -434,30 +459,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({ | ||
| 434 | 459 | "ulong": Ulong, |
| 435 | 460 | "unchecked": Unchecked, |
| 436 | 461 | "undefined": Undefined, |
| 437 | - "union": Union, | |
| 438 | - "UnmarshalJSON": UnmarshalJson, | |
| 439 | - "unowned": Unowned, | |
| 440 | - "unsafe": Unsafe, | |
| 441 | - "UseSerializers": UseSerializers, | |
| 442 | 462 | }) {} |
| 443 | 463 | Object.defineProperty(Obj5.prototype, "toString", { writable: true }); |
| 444 | 464 | |
| 445 | -export class Sel extends S.Class<Sel>("Sel")({ | |
| 446 | - "SEL": S.Int, | |
| 447 | -}) {} | |
| 448 | - | |
| 449 | -export class Sealed extends S.Class<Sealed>("Sealed")({ | |
| 450 | - "sealed": S.Int, | |
| 451 | -}) {} | |
| 452 | - | |
| 453 | -export class Sbyte extends S.Class<Sbyte>("Sbyte")({ | |
| 454 | - "sbyte": S.Int, | |
| 455 | -}) {} | |
| 456 | - | |
| 457 | -export class SClass extends S.Class<SClass>("SClass")({ | |
| 458 | - "s": S.Int, | |
| 459 | -}) {} | |
| 460 | - | |
| 461 | 465 | export class RuntimeType extends S.Class<RuntimeType>("RuntimeType")({ |
| 462 | 466 | "runtimeType": S.Int, |
| 463 | 467 | }) {} |
| @@ -618,6 +622,14 @@ export class Oneway extends S.Class<Oneway>("Oneway")({ | ||
| 618 | 622 | "oneway": S.Int, |
| 619 | 623 | }) {} |
| 620 | 624 | |
| 625 | +export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")({ | |
| 626 | + "OffsetTime": S.Int, | |
| 627 | +}) {} | |
| 628 | + | |
| 629 | +export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")({ | |
| 630 | + "OffsetDateTime": S.Int, | |
| 631 | +}) {} | |
| 632 | + | |
| 621 | 633 | export class Of extends S.Class<Of>("Of")({ |
| 622 | 634 | "of": S.Int, |
| 623 | 635 | }) {} |
| @@ -698,8 +710,18 @@ export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({ | ||
| 698 | 710 | "noSuchMethod": S.Int, |
| 699 | 711 | }) {} |
| 700 | 712 | |
| 713 | +export class No extends S.Class<No>("No")({ | |
| 714 | + "NO": S.Int, | |
| 715 | +}) {} | |
| 716 | + | |
| 717 | +export class Nil extends S.Class<Nil>("Nil")({ | |
| 718 | + "nil": S.Int, | |
| 719 | +}) {} | |
| 720 | + | |
| 701 | 721 | export class Obj4 extends S.Class<Obj4>("Obj4")({ |
| 702 | 722 | "dummy": S.Int, |
| 723 | + "nil": Nil, | |
| 724 | + "NO": No, | |
| 703 | 725 | "noSuchMethod": NoSuchMethod, |
| 704 | 726 | "noexcept": Noexcept, |
| 705 | 727 | "nonatomic": Nonatomic, |
| @@ -720,6 +742,8 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({ | ||
| 720 | 742 | "object": ObjectClass, |
| 721 | 743 | "ObjectMapper": ObjectMapper, |
| 722 | 744 | "of": Of, |
| 745 | + "OffsetDateTime": OffsetDateTime, | |
| 746 | + "OffsetTime": OffsetTime, | |
| 723 | 747 | "oneway": Oneway, |
| 724 | 748 | "open": Open, |
| 725 | 749 | "operator": Operator, |
| @@ -760,18 +784,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({ | ||
| 760 | 784 | "return": Return, |
| 761 | 785 | "right": Right, |
| 762 | 786 | "runtimeType": RuntimeType, |
| 763 | - "s": SClass, | |
| 764 | - "sbyte": Sbyte, | |
| 765 | - "sealed": Sealed, | |
| 766 | - "SEL": Sel, | |
| 767 | -}) {} | |
| 768 | - | |
| 769 | -export class No extends S.Class<No>("No")({ | |
| 770 | - "NO": S.Int, | |
| 771 | -}) {} | |
| 772 | - | |
| 773 | -export class Nil extends S.Class<Nil>("Nil")({ | |
| 774 | - "nil": S.Int, | |
| 775 | 787 | }) {} |
| 776 | 788 | |
| 777 | 789 | export class Newtonsoft extends S.Class<Newtonsoft>("Newtonsoft")({ |
| @@ -830,6 +842,10 @@ export class Locale extends S.Class<Locale>("Locale")({ | ||
| 830 | 842 | "Locale": S.Int, |
| 831 | 843 | }) {} |
| 832 | 844 | |
| 845 | +export class LocalDate extends S.Class<LocalDate>("LocalDate")({ | |
| 846 | + "LocalDate": S.Int, | |
| 847 | +}) {} | |
| 848 | + | |
| 833 | 849 | export class List extends S.Class<List>("List")({ |
| 834 | 850 | "list": S.Int, |
| 835 | 851 | }) {} |
| @@ -1077,6 +1093,7 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({ | ||
| 1077 | 1093 | "left": Left, |
| 1078 | 1094 | "let": Let, |
| 1079 | 1095 | "list": List, |
| 1096 | + "LocalDate": LocalDate, | |
| 1080 | 1097 | "Locale": Locale, |
| 1081 | 1098 | "lock": Lock, |
| 1082 | 1099 | "long": Long, |
| @@ -1091,8 +1108,6 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({ | ||
| 1091 | 1108 | "native": Native, |
| 1092 | 1109 | "new": New, |
| 1093 | 1110 | "newtonsoft": Newtonsoft, |
| 1094 | - "nil": Nil, | |
| 1095 | - "NO": No, | |
| 1096 | 1111 | }) {} |
| 1097 | 1112 | |
| 1098 | 1113 | export class FalseClass extends S.Class<FalseClass>("FalseClass")({ |
Mtypescript-zoddefault / TopLevel.ts+54 −36
| @@ -892,6 +892,11 @@ export const ListSchema = z.object({ | ||
| 892 | 892 | }); |
| 893 | 893 | export type List = z.infer<typeof ListSchema>; |
| 894 | 894 | |
| 895 | +export const LocalDateSchema = z.object({ | |
| 896 | + "LocalDate": z.number().int(), | |
| 897 | +}); | |
| 898 | +export type LocalDate = z.infer<typeof LocalDateSchema>; | |
| 899 | + | |
| 895 | 900 | export const LocaleSchema = z.object({ |
| 896 | 901 | "Locale": z.number().int(), |
| 897 | 902 | }); |
| @@ -1072,6 +1077,16 @@ export const OfSchema = z.object({ | ||
| 1072 | 1077 | }); |
| 1073 | 1078 | export type Of = z.infer<typeof OfSchema>; |
| 1074 | 1079 | |
| 1080 | +export const OffsetDateTimeSchema = z.object({ | |
| 1081 | + "OffsetDateTime": z.number().int(), | |
| 1082 | +}); | |
| 1083 | +export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>; | |
| 1084 | + | |
| 1085 | +export const OffsetTimeSchema = z.object({ | |
| 1086 | + "OffsetTime": z.number().int(), | |
| 1087 | +}); | |
| 1088 | +export type OffsetTime = z.infer<typeof OffsetTimeSchema>; | |
| 1089 | + | |
| 1075 | 1090 | export const OnewaySchema = z.object({ |
| 1076 | 1091 | "oneway": z.number().int(), |
| 1077 | 1092 | }); |
| @@ -1272,26 +1287,6 @@ export const RuntimeTypeSchema = z.object({ | ||
| 1272 | 1287 | }); |
| 1273 | 1288 | export type RuntimeType = z.infer<typeof RuntimeTypeSchema>; |
| 1274 | 1289 | |
| 1275 | -export const SSchema = z.object({ | |
| 1276 | - "s": z.number().int(), | |
| 1277 | -}); | |
| 1278 | -export type S = z.infer<typeof SSchema>; | |
| 1279 | - | |
| 1280 | -export const SbyteSchema = z.object({ | |
| 1281 | - "sbyte": z.number().int(), | |
| 1282 | -}); | |
| 1283 | -export type Sbyte = z.infer<typeof SbyteSchema>; | |
| 1284 | - | |
| 1285 | -export const SealedSchema = z.object({ | |
| 1286 | - "sealed": z.number().int(), | |
| 1287 | -}); | |
| 1288 | -export type Sealed = z.infer<typeof SealedSchema>; | |
| 1289 | - | |
| 1290 | -export const SelSchema = z.object({ | |
| 1291 | - "SEL": z.number().int(), | |
| 1292 | -}); | |
| 1293 | -export type Sel = z.infer<typeof SelSchema>; | |
| 1294 | - | |
| 1295 | 1290 | export const KSerializerSchema = z.object({ |
| 1296 | 1291 | "KSerializer": z.number().int(), |
| 1297 | 1292 | }); |
| @@ -1317,6 +1312,26 @@ export const PrimitiveKindSchema = z.object({ | ||
| 1317 | 1312 | }); |
| 1318 | 1313 | export type PrimitiveKind = z.infer<typeof PrimitiveKindSchema>; |
| 1319 | 1314 | |
| 1315 | +export const SSchema = z.object({ | |
| 1316 | + "s": z.number().int(), | |
| 1317 | +}); | |
| 1318 | +export type S = z.infer<typeof SSchema>; | |
| 1319 | + | |
| 1320 | +export const SbyteSchema = z.object({ | |
| 1321 | + "sbyte": z.number().int(), | |
| 1322 | +}); | |
| 1323 | +export type Sbyte = z.infer<typeof SbyteSchema>; | |
| 1324 | + | |
| 1325 | +export const SealedSchema = z.object({ | |
| 1326 | + "sealed": z.number().int(), | |
| 1327 | +}); | |
| 1328 | +export type Sealed = z.infer<typeof SealedSchema>; | |
| 1329 | + | |
| 1330 | +export const SelSchema = z.object({ | |
| 1331 | + "SEL": z.number().int(), | |
| 1332 | +}); | |
| 1333 | +export type Sel = z.infer<typeof SelSchema>; | |
| 1334 | + | |
| 1320 | 1335 | export const SelectSchema = z.object({ |
| 1321 | 1336 | "select": z.number().int(), |
| 1322 | 1337 | }); |
| @@ -1612,16 +1627,16 @@ export const UnsafeSchema = z.object({ | ||
| 1612 | 1627 | }); |
| 1613 | 1628 | export type Unsafe = z.infer<typeof UnsafeSchema>; |
| 1614 | 1629 | |
| 1615 | -export const UseSerializersSchema = z.object({ | |
| 1616 | - "UseSerializers": z.number().int(), | |
| 1617 | -}); | |
| 1618 | -export type UseSerializers = z.infer<typeof UseSerializersSchema>; | |
| 1619 | - | |
| 1620 | 1630 | export const UnsignedSchema = z.object({ |
| 1621 | 1631 | "unsigned": z.number().int(), |
| 1622 | 1632 | }); |
| 1623 | 1633 | export type Unsigned = z.infer<typeof UnsignedSchema>; |
| 1624 | 1634 | |
| 1635 | +export const UseSerializersSchema = z.object({ | |
| 1636 | + "UseSerializers": z.number().int(), | |
| 1637 | +}); | |
| 1638 | +export type UseSerializers = z.infer<typeof UseSerializersSchema>; | |
| 1639 | + | |
| 1625 | 1640 | export const UshortSchema = z.object({ |
| 1626 | 1641 | "ushort": z.number().int(), |
| 1627 | 1642 | }); |
| @@ -1906,6 +1921,7 @@ export const Obj3Schema = z.object({ | ||
| 1906 | 1921 | "left": LeftSchema, |
| 1907 | 1922 | "let": LetSchema, |
| 1908 | 1923 | "list": ListSchema, |
| 1924 | + "LocalDate": LocalDateSchema, | |
| 1909 | 1925 | "Locale": LocaleSchema, |
| 1910 | 1926 | "lock": LockSchema, |
| 1911 | 1927 | "long": LongSchema, |
| @@ -1920,13 +1936,13 @@ export const Obj3Schema = z.object({ | ||
| 1920 | 1936 | "native": NativeSchema, |
| 1921 | 1937 | "new": NewSchema, |
| 1922 | 1938 | "newtonsoft": NewtonsoftSchema, |
| 1923 | - "nil": NilSchema, | |
| 1924 | - "NO": NoSchema, | |
| 1925 | 1939 | }); |
| 1926 | 1940 | export type Obj3 = z.infer<typeof Obj3Schema>; |
| 1927 | 1941 | |
| 1928 | 1942 | export const Obj4Schema = z.object({ |
| 1929 | 1943 | "dummy": z.number().int(), |
| 1944 | + "nil": NilSchema, | |
| 1945 | + "NO": NoSchema, | |
| 1930 | 1946 | "noSuchMethod": NoSuchMethodSchema, |
| 1931 | 1947 | "noexcept": NoexceptSchema, |
| 1932 | 1948 | "nonatomic": NonatomicSchema, |
| @@ -1947,6 +1963,8 @@ export const Obj4Schema = z.object({ | ||
| 1947 | 1963 | "object": ObjectClassSchema, |
| 1948 | 1964 | "ObjectMapper": ObjectMapperSchema, |
| 1949 | 1965 | "of": OfSchema, |
| 1966 | + "OffsetDateTime": OffsetDateTimeSchema, | |
| 1967 | + "OffsetTime": OffsetTimeSchema, | |
| 1950 | 1968 | "oneway": OnewaySchema, |
| 1951 | 1969 | "open": OpenSchema, |
| 1952 | 1970 | "operator": OperatorSchema, |
| @@ -1987,10 +2005,6 @@ export const Obj4Schema = z.object({ | ||
| 1987 | 2005 | "return": ReturnSchema, |
| 1988 | 2006 | "right": RightSchema, |
| 1989 | 2007 | "runtimeType": RuntimeTypeSchema, |
| 1990 | - "s": SSchema, | |
| 1991 | - "sbyte": SbyteSchema, | |
| 1992 | - "sealed": SealedSchema, | |
| 1993 | - "SEL": SelSchema, | |
| 1994 | 2008 | }); |
| 1995 | 2009 | export type Obj4 = z.infer<typeof Obj4Schema>; |
| 1996 | 2010 | |
| @@ -2001,6 +2015,10 @@ export const Obj5Schema = z.object({ | ||
| 2001 | 2015 | "true": TrueClassSchema, |
| 2002 | 2016 | "type": TypeClassSchema, |
| 2003 | 2017 | "PrimitiveKind": PrimitiveKindSchema, |
| 2018 | + "s": SSchema, | |
| 2019 | + "sbyte": SbyteSchema, | |
| 2020 | + "sealed": SealedSchema, | |
| 2021 | + "SEL": SelSchema, | |
| 2004 | 2022 | "select": SelectSchema, |
| 2005 | 2023 | "Self": SelfSchema, |
| 2006 | 2024 | "Sendable": SendableSchema, |
| @@ -2056,17 +2074,17 @@ export const Obj5Schema = z.object({ | ||
| 2056 | 2074 | "ulong": UlongSchema, |
| 2057 | 2075 | "unchecked": UncheckedSchema, |
| 2058 | 2076 | "undefined": UndefinedSchema, |
| 2059 | - "union": UnionSchema, | |
| 2060 | - "UnmarshalJSON": UnmarshalJsonSchema, | |
| 2061 | - "unowned": UnownedSchema, | |
| 2062 | - "unsafe": UnsafeSchema, | |
| 2063 | - "UseSerializers": UseSerializersSchema, | |
| 2064 | 2077 | }); |
| 2065 | 2078 | export type Obj5 = z.infer<typeof Obj5Schema>; |
| 2066 | 2079 | |
| 2067 | 2080 | export const Obj6Schema = z.object({ |
| 2068 | 2081 | "dummy": z.number().int(), |
| 2082 | + "union": UnionSchema, | |
| 2083 | + "UnmarshalJSON": UnmarshalJsonSchema, | |
| 2084 | + "unowned": UnownedSchema, | |
| 2085 | + "unsafe": UnsafeSchema, | |
| 2069 | 2086 | "unsigned": UnsignedSchema, |
| 2087 | + "UseSerializers": UseSerializersSchema, | |
| 2070 | 2088 | "ushort": UshortSchema, |
| 2071 | 2089 | "using": UsingSchema, |
| 2072 | 2090 | "Utf8JsonReader": Utf8JsonReaderSchema, |
Mtypescriptdefault / TopLevel.ts+117 −90
| @@ -683,10 +683,10 @@ export interface Obj3 { | ||
| 683 | 683 | JsonParser: JSONParser; |
| 684 | 684 | JsonReader: JSONReader; |
| 685 | 685 | JsonTokenType: JSONTokenType; |
| 686 | + LocalDate: LocalDate; | |
| 686 | 687 | Locale: Locale; |
| 687 | 688 | MapEntry: MapEntry; |
| 688 | 689 | MarshalJSON: MarshalJSON; |
| 689 | - NO: No; | |
| 690 | 690 | dummy: number; |
| 691 | 691 | goto: Goto; |
| 692 | 692 | guard: Guard; |
| @@ -733,7 +733,6 @@ export interface Obj3 { | ||
| 733 | 733 | native: Native; |
| 734 | 734 | new: New; |
| 735 | 735 | newtonsoft: Newtonsoft; |
| 736 | - nil: Nil; | |
| 737 | 736 | } |
| 738 | 737 | |
| 739 | 738 | export interface Hashable { |
| @@ -796,6 +795,10 @@ export interface JSONTokenType { | ||
| 796 | 795 | JsonTokenType: number; |
| 797 | 796 | } |
| 798 | 797 | |
| 798 | +export interface LocalDate { | |
| 799 | + LocalDate: number; | |
| 800 | +} | |
| 801 | + | |
| 799 | 802 | export interface Locale { |
| 800 | 803 | Locale: number; |
| 801 | 804 | } |
| @@ -808,10 +811,6 @@ export interface MarshalJSON { | ||
| 808 | 811 | MarshalJSON: number; |
| 809 | 812 | } |
| 810 | 813 | |
| 811 | -export interface No { | |
| 812 | - NO: number; | |
| 813 | -} | |
| 814 | - | |
| 815 | 814 | export interface Goto { |
| 816 | 815 | goto: number; |
| 817 | 816 | } |
| @@ -992,21 +991,20 @@ export interface Newtonsoft { | ||
| 992 | 991 | newtonsoft: number; |
| 993 | 992 | } |
| 994 | 993 | |
| 995 | -export interface Nil { | |
| 996 | - nil: number; | |
| 997 | -} | |
| 998 | - | |
| 999 | 994 | export interface Obj4 { |
| 995 | + NO: No; | |
| 1000 | 996 | NSError: NSError; |
| 1001 | 997 | NSObject: NSObject; |
| 1002 | 998 | NSString: NSString; |
| 1003 | 999 | NULL: Null; |
| 1004 | 1000 | None: None; |
| 1005 | 1001 | ObjectMapper: ObjectMapper; |
| 1002 | + OffsetDateTime: OffsetDateTime; | |
| 1003 | + OffsetTime: OffsetTime; | |
| 1006 | 1004 | Protocol: Protocol; |
| 1007 | 1005 | RegExp: RegExp; |
| 1008 | - SEL: Sel; | |
| 1009 | 1006 | dummy: number; |
| 1007 | + nil: Nil; | |
| 1010 | 1008 | noSuchMethod: NoSuchMethod; |
| 1011 | 1009 | noexcept: Noexcept; |
| 1012 | 1010 | nonatomic: Nonatomic; |
| @@ -1059,9 +1057,10 @@ export interface Obj4 { | ||
| 1059 | 1057 | return: Return; |
| 1060 | 1058 | right: Right; |
| 1061 | 1059 | runtimeType: RuntimeType; |
| 1062 | - s: S; | |
| 1063 | - sbyte: Sbyte; | |
| 1064 | - sealed: Sealed; | |
| 1060 | +} | |
| 1061 | + | |
| 1062 | +export interface No { | |
| 1063 | + NO: number; | |
| 1065 | 1064 | } |
| 1066 | 1065 | |
| 1067 | 1066 | export interface NSError { |
| @@ -1088,6 +1087,14 @@ export interface ObjectMapper { | ||
| 1088 | 1087 | ObjectMapper: number; |
| 1089 | 1088 | } |
| 1090 | 1089 | |
| 1090 | +export interface OffsetDateTime { | |
| 1091 | + OffsetDateTime: number; | |
| 1092 | +} | |
| 1093 | + | |
| 1094 | +export interface OffsetTime { | |
| 1095 | + OffsetTime: number; | |
| 1096 | +} | |
| 1097 | + | |
| 1091 | 1098 | export interface Protocol { |
| 1092 | 1099 | Protocol: number; |
| 1093 | 1100 | } |
| @@ -1096,8 +1103,8 @@ export interface RegExp { | ||
| 1096 | 1103 | RegExp: string; |
| 1097 | 1104 | } |
| 1098 | 1105 | |
| 1099 | -export interface Sel { | |
| 1100 | - SEL: number; | |
| 1106 | +export interface Nil { | |
| 1107 | + nil: number; | |
| 1101 | 1108 | } |
| 1102 | 1109 | |
| 1103 | 1110 | export interface NoSuchMethod { |
| @@ -1308,21 +1315,10 @@ export interface RuntimeType { | ||
| 1308 | 1315 | runtimeType: number; |
| 1309 | 1316 | } |
| 1310 | 1317 | |
| 1311 | -export interface S { | |
| 1312 | - s: number; | |
| 1313 | -} | |
| 1314 | - | |
| 1315 | -export interface Sbyte { | |
| 1316 | - sbyte: number; | |
| 1317 | -} | |
| 1318 | - | |
| 1319 | -export interface Sealed { | |
| 1320 | - sealed: number; | |
| 1321 | -} | |
| 1322 | - | |
| 1323 | 1318 | export interface Obj5 { |
| 1324 | 1319 | KSerializer: KSerializer; |
| 1325 | 1320 | PrimitiveKind: PrimitiveKind; |
| 1321 | + SEL: Sel; | |
| 1326 | 1322 | Self: Self; |
| 1327 | 1323 | Sendable: Sendable; |
| 1328 | 1324 | SerialDescriptor: SerialDescriptor; |
| @@ -1338,9 +1334,10 @@ export interface Obj5 { | ||
| 1338 | 1334 | TimeZone: TimeZone; |
| 1339 | 1335 | True: True; |
| 1340 | 1336 | Type: Type; |
| 1341 | - UnmarshalJSON: UnmarshalJSON; | |
| 1342 | - UseSerializers: UseSerializers; | |
| 1343 | 1337 | dummy: number; |
| 1338 | + s: S; | |
| 1339 | + sbyte: Sbyte; | |
| 1340 | + sealed: Sealed; | |
| 1344 | 1341 | select: Select; |
| 1345 | 1342 | self: SelfClass; |
| 1346 | 1343 | serialize: Serialize; |
| @@ -1384,9 +1381,6 @@ export interface Obj5 { | ||
| 1384 | 1381 | ulong: Ulong; |
| 1385 | 1382 | unchecked: Unchecked; |
| 1386 | 1383 | undefined: Undefined; |
| 1387 | - union: Union; | |
| 1388 | - unowned: Unowned; | |
| 1389 | - unsafe: Unsafe; | |
| 1390 | 1384 | } |
| 1391 | 1385 | |
| 1392 | 1386 | export interface KSerializer { |
| @@ -1397,6 +1391,10 @@ export interface PrimitiveKind { | ||
| 1397 | 1391 | PrimitiveKind: number; |
| 1398 | 1392 | } |
| 1399 | 1393 | |
| 1394 | +export interface Sel { | |
| 1395 | + SEL: number; | |
| 1396 | +} | |
| 1397 | + | |
| 1400 | 1398 | export interface Self { |
| 1401 | 1399 | Self: number; |
| 1402 | 1400 | } |
| @@ -1457,12 +1455,16 @@ export interface Type { | ||
| 1457 | 1455 | Type: number; |
| 1458 | 1456 | } |
| 1459 | 1457 | |
| 1460 | -export interface UnmarshalJSON { | |
| 1461 | - UnmarshalJSON: number; | |
| 1458 | +export interface S { | |
| 1459 | + s: number; | |
| 1462 | 1460 | } |
| 1463 | 1461 | |
| 1464 | -export interface UseSerializers { | |
| 1465 | - UseSerializers: number; | |
| 1462 | +export interface Sbyte { | |
| 1463 | + sbyte: number; | |
| 1464 | +} | |
| 1465 | + | |
| 1466 | +export interface Sealed { | |
| 1467 | + sealed: number; | |
| 1466 | 1468 | } |
| 1467 | 1469 | |
| 1468 | 1470 | export interface Select { |
| @@ -1637,24 +1639,17 @@ export interface Undefined { | ||
| 1637 | 1639 | undefined: number; |
| 1638 | 1640 | } |
| 1639 | 1641 | |
| 1640 | -export interface Union { | |
| 1641 | - union: number; | |
| 1642 | -} | |
| 1643 | - | |
| 1644 | -export interface Unowned { | |
| 1645 | - unowned: number; | |
| 1646 | -} | |
| 1647 | - | |
| 1648 | -export interface Unsafe { | |
| 1649 | - unsafe: number; | |
| 1650 | -} | |
| 1651 | - | |
| 1652 | 1642 | export interface Obj6 { |
| 1653 | 1643 | UUID: UUID; |
| 1644 | + UnmarshalJSON: UnmarshalJSON; | |
| 1645 | + UseSerializers: UseSerializers; | |
| 1654 | 1646 | Utf8JsonReader: Utf8JSONReader; |
| 1655 | 1647 | Utf8JsonWriter: Utf8JSONWriter; |
| 1656 | 1648 | YES: Yes; |
| 1657 | 1649 | dummy: number; |
| 1650 | + union: Union; | |
| 1651 | + unowned: Unowned; | |
| 1652 | + unsafe: Unsafe; | |
| 1658 | 1653 | unsigned: Unsigned; |
| 1659 | 1654 | ushort: Ushort; |
| 1660 | 1655 | using: Using; |
| @@ -1677,6 +1672,14 @@ export interface UUID { | ||
| 1677 | 1672 | UUID: number; |
| 1678 | 1673 | } |
| 1679 | 1674 | |
| 1675 | +export interface UnmarshalJSON { | |
| 1676 | + UnmarshalJSON: number; | |
| 1677 | +} | |
| 1678 | + | |
| 1679 | +export interface UseSerializers { | |
| 1680 | + UseSerializers: number; | |
| 1681 | +} | |
| 1682 | + | |
| 1680 | 1683 | export interface Utf8JSONReader { |
| 1681 | 1684 | Utf8JsonReader: number; |
| 1682 | 1685 | } |
| @@ -1689,6 +1692,18 @@ export interface Yes { | ||
| 1689 | 1692 | YES: number; |
| 1690 | 1693 | } |
| 1691 | 1694 | |
| 1695 | +export interface Union { | |
| 1696 | + union: number; | |
| 1697 | +} | |
| 1698 | + | |
| 1699 | +export interface Unowned { | |
| 1700 | + unowned: number; | |
| 1701 | +} | |
| 1702 | + | |
| 1703 | +export interface Unsafe { | |
| 1704 | + unsafe: number; | |
| 1705 | +} | |
| 1706 | + | |
| 1692 | 1707 | export interface Unsigned { |
| 1693 | 1708 | unsigned: number; |
| 1694 | 1709 | } |
| @@ -2484,10 +2499,10 @@ const typeMap: any = { | ||
| 2484 | 2499 | { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") }, |
| 2485 | 2500 | { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") }, |
| 2486 | 2501 | { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") }, |
| 2502 | + { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") }, | |
| 2487 | 2503 | { json: "Locale", js: "Locale", typ: r("Locale") }, |
| 2488 | 2504 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2489 | 2505 | { json: "MarshalJSON", js: "MarshalJSON", typ: r("MarshalJSON") }, |
| 2490 | - { json: "NO", js: "NO", typ: r("No") }, | |
| 2491 | 2506 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2492 | 2507 | { json: "goto", js: "goto", typ: r("Goto") }, |
| 2493 | 2508 | { json: "guard", js: "guard", typ: r("Guard") }, |
| @@ -2534,7 +2549,6 @@ const typeMap: any = { | ||
| 2534 | 2549 | { json: "native", js: "native", typ: r("Native") }, |
| 2535 | 2550 | { json: "new", js: "new", typ: r("New") }, |
| 2536 | 2551 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2537 | - { json: "nil", js: "nil", typ: r("Nil") }, | |
| 2538 | 2552 | ], false), |
| 2539 | 2553 | "Hashable": o([ |
| 2540 | 2554 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2581,6 +2595,9 @@ const typeMap: any = { | ||
| 2581 | 2595 | "JSONTokenType": o([ |
| 2582 | 2596 | { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) }, |
| 2583 | 2597 | ], false), |
| 2598 | + "LocalDate": o([ | |
| 2599 | + { json: "LocalDate", js: "LocalDate", typ: i(0) }, | |
| 2600 | + ], false), | |
| 2584 | 2601 | "Locale": o([ |
| 2585 | 2602 | { json: "Locale", js: "Locale", typ: i(0) }, |
| 2586 | 2603 | ], false), |
| @@ -2590,9 +2607,6 @@ const typeMap: any = { | ||
| 2590 | 2607 | "MarshalJSON": o([ |
| 2591 | 2608 | { json: "MarshalJSON", js: "MarshalJSON", typ: i(0) }, |
| 2592 | 2609 | ], false), |
| 2593 | - "No": o([ | |
| 2594 | - { json: "NO", js: "NO", typ: i(0) }, | |
| 2595 | - ], false), | |
| 2596 | 2610 | "Goto": o([ |
| 2597 | 2611 | { json: "goto", js: "goto", typ: i(0) }, |
| 2598 | 2612 | ], false), |
| @@ -2728,20 +2742,20 @@ const typeMap: any = { | ||
| 2728 | 2742 | "Newtonsoft": o([ |
| 2729 | 2743 | { json: "newtonsoft", js: "newtonsoft", typ: i(0) }, |
| 2730 | 2744 | ], false), |
| 2731 | - "Nil": o([ | |
| 2732 | - { json: "nil", js: "nil", typ: i(0) }, | |
| 2733 | - ], false), | |
| 2734 | 2745 | "Obj4": o([ |
| 2746 | + { json: "NO", js: "NO", typ: r("No") }, | |
| 2735 | 2747 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2736 | 2748 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| 2737 | 2749 | { json: "NSString", js: "NSString", typ: r("NSString") }, |
| 2738 | 2750 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2739 | 2751 | { json: "None", js: "None", typ: r("None") }, |
| 2740 | 2752 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2753 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") }, | |
| 2754 | + { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") }, | |
| 2741 | 2755 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2742 | 2756 | { json: "RegExp", js: "RegExp", typ: r("RegExp") }, |
| 2743 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2744 | 2757 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2758 | + { json: "nil", js: "nil", typ: r("Nil") }, | |
| 2745 | 2759 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2746 | 2760 | { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, |
| 2747 | 2761 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| @@ -2794,9 +2808,9 @@ const typeMap: any = { | ||
| 2794 | 2808 | { json: "return", js: "return", typ: r("Return") }, |
| 2795 | 2809 | { json: "right", js: "right", typ: r("Right") }, |
| 2796 | 2810 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2797 | - { json: "s", js: "s", typ: r("S") }, | |
| 2798 | - { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 2799 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2811 | + ], false), | |
| 2812 | + "No": o([ | |
| 2813 | + { json: "NO", js: "NO", typ: i(0) }, | |
| 2800 | 2814 | ], false), |
| 2801 | 2815 | "NSError": o([ |
| 2802 | 2816 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2816,14 +2830,20 @@ const typeMap: any = { | ||
| 2816 | 2830 | "ObjectMapper": o([ |
| 2817 | 2831 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2818 | 2832 | ], false), |
| 2833 | + "OffsetDateTime": o([ | |
| 2834 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) }, | |
| 2835 | + ], false), | |
| 2836 | + "OffsetTime": o([ | |
| 2837 | + { json: "OffsetTime", js: "OffsetTime", typ: i(0) }, | |
| 2838 | + ], false), | |
| 2819 | 2839 | "Protocol": o([ |
| 2820 | 2840 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2821 | 2841 | ], false), |
| 2822 | 2842 | "RegExp": o([ |
| 2823 | 2843 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2824 | 2844 | ], false), |
| 2825 | - "Sel": o([ | |
| 2826 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2845 | + "Nil": o([ | |
| 2846 | + { json: "nil", js: "nil", typ: i(0) }, | |
| 2827 | 2847 | ], false), |
| 2828 | 2848 | "NoSuchMethod": o([ |
| 2829 | 2849 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| @@ -2981,18 +3001,10 @@ const typeMap: any = { | ||
| 2981 | 3001 | "RuntimeType": o([ |
| 2982 | 3002 | { json: "runtimeType", js: "runtimeType", typ: i(0) }, |
| 2983 | 3003 | ], false), |
| 2984 | - "S": o([ | |
| 2985 | - { json: "s", js: "s", typ: i(0) }, | |
| 2986 | - ], false), | |
| 2987 | - "Sbyte": o([ | |
| 2988 | - { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 2989 | - ], false), | |
| 2990 | - "Sealed": o([ | |
| 2991 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2992 | - ], false), | |
| 2993 | 3004 | "Obj5": o([ |
| 2994 | 3005 | { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") }, |
| 2995 | 3006 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") }, |
| 3007 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2996 | 3008 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2997 | 3009 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 2998 | 3010 | { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") }, |
| @@ -3008,9 +3020,10 @@ const typeMap: any = { | ||
| 3008 | 3020 | { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") }, |
| 3009 | 3021 | { json: "True", js: "True", typ: r("True") }, |
| 3010 | 3022 | { json: "Type", js: "Type", typ: r("Type") }, |
| 3011 | - { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") }, | |
| 3012 | - { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, | |
| 3013 | 3023 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3024 | + { json: "s", js: "s", typ: r("S") }, | |
| 3025 | + { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 3026 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 3014 | 3027 | { json: "select", js: "select", typ: r("Select") }, |
| 3015 | 3028 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 3016 | 3029 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| @@ -3054,9 +3067,6 @@ const typeMap: any = { | ||
| 3054 | 3067 | { json: "ulong", js: "ulong", typ: r("Ulong") }, |
| 3055 | 3068 | { json: "unchecked", js: "unchecked", typ: r("Unchecked") }, |
| 3056 | 3069 | { json: "undefined", js: "undefined", typ: r("Undefined") }, |
| 3057 | - { json: "union", js: "union", typ: r("Union") }, | |
| 3058 | - { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 3059 | - { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3060 | 3070 | ], false), |
| 3061 | 3071 | "KSerializer": o([ |
| 3062 | 3072 | { json: "KSerializer", js: "KSerializer", typ: i(0) }, |
| @@ -3064,6 +3074,9 @@ const typeMap: any = { | ||
| 3064 | 3074 | "PrimitiveKind": o([ |
| 3065 | 3075 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) }, |
| 3066 | 3076 | ], false), |
| 3077 | + "Sel": o([ | |
| 3078 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3079 | + ], false), | |
| 3067 | 3080 | "Self": o([ |
| 3068 | 3081 | { json: "Self", js: "Self", typ: i(0) }, |
| 3069 | 3082 | ], false), |
| @@ -3109,11 +3122,14 @@ const typeMap: any = { | ||
| 3109 | 3122 | "Type": o([ |
| 3110 | 3123 | { json: "Type", js: "Type", typ: i(0) }, |
| 3111 | 3124 | ], false), |
| 3112 | - "UnmarshalJSON": o([ | |
| 3113 | - { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) }, | |
| 3125 | + "S": o([ | |
| 3126 | + { json: "s", js: "s", typ: i(0) }, | |
| 3114 | 3127 | ], false), |
| 3115 | - "UseSerializers": o([ | |
| 3116 | - { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, | |
| 3128 | + "Sbyte": o([ | |
| 3129 | + { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 3130 | + ], false), | |
| 3131 | + "Sealed": o([ | |
| 3132 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3117 | 3133 | ], false), |
| 3118 | 3134 | "Select": o([ |
| 3119 | 3135 | { json: "select", js: "select", typ: i(0) }, |
| @@ -3244,21 +3260,17 @@ const typeMap: any = { | ||
| 3244 | 3260 | "Undefined": o([ |
| 3245 | 3261 | { json: "undefined", js: "undefined", typ: i(0) }, |
| 3246 | 3262 | ], false), |
| 3247 | - "Union": o([ | |
| 3248 | - { json: "union", js: "union", typ: i(0) }, | |
| 3249 | - ], false), | |
| 3250 | - "Unowned": o([ | |
| 3251 | - { json: "unowned", js: "unowned", typ: i(0) }, | |
| 3252 | - ], false), | |
| 3253 | - "Unsafe": o([ | |
| 3254 | - { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3255 | - ], false), | |
| 3256 | 3263 | "Obj6": o([ |
| 3257 | 3264 | { json: "UUID", js: "UUID", typ: r("UUID") }, |
| 3265 | + { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") }, | |
| 3266 | + { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, | |
| 3258 | 3267 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 3259 | 3268 | { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, |
| 3260 | 3269 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3261 | 3270 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3271 | + { json: "union", js: "union", typ: r("Union") }, | |
| 3272 | + { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 3273 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3262 | 3274 | { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, |
| 3263 | 3275 | { json: "ushort", js: "ushort", typ: r("Ushort") }, |
| 3264 | 3276 | { json: "using", js: "using", typ: r("Using") }, |
| @@ -3279,6 +3291,12 @@ const typeMap: any = { | ||
| 3279 | 3291 | "UUID": o([ |
| 3280 | 3292 | { json: "UUID", js: "UUID", typ: i(0) }, |
| 3281 | 3293 | ], false), |
| 3294 | + "UnmarshalJSON": o([ | |
| 3295 | + { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) }, | |
| 3296 | + ], false), | |
| 3297 | + "UseSerializers": o([ | |
| 3298 | + { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, | |
| 3299 | + ], false), | |
| 3282 | 3300 | "Utf8JSONReader": o([ |
| 3283 | 3301 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) }, |
| 3284 | 3302 | ], false), |
| @@ -3288,6 +3306,15 @@ const typeMap: any = { | ||
| 3288 | 3306 | "Yes": o([ |
| 3289 | 3307 | { json: "YES", js: "YES", typ: i(0) }, |
| 3290 | 3308 | ], false), |
| 3309 | + "Union": o([ | |
| 3310 | + { json: "union", js: "union", typ: i(0) }, | |
| 3311 | + ], false), | |
| 3312 | + "Unowned": o([ | |
| 3313 | + { json: "unowned", js: "unowned", typ: i(0) }, | |
| 3314 | + ], false), | |
| 3315 | + "Unsafe": o([ | |
| 3316 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3317 | + ], false), | |
| 3291 | 3318 | "Unsigned": o([ |
| 3292 | 3319 | { json: "unsigned", js: "unsigned", typ: i(0) }, |
| 3293 | 3320 | ], false), |
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+117 −90
| @@ -683,10 +683,10 @@ export type Obj3 = { | ||
| 683 | 683 | JsonParser: JSONParser; |
| 684 | 684 | JsonReader: JSONReader; |
| 685 | 685 | JsonTokenType: JSONTokenType; |
| 686 | + LocalDate: LocalDate; | |
| 686 | 687 | Locale: Locale; |
| 687 | 688 | MapEntry: MapEntry; |
| 688 | 689 | MarshalJSON: MarshalJSON; |
| 689 | - NO: No; | |
| 690 | 690 | dummy: number; |
| 691 | 691 | goto: Goto; |
| 692 | 692 | guard: Guard; |
| @@ -733,7 +733,6 @@ export type Obj3 = { | ||
| 733 | 733 | native: Native; |
| 734 | 734 | new: New; |
| 735 | 735 | newtonsoft: Newtonsoft; |
| 736 | - nil: Nil; | |
| 737 | 736 | } |
| 738 | 737 | |
| 739 | 738 | export type Hashable = { |
| @@ -796,6 +795,10 @@ export type JSONTokenType = { | ||
| 796 | 795 | JsonTokenType: number; |
| 797 | 796 | } |
| 798 | 797 | |
| 798 | +export type LocalDate = { | |
| 799 | + LocalDate: number; | |
| 800 | +} | |
| 801 | + | |
| 799 | 802 | export type Locale = { |
| 800 | 803 | Locale: number; |
| 801 | 804 | } |
| @@ -808,10 +811,6 @@ export type MarshalJSON = { | ||
| 808 | 811 | MarshalJSON: number; |
| 809 | 812 | } |
| 810 | 813 | |
| 811 | -export type No = { | |
| 812 | - NO: number; | |
| 813 | -} | |
| 814 | - | |
| 815 | 814 | export type Goto = { |
| 816 | 815 | goto: number; |
| 817 | 816 | } |
| @@ -992,21 +991,20 @@ export type Newtonsoft = { | ||
| 992 | 991 | newtonsoft: number; |
| 993 | 992 | } |
| 994 | 993 | |
| 995 | -export type Nil = { | |
| 996 | - nil: number; | |
| 997 | -} | |
| 998 | - | |
| 999 | 994 | export type Obj4 = { |
| 995 | + NO: No; | |
| 1000 | 996 | NSError: NSError; |
| 1001 | 997 | NSObject: NSObject; |
| 1002 | 998 | NSString: NSString; |
| 1003 | 999 | NULL: Null; |
| 1004 | 1000 | None: None; |
| 1005 | 1001 | ObjectMapper: ObjectMapper; |
| 1002 | + OffsetDateTime: OffsetDateTime; | |
| 1003 | + OffsetTime: OffsetTime; | |
| 1006 | 1004 | Protocol: Protocol; |
| 1007 | 1005 | RegExp: RegExp; |
| 1008 | - SEL: Sel; | |
| 1009 | 1006 | dummy: number; |
| 1007 | + nil: Nil; | |
| 1010 | 1008 | noSuchMethod: NoSuchMethod; |
| 1011 | 1009 | noexcept: Noexcept; |
| 1012 | 1010 | nonatomic: Nonatomic; |
| @@ -1059,9 +1057,10 @@ export type Obj4 = { | ||
| 1059 | 1057 | return: Return; |
| 1060 | 1058 | right: Right; |
| 1061 | 1059 | runtimeType: RuntimeType; |
| 1062 | - s: S; | |
| 1063 | - sbyte: Sbyte; | |
| 1064 | - sealed: Sealed; | |
| 1060 | +} | |
| 1061 | + | |
| 1062 | +export type No = { | |
| 1063 | + NO: number; | |
| 1065 | 1064 | } |
| 1066 | 1065 | |
| 1067 | 1066 | export type NSError = { |
| @@ -1088,6 +1087,14 @@ export type ObjectMapper = { | ||
| 1088 | 1087 | ObjectMapper: number; |
| 1089 | 1088 | } |
| 1090 | 1089 | |
| 1090 | +export type OffsetDateTime = { | |
| 1091 | + OffsetDateTime: number; | |
| 1092 | +} | |
| 1093 | + | |
| 1094 | +export type OffsetTime = { | |
| 1095 | + OffsetTime: number; | |
| 1096 | +} | |
| 1097 | + | |
| 1091 | 1098 | export type Protocol = { |
| 1092 | 1099 | Protocol: number; |
| 1093 | 1100 | } |
| @@ -1096,8 +1103,8 @@ export type RegExp = { | ||
| 1096 | 1103 | RegExp: string; |
| 1097 | 1104 | } |
| 1098 | 1105 | |
| 1099 | -export type Sel = { | |
| 1100 | - SEL: number; | |
| 1106 | +export type Nil = { | |
| 1107 | + nil: number; | |
| 1101 | 1108 | } |
| 1102 | 1109 | |
| 1103 | 1110 | export type NoSuchMethod = { |
| @@ -1308,21 +1315,10 @@ export type RuntimeType = { | ||
| 1308 | 1315 | runtimeType: number; |
| 1309 | 1316 | } |
| 1310 | 1317 | |
| 1311 | -export type S = { | |
| 1312 | - s: number; | |
| 1313 | -} | |
| 1314 | - | |
| 1315 | -export type Sbyte = { | |
| 1316 | - sbyte: number; | |
| 1317 | -} | |
| 1318 | - | |
| 1319 | -export type Sealed = { | |
| 1320 | - sealed: number; | |
| 1321 | -} | |
| 1322 | - | |
| 1323 | 1318 | export type Obj5 = { |
| 1324 | 1319 | KSerializer: KSerializer; |
| 1325 | 1320 | PrimitiveKind: PrimitiveKind; |
| 1321 | + SEL: Sel; | |
| 1326 | 1322 | Self: Self; |
| 1327 | 1323 | Sendable: Sendable; |
| 1328 | 1324 | SerialDescriptor: SerialDescriptor; |
| @@ -1338,9 +1334,10 @@ export type Obj5 = { | ||
| 1338 | 1334 | TimeZone: TimeZone; |
| 1339 | 1335 | True: True; |
| 1340 | 1336 | Type: Type; |
| 1341 | - UnmarshalJSON: UnmarshalJSON; | |
| 1342 | - UseSerializers: UseSerializers; | |
| 1343 | 1337 | dummy: number; |
| 1338 | + s: S; | |
| 1339 | + sbyte: Sbyte; | |
| 1340 | + sealed: Sealed; | |
| 1344 | 1341 | select: Select; |
| 1345 | 1342 | self: SelfClass; |
| 1346 | 1343 | serialize: Serialize; |
| @@ -1384,9 +1381,6 @@ export type Obj5 = { | ||
| 1384 | 1381 | ulong: Ulong; |
| 1385 | 1382 | unchecked: Unchecked; |
| 1386 | 1383 | undefined: Undefined; |
| 1387 | - union: Union; | |
| 1388 | - unowned: Unowned; | |
| 1389 | - unsafe: Unsafe; | |
| 1390 | 1384 | } |
| 1391 | 1385 | |
| 1392 | 1386 | export type KSerializer = { |
| @@ -1397,6 +1391,10 @@ export type PrimitiveKind = { | ||
| 1397 | 1391 | PrimitiveKind: number; |
| 1398 | 1392 | } |
| 1399 | 1393 | |
| 1394 | +export type Sel = { | |
| 1395 | + SEL: number; | |
| 1396 | +} | |
| 1397 | + | |
| 1400 | 1398 | export type Self = { |
| 1401 | 1399 | Self: number; |
| 1402 | 1400 | } |
| @@ -1457,12 +1455,16 @@ export type Type = { | ||
| 1457 | 1455 | Type: number; |
| 1458 | 1456 | } |
| 1459 | 1457 | |
| 1460 | -export type UnmarshalJSON = { | |
| 1461 | - UnmarshalJSON: number; | |
| 1458 | +export type S = { | |
| 1459 | + s: number; | |
| 1462 | 1460 | } |
| 1463 | 1461 | |
| 1464 | -export type UseSerializers = { | |
| 1465 | - UseSerializers: number; | |
| 1462 | +export type Sbyte = { | |
| 1463 | + sbyte: number; | |
| 1464 | +} | |
| 1465 | + | |
| 1466 | +export type Sealed = { | |
| 1467 | + sealed: number; | |
| 1466 | 1468 | } |
| 1467 | 1469 | |
| 1468 | 1470 | export type Select = { |
| @@ -1637,24 +1639,17 @@ export type Undefined = { | ||
| 1637 | 1639 | undefined: number; |
| 1638 | 1640 | } |
| 1639 | 1641 | |
| 1640 | -export type Union = { | |
| 1641 | - union: number; | |
| 1642 | -} | |
| 1643 | - | |
| 1644 | -export type Unowned = { | |
| 1645 | - unowned: number; | |
| 1646 | -} | |
| 1647 | - | |
| 1648 | -export type Unsafe = { | |
| 1649 | - unsafe: number; | |
| 1650 | -} | |
| 1651 | - | |
| 1652 | 1642 | export type Obj6 = { |
| 1653 | 1643 | UUID: UUID; |
| 1644 | + UnmarshalJSON: UnmarshalJSON; | |
| 1645 | + UseSerializers: UseSerializers; | |
| 1654 | 1646 | Utf8JsonReader: Utf8JSONReader; |
| 1655 | 1647 | Utf8JsonWriter: Utf8JSONWriter; |
| 1656 | 1648 | YES: Yes; |
| 1657 | 1649 | dummy: number; |
| 1650 | + union: Union; | |
| 1651 | + unowned: Unowned; | |
| 1652 | + unsafe: Unsafe; | |
| 1658 | 1653 | unsigned: Unsigned; |
| 1659 | 1654 | ushort: Ushort; |
| 1660 | 1655 | using: Using; |
| @@ -1677,6 +1672,14 @@ export type UUID = { | ||
| 1677 | 1672 | UUID: number; |
| 1678 | 1673 | } |
| 1679 | 1674 | |
| 1675 | +export type UnmarshalJSON = { | |
| 1676 | + UnmarshalJSON: number; | |
| 1677 | +} | |
| 1678 | + | |
| 1679 | +export type UseSerializers = { | |
| 1680 | + UseSerializers: number; | |
| 1681 | +} | |
| 1682 | + | |
| 1680 | 1683 | export type Utf8JSONReader = { |
| 1681 | 1684 | Utf8JsonReader: number; |
| 1682 | 1685 | } |
| @@ -1689,6 +1692,18 @@ export type Yes = { | ||
| 1689 | 1692 | YES: number; |
| 1690 | 1693 | } |
| 1691 | 1694 | |
| 1695 | +export type Union = { | |
| 1696 | + union: number; | |
| 1697 | +} | |
| 1698 | + | |
| 1699 | +export type Unowned = { | |
| 1700 | + unowned: number; | |
| 1701 | +} | |
| 1702 | + | |
| 1703 | +export type Unsafe = { | |
| 1704 | + unsafe: number; | |
| 1705 | +} | |
| 1706 | + | |
| 1692 | 1707 | export type Unsigned = { |
| 1693 | 1708 | unsigned: number; |
| 1694 | 1709 | } |
| @@ -2484,10 +2499,10 @@ const typeMap: any = { | ||
| 2484 | 2499 | { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") }, |
| 2485 | 2500 | { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") }, |
| 2486 | 2501 | { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") }, |
| 2502 | + { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") }, | |
| 2487 | 2503 | { json: "Locale", js: "Locale", typ: r("Locale") }, |
| 2488 | 2504 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2489 | 2505 | { json: "MarshalJSON", js: "MarshalJSON", typ: r("MarshalJSON") }, |
| 2490 | - { json: "NO", js: "NO", typ: r("No") }, | |
| 2491 | 2506 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2492 | 2507 | { json: "goto", js: "goto", typ: r("Goto") }, |
| 2493 | 2508 | { json: "guard", js: "guard", typ: r("Guard") }, |
| @@ -2534,7 +2549,6 @@ const typeMap: any = { | ||
| 2534 | 2549 | { json: "native", js: "native", typ: r("Native") }, |
| 2535 | 2550 | { json: "new", js: "new", typ: r("New") }, |
| 2536 | 2551 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2537 | - { json: "nil", js: "nil", typ: r("Nil") }, | |
| 2538 | 2552 | ], false), |
| 2539 | 2553 | "Hashable": o([ |
| 2540 | 2554 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2581,6 +2595,9 @@ const typeMap: any = { | ||
| 2581 | 2595 | "JSONTokenType": o([ |
| 2582 | 2596 | { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) }, |
| 2583 | 2597 | ], false), |
| 2598 | + "LocalDate": o([ | |
| 2599 | + { json: "LocalDate", js: "LocalDate", typ: i(0) }, | |
| 2600 | + ], false), | |
| 2584 | 2601 | "Locale": o([ |
| 2585 | 2602 | { json: "Locale", js: "Locale", typ: i(0) }, |
| 2586 | 2603 | ], false), |
| @@ -2590,9 +2607,6 @@ const typeMap: any = { | ||
| 2590 | 2607 | "MarshalJSON": o([ |
| 2591 | 2608 | { json: "MarshalJSON", js: "MarshalJSON", typ: i(0) }, |
| 2592 | 2609 | ], false), |
| 2593 | - "No": o([ | |
| 2594 | - { json: "NO", js: "NO", typ: i(0) }, | |
| 2595 | - ], false), | |
| 2596 | 2610 | "Goto": o([ |
| 2597 | 2611 | { json: "goto", js: "goto", typ: i(0) }, |
| 2598 | 2612 | ], false), |
| @@ -2728,20 +2742,20 @@ const typeMap: any = { | ||
| 2728 | 2742 | "Newtonsoft": o([ |
| 2729 | 2743 | { json: "newtonsoft", js: "newtonsoft", typ: i(0) }, |
| 2730 | 2744 | ], false), |
| 2731 | - "Nil": o([ | |
| 2732 | - { json: "nil", js: "nil", typ: i(0) }, | |
| 2733 | - ], false), | |
| 2734 | 2745 | "Obj4": o([ |
| 2746 | + { json: "NO", js: "NO", typ: r("No") }, | |
| 2735 | 2747 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2736 | 2748 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| 2737 | 2749 | { json: "NSString", js: "NSString", typ: r("NSString") }, |
| 2738 | 2750 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2739 | 2751 | { json: "None", js: "None", typ: r("None") }, |
| 2740 | 2752 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2753 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") }, | |
| 2754 | + { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") }, | |
| 2741 | 2755 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2742 | 2756 | { json: "RegExp", js: "RegExp", typ: r("RegExp") }, |
| 2743 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2744 | 2757 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2758 | + { json: "nil", js: "nil", typ: r("Nil") }, | |
| 2745 | 2759 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2746 | 2760 | { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, |
| 2747 | 2761 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| @@ -2794,9 +2808,9 @@ const typeMap: any = { | ||
| 2794 | 2808 | { json: "return", js: "return", typ: r("Return") }, |
| 2795 | 2809 | { json: "right", js: "right", typ: r("Right") }, |
| 2796 | 2810 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2797 | - { json: "s", js: "s", typ: r("S") }, | |
| 2798 | - { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 2799 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2811 | + ], false), | |
| 2812 | + "No": o([ | |
| 2813 | + { json: "NO", js: "NO", typ: i(0) }, | |
| 2800 | 2814 | ], false), |
| 2801 | 2815 | "NSError": o([ |
| 2802 | 2816 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2816,14 +2830,20 @@ const typeMap: any = { | ||
| 2816 | 2830 | "ObjectMapper": o([ |
| 2817 | 2831 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2818 | 2832 | ], false), |
| 2833 | + "OffsetDateTime": o([ | |
| 2834 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) }, | |
| 2835 | + ], false), | |
| 2836 | + "OffsetTime": o([ | |
| 2837 | + { json: "OffsetTime", js: "OffsetTime", typ: i(0) }, | |
| 2838 | + ], false), | |
| 2819 | 2839 | "Protocol": o([ |
| 2820 | 2840 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2821 | 2841 | ], false), |
| 2822 | 2842 | "RegExp": o([ |
| 2823 | 2843 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2824 | 2844 | ], false), |
| 2825 | - "Sel": o([ | |
| 2826 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2845 | + "Nil": o([ | |
| 2846 | + { json: "nil", js: "nil", typ: i(0) }, | |
| 2827 | 2847 | ], false), |
| 2828 | 2848 | "NoSuchMethod": o([ |
| 2829 | 2849 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| @@ -2981,18 +3001,10 @@ const typeMap: any = { | ||
| 2981 | 3001 | "RuntimeType": o([ |
| 2982 | 3002 | { json: "runtimeType", js: "runtimeType", typ: i(0) }, |
| 2983 | 3003 | ], false), |
| 2984 | - "S": o([ | |
| 2985 | - { json: "s", js: "s", typ: i(0) }, | |
| 2986 | - ], false), | |
| 2987 | - "Sbyte": o([ | |
| 2988 | - { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 2989 | - ], false), | |
| 2990 | - "Sealed": o([ | |
| 2991 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2992 | - ], false), | |
| 2993 | 3004 | "Obj5": o([ |
| 2994 | 3005 | { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") }, |
| 2995 | 3006 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") }, |
| 3007 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2996 | 3008 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2997 | 3009 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 2998 | 3010 | { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") }, |
| @@ -3008,9 +3020,10 @@ const typeMap: any = { | ||
| 3008 | 3020 | { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") }, |
| 3009 | 3021 | { json: "True", js: "True", typ: r("True") }, |
| 3010 | 3022 | { json: "Type", js: "Type", typ: r("Type") }, |
| 3011 | - { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") }, | |
| 3012 | - { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, | |
| 3013 | 3023 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3024 | + { json: "s", js: "s", typ: r("S") }, | |
| 3025 | + { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, | |
| 3026 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 3014 | 3027 | { json: "select", js: "select", typ: r("Select") }, |
| 3015 | 3028 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 3016 | 3029 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| @@ -3054,9 +3067,6 @@ const typeMap: any = { | ||
| 3054 | 3067 | { json: "ulong", js: "ulong", typ: r("Ulong") }, |
| 3055 | 3068 | { json: "unchecked", js: "unchecked", typ: r("Unchecked") }, |
| 3056 | 3069 | { json: "undefined", js: "undefined", typ: r("Undefined") }, |
| 3057 | - { json: "union", js: "union", typ: r("Union") }, | |
| 3058 | - { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 3059 | - { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3060 | 3070 | ], false), |
| 3061 | 3071 | "KSerializer": o([ |
| 3062 | 3072 | { json: "KSerializer", js: "KSerializer", typ: i(0) }, |
| @@ -3064,6 +3074,9 @@ const typeMap: any = { | ||
| 3064 | 3074 | "PrimitiveKind": o([ |
| 3065 | 3075 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) }, |
| 3066 | 3076 | ], false), |
| 3077 | + "Sel": o([ | |
| 3078 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3079 | + ], false), | |
| 3067 | 3080 | "Self": o([ |
| 3068 | 3081 | { json: "Self", js: "Self", typ: i(0) }, |
| 3069 | 3082 | ], false), |
| @@ -3109,11 +3122,14 @@ const typeMap: any = { | ||
| 3109 | 3122 | "Type": o([ |
| 3110 | 3123 | { json: "Type", js: "Type", typ: i(0) }, |
| 3111 | 3124 | ], false), |
| 3112 | - "UnmarshalJSON": o([ | |
| 3113 | - { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) }, | |
| 3125 | + "S": o([ | |
| 3126 | + { json: "s", js: "s", typ: i(0) }, | |
| 3114 | 3127 | ], false), |
| 3115 | - "UseSerializers": o([ | |
| 3116 | - { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, | |
| 3128 | + "Sbyte": o([ | |
| 3129 | + { json: "sbyte", js: "sbyte", typ: i(0) }, | |
| 3130 | + ], false), | |
| 3131 | + "Sealed": o([ | |
| 3132 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3117 | 3133 | ], false), |
| 3118 | 3134 | "Select": o([ |
| 3119 | 3135 | { json: "select", js: "select", typ: i(0) }, |
| @@ -3244,21 +3260,17 @@ const typeMap: any = { | ||
| 3244 | 3260 | "Undefined": o([ |
| 3245 | 3261 | { json: "undefined", js: "undefined", typ: i(0) }, |
| 3246 | 3262 | ], false), |
| 3247 | - "Union": o([ | |
| 3248 | - { json: "union", js: "union", typ: i(0) }, | |
| 3249 | - ], false), | |
| 3250 | - "Unowned": o([ | |
| 3251 | - { json: "unowned", js: "unowned", typ: i(0) }, | |
| 3252 | - ], false), | |
| 3253 | - "Unsafe": o([ | |
| 3254 | - { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3255 | - ], false), | |
| 3256 | 3263 | "Obj6": o([ |
| 3257 | 3264 | { json: "UUID", js: "UUID", typ: r("UUID") }, |
| 3265 | + { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: r("UnmarshalJSON") }, | |
| 3266 | + { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, | |
| 3258 | 3267 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 3259 | 3268 | { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, |
| 3260 | 3269 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3261 | 3270 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3271 | + { json: "union", js: "union", typ: r("Union") }, | |
| 3272 | + { json: "unowned", js: "unowned", typ: r("Unowned") }, | |
| 3273 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3262 | 3274 | { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, |
| 3263 | 3275 | { json: "ushort", js: "ushort", typ: r("Ushort") }, |
| 3264 | 3276 | { json: "using", js: "using", typ: r("Using") }, |
| @@ -3279,6 +3291,12 @@ const typeMap: any = { | ||
| 3279 | 3291 | "UUID": o([ |
| 3280 | 3292 | { json: "UUID", js: "UUID", typ: i(0) }, |
| 3281 | 3293 | ], false), |
| 3294 | + "UnmarshalJSON": o([ | |
| 3295 | + { json: "UnmarshalJSON", js: "UnmarshalJSON", typ: i(0) }, | |
| 3296 | + ], false), | |
| 3297 | + "UseSerializers": o([ | |
| 3298 | + { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, | |
| 3299 | + ], false), | |
| 3282 | 3300 | "Utf8JSONReader": o([ |
| 3283 | 3301 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) }, |
| 3284 | 3302 | ], false), |
| @@ -3288,6 +3306,15 @@ const typeMap: any = { | ||
| 3288 | 3306 | "Yes": o([ |
| 3289 | 3307 | { json: "YES", js: "YES", typ: i(0) }, |
| 3290 | 3308 | ], false), |
| 3309 | + "Union": o([ | |
| 3310 | + { json: "union", js: "union", typ: i(0) }, | |
| 3311 | + ], false), | |
| 3312 | + "Unowned": o([ | |
| 3313 | + { json: "unowned", js: "unowned", typ: i(0) }, | |
| 3314 | + ], false), | |
| 3315 | + "Unsafe": o([ | |
| 3316 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3317 | + ], false), | |
| 3291 | 3318 | "Unsigned": o([ |
| 3292 | 3319 | { json: "unsigned", js: "unsigned", typ: i(0) }, |
| 3293 | 3320 | ], false), |
Test case
45 generated files · +1,814 −57test/inputs/schema/date-time.schema
Mschema-cjsondefault / TopLevel.c+180 −0
| @@ -48,6 +48,153 @@ void cJSON_DeleteComplexUnionArray(struct ComplexUnionArray * x) { | ||
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | +struct LocalDate * cJSON_ParseLocalDate(const char * s) { | |
| 52 | + struct LocalDate * x = NULL; | |
| 53 | + if (NULL != s) { | |
| 54 | + cJSON * j = cJSON_Parse(s); | |
| 55 | + if (NULL != j) { | |
| 56 | + x = cJSON_GetLocalDateValue(j); | |
| 57 | + cJSON_Delete(j); | |
| 58 | + } | |
| 59 | + } | |
| 60 | + return x; | |
| 61 | +} | |
| 62 | + | |
| 63 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) { | |
| 64 | + struct LocalDate * x = NULL; | |
| 65 | + if (NULL != j) { | |
| 66 | + if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) { | |
| 67 | + memset(x, 0, sizeof(struct LocalDate)); | |
| 68 | + } | |
| 69 | + } | |
| 70 | + return x; | |
| 71 | +} | |
| 72 | + | |
| 73 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) { | |
| 74 | + cJSON * j = NULL; | |
| 75 | + if (NULL != x) { | |
| 76 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 77 | + } | |
| 78 | + } | |
| 79 | + return j; | |
| 80 | +} | |
| 81 | + | |
| 82 | +char * cJSON_PrintLocalDate(const struct LocalDate * x) { | |
| 83 | + char * s = NULL; | |
| 84 | + if (NULL != x) { | |
| 85 | + cJSON * j = cJSON_CreateLocalDate(x); | |
| 86 | + if (NULL != j) { | |
| 87 | + s = cJSON_Print(j); | |
| 88 | + cJSON_Delete(j); | |
| 89 | + } | |
| 90 | + } | |
| 91 | + return s; | |
| 92 | +} | |
| 93 | + | |
| 94 | +void cJSON_DeleteLocalDate(struct LocalDate * x) { | |
| 95 | + if (NULL != x) { | |
| 96 | + cJSON_free(x); | |
| 97 | + } | |
| 98 | +} | |
| 99 | + | |
| 100 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) { | |
| 101 | + struct OffsetDateTime * x = NULL; | |
| 102 | + if (NULL != s) { | |
| 103 | + cJSON * j = cJSON_Parse(s); | |
| 104 | + if (NULL != j) { | |
| 105 | + x = cJSON_GetOffsetDateTimeValue(j); | |
| 106 | + cJSON_Delete(j); | |
| 107 | + } | |
| 108 | + } | |
| 109 | + return x; | |
| 110 | +} | |
| 111 | + | |
| 112 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) { | |
| 113 | + struct OffsetDateTime * x = NULL; | |
| 114 | + if (NULL != j) { | |
| 115 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) { | |
| 116 | + memset(x, 0, sizeof(struct OffsetDateTime)); | |
| 117 | + } | |
| 118 | + } | |
| 119 | + return x; | |
| 120 | +} | |
| 121 | + | |
| 122 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) { | |
| 123 | + cJSON * j = NULL; | |
| 124 | + if (NULL != x) { | |
| 125 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 126 | + } | |
| 127 | + } | |
| 128 | + return j; | |
| 129 | +} | |
| 130 | + | |
| 131 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) { | |
| 132 | + char * s = NULL; | |
| 133 | + if (NULL != x) { | |
| 134 | + cJSON * j = cJSON_CreateOffsetDateTime(x); | |
| 135 | + if (NULL != j) { | |
| 136 | + s = cJSON_Print(j); | |
| 137 | + cJSON_Delete(j); | |
| 138 | + } | |
| 139 | + } | |
| 140 | + return s; | |
| 141 | +} | |
| 142 | + | |
| 143 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) { | |
| 144 | + if (NULL != x) { | |
| 145 | + cJSON_free(x); | |
| 146 | + } | |
| 147 | +} | |
| 148 | + | |
| 149 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s) { | |
| 150 | + struct OffsetTime * x = NULL; | |
| 151 | + if (NULL != s) { | |
| 152 | + cJSON * j = cJSON_Parse(s); | |
| 153 | + if (NULL != j) { | |
| 154 | + x = cJSON_GetOffsetTimeValue(j); | |
| 155 | + cJSON_Delete(j); | |
| 156 | + } | |
| 157 | + } | |
| 158 | + return x; | |
| 159 | +} | |
| 160 | + | |
| 161 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) { | |
| 162 | + struct OffsetTime * x = NULL; | |
| 163 | + if (NULL != j) { | |
| 164 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) { | |
| 165 | + memset(x, 0, sizeof(struct OffsetTime)); | |
| 166 | + } | |
| 167 | + } | |
| 168 | + return x; | |
| 169 | +} | |
| 170 | + | |
| 171 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) { | |
| 172 | + cJSON * j = NULL; | |
| 173 | + if (NULL != x) { | |
| 174 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 175 | + } | |
| 176 | + } | |
| 177 | + return j; | |
| 178 | +} | |
| 179 | + | |
| 180 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x) { | |
| 181 | + char * s = NULL; | |
| 182 | + if (NULL != x) { | |
| 183 | + cJSON * j = cJSON_CreateOffsetTime(x); | |
| 184 | + if (NULL != j) { | |
| 185 | + s = cJSON_Print(j); | |
| 186 | + cJSON_Delete(j); | |
| 187 | + } | |
| 188 | + } | |
| 189 | + return s; | |
| 190 | +} | |
| 191 | + | |
| 192 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x) { | |
| 193 | + if (NULL != x) { | |
| 194 | + cJSON_free(x); | |
| 195 | + } | |
| 196 | +} | |
| 197 | + | |
| 51 | 198 | struct TopLevel * cJSON_ParseTopLevel(const char * s) { |
| 52 | 199 | struct TopLevel * x = NULL; |
| 53 | 200 | if (NULL != s) { |
| @@ -103,6 +250,21 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 103 | 250 | x->date_time[0] = '\0'; |
| 104 | 251 | } |
| 105 | 252 | } |
| 253 | + if (cJSON_HasObjectItem(j, "local-date-class")) { | |
| 254 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "local-date-class"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 255 | + x->local_date_class = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "local-date-class")); | |
| 256 | + if (NULL == x->local_date_class) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 257 | + } | |
| 258 | + if (cJSON_HasObjectItem(j, "offset-date-time-class")) { | |
| 259 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "offset-date-time-class"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 260 | + x->offset_date_time_class = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "offset-date-time-class")); | |
| 261 | + if (NULL == x->offset_date_time_class) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 262 | + } | |
| 263 | + if (cJSON_HasObjectItem(j, "offset-time-class")) { | |
| 264 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "offset-time-class"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 265 | + x->offset_time_class = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "offset-time-class")); | |
| 266 | + if (NULL == x->offset_time_class) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 267 | + } | |
| 106 | 268 | if (!cJSON_HasObjectItem(j, "time")) { cJSON_DeleteTopLevel(x); return NULL; } |
| 107 | 269 | if (cJSON_HasObjectItem(j, "time")) { |
| 108 | 270 | if (!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(j, "time"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| @@ -160,6 +322,15 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 160 | 322 | else { |
| 161 | 323 | cJSON_AddStringToObject(j, "date-time", ""); |
| 162 | 324 | } |
| 325 | + if (NULL != x->local_date_class) { | |
| 326 | + cJSON_AddItemToObject(j, "local-date-class", cJSON_CreateLocalDate(x->local_date_class)); | |
| 327 | + } | |
| 328 | + if (NULL != x->offset_date_time_class) { | |
| 329 | + cJSON_AddItemToObject(j, "offset-date-time-class", cJSON_CreateOffsetDateTime(x->offset_date_time_class)); | |
| 330 | + } | |
| 331 | + if (NULL != x->offset_time_class) { | |
| 332 | + cJSON_AddItemToObject(j, "offset-time-class", cJSON_CreateOffsetTime(x->offset_time_class)); | |
| 333 | + } | |
| 163 | 334 | if (NULL != x->time) { |
| 164 | 335 | cJSON_AddStringToObject(j, "time", x->time); |
| 165 | 336 | } |
| @@ -209,6 +380,15 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 209 | 380 | if (NULL != x->date_time) { |
| 210 | 381 | cJSON_free(x->date_time); |
| 211 | 382 | } |
| 383 | + if (NULL != x->local_date_class) { | |
| 384 | + cJSON_DeleteLocalDate(x->local_date_class); | |
| 385 | + } | |
| 386 | + if (NULL != x->offset_date_time_class) { | |
| 387 | + cJSON_DeleteOffsetDateTime(x->offset_date_time_class); | |
| 388 | + } | |
| 389 | + if (NULL != x->offset_time_class) { | |
| 390 | + cJSON_DeleteOffsetTime(x->offset_time_class); | |
| 391 | + } | |
| 212 | 392 | if (NULL != x->time) { |
| 213 | 393 | cJSON_free(x->time); |
| 214 | 394 | } |
Mschema-cjsondefault / TopLevel.h+30 −0
| @@ -56,10 +56,22 @@ struct ComplexUnionArray { | ||
| 56 | 56 | } value; |
| 57 | 57 | }; |
| 58 | 58 | |
| 59 | +struct LocalDate { | |
| 60 | +}; | |
| 61 | + | |
| 62 | +struct OffsetDateTime { | |
| 63 | +}; | |
| 64 | + | |
| 65 | +struct OffsetTime { | |
| 66 | +}; | |
| 67 | + | |
| 59 | 68 | struct TopLevel { |
| 60 | 69 | list_t * complex_union_array; |
| 61 | 70 | char * date; |
| 62 | 71 | char * date_time; |
| 72 | + struct LocalDate * local_date_class; | |
| 73 | + struct OffsetDateTime * offset_date_time_class; | |
| 74 | + struct OffsetTime * offset_time_class; | |
| 63 | 75 | char * time; |
| 64 | 76 | list_t * union_array; |
| 65 | 77 | }; |
| @@ -71,6 +83,24 @@ void cJSON_DeleteComplexUnionArray(struct ComplexUnionArray * x); | ||
| 71 | 83 | struct ComplexUnionArray * cJSON_ParseComplexUnionArray(const char * s); |
| 72 | 84 | char * cJSON_PrintComplexUnionArray(const struct ComplexUnionArray * x); |
| 73 | 85 | |
| 86 | +struct LocalDate * cJSON_ParseLocalDate(const char * s); | |
| 87 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j); | |
| 88 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x); | |
| 89 | +char * cJSON_PrintLocalDate(const struct LocalDate * x); | |
| 90 | +void cJSON_DeleteLocalDate(struct LocalDate * x); | |
| 91 | + | |
| 92 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s); | |
| 93 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j); | |
| 94 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x); | |
| 95 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x); | |
| 96 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x); | |
| 97 | + | |
| 98 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s); | |
| 99 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j); | |
| 100 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x); | |
| 101 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x); | |
| 102 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x); | |
| 103 | + | |
| 74 | 104 | struct TopLevel * cJSON_ParseTopLevel(const char * s); |
| 75 | 105 | struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j); |
| 76 | 106 | cJSON * cJSON_CreateTopLevel(const struct TopLevel * x); |
Mschema-cplusplusdefault / quicktype.hpp+97 −0
| @@ -8,6 +8,7 @@ | ||
| 8 | 8 | |
| 9 | 9 | #pragma once |
| 10 | 10 | |
| 11 | +#include <optional> | |
| 11 | 12 | #include <variant> |
| 12 | 13 | #include "json.hpp" |
| 13 | 14 | |
| @@ -92,6 +93,36 @@ namespace quicktype { | ||
| 92 | 93 | |
| 93 | 94 | using ComplexUnionArrayElement = std::variant<std::string, ComplexUnionArrayEnum, int64_t>; |
| 94 | 95 | |
| 96 | + class LocalDate { | |
| 97 | + public: | |
| 98 | + LocalDate() = default; | |
| 99 | + virtual ~LocalDate() = default; | |
| 100 | + | |
| 101 | + private: | |
| 102 | + | |
| 103 | + public: | |
| 104 | + }; | |
| 105 | + | |
| 106 | + class OffsetDateTime { | |
| 107 | + public: | |
| 108 | + OffsetDateTime() = default; | |
| 109 | + virtual ~OffsetDateTime() = default; | |
| 110 | + | |
| 111 | + private: | |
| 112 | + | |
| 113 | + public: | |
| 114 | + }; | |
| 115 | + | |
| 116 | + class OffsetTime { | |
| 117 | + public: | |
| 118 | + OffsetTime() = default; | |
| 119 | + virtual ~OffsetTime() = default; | |
| 120 | + | |
| 121 | + private: | |
| 122 | + | |
| 123 | + public: | |
| 124 | + }; | |
| 125 | + | |
| 95 | 126 | class TopLevel { |
| 96 | 127 | public: |
| 97 | 128 | TopLevel() = default; |
| @@ -101,6 +132,9 @@ namespace quicktype { | ||
| 101 | 132 | std::vector<ComplexUnionArrayElement> complex_union_array; |
| 102 | 133 | std::string date; |
| 103 | 134 | std::string date_time; |
| 135 | + std::optional<LocalDate> local_date_class; | |
| 136 | + std::optional<OffsetDateTime> offset_date_time_class; | |
| 137 | + std::optional<OffsetTime> offset_time_class; | |
| 104 | 138 | std::string time; |
| 105 | 139 | std::vector<std::string> union_array; |
| 106 | 140 | |
| @@ -117,6 +151,18 @@ namespace quicktype { | ||
| 117 | 151 | std::string & get_mutable_date_time() { return date_time; } |
| 118 | 152 | void set_date_time(const std::string & value) { this->date_time = value; } |
| 119 | 153 | |
| 154 | + const std::optional<LocalDate> & get_local_date_class() const { return local_date_class; } | |
| 155 | + std::optional<LocalDate> & get_mutable_local_date_class() { return local_date_class; } | |
| 156 | + void set_local_date_class(const std::optional<LocalDate> & value) { this->local_date_class = value; } | |
| 157 | + | |
| 158 | + const std::optional<OffsetDateTime> & get_offset_date_time_class() const { return offset_date_time_class; } | |
| 159 | + std::optional<OffsetDateTime> & get_mutable_offset_date_time_class() { return offset_date_time_class; } | |
| 160 | + void set_offset_date_time_class(const std::optional<OffsetDateTime> & value) { this->offset_date_time_class = value; } | |
| 161 | + | |
| 162 | + const std::optional<OffsetTime> & get_offset_time_class() const { return offset_time_class; } | |
| 163 | + std::optional<OffsetTime> & get_mutable_offset_time_class() { return offset_time_class; } | |
| 164 | + void set_offset_time_class(const std::optional<OffsetTime> & value) { this->offset_time_class = value; } | |
| 165 | + | |
| 120 | 166 | const std::string & get_time() const { return time; } |
| 121 | 167 | std::string & get_mutable_time() { return time; } |
| 122 | 168 | void set_time(const std::string & value) { this->time = value; } |
| @@ -128,6 +174,15 @@ namespace quicktype { | ||
| 128 | 174 | } |
| 129 | 175 | |
| 130 | 176 | namespace quicktype { |
| 177 | +void from_json(const json & j, LocalDate & x); | |
| 178 | +void to_json(json & j, const LocalDate & x); | |
| 179 | + | |
| 180 | +void from_json(const json & j, OffsetDateTime & x); | |
| 181 | +void to_json(json & j, const OffsetDateTime & x); | |
| 182 | + | |
| 183 | +void from_json(const json & j, OffsetTime & x); | |
| 184 | +void to_json(json & j, const OffsetTime & x); | |
| 185 | + | |
| 131 | 186 | void from_json(const json & j, TopLevel & x); |
| 132 | 187 | void to_json(json & j, const TopLevel & x); |
| 133 | 188 | |
| @@ -142,12 +197,51 @@ struct adl_serializer<std::variant<std::string, quicktype::ComplexUnionArrayEnum | ||
| 142 | 197 | }; |
| 143 | 198 | } |
| 144 | 199 | namespace quicktype { |
| 200 | + inline void from_json(const json & j, LocalDate& x) { | |
| 201 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 202 | + (void)j; | |
| 203 | + (void)x; | |
| 204 | + } | |
| 205 | + | |
| 206 | + inline void to_json(json & j, const LocalDate & x) { | |
| 207 | + j = json::object(); | |
| 208 | + (void)x; | |
| 209 | + } | |
| 210 | + | |
| 211 | + inline void from_json(const json & j, OffsetDateTime& x) { | |
| 212 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 213 | + (void)j; | |
| 214 | + (void)x; | |
| 215 | + } | |
| 216 | + | |
| 217 | + inline void to_json(json & j, const OffsetDateTime & x) { | |
| 218 | + j = json::object(); | |
| 219 | + (void)x; | |
| 220 | + } | |
| 221 | + | |
| 222 | + inline void from_json(const json & j, OffsetTime& x) { | |
| 223 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 224 | + (void)j; | |
| 225 | + (void)x; | |
| 226 | + } | |
| 227 | + | |
| 228 | + inline void to_json(json & j, const OffsetTime & x) { | |
| 229 | + j = json::object(); | |
| 230 | + (void)x; | |
| 231 | + } | |
| 232 | + | |
| 145 | 233 | inline void from_json(const json & j, TopLevel& x) { |
| 146 | 234 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 147 | 235 | x.set_complex_union_array(j.at("complex-union-array").get<std::vector<ComplexUnionArrayElement>>()); |
| 148 | 236 | x.set_date(j.at("date").get<std::string>()); |
| 149 | 237 | if (j.find("date-time") != j.end() && !std::regex_match(j.at("date-time").get<std::string>(), std::regex("^[0-9]{4}-[0-9]{2}-[0-9]{2}T.*$"))) throw std::runtime_error("Expected date-time"); |
| 150 | 238 | x.set_date_time(j.at("date-time").get<std::string>()); |
| 239 | + if (j.find("local-date-class") != j.end() && j.at("local-date-class").is_null()) throw std::runtime_error("Unexpected null"); | |
| 240 | + x.set_local_date_class(get_stack_optional<LocalDate>(j, "local-date-class")); | |
| 241 | + if (j.find("offset-date-time-class") != j.end() && j.at("offset-date-time-class").is_null()) throw std::runtime_error("Unexpected null"); | |
| 242 | + x.set_offset_date_time_class(get_stack_optional<OffsetDateTime>(j, "offset-date-time-class")); | |
| 243 | + if (j.find("offset-time-class") != j.end() && j.at("offset-time-class").is_null()) throw std::runtime_error("Unexpected null"); | |
| 244 | + x.set_offset_time_class(get_stack_optional<OffsetTime>(j, "offset-time-class")); | |
| 151 | 245 | x.set_time(j.at("time").get<std::string>()); |
| 152 | 246 | x.set_union_array(j.at("union-array").get<std::vector<std::string>>()); |
| 153 | 247 | } |
| @@ -157,6 +251,9 @@ namespace quicktype { | ||
| 157 | 251 | j["complex-union-array"] = x.get_complex_union_array(); |
| 158 | 252 | j["date"] = x.get_date(); |
| 159 | 253 | j["date-time"] = x.get_date_time(); |
| 254 | + j["local-date-class"] = x.get_local_date_class(); | |
| 255 | + j["offset-date-time-class"] = x.get_offset_date_time_class(); | |
| 256 | + j["offset-time-class"] = x.get_offset_time_class(); | |
| 160 | 257 | j["time"] = x.get_time(); |
| 161 | 258 | j["union-array"] = x.get_union_array(); |
| 162 | 259 | } |
Mschema-crystaldefault / TopLevel.cr+24 −0
| @@ -11,10 +11,34 @@ class TopLevel | ||
| 11 | 11 | @[JSON::Field(key: "date-time")] |
| 12 | 12 | property date_time : String |
| 13 | 13 | |
| 14 | + @[JSON::Field(key: "local-date-class")] | |
| 15 | + property local_date_class : LocalDate? | |
| 16 | + | |
| 17 | + @[JSON::Field(key: "offset-date-time-class")] | |
| 18 | + property offset_date_time_class : OffsetDateTime? | |
| 19 | + | |
| 20 | + @[JSON::Field(key: "offset-time-class")] | |
| 21 | + property offset_time_class : OffsetTime? | |
| 22 | + | |
| 14 | 23 | property time : String |
| 15 | 24 | |
| 16 | 25 | @[JSON::Field(key: "union-array")] |
| 17 | 26 | property union_array : Array(String) |
| 18 | 27 | end |
| 19 | 28 | |
| 29 | +class LocalDate | |
| 30 | + include JSON::Serializable | |
| 31 | + | |
| 32 | +end | |
| 33 | + | |
| 34 | +class OffsetDateTime | |
| 35 | + include JSON::Serializable | |
| 36 | + | |
| 37 | +end | |
| 38 | + | |
| 39 | +class OffsetTime | |
| 40 | + include JSON::Serializable | |
| 41 | + | |
| 42 | +end | |
| 43 | + | |
| 20 | 44 | alias ComplexUnionArray = Int64 | String |
Mschema-csharp-recordsdefault / QuickType.cs+21 −0
| @@ -34,6 +34,15 @@ namespace QuickType | ||
| 34 | 34 | [JsonProperty("date-time", Required = Required.Always)] |
| 35 | 35 | public DateTimeOffset DateTime { get; set; } |
| 36 | 36 | |
| 37 | + [JsonProperty("local-date-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 38 | + public LocalDate? LocalDateClass { get; set; } | |
| 39 | + | |
| 40 | + [JsonProperty("offset-date-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 41 | + public OffsetDateTime? OffsetDateTimeClass { get; set; } | |
| 42 | + | |
| 43 | + [JsonProperty("offset-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 44 | + public OffsetTime? OffsetTimeClass { get; set; } | |
| 45 | + | |
| 37 | 46 | [JsonProperty("time", Required = Required.Always)] |
| 38 | 47 | public DateTimeOffset Time { get; set; } |
| 39 | 48 | |
| @@ -41,6 +50,18 @@ namespace QuickType | ||
| 41 | 50 | public DateTimeOffset[] UnionArray { get; set; } |
| 42 | 51 | } |
| 43 | 52 | |
| 53 | + public partial record LocalDate | |
| 54 | + { | |
| 55 | + } | |
| 56 | + | |
| 57 | + public partial record OffsetDateTime | |
| 58 | + { | |
| 59 | + } | |
| 60 | + | |
| 61 | + public partial record OffsetTime | |
| 62 | + { | |
| 63 | + } | |
| 64 | + | |
| 44 | 65 | public enum ComplexUnionArrayEnum { Foo, Bar }; |
| 45 | 66 | |
| 46 | 67 | public partial struct ComplexUnionArrayElement |
Mschema-csharp-SystemTextJsondefault / QuickType.cs+24 −0
| @@ -34,6 +34,18 @@ namespace QuickType | ||
| 34 | 34 | [JsonPropertyName("date-time")] |
| 35 | 35 | public DateTimeOffset DateTime { get; set; } |
| 36 | 36 | |
| 37 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 38 | + [JsonPropertyName("local-date-class")] | |
| 39 | + public LocalDate? LocalDateClass { get; set; } | |
| 40 | + | |
| 41 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 42 | + [JsonPropertyName("offset-date-time-class")] | |
| 43 | + public OffsetDateTime? OffsetDateTimeClass { get; set; } | |
| 44 | + | |
| 45 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 46 | + [JsonPropertyName("offset-time-class")] | |
| 47 | + public OffsetTime? OffsetTimeClass { get; set; } | |
| 48 | + | |
| 37 | 49 | [JsonRequired] |
| 38 | 50 | [JsonPropertyName("time")] |
| 39 | 51 | public DateTimeOffset Time { get; set; } |
| @@ -43,6 +55,18 @@ namespace QuickType | ||
| 43 | 55 | public DateTimeOffset[] UnionArray { get; set; } |
| 44 | 56 | } |
| 45 | 57 | |
| 58 | + public partial class LocalDate | |
| 59 | + { | |
| 60 | + } | |
| 61 | + | |
| 62 | + public partial class OffsetDateTime | |
| 63 | + { | |
| 64 | + } | |
| 65 | + | |
| 66 | + public partial class OffsetTime | |
| 67 | + { | |
| 68 | + } | |
| 69 | + | |
| 46 | 70 | public enum ComplexUnionArrayEnum { Foo, Bar }; |
| 47 | 71 | |
| 48 | 72 | public partial struct ComplexUnionArrayElement |
Mschema-csharpdefault / QuickType.cs+21 −0
| @@ -34,6 +34,15 @@ namespace QuickType | ||
| 34 | 34 | [JsonProperty("date-time", Required = Required.Always)] |
| 35 | 35 | public DateTimeOffset DateTime { get; set; } |
| 36 | 36 | |
| 37 | + [JsonProperty("local-date-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 38 | + public LocalDate? LocalDateClass { get; set; } | |
| 39 | + | |
| 40 | + [JsonProperty("offset-date-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 41 | + public OffsetDateTime? OffsetDateTimeClass { get; set; } | |
| 42 | + | |
| 43 | + [JsonProperty("offset-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 44 | + public OffsetTime? OffsetTimeClass { get; set; } | |
| 45 | + | |
| 37 | 46 | [JsonProperty("time", Required = Required.Always)] |
| 38 | 47 | public DateTimeOffset Time { get; set; } |
| 39 | 48 | |
| @@ -41,6 +50,18 @@ namespace QuickType | ||
| 41 | 50 | public DateTimeOffset[] UnionArray { get; set; } |
| 42 | 51 | } |
| 43 | 52 | |
| 53 | + public partial class LocalDate | |
| 54 | + { | |
| 55 | + } | |
| 56 | + | |
| 57 | + public partial class OffsetDateTime | |
| 58 | + { | |
| 59 | + } | |
| 60 | + | |
| 61 | + public partial class OffsetTime | |
| 62 | + { | |
| 63 | + } | |
| 64 | + | |
| 44 | 65 | public enum ComplexUnionArrayEnum { Foo, Bar }; |
| 45 | 66 | |
| 46 | 67 | public partial struct ComplexUnionArrayElement |
Mschema-dartdefault / TopLevel.dart+42 −0
| @@ -12,6 +12,9 @@ class TopLevel { | ||
| 12 | 12 | final List<dynamic> complexUnionArray; |
| 13 | 13 | final DateTime date; |
| 14 | 14 | final DateTime dateTime; |
| 15 | + final LocalDate? localDateClass; | |
| 16 | + final OffsetDateTime? offsetDateTimeClass; | |
| 17 | + final OffsetTime? offsetTimeClass; | |
| 15 | 18 | final String time; |
| 16 | 19 | final List<String> unionArray; |
| 17 | 20 | |
| @@ -19,6 +22,9 @@ class TopLevel { | ||
| 19 | 22 | required this.complexUnionArray, |
| 20 | 23 | required this.date, |
| 21 | 24 | required this.dateTime, |
| 25 | + this.localDateClass, | |
| 26 | + this.offsetDateTimeClass, | |
| 27 | + this.offsetTimeClass, | |
| 22 | 28 | required this.time, |
| 23 | 29 | required this.unionArray, |
| 24 | 30 | }); |
| @@ -27,6 +33,9 @@ class TopLevel { | ||
| 27 | 33 | complexUnionArray: List<dynamic>.from(json["complex-union-array"].map((x) => x)), |
| 28 | 34 | date: DateTime.parse(json["date"]), |
| 29 | 35 | dateTime: DateTime.parse(json["date-time"]), |
| 36 | + localDateClass: json["local-date-class"] == null ? null : LocalDate.fromJson(json["local-date-class"]), | |
| 37 | + offsetDateTimeClass: json["offset-date-time-class"] == null ? null : OffsetDateTime.fromJson(json["offset-date-time-class"]), | |
| 38 | + offsetTimeClass: json["offset-time-class"] == null ? null : OffsetTime.fromJson(json["offset-time-class"]), | |
| 30 | 39 | time: json["time"], |
| 31 | 40 | unionArray: List<String>.from(json["union-array"].map((x) => x)), |
| 32 | 41 | ); |
| @@ -35,6 +44,9 @@ class TopLevel { | ||
| 35 | 44 | "complex-union-array": List<dynamic>.from(complexUnionArray.map((x) => x)), |
| 36 | 45 | "date": "${date.year.toString().padLeft(4, '0')}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}", |
| 37 | 46 | "date-time": dateTime.toIso8601String(), |
| 47 | + "local-date-class": localDateClass?.toJson(), | |
| 48 | + "offset-date-time-class": offsetDateTimeClass?.toJson(), | |
| 49 | + "offset-time-class": offsetTimeClass?.toJson(), | |
| 38 | 50 | "time": time, |
| 39 | 51 | "union-array": List<dynamic>.from(unionArray.map((x) => x)), |
| 40 | 52 | }; |
| @@ -50,6 +62,36 @@ final complexUnionArrayEnumValues = EnumValues({ | ||
| 50 | 62 | "bar": ComplexUnionArrayEnum.BAR |
| 51 | 63 | }); |
| 52 | 64 | |
| 65 | +class LocalDate { | |
| 66 | + LocalDate(); | |
| 67 | + | |
| 68 | + factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate( | |
| 69 | + ); | |
| 70 | + | |
| 71 | + Map<String, dynamic> toJson() => { | |
| 72 | + }; | |
| 73 | +} | |
| 74 | + | |
| 75 | +class OffsetDateTime { | |
| 76 | + OffsetDateTime(); | |
| 77 | + | |
| 78 | + factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime( | |
| 79 | + ); | |
| 80 | + | |
| 81 | + Map<String, dynamic> toJson() => { | |
| 82 | + }; | |
| 83 | +} | |
| 84 | + | |
| 85 | +class OffsetTime { | |
| 86 | + OffsetTime(); | |
| 87 | + | |
| 88 | + factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime( | |
| 89 | + ); | |
| 90 | + | |
| 91 | + Map<String, dynamic> toJson() => { | |
| 92 | + }; | |
| 93 | +} | |
| 94 | + | |
| 53 | 95 | class EnumValues<T> { |
| 54 | 96 | Map<String, T> map; |
| 55 | 97 | late Map<T, String> reverseMap; |
Mschema-elixirdefault / QuickType.ex+97 −1
| @@ -5,14 +5,104 @@ | ||
| 5 | 5 | # Decode a JSON string: TopLevel.from_json(data) |
| 6 | 6 | # Encode into a JSON string: TopLevel.to_json(struct) |
| 7 | 7 | |
| 8 | +defmodule LocalDate do | |
| 9 | + defstruct [] | |
| 10 | + | |
| 11 | + @type t :: %__MODULE__{ | |
| 12 | + } | |
| 13 | + | |
| 14 | + def from_map(m) when is_map(m) do | |
| 15 | + %LocalDate{ | |
| 16 | + } | |
| 17 | + end | |
| 18 | + | |
| 19 | + def from_json(json) do | |
| 20 | + json | |
| 21 | + |> Jason.decode!() | |
| 22 | + |> from_map() | |
| 23 | + end | |
| 24 | + | |
| 25 | + def to_map(_struct) do | |
| 26 | + %{ | |
| 27 | + } | |
| 28 | + end | |
| 29 | + | |
| 30 | + def to_json(struct) do | |
| 31 | + struct | |
| 32 | + |> to_map() | |
| 33 | + |> Jason.encode!() | |
| 34 | + end | |
| 35 | +end | |
| 36 | + | |
| 37 | +defmodule OffsetDateTime do | |
| 38 | + defstruct [] | |
| 39 | + | |
| 40 | + @type t :: %__MODULE__{ | |
| 41 | + } | |
| 42 | + | |
| 43 | + def from_map(m) when is_map(m) do | |
| 44 | + %OffsetDateTime{ | |
| 45 | + } | |
| 46 | + end | |
| 47 | + | |
| 48 | + def from_json(json) do | |
| 49 | + json | |
| 50 | + |> Jason.decode!() | |
| 51 | + |> from_map() | |
| 52 | + end | |
| 53 | + | |
| 54 | + def to_map(_struct) do | |
| 55 | + %{ | |
| 56 | + } | |
| 57 | + end | |
| 58 | + | |
| 59 | + def to_json(struct) do | |
| 60 | + struct | |
| 61 | + |> to_map() | |
| 62 | + |> Jason.encode!() | |
| 63 | + end | |
| 64 | +end | |
| 65 | + | |
| 66 | +defmodule OffsetTime do | |
| 67 | + defstruct [] | |
| 68 | + | |
| 69 | + @type t :: %__MODULE__{ | |
| 70 | + } | |
| 71 | + | |
| 72 | + def from_map(m) when is_map(m) do | |
| 73 | + %OffsetTime{ | |
| 74 | + } | |
| 75 | + end | |
| 76 | + | |
| 77 | + def from_json(json) do | |
| 78 | + json | |
| 79 | + |> Jason.decode!() | |
| 80 | + |> from_map() | |
| 81 | + end | |
| 82 | + | |
| 83 | + def to_map(_struct) do | |
| 84 | + %{ | |
| 85 | + } | |
| 86 | + end | |
| 87 | + | |
| 88 | + def to_json(struct) do | |
| 89 | + struct | |
| 90 | + |> to_map() | |
| 91 | + |> Jason.encode!() | |
| 92 | + end | |
| 93 | +end | |
| 94 | + | |
| 8 | 95 | defmodule TopLevel do |
| 9 | 96 | @enforce_keys [:complex_union_array, :date, :date_time, :time, :union_array] |
| 10 | - defstruct [:complex_union_array, :date, :date_time, :time, :union_array] | |
| 97 | + defstruct [:complex_union_array, :date, :date_time, :local_date_class, :offset_date_time_class, :offset_time_class, :time, :union_array] | |
| 11 | 98 | |
| 12 | 99 | @type t :: %__MODULE__{ |
| 13 | 100 | complex_union_array: [integer() | String.t()], |
| 14 | 101 | date: String.t(), |
| 15 | 102 | date_time: String.t(), |
| 103 | + local_date_class: LocalDate.t() | nil, | |
| 104 | + offset_date_time_class: OffsetDateTime.t() | nil, | |
| 105 | + offset_time_class: OffsetTime.t() | nil, | |
| 16 | 106 | time: String.t(), |
| 17 | 107 | union_array: [String.t()] |
| 18 | 108 | } |
| @@ -60,6 +150,9 @@ defmodule TopLevel do | ||
| 60 | 150 | complex_union_array: Enum.map(m["complex-union-array"], &decode_complex_union_array_element/1), |
| 61 | 151 | date: decode_date(m["date"]), |
| 62 | 152 | date_time: decode_date_time(m["date-time"]), |
| 153 | + local_date_class: m["local-date-class"] && LocalDate.from_map(m["local-date-class"]), | |
| 154 | + offset_date_time_class: m["offset-date-time-class"] && OffsetDateTime.from_map(m["offset-date-time-class"]), | |
| 155 | + offset_time_class: m["offset-time-class"] && OffsetTime.from_map(m["offset-time-class"]), | |
| 63 | 156 | time: decode_time(m["time"]), |
| 64 | 157 | union_array: decode_union_array(m["union-array"]), |
| 65 | 158 | } |
| @@ -76,6 +169,9 @@ defmodule TopLevel do | ||
| 76 | 169 | "complex-union-array" => struct.complex_union_array && Enum.map(struct.complex_union_array, &encode_complex_union_array_element/1), |
| 77 | 170 | "date" => struct.date, |
| 78 | 171 | "date-time" => struct.date_time, |
| 172 | + "local-date-class" => struct.local_date_class && LocalDate.to_map(struct.local_date_class), | |
| 173 | + "offset-date-time-class" => struct.offset_date_time_class && OffsetDateTime.to_map(struct.offset_date_time_class), | |
| 174 | + "offset-time-class" => struct.offset_time_class && OffsetTime.to_map(struct.offset_time_class), | |
| 79 | 175 | "time" => struct.time, |
| 80 | 176 | "union-array" => struct.union_array, |
| 81 | 177 | } |
Mschema-elmdefault / QuickType.elm+54 −0
| @@ -15,6 +15,9 @@ module QuickType exposing | ||
| 15 | 15 | ( QuickType |
| 16 | 16 | , quickTypeToString |
| 17 | 17 | , quickType |
| 18 | + , LocalDate | |
| 19 | + , OffsetDateTime | |
| 20 | + , OffsetTime | |
| 18 | 21 | , ComplexUnionArray(..) |
| 19 | 22 | ) |
| 20 | 23 | |
| @@ -27,6 +30,9 @@ type alias QuickType = | ||
| 27 | 30 | { complexUnionArray : List ComplexUnionArray |
| 28 | 31 | , date : String |
| 29 | 32 | , dateTime : String |
| 33 | + , localDateClass : Maybe LocalDate | |
| 34 | + , offsetDateTimeClass : Maybe OffsetDateTime | |
| 35 | + , offsetTimeClass : Maybe OffsetTime | |
| 30 | 36 | , time : String |
| 31 | 37 | , unionArray : List String |
| 32 | 38 | } |
| @@ -35,6 +41,18 @@ type ComplexUnionArray | ||
| 35 | 41 | = IntegerInComplexUnionArray Int |
| 36 | 42 | | StringInComplexUnionArray String |
| 37 | 43 | |
| 44 | +type alias LocalDate = | |
| 45 | + { | |
| 46 | + } | |
| 47 | + | |
| 48 | +type alias OffsetDateTime = | |
| 49 | + { | |
| 50 | + } | |
| 51 | + | |
| 52 | +type alias OffsetTime = | |
| 53 | + { | |
| 54 | + } | |
| 55 | + | |
| 38 | 56 | -- decoders and encoders |
| 39 | 57 | optionalField key decoder fallback = |
| 40 | 58 | Jdec.dict Jdec.value |
| @@ -52,6 +70,9 @@ quickType = | ||
| 52 | 70 | |> Jpipe.required "complex-union-array" (Jdec.list complexUnionArray ) |
| 53 | 71 | |> Jpipe.required "date" Jdec.string |
| 54 | 72 | |> Jpipe.required "date-time" Jdec.string |
| 73 | + |> Jpipe.custom (optionalField "local-date-class" (Jdec.map Just localDate) Nothing) | |
| 74 | + |> Jpipe.custom (optionalField "offset-date-time-class" (Jdec.map Just offsetDateTime) Nothing) | |
| 75 | + |> Jpipe.custom (optionalField "offset-time-class" (Jdec.map Just offsetTime) Nothing) | |
| 55 | 76 | |> Jpipe.required "time" Jdec.string |
| 56 | 77 | |> Jpipe.required "union-array" (Jdec.list Jdec.string ) |
| 57 | 78 | |
| @@ -61,6 +82,9 @@ encodeQuickType x = | ||
| 61 | 82 | [ ("complex-union-array", Jenc.list encodeComplexUnionArray x.complexUnionArray) |
| 62 | 83 | , ("date", Jenc.string x.date) |
| 63 | 84 | , ("date-time", Jenc.string x.dateTime) |
| 85 | + , ("local-date-class", makeNullableEncoder encodeLocalDate x.localDateClass) | |
| 86 | + , ("offset-date-time-class", makeNullableEncoder encodeOffsetDateTime x.offsetDateTimeClass) | |
| 87 | + , ("offset-time-class", makeNullableEncoder encodeOffsetTime x.offsetTimeClass) | |
| 64 | 88 | , ("time", Jenc.string x.time) |
| 65 | 89 | , ("union-array", Jenc.list Jenc.string x.unionArray) |
| 66 | 90 | ] |
| @@ -77,6 +101,36 @@ encodeComplexUnionArray x = case x of | ||
| 77 | 101 | IntegerInComplexUnionArray y -> Jenc.int y |
| 78 | 102 | StringInComplexUnionArray y -> Jenc.string y |
| 79 | 103 | |
| 104 | +localDate : Jdec.Decoder LocalDate | |
| 105 | +localDate = | |
| 106 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate) | |
| 107 | + | |
| 108 | +encodeLocalDate : LocalDate -> Jenc.Value | |
| 109 | +encodeLocalDate x = | |
| 110 | + Jenc.object | |
| 111 | + [ | |
| 112 | + ] | |
| 113 | + | |
| 114 | +offsetDateTime : Jdec.Decoder OffsetDateTime | |
| 115 | +offsetDateTime = | |
| 116 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime) | |
| 117 | + | |
| 118 | +encodeOffsetDateTime : OffsetDateTime -> Jenc.Value | |
| 119 | +encodeOffsetDateTime x = | |
| 120 | + Jenc.object | |
| 121 | + [ | |
| 122 | + ] | |
| 123 | + | |
| 124 | +offsetTime : Jdec.Decoder OffsetTime | |
| 125 | +offsetTime = | |
| 126 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime) | |
| 127 | + | |
| 128 | +encodeOffsetTime : OffsetTime -> Jenc.Value | |
| 129 | +encodeOffsetTime x = | |
| 130 | + Jenc.object | |
| 131 | + [ | |
| 132 | + ] | |
| 133 | + | |
| 80 | 134 | --- encoder helpers |
| 81 | 135 | |
| 82 | 136 | makeNullableEncoder : (a -> Jenc.Value) -> Maybe a -> Jenc.Value |
Mschema-flowdefault / TopLevel.js+26 −5
| @@ -10,11 +10,14 @@ | ||
| 10 | 10 | // match the expected interface, even if the JSON is valid. |
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | - "complex-union-array": ComplexUnionArrayElement[]; | |
| 14 | - date: Date; | |
| 15 | - "date-time": Date; | |
| 16 | - time: string; | |
| 17 | - "union-array": string[]; | |
| 13 | + "complex-union-array": ComplexUnionArrayElement[]; | |
| 14 | + date: Date; | |
| 15 | + "date-time": Date; | |
| 16 | + "local-date-class"?: LocalDate; | |
| 17 | + "offset-date-time-class"?: OffsetDateTime; | |
| 18 | + "offset-time-class"?: OffsetTime; | |
| 19 | + time: string; | |
| 20 | + "union-array": string[]; | |
| 18 | 21 | }; |
| 19 | 22 | |
| 20 | 23 | export type ComplexUnionArrayElement = Date | ComplexUnionArrayEnum | number; |
| @@ -23,6 +26,15 @@ export type ComplexUnionArrayEnum = | ||
| 23 | 26 | "foo" |
| 24 | 27 | | "bar"; |
| 25 | 28 | |
| 29 | +export type LocalDate = { | |
| 30 | +}; | |
| 31 | + | |
| 32 | +export type OffsetDateTime = { | |
| 33 | +}; | |
| 34 | + | |
| 35 | +export type OffsetTime = { | |
| 36 | +}; | |
| 37 | + | |
| 26 | 38 | // Converts JSON strings to/from your types |
| 27 | 39 | // and asserts the results of JSON.parse at runtime |
| 28 | 40 | function toTopLevel(json: string): TopLevel { |
| @@ -212,9 +224,18 @@ const typeMap: any = { | ||
| 212 | 224 | { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) }, |
| 213 | 225 | { json: "date", js: "date", typ: Date }, |
| 214 | 226 | { json: "date-time", js: "date-time", typ: Date }, |
| 227 | + { json: "local-date-class", js: "local-date-class", typ: u(undefined, r("LocalDate")) }, | |
| 228 | + { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, r("OffsetDateTime")) }, | |
| 229 | + { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, r("OffsetTime")) }, | |
| 215 | 230 | { json: "time", js: "time", typ: "" }, |
| 216 | 231 | { json: "union-array", js: "union-array", typ: a("") }, |
| 217 | 232 | ], false), |
| 233 | + "LocalDate": o([ | |
| 234 | + ], false), | |
| 235 | + "OffsetDateTime": o([ | |
| 236 | + ], false), | |
| 237 | + "OffsetTime": o([ | |
| 238 | + ], false), | |
| 218 | 239 | "ComplexUnionArrayEnum": [ |
| 219 | 240 | "foo", |
| 220 | 241 | "bar", |
Aschema-golang-leading-commentsdefault / multi / LocalDate.go+4 −0
| @@ -0,0 +1,4 @@ | ||
| 1 | +package main | |
| 2 | + | |
| 3 | +type LocalDate struct { | |
| 4 | +} |
Aschema-golang-leading-commentsdefault / multi / OffsetDateTime.go+4 −0
| @@ -0,0 +1,4 @@ | ||
| 1 | +package main | |
| 2 | + | |
| 3 | +type OffsetDateTime struct { | |
| 4 | +} |
Aschema-golang-leading-commentsdefault / multi / OffsetTime.go+4 −0
| @@ -0,0 +1,4 @@ | ||
| 1 | +package main | |
| 2 | + | |
| 3 | +type OffsetTime struct { | |
| 4 | +} |
Mschema-golang-leading-commentsdefault / multi / TopLevel.go+8 −5
| @@ -14,9 +14,12 @@ func (r *TopLevel) Marshal() ([]byte, error) { | ||
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | type TopLevel struct { |
| 17 | - ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 18 | - Date string `json:"date"` | |
| 19 | - DateTime time.Time `json:"date-time"` | |
| 20 | - Time string `json:"time"` | |
| 21 | - UnionArray []string `json:"union-array"` | |
| 17 | + ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 18 | + Date string `json:"date"` | |
| 19 | + DateTime time.Time `json:"date-time"` | |
| 20 | + LocalDateClass *LocalDate `json:"local-date-class,omitempty"` | |
| 21 | + OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"` | |
| 22 | + OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"` | |
| 23 | + Time string `json:"time"` | |
| 24 | + UnionArray []string `json:"union-array"` | |
| 22 | 25 | } |
Mschema-golang-leading-commentsdefault / quicktype.go+17 −5
| @@ -17,11 +17,23 @@ func (r *TopLevel) Marshal() ([]byte, error) { | ||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | type TopLevel struct { |
| 20 | - ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 21 | - Date string `json:"date"` | |
| 22 | - DateTime time.Time `json:"date-time"` | |
| 23 | - Time string `json:"time"` | |
| 24 | - UnionArray []string `json:"union-array"` | |
| 20 | + ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 21 | + Date string `json:"date"` | |
| 22 | + DateTime time.Time `json:"date-time"` | |
| 23 | + LocalDateClass *LocalDate `json:"local-date-class,omitempty"` | |
| 24 | + OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"` | |
| 25 | + OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"` | |
| 26 | + Time string `json:"time"` | |
| 27 | + UnionArray []string `json:"union-array"` | |
| 28 | +} | |
| 29 | + | |
| 30 | +type LocalDate struct { | |
| 31 | +} | |
| 32 | + | |
| 33 | +type OffsetDateTime struct { | |
| 34 | +} | |
| 35 | + | |
| 36 | +type OffsetTime struct { | |
| 25 | 37 | } |
| 26 | 38 | |
| 27 | 39 | type ComplexUnionArrayEnum string |
Mschema-golangdefault / quicktype.go+17 −5
| @@ -23,11 +23,23 @@ func (r *TopLevel) Marshal() ([]byte, error) { | ||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | type TopLevel struct { |
| 26 | - ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 27 | - Date string `json:"date"` | |
| 28 | - DateTime time.Time `json:"date-time"` | |
| 29 | - Time string `json:"time"` | |
| 30 | - UnionArray []string `json:"union-array"` | |
| 26 | + ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 27 | + Date string `json:"date"` | |
| 28 | + DateTime time.Time `json:"date-time"` | |
| 29 | + LocalDateClass *LocalDate `json:"local-date-class,omitempty"` | |
| 30 | + OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"` | |
| 31 | + OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"` | |
| 32 | + Time string `json:"time"` | |
| 33 | + UnionArray []string `json:"union-array"` | |
| 34 | +} | |
| 35 | + | |
| 36 | +type LocalDate struct { | |
| 37 | +} | |
| 38 | + | |
| 39 | +type OffsetDateTime struct { | |
| 40 | +} | |
| 41 | + | |
| 42 | +type OffsetTime struct { | |
| 31 | 43 | } |
| 32 | 44 | |
| 33 | 45 | type ComplexUnionArrayEnum string |
Mschema-haskelldefault / QuickType.hs+43 −1
| @@ -3,6 +3,9 @@ | ||
| 3 | 3 | |
| 4 | 4 | module QuickType |
| 5 | 5 | ( QuickType (..) |
| 6 | + , LocalDate (..) | |
| 7 | + , OffsetDateTime (..) | |
| 8 | + , OffsetTime (..) | |
| 6 | 9 | , ComplexUnionArray (..) |
| 7 | 10 | , decodeTopLevel |
| 8 | 11 | ) where |
| @@ -17,6 +20,9 @@ data QuickType = QuickType | ||
| 17 | 20 | { complexUnionArrayQuickType :: [ComplexUnionArray] |
| 18 | 21 | , dateQuickType :: Text |
| 19 | 22 | , dateTimeQuickType :: Text |
| 23 | + , localDateClassQuickType :: Maybe LocalDate | |
| 24 | + , offsetDateTimeClassQuickType :: Maybe OffsetDateTime | |
| 25 | + , offsetTimeClassQuickType :: Maybe OffsetTime | |
| 20 | 26 | , timeQuickType :: Text |
| 21 | 27 | , unionArrayQuickType :: [Text] |
| 22 | 28 | } deriving (Show) |
| @@ -26,15 +32,30 @@ data ComplexUnionArray | ||
| 26 | 32 | | StringInComplexUnionArray Text |
| 27 | 33 | deriving (Show) |
| 28 | 34 | |
| 35 | +data LocalDate = LocalDate | |
| 36 | + { | |
| 37 | + } deriving (Show) | |
| 38 | + | |
| 39 | +data OffsetDateTime = OffsetDateTime | |
| 40 | + { | |
| 41 | + } deriving (Show) | |
| 42 | + | |
| 43 | +data OffsetTime = OffsetTime | |
| 44 | + { | |
| 45 | + } deriving (Show) | |
| 46 | + | |
| 29 | 47 | decodeTopLevel :: ByteString -> Maybe QuickType |
| 30 | 48 | decodeTopLevel = decode |
| 31 | 49 | |
| 32 | 50 | instance ToJSON QuickType where |
| 33 | - toJSON (QuickType complexUnionArrayQuickType dateQuickType dateTimeQuickType timeQuickType unionArrayQuickType) = | |
| 51 | + toJSON (QuickType complexUnionArrayQuickType dateQuickType dateTimeQuickType localDateClassQuickType offsetDateTimeClassQuickType offsetTimeClassQuickType timeQuickType unionArrayQuickType) = | |
| 34 | 52 | object $ foldMap (maybe [] pure) |
| 35 | 53 | [ Just $ "complex-union-array" .= complexUnionArrayQuickType |
| 36 | 54 | , Just $ "date" .= dateQuickType |
| 37 | 55 | , Just $ "date-time" .= dateTimeQuickType |
| 56 | + , ("local-date-class" .=) <$> localDateClassQuickType | |
| 57 | + , ("offset-date-time-class" .=) <$> offsetDateTimeClassQuickType | |
| 58 | + , ("offset-time-class" .=) <$> offsetTimeClassQuickType | |
| 38 | 59 | , Just $ "time" .= timeQuickType |
| 39 | 60 | , Just $ "union-array" .= unionArrayQuickType |
| 40 | 61 | ] |
| @@ -44,6 +65,9 @@ instance FromJSON QuickType where | ||
| 44 | 65 | <$> v .: "complex-union-array" |
| 45 | 66 | <*> v .: "date" |
| 46 | 67 | <*> v .: "date-time" |
| 68 | + <*> v .:! "local-date-class" | |
| 69 | + <*> v .:! "offset-date-time-class" | |
| 70 | + <*> v .:! "offset-time-class" | |
| 47 | 71 | <*> v .: "time" |
| 48 | 72 | <*> v .: "union-array" |
| 49 | 73 | |
| @@ -54,3 +78,21 @@ instance ToJSON ComplexUnionArray where | ||
| 54 | 78 | instance FromJSON ComplexUnionArray where |
| 55 | 79 | parseJSON xs@(Number _) = (fmap IntegerInComplexUnionArray . parseJSON) xs |
| 56 | 80 | parseJSON xs@(String _) = (fmap StringInComplexUnionArray . parseJSON) xs |
| 81 | + | |
| 82 | +instance ToJSON LocalDate where | |
| 83 | + toJSON = \_ -> emptyObject | |
| 84 | + | |
| 85 | +instance FromJSON LocalDate where | |
| 86 | + parseJSON (Object _) = return LocalDate | |
| 87 | + | |
| 88 | +instance ToJSON OffsetDateTime where | |
| 89 | + toJSON = \_ -> emptyObject | |
| 90 | + | |
| 91 | +instance FromJSON OffsetDateTime where | |
| 92 | + parseJSON (Object _) = return OffsetDateTime | |
| 93 | + | |
| 94 | +instance ToJSON OffsetTime where | |
| 95 | + toJSON = \_ -> emptyObject | |
| 96 | + | |
| 97 | +instance FromJSON OffsetTime where | |
| 98 | + parseJSON (Object _) = return OffsetTime |
Aschema-java-lombokdefault / src / main / java / io / quicktype / LocalDateClassClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class LocalDateClassClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClassClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetDateTimeClassClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetTimeClassClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetTimeClassClass { | |
| 7 | +} |
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -10,6 +10,9 @@ public class TopLevel { | ||
| 10 | 10 | private List<ComplexUnionArrayElement> complexUnionArray; |
| 11 | 11 | private LocalDate date; |
| 12 | 12 | private OffsetDateTime dateTime; |
| 13 | + private LocalDateClassClass localDateClass; | |
| 14 | + private OffsetDateTimeClassClass offsetDateTimeClass; | |
| 15 | + private OffsetTimeClassClass offsetTimeClass; | |
| 13 | 16 | private OffsetTime time; |
| 14 | 17 | private List<UnionArray> unionArray; |
| 15 | 18 | |
| @@ -29,6 +32,21 @@ public class TopLevel { | ||
| 29 | 32 | @JsonSetter(nulls = Nulls.FAIL) |
| 30 | 33 | public void setDateTime(OffsetDateTime value) { this.dateTime = value; } |
| 31 | 34 | |
| 35 | + @JsonProperty("local-date-class") | |
| 36 | + public LocalDateClassClass getLocalDateClass() { return localDateClass; } | |
| 37 | + @JsonProperty("local-date-class") | |
| 38 | + public void setLocalDateClass(LocalDateClassClass value) { this.localDateClass = value; } | |
| 39 | + | |
| 40 | + @JsonProperty("offset-date-time-class") | |
| 41 | + public OffsetDateTimeClassClass getOffsetDateTimeClass() { return offsetDateTimeClass; } | |
| 42 | + @JsonProperty("offset-date-time-class") | |
| 43 | + public void setOffsetDateTimeClass(OffsetDateTimeClassClass value) { this.offsetDateTimeClass = value; } | |
| 44 | + | |
| 45 | + @JsonProperty("offset-time-class") | |
| 46 | + public OffsetTimeClassClass getOffsetTimeClass() { return offsetTimeClass; } | |
| 47 | + @JsonProperty("offset-time-class") | |
| 48 | + public void setOffsetTimeClass(OffsetTimeClassClass value) { this.offsetTimeClass = value; } | |
| 49 | + | |
| 32 | 50 | @JsonProperty("time") |
| 33 | 51 | public OffsetTime getTime() { return time; } |
| 34 | 52 | @JsonProperty("time") |
Aschema-javadefault / src / main / java / io / quicktype / LocalDateClassClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class LocalDateClassClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / OffsetDateTimeClassClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetDateTimeClassClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / OffsetTimeClassClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetTimeClassClass { | |
| 7 | +} |
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -10,6 +10,9 @@ public class TopLevel { | ||
| 10 | 10 | private List<ComplexUnionArrayElement> complexUnionArray; |
| 11 | 11 | private LocalDate date; |
| 12 | 12 | private OffsetDateTime dateTime; |
| 13 | + private LocalDateClassClass localDateClass; | |
| 14 | + private OffsetDateTimeClassClass offsetDateTimeClass; | |
| 15 | + private OffsetTimeClassClass offsetTimeClass; | |
| 13 | 16 | private OffsetTime time; |
| 14 | 17 | private List<UnionArray> unionArray; |
| 15 | 18 | |
| @@ -29,6 +32,21 @@ public class TopLevel { | ||
| 29 | 32 | @JsonSetter(nulls = Nulls.FAIL) |
| 30 | 33 | public void setDateTime(OffsetDateTime value) { this.dateTime = value; } |
| 31 | 34 | |
| 35 | + @JsonProperty("local-date-class") | |
| 36 | + public LocalDateClassClass getLocalDateClass() { return localDateClass; } | |
| 37 | + @JsonProperty("local-date-class") | |
| 38 | + public void setLocalDateClass(LocalDateClassClass value) { this.localDateClass = value; } | |
| 39 | + | |
| 40 | + @JsonProperty("offset-date-time-class") | |
| 41 | + public OffsetDateTimeClassClass getOffsetDateTimeClass() { return offsetDateTimeClass; } | |
| 42 | + @JsonProperty("offset-date-time-class") | |
| 43 | + public void setOffsetDateTimeClass(OffsetDateTimeClassClass value) { this.offsetDateTimeClass = value; } | |
| 44 | + | |
| 45 | + @JsonProperty("offset-time-class") | |
| 46 | + public OffsetTimeClassClass getOffsetTimeClass() { return offsetTimeClass; } | |
| 47 | + @JsonProperty("offset-time-class") | |
| 48 | + public void setOffsetTimeClass(OffsetTimeClassClass value) { this.offsetTimeClass = value; } | |
| 49 | + | |
| 32 | 50 | @JsonProperty("time") |
| 33 | 51 | public OffsetTime getTime() { return time; } |
| 34 | 52 | @JsonProperty("time") |
Mschema-javascript-prop-typesdefault / toplevel.js+12 −0
| @@ -14,11 +14,23 @@ import PropTypes from "prop-types"; | ||
| 14 | 14 | const Integer = (props, name) => props[name] == null || Number.isInteger(props[name]) ? null : new Error("Expected integer"); |
| 15 | 15 | |
| 16 | 16 | let _TopLevel; |
| 17 | +let _LocalDate; | |
| 18 | +let _OffsetDateTime; | |
| 19 | +let _OffsetTime; | |
| 17 | 20 | const _ComplexUnionArrayEnum = PropTypes.oneOf(['foo', 'bar']); |
| 21 | +_LocalDate = PropTypes.shape({ | |
| 22 | +}); | |
| 23 | +_OffsetDateTime = PropTypes.shape({ | |
| 24 | +}); | |
| 25 | +_OffsetTime = PropTypes.shape({ | |
| 26 | +}); | |
| 18 | 27 | _TopLevel = PropTypes.shape({ |
| 19 | 28 | "complex-union-array": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time"), _ComplexUnionArrayEnum, Integer]))]).isRequired, |
| 20 | 29 | "date": PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time")]).isRequired, |
| 21 | 30 | "date-time": PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time")]).isRequired, |
| 31 | + "local-date-class": PropTypes.oneOfType([_LocalDate, PropTypes.oneOf([null])]), | |
| 32 | + "offset-date-time-class": PropTypes.oneOfType([_OffsetDateTime, PropTypes.oneOf([null])]), | |
| 33 | + "offset-time-class": PropTypes.oneOfType([_OffsetTime, PropTypes.oneOf([null])]), | |
| 22 | 34 | "time": PropTypes.oneOfType([PropTypes.string]).isRequired, |
| 23 | 35 | "union-array": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string)]).isRequired, |
| 24 | 36 | }); |
Mschema-javascriptdefault / TopLevel.js+9 −0
| @@ -196,9 +196,18 @@ const typeMap = { | ||
| 196 | 196 | { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) }, |
| 197 | 197 | { json: "date", js: "date", typ: Date }, |
| 198 | 198 | { json: "date-time", js: "date-time", typ: Date }, |
| 199 | + { json: "local-date-class", js: "local-date-class", typ: u(undefined, r("LocalDate")) }, | |
| 200 | + { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, r("OffsetDateTime")) }, | |
| 201 | + { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, r("OffsetTime")) }, | |
| 199 | 202 | { json: "time", js: "time", typ: "" }, |
| 200 | 203 | { json: "union-array", js: "union-array", typ: a("") }, |
| 201 | 204 | ], false), |
| 205 | + "LocalDate": o([ | |
| 206 | + ], false), | |
| 207 | + "OffsetDateTime": o([ | |
| 208 | + ], false), | |
| 209 | + "OffsetTime": o([ | |
| 210 | + ], false), | |
| 202 | 211 | "ComplexUnionArrayEnum": [ |
| 203 | 212 | "foo", |
| 204 | 213 | "bar", |
Mschema-kotlin-jacksondefault / TopLevel.kt+15 −0
| @@ -50,6 +50,15 @@ data class TopLevel ( | ||
| 50 | 50 | @get:JsonProperty("date-time", required=true)@field:JsonProperty("date-time", required=true) |
| 51 | 51 | val dateTime: OffsetDateTime, |
| 52 | 52 | |
| 53 | + @get:JsonProperty("local-date-class")@field:JsonProperty("local-date-class") | |
| 54 | + val localDateClass: LocalDateClassClass? = null, | |
| 55 | + | |
| 56 | + @get:JsonProperty("offset-date-time-class")@field:JsonProperty("offset-date-time-class") | |
| 57 | + val offsetDateTimeClass: OffsetDateTimeClassClass? = null, | |
| 58 | + | |
| 59 | + @get:JsonProperty("offset-time-class")@field:JsonProperty("offset-time-class") | |
| 60 | + val offsetTimeClass: OffsetTimeClassClass? = null, | |
| 61 | + | |
| 53 | 62 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 54 | 63 | val time: OffsetTime, |
| 55 | 64 | |
| @@ -96,6 +105,12 @@ enum class ComplexUnionArrayEnum(val value: String) { | ||
| 96 | 105 | } |
| 97 | 106 | } |
| 98 | 107 | |
| 108 | +typealias LocalDateClassClass = ObjectNode | |
| 109 | + | |
| 110 | +typealias OffsetDateTimeClassClass = ObjectNode | |
| 111 | + | |
| 112 | +typealias OffsetTimeClassClass = ObjectNode | |
| 113 | + | |
| 99 | 114 | sealed class UnionArray { |
| 100 | 115 | class DateTimeValue(val value: OffsetDateTime) : UnionArray() |
| 101 | 116 | class DateValue(val value: LocalDate) : UnionArray() |
Mschema-kotlindefault / TopLevel.kt+16 −0
| @@ -22,6 +22,7 @@ private val klaxon = Klaxon() | ||
| 22 | 22 | .convert(OffsetDateTime::class, { OffsetDateTime.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(it)}\"" }) |
| 23 | 23 | .convert(LocalDate::class, { LocalDate.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_LOCAL_DATE.format(it)}\"" }) |
| 24 | 24 | .convert(OffsetTime::class, { OffsetTime.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_OFFSET_TIME.format(it)}\"" }) |
| 25 | + .convert(JsonObject::class, { it.obj!! }, { it.toJsonString() }) | |
| 25 | 26 | .convert(ComplexUnionArrayEnum::class, { ComplexUnionArrayEnum.fromValue(it.string!!) }, { Klaxon().toJsonString(it.value) }) |
| 26 | 27 | .convert(ComplexUnionArrayElement::class, { ComplexUnionArrayElement.fromJson(it) }, { it.toJson() }, true) |
| 27 | 28 | .convert(UnionArray::class, { UnionArray.fromJson(it) }, { it.toJson() }, true) |
| @@ -35,6 +36,15 @@ data class TopLevel ( | ||
| 35 | 36 | @Json(name = "date-time") |
| 36 | 37 | val dateTime: OffsetDateTime, |
| 37 | 38 | |
| 39 | + @Json(name = "local-date-class") | |
| 40 | + val localDateClass: LocalDateClassClass? = null, | |
| 41 | + | |
| 42 | + @Json(name = "offset-date-time-class") | |
| 43 | + val offsetDateTimeClass: OffsetDateTimeClassClass? = null, | |
| 44 | + | |
| 45 | + @Json(name = "offset-time-class") | |
| 46 | + val offsetTimeClass: OffsetTimeClassClass? = null, | |
| 47 | + | |
| 38 | 48 | val time: OffsetTime, |
| 39 | 49 | |
| 40 | 50 | @Json(name = "union-array") |
| @@ -80,6 +90,12 @@ enum class ComplexUnionArrayEnum(val value: String) { | ||
| 80 | 90 | } |
| 81 | 91 | } |
| 82 | 92 | |
| 93 | +typealias LocalDateClassClass = JsonObject | |
| 94 | + | |
| 95 | +typealias OffsetDateTimeClassClass = JsonObject | |
| 96 | + | |
| 97 | +typealias OffsetTimeClassClass = JsonObject | |
| 98 | + | |
| 83 | 99 | sealed class UnionArray { |
| 84 | 100 | class DateTimeValue(val value: OffsetDateTime) : UnionArray() |
| 85 | 101 | class DateValue(val value: LocalDate) : UnionArray() |
Mschema-kotlinxdefault / TopLevel.kt+18 −0
| @@ -26,6 +26,15 @@ data class TopLevel ( | ||
| 26 | 26 | @SerialName("date-time") |
| 27 | 27 | val dateTime: OffsetDateTime, |
| 28 | 28 | |
| 29 | + @SerialName("local-date-class") | |
| 30 | + val localDateClass: LocalDateClassClass? = null, | |
| 31 | + | |
| 32 | + @SerialName("offset-date-time-class") | |
| 33 | + val offsetDateTimeClass: OffsetDateTimeClassClass? = null, | |
| 34 | + | |
| 35 | + @SerialName("offset-time-class") | |
| 36 | + val offsetTimeClass: OffsetTimeClassClass? = null, | |
| 37 | + | |
| 29 | 38 | val time: OffsetTime, |
| 30 | 39 | |
| 31 | 40 | @SerialName("union-array") |
| @@ -40,6 +49,15 @@ enum class ComplexUnionArrayEnum(val value: String) { | ||
| 40 | 49 | @SerialName("bar") Bar("bar"); |
| 41 | 50 | } |
| 42 | 51 | |
| 52 | +@Serializable | |
| 53 | +class LocalDateClassClass() | |
| 54 | + | |
| 55 | +@Serializable | |
| 56 | +class OffsetDateTimeClassClass() | |
| 57 | + | |
| 58 | +@Serializable | |
| 59 | +class OffsetTimeClassClass() | |
| 60 | + | |
| 43 | 61 | typealias UnionArray = JsonElement |
| 44 | 62 | |
| 45 | 63 | object OffsetDateTimeSerializer : KSerializer<OffsetDateTime> { |
Mschema-objective-cdefault / QTTopLevel.h+20 −5
| @@ -7,6 +7,9 @@ | ||
| 7 | 7 | |
| 8 | 8 | @class QTTopLevel; |
| 9 | 9 | @class QTComplexUnionArrayEnum; |
| 10 | +@class QTLocalDate; | |
| 11 | +@class QTOffsetDateTime; | |
| 12 | +@class QTOffsetTime; | |
| 10 | 13 | |
| 11 | 14 | NS_ASSUME_NONNULL_BEGIN |
| 12 | 15 | |
| @@ -29,11 +32,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 29 | 32 | #pragma mark - Object interfaces |
| 30 | 33 | |
| 31 | 34 | @interface QTTopLevel : NSObject |
| 32 | -@property (nonatomic, copy) NSArray<id> *complexUnionArray; | |
| 33 | -@property (nonatomic, copy) NSString *date; | |
| 34 | -@property (nonatomic, copy) NSString *dateTime; | |
| 35 | -@property (nonatomic, copy) NSString *time; | |
| 36 | -@property (nonatomic, copy) NSArray<NSString *> *unionArray; | |
| 35 | +@property (nonatomic, copy) NSArray<id> *complexUnionArray; | |
| 36 | +@property (nonatomic, copy) NSString *date; | |
| 37 | +@property (nonatomic, copy) NSString *dateTime; | |
| 38 | +@property (nonatomic, nullable, strong) QTLocalDate *localDateClass; | |
| 39 | +@property (nonatomic, nullable, strong) QTOffsetDateTime *offsetDateTimeClass; | |
| 40 | +@property (nonatomic, nullable, strong) QTOffsetTime *offsetTimeClass; | |
| 41 | +@property (nonatomic, copy) NSString *time; | |
| 42 | +@property (nonatomic, copy) NSArray<NSString *> *unionArray; | |
| 37 | 43 | |
| 38 | 44 | + (_Nullable instancetype)fromJSON:(NSString *)json encoding:(NSStringEncoding)encoding error:(NSError *_Nullable *)error; |
| 39 | 45 | + (_Nullable instancetype)fromData:(NSData *)data error:(NSError *_Nullable *)error; |
| @@ -41,4 +47,13 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 41 | 47 | - (NSData *_Nullable)toData:(NSError *_Nullable *)error; |
| 42 | 48 | @end |
| 43 | 49 | |
| 50 | +@interface QTLocalDate : NSObject | |
| 51 | +@end | |
| 52 | + | |
| 53 | +@interface QTOffsetDateTime : NSObject | |
| 54 | +@end | |
| 55 | + | |
| 56 | +@interface QTOffsetTime : NSObject | |
| 57 | +@end | |
| 58 | + | |
| 44 | 59 | NS_ASSUME_NONNULL_END |
Mschema-objective-cdefault / QTTopLevel.m+147 −0
| @@ -13,6 +13,21 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 13 | 13 | - (NSDictionary *)JSONDictionary; |
| 14 | 14 | @end |
| 15 | 15 | |
| 16 | +@interface QTLocalDate (JSONConversion) | |
| 17 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 18 | +- (NSDictionary *)JSONDictionary; | |
| 19 | +@end | |
| 20 | + | |
| 21 | +@interface QTOffsetDateTime (JSONConversion) | |
| 22 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 23 | +- (NSDictionary *)JSONDictionary; | |
| 24 | +@end | |
| 25 | + | |
| 26 | +@interface QTOffsetTime (JSONConversion) | |
| 27 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 28 | +- (NSDictionary *)JSONDictionary; | |
| 29 | +@end | |
| 30 | + | |
| 16 | 31 | @implementation QTComplexUnionArrayEnum |
| 17 | 32 | + (NSDictionary<NSString *, QTComplexUnionArrayEnum *> *)values |
| 18 | 33 | { |
| @@ -96,6 +111,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 96 | 111 | @"complex-union-array": @"complexUnionArray", |
| 97 | 112 | @"date": @"date", |
| 98 | 113 | @"date-time": @"dateTime", |
| 114 | + @"local-date-class": @"localDateClass", | |
| 115 | + @"offset-date-time-class": @"offsetDateTimeClass", | |
| 116 | + @"offset-time-class": @"offsetTimeClass", | |
| 99 | 117 | @"time": @"time", |
| 100 | 118 | @"union-array": @"unionArray", |
| 101 | 119 | }; |
| @@ -126,6 +144,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 126 | 144 | if (![dict[@"time"] isKindOfClass:NSString.class]) return nil; |
| 127 | 145 | if (![dict[@"union-array"] isKindOfClass:NSArray.class]) return nil; |
| 128 | 146 | [self setValuesForKeysWithDictionary:dict]; |
| 147 | + _localDateClass = [QTLocalDate fromJSONDictionary:(id)_localDateClass]; | |
| 148 | + if (!_localDateClass && dict[@"local-date-class"] && ![dict[@"local-date-class"] isKindOfClass:NSNull.class]) return nil; | |
| 149 | + _offsetDateTimeClass = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTimeClass]; | |
| 150 | + if (!_offsetDateTimeClass && dict[@"offset-date-time-class"] && ![dict[@"offset-date-time-class"] isKindOfClass:NSNull.class]) return nil; | |
| 151 | + _offsetTimeClass = [QTOffsetTime fromJSONDictionary:(id)_offsetTimeClass]; | |
| 152 | + if (!_offsetTimeClass && dict[@"offset-time-class"] && ![dict[@"offset-time-class"] isKindOfClass:NSNull.class]) return nil; | |
| 129 | 153 | } |
| 130 | 154 | return self; |
| 131 | 155 | } |
| @@ -154,6 +178,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 154 | 178 | } |
| 155 | 179 | } |
| 156 | 180 | |
| 181 | + [dict addEntriesFromDictionary:@{ | |
| 182 | + @"local-date-class": NSNullify([_localDateClass isKindOfClass:NSNull.class] ? nil : [_localDateClass JSONDictionary]), | |
| 183 | + @"offset-date-time-class": NSNullify([_offsetDateTimeClass isKindOfClass:NSNull.class] ? nil : [_offsetDateTimeClass JSONDictionary]), | |
| 184 | + @"offset-time-class": NSNullify([_offsetTimeClass isKindOfClass:NSNull.class] ? nil : [_offsetTimeClass JSONDictionary]), | |
| 185 | + }]; | |
| 186 | + | |
| 157 | 187 | return dict; |
| 158 | 188 | } |
| 159 | 189 | |
| @@ -168,4 +198,121 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 168 | 198 | } |
| 169 | 199 | @end |
| 170 | 200 | |
| 201 | +@implementation QTLocalDate | |
| 202 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 203 | +{ | |
| 204 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 205 | + return properties = properties ? properties : @{ | |
| 206 | + }; | |
| 207 | +} | |
| 208 | + | |
| 209 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 210 | +{ | |
| 211 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil; | |
| 212 | +} | |
| 213 | + | |
| 214 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 215 | +{ | |
| 216 | + if (self = [super init]) { | |
| 217 | + [self setValuesForKeysWithDictionary:dict]; | |
| 218 | + } | |
| 219 | + return self; | |
| 220 | +} | |
| 221 | + | |
| 222 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 223 | +{ | |
| 224 | + id resolved = QTLocalDate.properties[key]; | |
| 225 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 226 | +} | |
| 227 | + | |
| 228 | +- (void)setNilValueForKey:(NSString *)key | |
| 229 | +{ | |
| 230 | + id resolved = QTLocalDate.properties[key]; | |
| 231 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 232 | +} | |
| 233 | + | |
| 234 | +- (NSDictionary *)JSONDictionary | |
| 235 | +{ | |
| 236 | + return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues]; | |
| 237 | +} | |
| 238 | +@end | |
| 239 | + | |
| 240 | +@implementation QTOffsetDateTime | |
| 241 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 242 | +{ | |
| 243 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 244 | + return properties = properties ? properties : @{ | |
| 245 | + }; | |
| 246 | +} | |
| 247 | + | |
| 248 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 249 | +{ | |
| 250 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil; | |
| 251 | +} | |
| 252 | + | |
| 253 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 254 | +{ | |
| 255 | + if (self = [super init]) { | |
| 256 | + [self setValuesForKeysWithDictionary:dict]; | |
| 257 | + } | |
| 258 | + return self; | |
| 259 | +} | |
| 260 | + | |
| 261 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 262 | +{ | |
| 263 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 264 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 265 | +} | |
| 266 | + | |
| 267 | +- (void)setNilValueForKey:(NSString *)key | |
| 268 | +{ | |
| 269 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 270 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 271 | +} | |
| 272 | + | |
| 273 | +- (NSDictionary *)JSONDictionary | |
| 274 | +{ | |
| 275 | + return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues]; | |
| 276 | +} | |
| 277 | +@end | |
| 278 | + | |
| 279 | +@implementation QTOffsetTime | |
| 280 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 281 | +{ | |
| 282 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 283 | + return properties = properties ? properties : @{ | |
| 284 | + }; | |
| 285 | +} | |
| 286 | + | |
| 287 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 288 | +{ | |
| 289 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil; | |
| 290 | +} | |
| 291 | + | |
| 292 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 293 | +{ | |
| 294 | + if (self = [super init]) { | |
| 295 | + [self setValuesForKeysWithDictionary:dict]; | |
| 296 | + } | |
| 297 | + return self; | |
| 298 | +} | |
| 299 | + | |
| 300 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 301 | +{ | |
| 302 | + id resolved = QTOffsetTime.properties[key]; | |
| 303 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 304 | +} | |
| 305 | + | |
| 306 | +- (void)setNilValueForKey:(NSString *)key | |
| 307 | +{ | |
| 308 | + id resolved = QTOffsetTime.properties[key]; | |
| 309 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 310 | +} | |
| 311 | + | |
| 312 | +- (NSDictionary *)JSONDictionary | |
| 313 | +{ | |
| 314 | + return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues]; | |
| 315 | +} | |
| 316 | +@end | |
| 317 | + | |
| 171 | 318 | NS_ASSUME_NONNULL_END |
Mschema-phpdefault / TopLevel.php+334 −4
| @@ -7,6 +7,9 @@ class TopLevel { | ||
| 7 | 7 | private array $complexUnionArray; // json:complex-union-array Required |
| 8 | 8 | private string $date; // json:date Required |
| 9 | 9 | private DateTime $dateTime; // json:date-time Required |
| 10 | + private ?LocalDate $localDateClass; // json:local-date-class Optional | |
| 11 | + private ?OffsetDateTime $offsetDateTimeClass; // json:offset-date-time-class Optional | |
| 12 | + private ?OffsetTime $offsetTimeClass; // json:offset-time-class Optional | |
| 10 | 13 | private string $time; // json:time Required |
| 11 | 14 | private array $unionArray; // json:union-array Required |
| 12 | 15 | |
| @@ -14,13 +17,19 @@ class TopLevel { | ||
| 14 | 17 | * @param array $complexUnionArray |
| 15 | 18 | * @param string $date |
| 16 | 19 | * @param DateTime $dateTime |
| 20 | + * @param LocalDate|null $localDateClass | |
| 21 | + * @param OffsetDateTime|null $offsetDateTimeClass | |
| 22 | + * @param OffsetTime|null $offsetTimeClass | |
| 17 | 23 | * @param string $time |
| 18 | 24 | * @param array $unionArray |
| 19 | 25 | */ |
| 20 | - public function __construct(array $complexUnionArray, string $date, DateTime $dateTime, string $time, array $unionArray) { | |
| 26 | + public function __construct(array $complexUnionArray, string $date, DateTime $dateTime, ?LocalDate $localDateClass, ?OffsetDateTime $offsetDateTimeClass, ?OffsetTime $offsetTimeClass, string $time, array $unionArray) { | |
| 21 | 27 | $this->complexUnionArray = $complexUnionArray; |
| 22 | 28 | $this->date = $date; |
| 23 | 29 | $this->dateTime = $dateTime; |
| 30 | + $this->localDateClass = $localDateClass; | |
| 31 | + $this->offsetDateTimeClass = $offsetDateTimeClass; | |
| 32 | + $this->offsetTimeClass = $offsetTimeClass; | |
| 24 | 33 | $this->time = $time; |
| 25 | 34 | $this->unionArray = $unionArray; |
| 26 | 35 | } |
| @@ -217,6 +226,180 @@ class TopLevel { | ||
| 217 | 226 | return DateTime::createFromFormat(DateTimeInterface::ISO8601, '2020-12-30T12:30:30+00:00'); |
| 218 | 227 | } |
| 219 | 228 | |
| 229 | + /** | |
| 230 | + * @param ?stdClass $value | |
| 231 | + * @throws Exception | |
| 232 | + * @return ?LocalDate | |
| 233 | + */ | |
| 234 | + public static function fromLocalDateClass(?stdClass $value): ?LocalDate { | |
| 235 | + if (!is_null($value)) { | |
| 236 | + return LocalDate::from($value); /*class*/ | |
| 237 | + } else { | |
| 238 | + return null; | |
| 239 | + } | |
| 240 | + } | |
| 241 | + | |
| 242 | + /** | |
| 243 | + * @throws Exception | |
| 244 | + * @return ?stdClass | |
| 245 | + */ | |
| 246 | + public function toLocalDateClass(): ?stdClass { | |
| 247 | + if (TopLevel::validateLocalDateClass($this->localDateClass)) { | |
| 248 | + if (!is_null($this->localDateClass)) { | |
| 249 | + return $this->localDateClass->to(); /*class*/ | |
| 250 | + } else { | |
| 251 | + return null; | |
| 252 | + } | |
| 253 | + } | |
| 254 | + throw new Exception('never get to this TopLevel::localDateClass'); | |
| 255 | + } | |
| 256 | + | |
| 257 | + /** | |
| 258 | + * @param LocalDate|null | |
| 259 | + * @return bool | |
| 260 | + * @throws Exception | |
| 261 | + */ | |
| 262 | + public static function validateLocalDateClass(?LocalDate $value): bool { | |
| 263 | + if (!is_null($value)) { | |
| 264 | + $value->validate(); | |
| 265 | + } | |
| 266 | + return true; | |
| 267 | + } | |
| 268 | + | |
| 269 | + /** | |
| 270 | + * @throws Exception | |
| 271 | + * @return ?LocalDate | |
| 272 | + */ | |
| 273 | + public function getLocalDateClass(): ?LocalDate { | |
| 274 | + if (TopLevel::validateLocalDateClass($this->localDateClass)) { | |
| 275 | + return $this->localDateClass; | |
| 276 | + } | |
| 277 | + throw new Exception('never get to getLocalDateClass TopLevel::localDateClass'); | |
| 278 | + } | |
| 279 | + | |
| 280 | + /** | |
| 281 | + * @return ?LocalDate | |
| 282 | + */ | |
| 283 | + public static function sampleLocalDateClass(): ?LocalDate { | |
| 284 | + return LocalDate::sample(); /*34:localDateClass*/ | |
| 285 | + } | |
| 286 | + | |
| 287 | + /** | |
| 288 | + * @param ?stdClass $value | |
| 289 | + * @throws Exception | |
| 290 | + * @return ?OffsetDateTime | |
| 291 | + */ | |
| 292 | + public static function fromOffsetDateTimeClass(?stdClass $value): ?OffsetDateTime { | |
| 293 | + if (!is_null($value)) { | |
| 294 | + return OffsetDateTime::from($value); /*class*/ | |
| 295 | + } else { | |
| 296 | + return null; | |
| 297 | + } | |
| 298 | + } | |
| 299 | + | |
| 300 | + /** | |
| 301 | + * @throws Exception | |
| 302 | + * @return ?stdClass | |
| 303 | + */ | |
| 304 | + public function toOffsetDateTimeClass(): ?stdClass { | |
| 305 | + if (TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)) { | |
| 306 | + if (!is_null($this->offsetDateTimeClass)) { | |
| 307 | + return $this->offsetDateTimeClass->to(); /*class*/ | |
| 308 | + } else { | |
| 309 | + return null; | |
| 310 | + } | |
| 311 | + } | |
| 312 | + throw new Exception('never get to this TopLevel::offsetDateTimeClass'); | |
| 313 | + } | |
| 314 | + | |
| 315 | + /** | |
| 316 | + * @param OffsetDateTime|null | |
| 317 | + * @return bool | |
| 318 | + * @throws Exception | |
| 319 | + */ | |
| 320 | + public static function validateOffsetDateTimeClass(?OffsetDateTime $value): bool { | |
| 321 | + if (!is_null($value)) { | |
| 322 | + $value->validate(); | |
| 323 | + } | |
| 324 | + return true; | |
| 325 | + } | |
| 326 | + | |
| 327 | + /** | |
| 328 | + * @throws Exception | |
| 329 | + * @return ?OffsetDateTime | |
| 330 | + */ | |
| 331 | + public function getOffsetDateTimeClass(): ?OffsetDateTime { | |
| 332 | + if (TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)) { | |
| 333 | + return $this->offsetDateTimeClass; | |
| 334 | + } | |
| 335 | + throw new Exception('never get to getOffsetDateTimeClass TopLevel::offsetDateTimeClass'); | |
| 336 | + } | |
| 337 | + | |
| 338 | + /** | |
| 339 | + * @return ?OffsetDateTime | |
| 340 | + */ | |
| 341 | + public static function sampleOffsetDateTimeClass(): ?OffsetDateTime { | |
| 342 | + return OffsetDateTime::sample(); /*35:offsetDateTimeClass*/ | |
| 343 | + } | |
| 344 | + | |
| 345 | + /** | |
| 346 | + * @param ?stdClass $value | |
| 347 | + * @throws Exception | |
| 348 | + * @return ?OffsetTime | |
| 349 | + */ | |
| 350 | + public static function fromOffsetTimeClass(?stdClass $value): ?OffsetTime { | |
| 351 | + if (!is_null($value)) { | |
| 352 | + return OffsetTime::from($value); /*class*/ | |
| 353 | + } else { | |
| 354 | + return null; | |
| 355 | + } | |
| 356 | + } | |
| 357 | + | |
| 358 | + /** | |
| 359 | + * @throws Exception | |
| 360 | + * @return ?stdClass | |
| 361 | + */ | |
| 362 | + public function toOffsetTimeClass(): ?stdClass { | |
| 363 | + if (TopLevel::validateOffsetTimeClass($this->offsetTimeClass)) { | |
| 364 | + if (!is_null($this->offsetTimeClass)) { | |
| 365 | + return $this->offsetTimeClass->to(); /*class*/ | |
| 366 | + } else { | |
| 367 | + return null; | |
| 368 | + } | |
| 369 | + } | |
| 370 | + throw new Exception('never get to this TopLevel::offsetTimeClass'); | |
| 371 | + } | |
| 372 | + | |
| 373 | + /** | |
| 374 | + * @param OffsetTime|null | |
| 375 | + * @return bool | |
| 376 | + * @throws Exception | |
| 377 | + */ | |
| 378 | + public static function validateOffsetTimeClass(?OffsetTime $value): bool { | |
| 379 | + if (!is_null($value)) { | |
| 380 | + $value->validate(); | |
| 381 | + } | |
| 382 | + return true; | |
| 383 | + } | |
| 384 | + | |
| 385 | + /** | |
| 386 | + * @throws Exception | |
| 387 | + * @return ?OffsetTime | |
| 388 | + */ | |
| 389 | + public function getOffsetTimeClass(): ?OffsetTime { | |
| 390 | + if (TopLevel::validateOffsetTimeClass($this->offsetTimeClass)) { | |
| 391 | + return $this->offsetTimeClass; | |
| 392 | + } | |
| 393 | + throw new Exception('never get to getOffsetTimeClass TopLevel::offsetTimeClass'); | |
| 394 | + } | |
| 395 | + | |
| 396 | + /** | |
| 397 | + * @return ?OffsetTime | |
| 398 | + */ | |
| 399 | + public static function sampleOffsetTimeClass(): ?OffsetTime { | |
| 400 | + return OffsetTime::sample(); /*36:offsetTimeClass*/ | |
| 401 | + } | |
| 402 | + | |
| 220 | 403 | /** |
| 221 | 404 | * @param string $value |
| 222 | 405 | * @throws Exception |
| @@ -261,7 +444,7 @@ class TopLevel { | ||
| 261 | 444 | * @return string |
| 262 | 445 | */ |
| 263 | 446 | public static function sampleTime(): string { |
| 264 | - return 'TopLevel::time::34'; /*34:time*/ | |
| 447 | + return 'TopLevel::time::37'; /*37:time*/ | |
| 265 | 448 | } |
| 266 | 449 | |
| 267 | 450 | /** |
| @@ -321,8 +504,8 @@ class TopLevel { | ||
| 321 | 504 | */ |
| 322 | 505 | public static function sampleUnionArray(): array { |
| 323 | 506 | return array( |
| 324 | - 'TopLevel::::35' /*35:*/ | |
| 325 | - ); /* 35:unionArray*/ | |
| 507 | + 'TopLevel::::38' /*38:*/ | |
| 508 | + ); /* 38:unionArray*/ | |
| 326 | 509 | } |
| 327 | 510 | |
| 328 | 511 | /** |
| @@ -333,6 +516,9 @@ class TopLevel { | ||
| 333 | 516 | return TopLevel::validateComplexUnionArray($this->complexUnionArray) |
| 334 | 517 | || TopLevel::validateDate($this->date) |
| 335 | 518 | || TopLevel::validateDateTime($this->dateTime) |
| 519 | + || TopLevel::validateLocalDateClass($this->localDateClass) | |
| 520 | + || TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass) | |
| 521 | + || TopLevel::validateOffsetTimeClass($this->offsetTimeClass) | |
| 336 | 522 | || TopLevel::validateTime($this->time) |
| 337 | 523 | || TopLevel::validateUnionArray($this->unionArray); |
| 338 | 524 | } |
| @@ -346,6 +532,9 @@ class TopLevel { | ||
| 346 | 532 | $out->{'complex-union-array'} = $this->toComplexUnionArray(); |
| 347 | 533 | $out->{'date'} = $this->toDate(); |
| 348 | 534 | $out->{'date-time'} = $this->toDateTime(); |
| 535 | + $out->{'local-date-class'} = $this->toLocalDateClass(); | |
| 536 | + $out->{'offset-date-time-class'} = $this->toOffsetDateTimeClass(); | |
| 537 | + $out->{'offset-time-class'} = $this->toOffsetTimeClass(); | |
| 349 | 538 | $out->{'time'} = $this->toTime(); |
| 350 | 539 | $out->{'union-array'} = $this->toUnionArray(); |
| 351 | 540 | return $out; |
| @@ -376,6 +565,9 @@ class TopLevel { | ||
| 376 | 565 | TopLevel::fromComplexUnionArray($obj->{'complex-union-array'}) |
| 377 | 566 | ,TopLevel::fromDate($obj->{'date'}) |
| 378 | 567 | ,TopLevel::fromDateTime($obj->{'date-time'}) |
| 568 | + ,TopLevel::fromLocalDateClass($obj->{'local-date-class'}) | |
| 569 | + ,TopLevel::fromOffsetDateTimeClass($obj->{'offset-date-time-class'}) | |
| 570 | + ,TopLevel::fromOffsetTimeClass($obj->{'offset-time-class'}) | |
| 379 | 571 | ,TopLevel::fromTime($obj->{'time'}) |
| 380 | 572 | ,TopLevel::fromUnionArray($obj->{'union-array'}) |
| 381 | 573 | ); |
| @@ -389,6 +581,9 @@ class TopLevel { | ||
| 389 | 581 | TopLevel::sampleComplexUnionArray() |
| 390 | 582 | ,TopLevel::sampleDate() |
| 391 | 583 | ,TopLevel::sampleDateTime() |
| 584 | + ,TopLevel::sampleLocalDateClass() | |
| 585 | + ,TopLevel::sampleOffsetDateTimeClass() | |
| 586 | + ,TopLevel::sampleOffsetTimeClass() | |
| 392 | 587 | ,TopLevel::sampleTime() |
| 393 | 588 | ,TopLevel::sampleUnionArray() |
| 394 | 589 | ); |
| @@ -443,3 +638,138 @@ class ComplexUnionArray { | ||
| 443 | 638 | } |
| 444 | 639 | } |
| 445 | 640 | ComplexUnionArray::init(); |
| 641 | + | |
| 642 | +// This is an autogenerated file:LocalDate | |
| 643 | + | |
| 644 | +class LocalDate { | |
| 645 | + | |
| 646 | + /** | |
| 647 | + */ | |
| 648 | + public function __construct() { | |
| 649 | + } | |
| 650 | + | |
| 651 | + /** | |
| 652 | + * @throws Exception | |
| 653 | + * @return bool | |
| 654 | + */ | |
| 655 | + public function validate(): bool { | |
| 656 | + return true; | |
| 657 | + } | |
| 658 | + | |
| 659 | + /** | |
| 660 | + * @return stdClass | |
| 661 | + * @throws Exception | |
| 662 | + */ | |
| 663 | + public function to(): stdClass { | |
| 664 | + $out = new stdClass(); | |
| 665 | + return $out; | |
| 666 | + } | |
| 667 | + | |
| 668 | + /** | |
| 669 | + * @param stdClass $obj | |
| 670 | + * @return LocalDate | |
| 671 | + * @throws Exception | |
| 672 | + */ | |
| 673 | + public static function from(stdClass $obj): LocalDate { | |
| 674 | + return new LocalDate( | |
| 675 | + ); | |
| 676 | + } | |
| 677 | + | |
| 678 | + /** | |
| 679 | + * @return LocalDate | |
| 680 | + */ | |
| 681 | + public static function sample(): LocalDate { | |
| 682 | + return new LocalDate( | |
| 683 | + ); | |
| 684 | + } | |
| 685 | +} | |
| 686 | + | |
| 687 | +// This is an autogenerated file:OffsetDateTime | |
| 688 | + | |
| 689 | +class OffsetDateTime { | |
| 690 | + | |
| 691 | + /** | |
| 692 | + */ | |
| 693 | + public function __construct() { | |
| 694 | + } | |
| 695 | + | |
| 696 | + /** | |
| 697 | + * @throws Exception | |
| 698 | + * @return bool | |
| 699 | + */ | |
| 700 | + public function validate(): bool { | |
| 701 | + return true; | |
| 702 | + } | |
| 703 | + | |
| 704 | + /** | |
| 705 | + * @return stdClass | |
| 706 | + * @throws Exception | |
| 707 | + */ | |
| 708 | + public function to(): stdClass { | |
| 709 | + $out = new stdClass(); | |
| 710 | + return $out; | |
| 711 | + } | |
| 712 | + | |
| 713 | + /** | |
| 714 | + * @param stdClass $obj | |
| 715 | + * @return OffsetDateTime | |
| 716 | + * @throws Exception | |
| 717 | + */ | |
| 718 | + public static function from(stdClass $obj): OffsetDateTime { | |
| 719 | + return new OffsetDateTime( | |
| 720 | + ); | |
| 721 | + } | |
| 722 | + | |
| 723 | + /** | |
| 724 | + * @return OffsetDateTime | |
| 725 | + */ | |
| 726 | + public static function sample(): OffsetDateTime { | |
| 727 | + return new OffsetDateTime( | |
| 728 | + ); | |
| 729 | + } | |
| 730 | +} | |
| 731 | + | |
| 732 | +// This is an autogenerated file:OffsetTime | |
| 733 | + | |
| 734 | +class OffsetTime { | |
| 735 | + | |
| 736 | + /** | |
| 737 | + */ | |
| 738 | + public function __construct() { | |
| 739 | + } | |
| 740 | + | |
| 741 | + /** | |
| 742 | + * @throws Exception | |
| 743 | + * @return bool | |
| 744 | + */ | |
| 745 | + public function validate(): bool { | |
| 746 | + return true; | |
| 747 | + } | |
| 748 | + | |
| 749 | + /** | |
| 750 | + * @return stdClass | |
| 751 | + * @throws Exception | |
| 752 | + */ | |
| 753 | + public function to(): stdClass { | |
| 754 | + $out = new stdClass(); | |
| 755 | + return $out; | |
| 756 | + } | |
| 757 | + | |
| 758 | + /** | |
| 759 | + * @param stdClass $obj | |
| 760 | + * @return OffsetTime | |
| 761 | + * @throws Exception | |
| 762 | + */ | |
| 763 | + public static function from(stdClass $obj): OffsetTime { | |
| 764 | + return new OffsetTime( | |
| 765 | + ); | |
| 766 | + } | |
| 767 | + | |
| 768 | + /** | |
| 769 | + * @return OffsetTime | |
| 770 | + */ | |
| 771 | + public static function sample(): OffsetTime { | |
| 772 | + return new OffsetTime( | |
| 773 | + ); | |
| 774 | + } | |
| 775 | +} |
Mschema-pikedefault / TopLevel.pmod+62 −5
| @@ -13,17 +13,23 @@ | ||
| 13 | 13 | // match the expected interface, even if the JSON itself is valid. |
| 14 | 14 | |
| 15 | 15 | class TopLevel { |
| 16 | - array(ComplexUnionArray) complex_union_array; // json: "complex-union-array" | |
| 17 | - string date; // json: "date" | |
| 18 | - string date_time; // json: "date-time" | |
| 19 | - string time; // json: "time" | |
| 20 | - array(string) union_array; // json: "union-array" | |
| 16 | + array(ComplexUnionArray) complex_union_array; // json: "complex-union-array" | |
| 17 | + string date; // json: "date" | |
| 18 | + string date_time; // json: "date-time" | |
| 19 | + LocalDate|mixed local_date_class; // json: "local-date-class" | |
| 20 | + OffsetDateTime|mixed offset_date_time_class; // json: "offset-date-time-class" | |
| 21 | + OffsetTime|mixed offset_time_class; // json: "offset-time-class" | |
| 22 | + string time; // json: "time" | |
| 23 | + array(string) union_array; // json: "union-array" | |
| 21 | 24 | |
| 22 | 25 | string encode_json() { |
| 23 | 26 | mapping(string:mixed) json = ([ |
| 24 | 27 | "complex-union-array" : complex_union_array, |
| 25 | 28 | "date" : date, |
| 26 | 29 | "date-time" : date_time, |
| 30 | + "local-date-class" : local_date_class, | |
| 31 | + "offset-date-time-class" : offset_date_time_class, | |
| 32 | + "offset-time-class" : offset_time_class, | |
| 27 | 33 | "time" : time, |
| 28 | 34 | "union-array" : union_array, |
| 29 | 35 | ]); |
| @@ -38,6 +44,9 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 38 | 44 | retval.complex_union_array = json["complex-union-array"]; |
| 39 | 45 | retval.date = json["date"]; |
| 40 | 46 | retval.date_time = json["date-time"]; |
| 47 | + retval.local_date_class = json["local-date-class"]; | |
| 48 | + retval.offset_date_time_class = json["offset-date-time-class"]; | |
| 49 | + retval.offset_time_class = json["offset-time-class"]; | |
| 41 | 50 | retval.time = json["time"]; |
| 42 | 51 | retval.union_array = json["union-array"]; |
| 43 | 52 | |
| @@ -49,3 +58,51 @@ typedef int|string ComplexUnionArray; | ||
| 49 | 58 | ComplexUnionArray ComplexUnionArray_from_JSON(mixed json) { |
| 50 | 59 | return json; |
| 51 | 60 | } |
| 61 | + | |
| 62 | +class LocalDate { | |
| 63 | + | |
| 64 | + string encode_json() { | |
| 65 | + mapping(string:mixed) json = ([ | |
| 66 | + ]); | |
| 67 | + | |
| 68 | + return Standards.JSON.encode(json); | |
| 69 | + } | |
| 70 | +} | |
| 71 | + | |
| 72 | +LocalDate LocalDate_from_JSON(mixed json) { | |
| 73 | + LocalDate retval = LocalDate(); | |
| 74 | + | |
| 75 | + return retval; | |
| 76 | +} | |
| 77 | + | |
| 78 | +class OffsetDateTime { | |
| 79 | + | |
| 80 | + string encode_json() { | |
| 81 | + mapping(string:mixed) json = ([ | |
| 82 | + ]); | |
| 83 | + | |
| 84 | + return Standards.JSON.encode(json); | |
| 85 | + } | |
| 86 | +} | |
| 87 | + | |
| 88 | +OffsetDateTime OffsetDateTime_from_JSON(mixed json) { | |
| 89 | + OffsetDateTime retval = OffsetDateTime(); | |
| 90 | + | |
| 91 | + return retval; | |
| 92 | +} | |
| 93 | + | |
| 94 | +class OffsetTime { | |
| 95 | + | |
| 96 | + string encode_json() { | |
| 97 | + mapping(string:mixed) json = ([ | |
| 98 | + ]); | |
| 99 | + | |
| 100 | + return Standards.JSON.encode(json); | |
| 101 | + } | |
| 102 | +} | |
| 103 | + | |
| 104 | +OffsetTime OffsetTime_from_JSON(mixed json) { | |
| 105 | + OffsetTime retval = OffsetTime(); | |
| 106 | + | |
| 107 | + return retval; | |
| 108 | +} |
Mschema-pythondefault / quicktype.py+60 −1
| @@ -43,6 +43,11 @@ def from_time(x: Any) -> datetime.time: | ||
| 43 | 43 | return dateutil.parser.parse(x).timetz() |
| 44 | 44 | |
| 45 | 45 | |
| 46 | +def from_none(x: Any) -> Any: | |
| 47 | + assert x is None | |
| 48 | + return x | |
| 49 | + | |
| 50 | + | |
| 46 | 51 | def to_enum(c: Type[EnumT], x: Any) -> EnumT: |
| 47 | 52 | assert isinstance(x, c) |
| 48 | 53 | return x.value |
| @@ -58,6 +63,48 @@ class ComplexUnionArrayEnum(Enum): | ||
| 58 | 63 | BAR = "bar" |
| 59 | 64 | |
| 60 | 65 | |
| 66 | +@dataclass | |
| 67 | +class LocalDate: | |
| 68 | + pass | |
| 69 | + | |
| 70 | + @staticmethod | |
| 71 | + def from_dict(obj: Any) -> 'LocalDate': | |
| 72 | + assert isinstance(obj, dict) | |
| 73 | + return LocalDate() | |
| 74 | + | |
| 75 | + def to_dict(self) -> dict: | |
| 76 | + result: dict = {} | |
| 77 | + return result | |
| 78 | + | |
| 79 | + | |
| 80 | +@dataclass | |
| 81 | +class OffsetDateTime: | |
| 82 | + pass | |
| 83 | + | |
| 84 | + @staticmethod | |
| 85 | + def from_dict(obj: Any) -> 'OffsetDateTime': | |
| 86 | + assert isinstance(obj, dict) | |
| 87 | + return OffsetDateTime() | |
| 88 | + | |
| 89 | + def to_dict(self) -> dict: | |
| 90 | + result: dict = {} | |
| 91 | + return result | |
| 92 | + | |
| 93 | + | |
| 94 | +@dataclass | |
| 95 | +class OffsetTime: | |
| 96 | + pass | |
| 97 | + | |
| 98 | + @staticmethod | |
| 99 | + def from_dict(obj: Any) -> 'OffsetTime': | |
| 100 | + assert isinstance(obj, dict) | |
| 101 | + return OffsetTime() | |
| 102 | + | |
| 103 | + def to_dict(self) -> dict: | |
| 104 | + result: dict = {} | |
| 105 | + return result | |
| 106 | + | |
| 107 | + | |
| 61 | 108 | @dataclass |
| 62 | 109 | class TopLevel: |
| 63 | 110 | complex_union_array: list[int | ComplexUnionArrayEnum | datetime.datetime] |
| @@ -65,6 +112,9 @@ class TopLevel: | ||
| 65 | 112 | date_time: datetime.datetime |
| 66 | 113 | time: datetime.time |
| 67 | 114 | union_array: list[datetime.date | datetime.time | datetime.datetime] |
| 115 | + local_date_class: LocalDate | None = None | |
| 116 | + offset_date_time_class: OffsetDateTime | None = None | |
| 117 | + offset_time_class: OffsetTime | None = None | |
| 68 | 118 | |
| 69 | 119 | @staticmethod |
| 70 | 120 | def from_dict(obj: Any) -> 'TopLevel': |
| @@ -74,7 +124,10 @@ class TopLevel: | ||
| 74 | 124 | date_time = from_datetime(obj["date-time"]) |
| 75 | 125 | time = from_time(obj["time"]) |
| 76 | 126 | union_array = from_list(lambda x: from_union([from_date, from_time, from_datetime], x), obj["union-array"]) |
| 77 | - return TopLevel(complex_union_array, date, date_time, time, union_array) | |
| 127 | + local_date_class = from_union([LocalDate.from_dict, from_none], obj.get("local-date-class")) | |
| 128 | + offset_date_time_class = from_union([OffsetDateTime.from_dict, from_none], obj.get("offset-date-time-class")) | |
| 129 | + offset_time_class = from_union([OffsetTime.from_dict, from_none], obj.get("offset-time-class")) | |
| 130 | + return TopLevel(complex_union_array, date, date_time, time, union_array, local_date_class, offset_date_time_class, offset_time_class) | |
| 78 | 131 | |
| 79 | 132 | def to_dict(self) -> dict: |
| 80 | 133 | result: dict = {} |
| @@ -83,6 +136,12 @@ class TopLevel: | ||
| 83 | 136 | result["date-time"] = self.date_time.isoformat() |
| 84 | 137 | result["time"] = self.time.isoformat() |
| 85 | 138 | result["union-array"] = from_list(lambda x: from_union([lambda x: x.isoformat(), lambda x: x.isoformat(), lambda x: x.isoformat()], x), self.union_array) |
| 139 | + if self.local_date_class is not None: | |
| 140 | + result["local-date-class"] = from_union([lambda x: to_class(LocalDate, x), from_none], self.local_date_class) | |
| 141 | + if self.offset_date_time_class is not None: | |
| 142 | + result["offset-date-time-class"] = from_union([lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time_class) | |
| 143 | + if self.offset_time_class is not None: | |
| 144 | + result["offset-time-class"] = from_union([lambda x: to_class(OffsetTime, x), from_none], self.offset_time_class) | |
| 86 | 145 | return result |
Mschema-rubydefault / TopLevel.rb+90 −15
| @@ -63,21 +63,93 @@ class ComplexUnionArrayElement < Dry::Struct | ||
| 63 | 63 | end |
| 64 | 64 | end |
| 65 | 65 | |
| 66 | +class LocalDate < Dry::Struct | |
| 67 | + | |
| 68 | + def self.from_dynamic!(d) | |
| 69 | + d = Types::Hash[d] | |
| 70 | + new( | |
| 71 | + ) | |
| 72 | + end | |
| 73 | + | |
| 74 | + def self.from_json!(json) | |
| 75 | + from_dynamic!(JSON.parse(json)) | |
| 76 | + end | |
| 77 | + | |
| 78 | + def to_dynamic | |
| 79 | + { | |
| 80 | + } | |
| 81 | + end | |
| 82 | + | |
| 83 | + def to_json(options = nil) | |
| 84 | + JSON.generate(to_dynamic, options) | |
| 85 | + end | |
| 86 | +end | |
| 87 | + | |
| 88 | +class OffsetDateTime < Dry::Struct | |
| 89 | + | |
| 90 | + def self.from_dynamic!(d) | |
| 91 | + d = Types::Hash[d] | |
| 92 | + new( | |
| 93 | + ) | |
| 94 | + end | |
| 95 | + | |
| 96 | + def self.from_json!(json) | |
| 97 | + from_dynamic!(JSON.parse(json)) | |
| 98 | + end | |
| 99 | + | |
| 100 | + def to_dynamic | |
| 101 | + { | |
| 102 | + } | |
| 103 | + end | |
| 104 | + | |
| 105 | + def to_json(options = nil) | |
| 106 | + JSON.generate(to_dynamic, options) | |
| 107 | + end | |
| 108 | +end | |
| 109 | + | |
| 110 | +class OffsetTime < Dry::Struct | |
| 111 | + | |
| 112 | + def self.from_dynamic!(d) | |
| 113 | + d = Types::Hash[d] | |
| 114 | + new( | |
| 115 | + ) | |
| 116 | + end | |
| 117 | + | |
| 118 | + def self.from_json!(json) | |
| 119 | + from_dynamic!(JSON.parse(json)) | |
| 120 | + end | |
| 121 | + | |
| 122 | + def to_dynamic | |
| 123 | + { | |
| 124 | + } | |
| 125 | + end | |
| 126 | + | |
| 127 | + def to_json(options = nil) | |
| 128 | + JSON.generate(to_dynamic, options) | |
| 129 | + end | |
| 130 | +end | |
| 131 | + | |
| 66 | 132 | class TopLevel < Dry::Struct |
| 67 | - attribute :complex_union_array, Types.Array(Types.Instance(ComplexUnionArrayElement)) | |
| 68 | - attribute :date, Types::String | |
| 69 | - attribute :date_time, Types::String.constrained(format: /\A\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|[+-]\d\d:\d\d)\z/i) | |
| 70 | - attribute :time, Types::String | |
| 71 | - attribute :union_array, Types.Array(Types::String) | |
| 133 | + attribute :complex_union_array, Types.Array(Types.Instance(ComplexUnionArrayElement)) | |
| 134 | + attribute :date, Types::String | |
| 135 | + attribute :date_time, Types::String.constrained(format: /\A\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|[+-]\d\d:\d\d)\z/i) | |
| 136 | + attribute :local_date_class, LocalDate.optional | |
| 137 | + attribute :offset_date_time_class, OffsetDateTime.optional | |
| 138 | + attribute :offset_time_class, OffsetTime.optional | |
| 139 | + attribute :time, Types::String | |
| 140 | + attribute :union_array, Types.Array(Types::String) | |
| 72 | 141 | |
| 73 | 142 | def self.from_dynamic!(d) |
| 74 | 143 | d = Types::Hash[d] |
| 75 | 144 | new( |
| 76 | - complex_union_array: d.fetch("complex-union-array").map { |x| ComplexUnionArrayElement.from_dynamic!(x) }, | |
| 77 | - date: d.fetch("date"), | |
| 78 | - date_time: d.fetch("date-time"), | |
| 79 | - time: d.fetch("time"), | |
| 80 | - union_array: d.fetch("union-array"), | |
| 145 | + complex_union_array: d.fetch("complex-union-array").map { |x| ComplexUnionArrayElement.from_dynamic!(x) }, | |
| 146 | + date: d.fetch("date"), | |
| 147 | + date_time: d.fetch("date-time"), | |
| 148 | + local_date_class: d.key?("local-date-class") ? LocalDate.from_dynamic!(d["local-date-class"]) : nil, | |
| 149 | + offset_date_time_class: d.key?("offset-date-time-class") ? OffsetDateTime.from_dynamic!(d["offset-date-time-class"]) : nil, | |
| 150 | + offset_time_class: d.key?("offset-time-class") ? OffsetTime.from_dynamic!(d["offset-time-class"]) : nil, | |
| 151 | + time: d.fetch("time"), | |
| 152 | + union_array: d.fetch("union-array"), | |
| 81 | 153 | ) |
| 82 | 154 | end |
| 83 | 155 | |
| @@ -87,11 +159,14 @@ class TopLevel < Dry::Struct | ||
| 87 | 159 | |
| 88 | 160 | def to_dynamic |
| 89 | 161 | { |
| 90 | - "complex-union-array" => complex_union_array.map { |x| x.to_dynamic }, | |
| 91 | - "date" => date, | |
| 92 | - "date-time" => date_time, | |
| 93 | - "time" => time, | |
| 94 | - "union-array" => union_array, | |
| 162 | + "complex-union-array" => complex_union_array.map { |x| x.to_dynamic }, | |
| 163 | + "date" => date, | |
| 164 | + "date-time" => date_time, | |
| 165 | + "local-date-class" => local_date_class&.to_dynamic, | |
| 166 | + "offset-date-time-class" => offset_date_time_class&.to_dynamic, | |
| 167 | + "offset-time-class" => offset_time_class&.to_dynamic, | |
| 168 | + "time" => time, | |
| 169 | + "union-array" => union_array, | |
| 95 | 170 | } |
| 96 | 171 | end |
Mschema-rustdefault / module_under_test.rs+18 −0
| @@ -22,6 +22,12 @@ pub struct TopLevel { | ||
| 22 | 22 | |
| 23 | 23 | pub date_time: String, |
| 24 | 24 | |
| 25 | + pub local_date_class: Option<LocalDate>, | |
| 26 | + | |
| 27 | + pub offset_date_time_class: Option<OffsetDateTime>, | |
| 28 | + | |
| 29 | + pub offset_time_class: Option<OffsetTime>, | |
| 30 | + | |
| 25 | 31 | pub time: String, |
| 26 | 32 | |
| 27 | 33 | pub union_array: Vec<String>, |
| @@ -34,3 +40,15 @@ pub enum ComplexUnionArray { | ||
| 34 | 40 | |
| 35 | 41 | PurpleString(String), |
| 36 | 42 | } |
| 43 | + | |
| 44 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 45 | +pub struct LocalDate { | |
| 46 | +} | |
| 47 | + | |
| 48 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 49 | +pub struct OffsetDateTime { | |
| 50 | +} | |
| 51 | + | |
| 52 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 53 | +pub struct OffsetTime { | |
| 54 | +} |
Mschema-scala3-upickledefault / TopLevel.scala+10 −0
| @@ -82,6 +82,9 @@ case class TopLevel ( | ||
| 82 | 82 | val `complex-union-array` : Seq[ComplexUnionArrayElement], |
| 83 | 83 | val date : String, |
| 84 | 84 | val `date-time` : java.time.Instant, |
| 85 | + val `local-date-class` : Option[LocalDate] = None, | |
| 86 | + val `offset-date-time-class` : Option[OffsetDateTime] = None, | |
| 87 | + val `offset-time-class` : Option[OffsetTime] = None, | |
| 85 | 88 | val time : String, |
| 86 | 89 | val `union-array` : Seq[String] |
| 87 | 90 | ) derives OptionPickler.ReadWriter |
| @@ -115,3 +118,10 @@ given OptionPickler.ReadWriter[ComplexUnionArrayEnum] = OptionPickler.readwriter | ||
| 115 | 118 | case other => throw new upickle.core.Abort("invalid ComplexUnionArrayEnum: " + other) |
| 116 | 119 | } |
| 117 | 120 | ) |
| 121 | + | |
| 122 | +case class LocalDate() | |
| 123 | + derives OptionPickler.ReadWriter | |
| 124 | +case class OffsetDateTime() | |
| 125 | + derives OptionPickler.ReadWriter | |
| 126 | +case class OffsetTime() | |
| 127 | + derives OptionPickler.ReadWriter | |
| \ No newline at end of file |
Mschema-scala3default / TopLevel.scala+9 −0
| @@ -11,6 +11,9 @@ case class TopLevel ( | ||
| 11 | 11 | val `complex-union-array` : Seq[ComplexUnionArrayElement], |
| 12 | 12 | val date : String, |
| 13 | 13 | val `date-time` : java.time.Instant, |
| 14 | + val `local-date-class` : Option[LocalDate] = None, | |
| 15 | + val `offset-date-time-class` : Option[OffsetDateTime] = None, | |
| 16 | + val `offset-time-class` : Option[OffsetTime] = None, | |
| 14 | 17 | val time : String, |
| 15 | 18 | val `union-array` : Seq[String] |
| 16 | 19 | ) derives Encoder.AsObject, Decoder |
| @@ -43,3 +46,9 @@ given Encoder[ComplexUnionArrayEnum] = Encoder.encodeString.contramap { | ||
| 43 | 46 | case ComplexUnionArrayEnum.Foo => "foo" |
| 44 | 47 | case ComplexUnionArrayEnum.Bar => "bar" |
| 45 | 48 | } |
| 49 | + | |
| 50 | +case class LocalDate() derives Encoder.AsObject, Decoder | |
| 51 | + | |
| 52 | +case class OffsetDateTime() derives Encoder.AsObject, Decoder | |
| 53 | + | |
| 54 | +case class OffsetTime() derives Encoder.AsObject, Decoder |
Mschema-schemadefault / TopLevel.schema+24 −0
| @@ -20,6 +20,15 @@ | ||
| 20 | 20 | "type": "string", |
| 21 | 21 | "format": "date-time" |
| 22 | 22 | }, |
| 23 | + "local-date-class": { | |
| 24 | + "$ref": "#/definitions/LocalDate" | |
| 25 | + }, | |
| 26 | + "offset-date-time-class": { | |
| 27 | + "$ref": "#/definitions/OffsetDateTime" | |
| 28 | + }, | |
| 29 | + "offset-time-class": { | |
| 30 | + "$ref": "#/definitions/OffsetTime" | |
| 31 | + }, | |
| 23 | 32 | "time": { |
| 24 | 33 | "type": "string", |
| 25 | 34 | "format": "time" |
| @@ -40,6 +49,21 @@ | ||
| 40 | 49 | ], |
| 41 | 50 | "title": "TopLevel" |
| 42 | 51 | }, |
| 52 | + "LocalDate": { | |
| 53 | + "type": "object", | |
| 54 | + "additionalProperties": false, | |
| 55 | + "title": "LocalDate" | |
| 56 | + }, | |
| 57 | + "OffsetDateTime": { | |
| 58 | + "type": "object", | |
| 59 | + "additionalProperties": false, | |
| 60 | + "title": "OffsetDateTime" | |
| 61 | + }, | |
| 62 | + "OffsetTime": { | |
| 63 | + "type": "object", | |
| 64 | + "additionalProperties": false, | |
| 65 | + "title": "OffsetTime" | |
| 66 | + }, | |
| 43 | 67 | "ComplexUnionArrayElement": { |
| 44 | 68 | "anyOf": [ |
| 45 | 69 | { |
Mschema-swiftdefault / quicktype.swift+141 −0
| @@ -10,6 +10,9 @@ struct TopLevel: Codable { | ||
| 10 | 10 | let complexUnionArray: [ComplexUnionArrayElement] |
| 11 | 11 | let date: String |
| 12 | 12 | let dateTime: Date |
| 13 | + let localDateClass: LocalDate? | |
| 14 | + let offsetDateTimeClass: OffsetDateTime? | |
| 15 | + let offsetTimeClass: OffsetTime? | |
| 13 | 16 | let time: String |
| 14 | 17 | let unionArray: [String] |
| 15 | 18 | |
| @@ -17,6 +20,9 @@ struct TopLevel: Codable { | ||
| 17 | 20 | case complexUnionArray = "complex-union-array" |
| 18 | 21 | case date = "date" |
| 19 | 22 | case dateTime = "date-time" |
| 23 | + case localDateClass = "local-date-class" | |
| 24 | + case offsetDateTimeClass = "offset-date-time-class" | |
| 25 | + case offsetTimeClass = "offset-time-class" | |
| 20 | 26 | case time = "time" |
| 21 | 27 | case unionArray = "union-array" |
| 22 | 28 | } |
| @@ -44,6 +50,9 @@ extension TopLevel { | ||
| 44 | 50 | complexUnionArray: [ComplexUnionArrayElement]? = nil, |
| 45 | 51 | date: String? = nil, |
| 46 | 52 | dateTime: Date? = nil, |
| 53 | + localDateClass: LocalDate?? = nil, | |
| 54 | + offsetDateTimeClass: OffsetDateTime?? = nil, | |
| 55 | + offsetTimeClass: OffsetTime?? = nil, | |
| 47 | 56 | time: String? = nil, |
| 48 | 57 | unionArray: [String]? = nil |
| 49 | 58 | ) -> TopLevel { |
| @@ -51,6 +60,9 @@ extension TopLevel { | ||
| 51 | 60 | complexUnionArray: complexUnionArray ?? self.complexUnionArray, |
| 52 | 61 | date: date ?? self.date, |
| 53 | 62 | dateTime: dateTime ?? self.dateTime, |
| 63 | + localDateClass: localDateClass ?? self.localDateClass, | |
| 64 | + offsetDateTimeClass: offsetDateTimeClass ?? self.offsetDateTimeClass, | |
| 65 | + offsetTimeClass: offsetTimeClass ?? self.offsetTimeClass, | |
| 54 | 66 | time: time ?? self.time, |
| 55 | 67 | unionArray: unionArray ?? self.unionArray |
| 56 | 68 | ) |
| @@ -105,6 +117,135 @@ enum ComplexUnionArrayEnum: String, Codable { | ||
| 105 | 117 | case bar = "bar" |
| 106 | 118 | } |
| 107 | 119 | |
| 120 | +// MARK: - LocalDate | |
| 121 | +struct LocalDate: Codable { | |
| 122 | + private enum K: String, CodingKey { case unused } | |
| 123 | + init(from decoder: Decoder) throws { | |
| 124 | + _ = try decoder.container(keyedBy: K.self) | |
| 125 | + } | |
| 126 | + init() { | |
| 127 | + } | |
| 128 | +} | |
| 129 | + | |
| 130 | +// MARK: LocalDate convenience initializers and mutators | |
| 131 | + | |
| 132 | +extension LocalDate { | |
| 133 | + init(data: Data) throws { | |
| 134 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 135 | + } | |
| 136 | + | |
| 137 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 138 | + guard let data = json.data(using: encoding) else { | |
| 139 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 140 | + } | |
| 141 | + try self.init(data: data) | |
| 142 | + } | |
| 143 | + | |
| 144 | + init(fromURL url: URL) throws { | |
| 145 | + try self.init(data: try Data(contentsOf: url)) | |
| 146 | + } | |
| 147 | + | |
| 148 | + func with( | |
| 149 | + ) -> LocalDate { | |
| 150 | + return LocalDate( | |
| 151 | + ) | |
| 152 | + } | |
| 153 | + | |
| 154 | + func jsonData() throws -> Data { | |
| 155 | + return try newJSONEncoder().encode(self) | |
| 156 | + } | |
| 157 | + | |
| 158 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 159 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 160 | + } | |
| 161 | +} | |
| 162 | + | |
| 163 | +// MARK: - OffsetDateTime | |
| 164 | +struct OffsetDateTime: Codable { | |
| 165 | + private enum K: String, CodingKey { case unused } | |
| 166 | + init(from decoder: Decoder) throws { | |
| 167 | + _ = try decoder.container(keyedBy: K.self) | |
| 168 | + } | |
| 169 | + init() { | |
| 170 | + } | |
| 171 | +} | |
| 172 | + | |
| 173 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 174 | + | |
| 175 | +extension OffsetDateTime { | |
| 176 | + init(data: Data) throws { | |
| 177 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 178 | + } | |
| 179 | + | |
| 180 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 181 | + guard let data = json.data(using: encoding) else { | |
| 182 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 183 | + } | |
| 184 | + try self.init(data: data) | |
| 185 | + } | |
| 186 | + | |
| 187 | + init(fromURL url: URL) throws { | |
| 188 | + try self.init(data: try Data(contentsOf: url)) | |
| 189 | + } | |
| 190 | + | |
| 191 | + func with( | |
| 192 | + ) -> OffsetDateTime { | |
| 193 | + return OffsetDateTime( | |
| 194 | + ) | |
| 195 | + } | |
| 196 | + | |
| 197 | + func jsonData() throws -> Data { | |
| 198 | + return try newJSONEncoder().encode(self) | |
| 199 | + } | |
| 200 | + | |
| 201 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 202 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 203 | + } | |
| 204 | +} | |
| 205 | + | |
| 206 | +// MARK: - OffsetTime | |
| 207 | +struct OffsetTime: Codable { | |
| 208 | + private enum K: String, CodingKey { case unused } | |
| 209 | + init(from decoder: Decoder) throws { | |
| 210 | + _ = try decoder.container(keyedBy: K.self) | |
| 211 | + } | |
| 212 | + init() { | |
| 213 | + } | |
| 214 | +} | |
| 215 | + | |
| 216 | +// MARK: OffsetTime convenience initializers and mutators | |
| 217 | + | |
| 218 | +extension OffsetTime { | |
| 219 | + init(data: Data) throws { | |
| 220 | + self = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 221 | + } | |
| 222 | + | |
| 223 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 224 | + guard let data = json.data(using: encoding) else { | |
| 225 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 226 | + } | |
| 227 | + try self.init(data: data) | |
| 228 | + } | |
| 229 | + | |
| 230 | + init(fromURL url: URL) throws { | |
| 231 | + try self.init(data: try Data(contentsOf: url)) | |
| 232 | + } | |
| 233 | + | |
| 234 | + func with( | |
| 235 | + ) -> OffsetTime { | |
| 236 | + return OffsetTime( | |
| 237 | + ) | |
| 238 | + } | |
| 239 | + | |
| 240 | + func jsonData() throws -> Data { | |
| 241 | + return try newJSONEncoder().encode(self) | |
| 242 | + } | |
| 243 | + | |
| 244 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 245 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 246 | + } | |
| 247 | +} | |
| 248 | + | |
| 108 | 249 | // MARK: - Helper functions for creating encoders and decoders |
| 109 | 250 | |
| 110 | 251 | func newJSONDecoder() -> JSONDecoder { |
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
| @@ -7,10 +7,22 @@ export const ComplexUnionArrayEnum = S.Literal( | ||
| 7 | 7 | ); |
| 8 | 8 | export type ComplexUnionArrayEnum = S.Schema.Type<typeof ComplexUnionArrayEnum>; |
| 9 | 9 | |
| 10 | +export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 11 | +) {} | |
| 12 | + | |
| 13 | +export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 14 | +) {} | |
| 15 | + | |
| 16 | +export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 17 | +) {} | |
| 18 | + | |
| 10 | 19 | export class TopLevel extends S.Class<TopLevel>("TopLevel")({ |
| 11 | 20 | "complex-union-array": S.Array(S.Union(S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), ComplexUnionArrayEnum, S.Int)), |
| 12 | 21 | "date": S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/)), |
| 13 | 22 | "date-time": S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), |
| 23 | + "local-date-class": S.optional(LocalDate), | |
| 24 | + "offset-date-time-class": S.optional(OffsetDateTime), | |
| 25 | + "offset-time-class": S.optional(OffsetTime), | |
| 14 | 26 | "time": S.String.pipe(S.pattern(/^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), |
| 15 | 27 | "union-array": S.Array(S.Union(S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/)), S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), S.String.pipe(S.pattern(/^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)))), |
| 16 | 28 | }) {} |
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
| @@ -7,10 +7,25 @@ export const ComplexUnionArrayEnumSchema = z.enum([ | ||
| 7 | 7 | ]); |
| 8 | 8 | export type ComplexUnionArrayEnum = z.infer<typeof ComplexUnionArrayEnumSchema>; |
| 9 | 9 | |
| 10 | +export const LocalDateSchema = z.object({ | |
| 11 | +}); | |
| 12 | +export type LocalDate = z.infer<typeof LocalDateSchema>; | |
| 13 | + | |
| 14 | +export const OffsetDateTimeSchema = z.object({ | |
| 15 | +}); | |
| 16 | +export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>; | |
| 17 | + | |
| 18 | +export const OffsetTimeSchema = z.object({ | |
| 19 | +}); | |
| 20 | +export type OffsetTime = z.infer<typeof OffsetTimeSchema>; | |
| 21 | + | |
| 10 | 22 | export const TopLevelSchema = z.object({ |
| 11 | 23 | "complex-union-array": z.array(z.union([ComplexUnionArrayEnumSchema, z.number().int(), z.string().pipe(z.coerce.date())])), |
| 12 | 24 | "date": z.string(), |
| 13 | 25 | "date-time": z.string().pipe(z.coerce.date()), |
| 26 | + "local-date-class": LocalDateSchema.optional(), | |
| 27 | + "offset-date-time-class": OffsetDateTimeSchema.optional(), | |
| 28 | + "offset-time-class": OffsetTimeSchema.optional(), | |
| 14 | 29 | "time": z.string(), |
| 15 | 30 | "union-array": z.array(z.string()), |
| 16 | 31 | }); |
Mschema-typescriptdefault / TopLevel.ts+11 −5
| @@ -8,11 +8,14 @@ | ||
| 8 | 8 | // match the expected interface, even if the JSON is valid. |
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | - "complex-union-array": ComplexUnionArrayElement[]; | |
| 12 | - date: Date; | |
| 13 | - "date-time": Date; | |
| 14 | - time: string; | |
| 15 | - "union-array": string[]; | |
| 11 | + "complex-union-array": ComplexUnionArrayElement[]; | |
| 12 | + date: Date; | |
| 13 | + "date-time": Date; | |
| 14 | + "local-date-class"?: object; | |
| 15 | + "offset-date-time-class"?: object; | |
| 16 | + "offset-time-class"?: object; | |
| 17 | + time: string; | |
| 18 | + "union-array": string[]; | |
| 16 | 19 | } |
| 17 | 20 | |
| 18 | 21 | export type ComplexUnionArrayElement = Date | ComplexUnionArrayEnum | number; |
| @@ -210,6 +213,9 @@ const typeMap: any = { | ||
| 210 | 213 | { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) }, |
| 211 | 214 | { json: "date", js: "date", typ: Date }, |
| 212 | 215 | { json: "date-time", js: "date-time", typ: Date }, |
| 216 | + { json: "local-date-class", js: "local-date-class", typ: u(undefined, m("any")) }, | |
| 217 | + { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, m("any")) }, | |
| 218 | + { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, m("any")) }, | |
| 213 | 219 | { json: "time", js: "time", typ: "" }, |
| 214 | 220 | { json: "union-array", js: "union-array", typ: a("") }, |
| 215 | 221 | ], false), |
Test case
34 generated files · +216 −12test/inputs/schema/keyword-enum.schema
Mschema-cjsondefault / TopLevel.c+6 −0
| @@ -185,6 +185,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) { | ||
| 185 | 185 | else if (!strcmp(cJSON_GetStringValue(j), "left")) x = ENUM_LEFT; |
| 186 | 186 | else if (!strcmp(cJSON_GetStringValue(j), "let")) x = ENUM_LET; |
| 187 | 187 | else if (!strcmp(cJSON_GetStringValue(j), "list")) x = ENUM_LIST; |
| 188 | + else if (!strcmp(cJSON_GetStringValue(j), "LocalDate")) x = ENUM_LOCAL_DATE; | |
| 188 | 189 | else if (!strcmp(cJSON_GetStringValue(j), "Locale")) x = ENUM_LOCALE; |
| 189 | 190 | else if (!strcmp(cJSON_GetStringValue(j), "lock")) x = ENUM_LOCK; |
| 190 | 191 | else if (!strcmp(cJSON_GetStringValue(j), "long")) x = ENUM_LONG; |
| @@ -218,6 +219,8 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) { | ||
| 218 | 219 | else if (!strcmp(cJSON_GetStringValue(j), "nullptr")) x = ENUM_NULLPTR; |
| 219 | 220 | else if (!strcmp(cJSON_GetStringValue(j), "number")) x = ENUM_NUMBER; |
| 220 | 221 | else if (!strcmp(cJSON_GetStringValue(j), "object")) x = ENUM_OBJECT; |
| 222 | + else if (!strcmp(cJSON_GetStringValue(j), "OffsetDateTime")) x = ENUM_OFFSET_DATE_TIME; | |
| 223 | + else if (!strcmp(cJSON_GetStringValue(j), "OffsetTime")) x = ENUM_OFFSET_TIME; | |
| 221 | 224 | else if (!strcmp(cJSON_GetStringValue(j), "ObjectMapper")) x = ENUM_OBJECT_MAPPER; |
| 222 | 225 | else if (!strcmp(cJSON_GetStringValue(j), "of")) x = ENUM_OF; |
| 223 | 226 | else if (!strcmp(cJSON_GetStringValue(j), "oneway")) x = ENUM_ONEWAY; |
| @@ -535,6 +538,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) { | ||
| 535 | 538 | case ENUM_LEFT: j = cJSON_CreateString("left"); break; |
| 536 | 539 | case ENUM_LET: j = cJSON_CreateString("let"); break; |
| 537 | 540 | case ENUM_LIST: j = cJSON_CreateString("list"); break; |
| 541 | + case ENUM_LOCAL_DATE: j = cJSON_CreateString("LocalDate"); break; | |
| 538 | 542 | case ENUM_LOCALE: j = cJSON_CreateString("Locale"); break; |
| 539 | 543 | case ENUM_LOCK: j = cJSON_CreateString("lock"); break; |
| 540 | 544 | case ENUM_LONG: j = cJSON_CreateString("long"); break; |
| @@ -568,6 +572,8 @@ cJSON * cJSON_CreateEnum(const enum Enum x) { | ||
| 568 | 572 | case ENUM_NULLPTR: j = cJSON_CreateString("nullptr"); break; |
| 569 | 573 | case ENUM_NUMBER: j = cJSON_CreateString("number"); break; |
| 570 | 574 | case ENUM_OBJECT: j = cJSON_CreateString("object"); break; |
| 575 | + case ENUM_OFFSET_DATE_TIME: j = cJSON_CreateString("OffsetDateTime"); break; | |
| 576 | + case ENUM_OFFSET_TIME: j = cJSON_CreateString("OffsetTime"); break; | |
| 571 | 577 | case ENUM_OBJECT_MAPPER: j = cJSON_CreateString("ObjectMapper"); break; |
| 572 | 578 | case ENUM_OF: j = cJSON_CreateString("of"); break; |
| 573 | 579 | case ENUM_ONEWAY: j = cJSON_CreateString("oneway"); break; |
Mschema-cjsondefault / TopLevel.h+3 −0
| @@ -226,6 +226,7 @@ enum Enum { | ||
| 226 | 226 | ENUM_LEFT, |
| 227 | 227 | ENUM_LET, |
| 228 | 228 | ENUM_LIST, |
| 229 | + ENUM_LOCAL_DATE, | |
| 229 | 230 | ENUM_LOCALE, |
| 230 | 231 | ENUM_LOCK, |
| 231 | 232 | ENUM_LONG, |
| @@ -259,6 +260,8 @@ enum Enum { | ||
| 259 | 260 | ENUM_NULLPTR, |
| 260 | 261 | ENUM_NUMBER, |
| 261 | 262 | ENUM_OBJECT, |
| 263 | + ENUM_OFFSET_DATE_TIME, | |
| 264 | + ENUM_OFFSET_TIME, | |
| 262 | 265 | ENUM_OBJECT_MAPPER, |
| 263 | 266 | ENUM_OF, |
| 264 | 267 | ENUM_ONEWAY, |
Mschema-cplusplusdefault / quicktype.hpp+7 −1
| @@ -89,7 +89,7 @@ namespace quicktype { | ||
| 89 | 89 | } |
| 90 | 90 | #endif |
| 91 | 91 | |
| 92 | - enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY }; | |
| 92 | + enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCAL_DATE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OFFSET_DATE_TIME, OFFSET_TIME, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY }; | |
| 93 | 93 | |
| 94 | 94 | class TopLevel { |
| 95 | 95 | public: |
| @@ -303,6 +303,7 @@ namespace quicktype { | ||
| 303 | 303 | {"left", Enum::LEFT}, |
| 304 | 304 | {"let", Enum::LET}, |
| 305 | 305 | {"list", Enum::LIST}, |
| 306 | + {"LocalDate", Enum::LOCAL_DATE}, | |
| 306 | 307 | {"Locale", Enum::LOCALE}, |
| 307 | 308 | {"lock", Enum::LOCK}, |
| 308 | 309 | {"long", Enum::LONG}, |
| @@ -336,6 +337,8 @@ namespace quicktype { | ||
| 336 | 337 | {"nullptr", Enum::NULLPTR}, |
| 337 | 338 | {"number", Enum::NUMBER}, |
| 338 | 339 | {"object", Enum::OBJECT}, |
| 340 | + {"OffsetDateTime", Enum::OFFSET_DATE_TIME}, | |
| 341 | + {"OffsetTime", Enum::OFFSET_TIME}, | |
| 339 | 342 | {"ObjectMapper", Enum::OBJECT_MAPPER}, |
| 340 | 343 | {"of", Enum::OF}, |
| 341 | 344 | {"oneway", Enum::ONEWAY}, |
| @@ -656,6 +659,7 @@ namespace quicktype { | ||
| 656 | 659 | case Enum::LEFT: j = "left"; break; |
| 657 | 660 | case Enum::LET: j = "let"; break; |
| 658 | 661 | case Enum::LIST: j = "list"; break; |
| 662 | + case Enum::LOCAL_DATE: j = "LocalDate"; break; | |
| 659 | 663 | case Enum::LOCALE: j = "Locale"; break; |
| 660 | 664 | case Enum::LOCK: j = "lock"; break; |
| 661 | 665 | case Enum::LONG: j = "long"; break; |
| @@ -689,6 +693,8 @@ namespace quicktype { | ||
| 689 | 693 | case Enum::NULLPTR: j = "nullptr"; break; |
| 690 | 694 | case Enum::NUMBER: j = "number"; break; |
| 691 | 695 | case Enum::OBJECT: j = "object"; break; |
| 696 | + case Enum::OFFSET_DATE_TIME: j = "OffsetDateTime"; break; | |
| 697 | + case Enum::OFFSET_TIME: j = "OffsetTime"; break; | |
| 692 | 698 | case Enum::OBJECT_MAPPER: j = "ObjectMapper"; break; |
| 693 | 699 | case Enum::OF: j = "of"; break; |
| 694 | 700 | case Enum::ONEWAY: j = "oneway"; break; |
Mschema-csharp-recordsdefault / QuickType.cs+16 −1
| @@ -29,7 +29,7 @@ namespace QuickType | ||
| 29 | 29 | public Enum? Enum { get; set; } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 32 | + public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LocalDate, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 33 | 33 | |
| 34 | 34 | public partial record TopLevel |
| 35 | 35 | { |
| @@ -419,6 +419,8 @@ namespace QuickType | ||
| 419 | 419 | return Enum.Let; |
| 420 | 420 | case "list": |
| 421 | 421 | return Enum.List; |
| 422 | + case "LocalDate": | |
| 423 | + return Enum.LocalDate; | |
| 422 | 424 | case "Locale": |
| 423 | 425 | return Enum.Locale; |
| 424 | 426 | case "lock": |
| @@ -485,6 +487,10 @@ namespace QuickType | ||
| 485 | 487 | return Enum.Number; |
| 486 | 488 | case "object": |
| 487 | 489 | return Enum.Object; |
| 490 | + case "OffsetDateTime": | |
| 491 | + return Enum.OffsetDateTime; | |
| 492 | + case "OffsetTime": | |
| 493 | + return Enum.OffsetTime; | |
| 488 | 494 | case "ObjectMapper": |
| 489 | 495 | return Enum.ObjectMapper; |
| 490 | 496 | case "of": |
| @@ -1296,6 +1302,9 @@ namespace QuickType | ||
| 1296 | 1302 | case Enum.List: |
| 1297 | 1303 | serializer.Serialize(writer, "list"); |
| 1298 | 1304 | return; |
| 1305 | + case Enum.LocalDate: | |
| 1306 | + serializer.Serialize(writer, "LocalDate"); | |
| 1307 | + return; | |
| 1299 | 1308 | case Enum.Locale: |
| 1300 | 1309 | serializer.Serialize(writer, "Locale"); |
| 1301 | 1310 | return; |
| @@ -1395,6 +1404,12 @@ namespace QuickType | ||
| 1395 | 1404 | case Enum.Object: |
| 1396 | 1405 | serializer.Serialize(writer, "object"); |
| 1397 | 1406 | return; |
| 1407 | + case Enum.OffsetDateTime: | |
| 1408 | + serializer.Serialize(writer, "OffsetDateTime"); | |
| 1409 | + return; | |
| 1410 | + case Enum.OffsetTime: | |
| 1411 | + serializer.Serialize(writer, "OffsetTime"); | |
| 1412 | + return; | |
| 1398 | 1413 | case Enum.ObjectMapper: |
| 1399 | 1414 | serializer.Serialize(writer, "ObjectMapper"); |
| 1400 | 1415 | return; |
Mschema-csharp-SystemTextJsondefault / QuickType.cs+16 −1
| @@ -27,7 +27,7 @@ namespace QuickType | ||
| 27 | 27 | public Enum? Enum { get; set; } |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 30 | + public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LocalDate, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 31 | 31 | |
| 32 | 32 | public partial class TopLevel |
| 33 | 33 | { |
| @@ -416,6 +416,8 @@ namespace QuickType | ||
| 416 | 416 | return Enum.Let; |
| 417 | 417 | case "list": |
| 418 | 418 | return Enum.List; |
| 419 | + case "LocalDate": | |
| 420 | + return Enum.LocalDate; | |
| 419 | 421 | case "Locale": |
| 420 | 422 | return Enum.Locale; |
| 421 | 423 | case "lock": |
| @@ -482,6 +484,10 @@ namespace QuickType | ||
| 482 | 484 | return Enum.Number; |
| 483 | 485 | case "object": |
| 484 | 486 | return Enum.Object; |
| 487 | + case "OffsetDateTime": | |
| 488 | + return Enum.OffsetDateTime; | |
| 489 | + case "OffsetTime": | |
| 490 | + return Enum.OffsetTime; | |
| 485 | 491 | case "ObjectMapper": |
| 486 | 492 | return Enum.ObjectMapper; |
| 487 | 493 | case "of": |
| @@ -1287,6 +1293,9 @@ namespace QuickType | ||
| 1287 | 1293 | case Enum.List: |
| 1288 | 1294 | JsonSerializer.Serialize(writer, "list", options); |
| 1289 | 1295 | return; |
| 1296 | + case Enum.LocalDate: | |
| 1297 | + JsonSerializer.Serialize(writer, "LocalDate", options); | |
| 1298 | + return; | |
| 1290 | 1299 | case Enum.Locale: |
| 1291 | 1300 | JsonSerializer.Serialize(writer, "Locale", options); |
| 1292 | 1301 | return; |
| @@ -1386,6 +1395,12 @@ namespace QuickType | ||
| 1386 | 1395 | case Enum.Object: |
| 1387 | 1396 | JsonSerializer.Serialize(writer, "object", options); |
| 1388 | 1397 | return; |
| 1398 | + case Enum.OffsetDateTime: | |
| 1399 | + JsonSerializer.Serialize(writer, "OffsetDateTime", options); | |
| 1400 | + return; | |
| 1401 | + case Enum.OffsetTime: | |
| 1402 | + JsonSerializer.Serialize(writer, "OffsetTime", options); | |
| 1403 | + return; | |
| 1389 | 1404 | case Enum.ObjectMapper: |
| 1390 | 1405 | JsonSerializer.Serialize(writer, "ObjectMapper", options); |
| 1391 | 1406 | return; |
Mschema-csharpdefault / QuickType.cs+16 −1
| @@ -29,7 +29,7 @@ namespace QuickType | ||
| 29 | 29 | public Enum? Enum { get; set; } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 32 | + public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, LocalDate, Locale, Lock, Long, Map, MarshalJson, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJson, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 33 | 33 | |
| 34 | 34 | public partial class TopLevel |
| 35 | 35 | { |
| @@ -419,6 +419,8 @@ namespace QuickType | ||
| 419 | 419 | return Enum.Let; |
| 420 | 420 | case "list": |
| 421 | 421 | return Enum.List; |
| 422 | + case "LocalDate": | |
| 423 | + return Enum.LocalDate; | |
| 422 | 424 | case "Locale": |
| 423 | 425 | return Enum.Locale; |
| 424 | 426 | case "lock": |
| @@ -485,6 +487,10 @@ namespace QuickType | ||
| 485 | 487 | return Enum.Number; |
| 486 | 488 | case "object": |
| 487 | 489 | return Enum.Object; |
| 490 | + case "OffsetDateTime": | |
| 491 | + return Enum.OffsetDateTime; | |
| 492 | + case "OffsetTime": | |
| 493 | + return Enum.OffsetTime; | |
| 488 | 494 | case "ObjectMapper": |
| 489 | 495 | return Enum.ObjectMapper; |
| 490 | 496 | case "of": |
| @@ -1296,6 +1302,9 @@ namespace QuickType | ||
| 1296 | 1302 | case Enum.List: |
| 1297 | 1303 | serializer.Serialize(writer, "list"); |
| 1298 | 1304 | return; |
| 1305 | + case Enum.LocalDate: | |
| 1306 | + serializer.Serialize(writer, "LocalDate"); | |
| 1307 | + return; | |
| 1299 | 1308 | case Enum.Locale: |
| 1300 | 1309 | serializer.Serialize(writer, "Locale"); |
| 1301 | 1310 | return; |
| @@ -1395,6 +1404,12 @@ namespace QuickType | ||
| 1395 | 1404 | case Enum.Object: |
| 1396 | 1405 | serializer.Serialize(writer, "object"); |
| 1397 | 1406 | return; |
| 1407 | + case Enum.OffsetDateTime: | |
| 1408 | + serializer.Serialize(writer, "OffsetDateTime"); | |
| 1409 | + return; | |
| 1410 | + case Enum.OffsetTime: | |
| 1411 | + serializer.Serialize(writer, "OffsetTime"); | |
| 1412 | + return; | |
| 1398 | 1413 | case Enum.ObjectMapper: |
| 1399 | 1414 | serializer.Serialize(writer, "ObjectMapper"); |
| 1400 | 1415 | return; |
Mschema-dartdefault / TopLevel.dart+6 −0
| @@ -202,6 +202,7 @@ enum Enum { | ||
| 202 | 202 | LEFT, |
| 203 | 203 | LET, |
| 204 | 204 | LIST, |
| 205 | + LOCAL_DATE, | |
| 205 | 206 | LOCALE, |
| 206 | 207 | LOCK, |
| 207 | 208 | LONG, |
| @@ -235,6 +236,8 @@ enum Enum { | ||
| 235 | 236 | NULLPTR, |
| 236 | 237 | NUMBER, |
| 237 | 238 | OBJECT, |
| 239 | + OFFSET_DATE_TIME, | |
| 240 | + OFFSET_TIME, | |
| 238 | 241 | OBJECT_MAPPER, |
| 239 | 242 | OF, |
| 240 | 243 | ONEWAY, |
| @@ -548,6 +551,7 @@ final enumValues = EnumValues({ | ||
| 548 | 551 | "left": Enum.LEFT, |
| 549 | 552 | "let": Enum.LET, |
| 550 | 553 | "list": Enum.LIST, |
| 554 | + "LocalDate": Enum.LOCAL_DATE, | |
| 551 | 555 | "Locale": Enum.LOCALE, |
| 552 | 556 | "lock": Enum.LOCK, |
| 553 | 557 | "long": Enum.LONG, |
| @@ -581,6 +585,8 @@ final enumValues = EnumValues({ | ||
| 581 | 585 | "nullptr": Enum.NULLPTR, |
| 582 | 586 | "number": Enum.NUMBER, |
| 583 | 587 | "object": Enum.OBJECT, |
| 588 | + "OffsetDateTime": Enum.OFFSET_DATE_TIME, | |
| 589 | + "OffsetTime": Enum.OFFSET_TIME, | |
| 584 | 590 | "ObjectMapper": Enum.OBJECT_MAPPER, |
| 585 | 591 | "of": Enum.OF, |
| 586 | 592 | "oneway": Enum.ONEWAY, |
Mschema-elixirdefault / QuickType.ex+3 −0
| @@ -184,6 +184,7 @@ defmodule EnumEnum do | ||
| 184 | 184 | :left, |
| 185 | 185 | :let, |
| 186 | 186 | :list, |
| 187 | + :LocalDate, | |
| 187 | 188 | :Locale, |
| 188 | 189 | :lock, |
| 189 | 190 | :long, |
| @@ -217,6 +218,8 @@ defmodule EnumEnum do | ||
| 217 | 218 | :nullptr, |
| 218 | 219 | :number, |
| 219 | 220 | :object, |
| 221 | + :OffsetDateTime, | |
| 222 | + :OffsetTime, | |
| 220 | 223 | :ObjectMapper, |
| 221 | 224 | :of, |
| 222 | 225 | :oneway, |
Mschema-elmdefault / QuickType.elm+9 −0
| @@ -205,6 +205,7 @@ type EnumEnum | ||
| 205 | 205 | | Left |
| 206 | 206 | | Let |
| 207 | 207 | | EnumList |
| 208 | + | LocalDate | |
| 208 | 209 | | Locale |
| 209 | 210 | | Lock |
| 210 | 211 | | Long |
| @@ -238,6 +239,8 @@ type EnumEnum | ||
| 238 | 239 | | Nullptr |
| 239 | 240 | | Number |
| 240 | 241 | | Object |
| 242 | + | OffsetDateTime | |
| 243 | + | OffsetTime | |
| 241 | 244 | | ObjectMapper |
| 242 | 245 | | Of |
| 243 | 246 | | Oneway |
| @@ -576,6 +579,7 @@ enumEnum = | ||
| 576 | 579 | "left" -> Jdec.succeed Left |
| 577 | 580 | "let" -> Jdec.succeed Let |
| 578 | 581 | "list" -> Jdec.succeed EnumList |
| 582 | + "LocalDate" -> Jdec.succeed LocalDate | |
| 579 | 583 | "Locale" -> Jdec.succeed Locale |
| 580 | 584 | "lock" -> Jdec.succeed Lock |
| 581 | 585 | "long" -> Jdec.succeed Long |
| @@ -609,6 +613,8 @@ enumEnum = | ||
| 609 | 613 | "nullptr" -> Jdec.succeed Nullptr |
| 610 | 614 | "number" -> Jdec.succeed Number |
| 611 | 615 | "object" -> Jdec.succeed Object |
| 616 | + "OffsetDateTime" -> Jdec.succeed OffsetDateTime | |
| 617 | + "OffsetTime" -> Jdec.succeed OffsetTime | |
| 612 | 618 | "ObjectMapper" -> Jdec.succeed ObjectMapper |
| 613 | 619 | "of" -> Jdec.succeed Of |
| 614 | 620 | "oneway" -> Jdec.succeed Oneway |
| @@ -924,6 +930,7 @@ encodeEnumEnum x = case x of | ||
| 924 | 930 | Left -> Jenc.string "left" |
| 925 | 931 | Let -> Jenc.string "let" |
| 926 | 932 | EnumList -> Jenc.string "list" |
| 933 | + LocalDate -> Jenc.string "LocalDate" | |
| 927 | 934 | Locale -> Jenc.string "Locale" |
| 928 | 935 | Lock -> Jenc.string "lock" |
| 929 | 936 | Long -> Jenc.string "long" |
| @@ -957,6 +964,8 @@ encodeEnumEnum x = case x of | ||
| 957 | 964 | Nullptr -> Jenc.string "nullptr" |
| 958 | 965 | Number -> Jenc.string "number" |
| 959 | 966 | Object -> Jenc.string "object" |
| 967 | + OffsetDateTime -> Jenc.string "OffsetDateTime" | |
| 968 | + OffsetTime -> Jenc.string "OffsetTime" | |
| 960 | 969 | ObjectMapper -> Jenc.string "ObjectMapper" |
| 961 | 970 | Of -> Jenc.string "of" |
| 962 | 971 | Oneway -> Jenc.string "oneway" |
Mschema-flowdefault / TopLevel.js+6 −0
| @@ -192,6 +192,7 @@ export type Enum = | ||
| 192 | 192 | | "left" |
| 193 | 193 | | "let" |
| 194 | 194 | | "list" |
| 195 | + | "LocalDate" | |
| 195 | 196 | | "Locale" |
| 196 | 197 | | "lock" |
| 197 | 198 | | "long" |
| @@ -225,6 +226,8 @@ export type Enum = | ||
| 225 | 226 | | "nullptr" |
| 226 | 227 | | "number" |
| 227 | 228 | | "object" |
| 229 | + | "OffsetDateTime" | |
| 230 | + | "OffsetTime" | |
| 228 | 231 | | "ObjectMapper" |
| 229 | 232 | | "of" |
| 230 | 233 | | "oneway" |
| @@ -725,6 +728,7 @@ const typeMap: any = { | ||
| 725 | 728 | "left", |
| 726 | 729 | "let", |
| 727 | 730 | "list", |
| 731 | + "LocalDate", | |
| 728 | 732 | "Locale", |
| 729 | 733 | "lock", |
| 730 | 734 | "long", |
| @@ -758,6 +762,8 @@ const typeMap: any = { | ||
| 758 | 762 | "nullptr", |
| 759 | 763 | "number", |
| 760 | 764 | "object", |
| 765 | + "OffsetDateTime", | |
| 766 | + "OffsetTime", | |
| 761 | 767 | "ObjectMapper", |
| 762 | 768 | "of", |
| 763 | 769 | "oneway", |
Mschema-golangdefault / quicktype.go+4 −1
| @@ -202,6 +202,7 @@ const ( | ||
| 202 | 202 | Left EnumEnum = "left" |
| 203 | 203 | Let EnumEnum = "let" |
| 204 | 204 | List EnumEnum = "list" |
| 205 | + LocalDate EnumEnum = "LocalDate" | |
| 205 | 206 | Locale EnumEnum = "Locale" |
| 206 | 207 | Lock EnumEnum = "lock" |
| 207 | 208 | Long EnumEnum = "long" |
| @@ -235,6 +236,8 @@ const ( | ||
| 235 | 236 | Nullptr EnumEnum = "nullptr" |
| 236 | 237 | Number EnumEnum = "number" |
| 237 | 238 | Object EnumEnum = "object" |
| 239 | + OffsetDateTime EnumEnum = "OffsetDateTime" | |
| 240 | + OffsetTime EnumEnum = "OffsetTime" | |
| 238 | 241 | ObjectMapper EnumEnum = "ObjectMapper" |
| 239 | 242 | Of EnumEnum = "of" |
| 240 | 243 | Oneway EnumEnum = "oneway" |
| @@ -377,7 +380,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error { | ||
| 377 | 380 | var value string |
| 378 | 381 | if err := json.Unmarshal(data, &value); err != nil { return err } |
| 379 | 382 | switch EnumEnum(value) { |
| 380 | - case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MarshalJSON, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJSON, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil | |
| 383 | + case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromDict, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, LocalDate, Locale, Lock, Long, Map, MarshalJSON, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, OffsetDateTime, OffsetTime, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, ToDict, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, UnmarshalJSON, UseSerializers, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil | |
| 381 | 384 | } |
| 382 | 385 | return invalidEnumEnum(value) |
| 383 | 386 | } |
Mschema-haskelldefault / QuickType.hs+9 −0
| @@ -195,6 +195,7 @@ data EnumEnum | ||
| 195 | 195 | | LeftEnumEnum |
| 196 | 196 | | LetEnumEnum |
| 197 | 197 | | ListEnumEnum |
| 198 | + | LocalDateEnumEnum | |
| 198 | 199 | | LocaleEnumEnum |
| 199 | 200 | | LockEnumEnum |
| 200 | 201 | | LongEnumEnum |
| @@ -228,6 +229,8 @@ data EnumEnum | ||
| 228 | 229 | | NullptrEnumEnum |
| 229 | 230 | | NumberEnumEnum |
| 230 | 231 | | ObjectEnumEnum |
| 232 | + | OffsetDateTimeEnumEnum | |
| 233 | + | OffsetTimeEnumEnum | |
| 231 | 234 | | ObjectMapperEnumEnum |
| 232 | 235 | | OfEnumEnum |
| 233 | 236 | | OnewayEnumEnum |
| @@ -554,6 +557,7 @@ instance ToJSON EnumEnum where | ||
| 554 | 557 | toJSON LeftEnumEnum = "left" |
| 555 | 558 | toJSON LetEnumEnum = "let" |
| 556 | 559 | toJSON ListEnumEnum = "list" |
| 560 | + toJSON LocalDateEnumEnum = "LocalDate" | |
| 557 | 561 | toJSON LocaleEnumEnum = "Locale" |
| 558 | 562 | toJSON LockEnumEnum = "lock" |
| 559 | 563 | toJSON LongEnumEnum = "long" |
| @@ -587,6 +591,8 @@ instance ToJSON EnumEnum where | ||
| 587 | 591 | toJSON NullptrEnumEnum = "nullptr" |
| 588 | 592 | toJSON NumberEnumEnum = "number" |
| 589 | 593 | toJSON ObjectEnumEnum = "object" |
| 594 | + toJSON OffsetDateTimeEnumEnum = "OffsetDateTime" | |
| 595 | + toJSON OffsetTimeEnumEnum = "OffsetTime" | |
| 590 | 596 | toJSON ObjectMapperEnumEnum = "ObjectMapper" |
| 591 | 597 | toJSON OfEnumEnum = "of" |
| 592 | 598 | toJSON OnewayEnumEnum = "oneway" |
| @@ -901,6 +907,7 @@ instance FromJSON EnumEnum where | ||
| 901 | 907 | parseText "left" = return LeftEnumEnum |
| 902 | 908 | parseText "let" = return LetEnumEnum |
| 903 | 909 | parseText "list" = return ListEnumEnum |
| 910 | + parseText "LocalDate" = return LocalDateEnumEnum | |
| 904 | 911 | parseText "Locale" = return LocaleEnumEnum |
| 905 | 912 | parseText "lock" = return LockEnumEnum |
| 906 | 913 | parseText "long" = return LongEnumEnum |
| @@ -934,6 +941,8 @@ instance FromJSON EnumEnum where | ||
| 934 | 941 | parseText "nullptr" = return NullptrEnumEnum |
| 935 | 942 | parseText "number" = return NumberEnumEnum |
| 936 | 943 | parseText "object" = return ObjectEnumEnum |
| 944 | + parseText "OffsetDateTime" = return OffsetDateTimeEnumEnum | |
| 945 | + parseText "OffsetTime" = return OffsetTimeEnumEnum | |
| 937 | 946 | parseText "ObjectMapper" = return ObjectMapperEnumEnum |
| 938 | 947 | parseText "of" = return OfEnumEnum |
| 939 | 948 | parseText "oneway" = return OnewayEnumEnum |
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / Enum.java+7 −1
| @@ -4,7 +4,7 @@ import java.io.IOException; | ||
| 4 | 4 | import com.fasterxml.jackson.annotation.*; |
| 5 | 5 | |
| 6 | 6 | public enum Enum { |
| 7 | - EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 7 | + EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCAL_DATE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OFFSET_DATE_TIME, OFFSET_TIME, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 8 | 8 | |
| 9 | 9 | @JsonValue |
| 10 | 10 | public String toValue() { |
| @@ -186,6 +186,7 @@ public enum Enum { | ||
| 186 | 186 | case LEFT: return "left"; |
| 187 | 187 | case LET: return "let"; |
| 188 | 188 | case LIST: return "list"; |
| 189 | + case LOCAL_DATE: return "LocalDate"; | |
| 189 | 190 | case LOCALE: return "Locale"; |
| 190 | 191 | case LOCK: return "lock"; |
| 191 | 192 | case LONG: return "long"; |
| @@ -219,6 +220,8 @@ public enum Enum { | ||
| 219 | 220 | case NULLPTR: return "nullptr"; |
| 220 | 221 | case NUMBER: return "number"; |
| 221 | 222 | case OBJECT: return "object"; |
| 223 | + case OFFSET_DATE_TIME: return "OffsetDateTime"; | |
| 224 | + case OFFSET_TIME: return "OffsetTime"; | |
| 222 | 225 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 223 | 226 | case OF: return "of"; |
| 224 | 227 | case ONEWAY: return "oneway"; |
| @@ -535,6 +538,7 @@ public enum Enum { | ||
| 535 | 538 | if (value.equals("left")) return LEFT; |
| 536 | 539 | if (value.equals("let")) return LET; |
| 537 | 540 | if (value.equals("list")) return LIST; |
| 541 | + if (value.equals("LocalDate")) return LOCAL_DATE; | |
| 538 | 542 | if (value.equals("Locale")) return LOCALE; |
| 539 | 543 | if (value.equals("lock")) return LOCK; |
| 540 | 544 | if (value.equals("long")) return LONG; |
| @@ -568,6 +572,8 @@ public enum Enum { | ||
| 568 | 572 | if (value.equals("nullptr")) return NULLPTR; |
| 569 | 573 | if (value.equals("number")) return NUMBER; |
| 570 | 574 | if (value.equals("object")) return OBJECT; |
| 575 | + if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME; | |
| 576 | + if (value.equals("OffsetTime")) return OFFSET_TIME; | |
| 571 | 577 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 572 | 578 | if (value.equals("of")) return OF; |
| 573 | 579 | if (value.equals("oneway")) return ONEWAY; |
Mschema-java-lombokdefault / src / main / java / io / quicktype / Enum.java+7 −1
| @@ -4,7 +4,7 @@ import java.io.IOException; | ||
| 4 | 4 | import com.fasterxml.jackson.annotation.*; |
| 5 | 5 | |
| 6 | 6 | public enum Enum { |
| 7 | - EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 7 | + EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCAL_DATE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OFFSET_DATE_TIME, OFFSET_TIME, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 8 | 8 | |
| 9 | 9 | @JsonValue |
| 10 | 10 | public String toValue() { |
| @@ -186,6 +186,7 @@ public enum Enum { | ||
| 186 | 186 | case LEFT: return "left"; |
| 187 | 187 | case LET: return "let"; |
| 188 | 188 | case LIST: return "list"; |
| 189 | + case LOCAL_DATE: return "LocalDate"; | |
| 189 | 190 | case LOCALE: return "Locale"; |
| 190 | 191 | case LOCK: return "lock"; |
| 191 | 192 | case LONG: return "long"; |
| @@ -219,6 +220,8 @@ public enum Enum { | ||
| 219 | 220 | case NULLPTR: return "nullptr"; |
| 220 | 221 | case NUMBER: return "number"; |
| 221 | 222 | case OBJECT: return "object"; |
| 223 | + case OFFSET_DATE_TIME: return "OffsetDateTime"; | |
| 224 | + case OFFSET_TIME: return "OffsetTime"; | |
| 222 | 225 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 223 | 226 | case OF: return "of"; |
| 224 | 227 | case ONEWAY: return "oneway"; |
| @@ -535,6 +538,7 @@ public enum Enum { | ||
| 535 | 538 | if (value.equals("left")) return LEFT; |
| 536 | 539 | if (value.equals("let")) return LET; |
| 537 | 540 | if (value.equals("list")) return LIST; |
| 541 | + if (value.equals("LocalDate")) return LOCAL_DATE; | |
| 538 | 542 | if (value.equals("Locale")) return LOCALE; |
| 539 | 543 | if (value.equals("lock")) return LOCK; |
| 540 | 544 | if (value.equals("long")) return LONG; |
| @@ -568,6 +572,8 @@ public enum Enum { | ||
| 568 | 572 | if (value.equals("nullptr")) return NULLPTR; |
| 569 | 573 | if (value.equals("number")) return NUMBER; |
| 570 | 574 | if (value.equals("object")) return OBJECT; |
| 575 | + if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME; | |
| 576 | + if (value.equals("OffsetTime")) return OFFSET_TIME; | |
| 571 | 577 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 572 | 578 | if (value.equals("of")) return OF; |
| 573 | 579 | if (value.equals("oneway")) return ONEWAY; |
Mschema-javadefault / src / main / java / io / quicktype / Enum.java+7 −1
| @@ -4,7 +4,7 @@ import java.io.IOException; | ||
| 4 | 4 | import com.fasterxml.jackson.annotation.*; |
| 5 | 5 | |
| 6 | 6 | public enum Enum { |
| 7 | - EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 7 | + EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_DICT, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCAL_DATE, LOCALE, LOCK, LONG, MAP, MARSHAL_JSON, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OFFSET_DATE_TIME, OFFSET_TIME, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TO_DICT, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNMARSHAL_JSON, USE_SERIALIZERS, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 8 | 8 | |
| 9 | 9 | @JsonValue |
| 10 | 10 | public String toValue() { |
| @@ -186,6 +186,7 @@ public enum Enum { | ||
| 186 | 186 | case LEFT: return "left"; |
| 187 | 187 | case LET: return "let"; |
| 188 | 188 | case LIST: return "list"; |
| 189 | + case LOCAL_DATE: return "LocalDate"; | |
| 189 | 190 | case LOCALE: return "Locale"; |
| 190 | 191 | case LOCK: return "lock"; |
| 191 | 192 | case LONG: return "long"; |
| @@ -219,6 +220,8 @@ public enum Enum { | ||
| 219 | 220 | case NULLPTR: return "nullptr"; |
| 220 | 221 | case NUMBER: return "number"; |
| 221 | 222 | case OBJECT: return "object"; |
| 223 | + case OFFSET_DATE_TIME: return "OffsetDateTime"; | |
| 224 | + case OFFSET_TIME: return "OffsetTime"; | |
| 222 | 225 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 223 | 226 | case OF: return "of"; |
| 224 | 227 | case ONEWAY: return "oneway"; |
| @@ -535,6 +538,7 @@ public enum Enum { | ||
| 535 | 538 | if (value.equals("left")) return LEFT; |
| 536 | 539 | if (value.equals("let")) return LET; |
| 537 | 540 | if (value.equals("list")) return LIST; |
| 541 | + if (value.equals("LocalDate")) return LOCAL_DATE; | |
| 538 | 542 | if (value.equals("Locale")) return LOCALE; |
| 539 | 543 | if (value.equals("lock")) return LOCK; |
| 540 | 544 | if (value.equals("long")) return LONG; |
| @@ -568,6 +572,8 @@ public enum Enum { | ||
| 568 | 572 | if (value.equals("nullptr")) return NULLPTR; |
| 569 | 573 | if (value.equals("number")) return NUMBER; |
| 570 | 574 | if (value.equals("object")) return OBJECT; |
| 575 | + if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME; | |
| 576 | + if (value.equals("OffsetTime")) return OFFSET_TIME; | |
| 571 | 577 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 572 | 578 | if (value.equals("of")) return OF; |
| 573 | 579 | if (value.equals("oneway")) return ONEWAY; |
Mschema-javascript-prop-typesdefault / toplevel.js+1 −1
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | import PropTypes from "prop-types"; |
| 14 | 14 | |
| 15 | 15 | let _TopLevel; |
| 16 | -const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_dict', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'Locale', 'lock', 'long', 'map', 'MarshalJSON', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectMapper', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'to_dict', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'UnmarshalJSON', 'UseSerializers', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']); | |
| 16 | +const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_dict', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'LocalDate', 'Locale', 'lock', 'long', 'map', 'MarshalJSON', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'OffsetDateTime', 'OffsetTime', 'ObjectMapper', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'to_dict', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'UnmarshalJSON', 'UseSerializers', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']); | |
| 17 | 17 | _TopLevel = PropTypes.shape({ |
| 18 | 18 | "enum": PropTypes.oneOfType([_Enum, PropTypes.oneOf([null])]), |
| 19 | 19 | }); |
Mschema-javascriptdefault / TopLevel.js+3 −0
| @@ -373,6 +373,7 @@ const typeMap = { | ||
| 373 | 373 | "left", |
| 374 | 374 | "let", |
| 375 | 375 | "list", |
| 376 | + "LocalDate", | |
| 376 | 377 | "Locale", |
| 377 | 378 | "lock", |
| 378 | 379 | "long", |
| @@ -406,6 +407,8 @@ const typeMap = { | ||
| 406 | 407 | "nullptr", |
| 407 | 408 | "number", |
| 408 | 409 | "object", |
| 410 | + "OffsetDateTime", | |
| 411 | + "OffsetTime", | |
| 409 | 412 | "ObjectMapper", |
| 410 | 413 | "of", |
| 411 | 414 | "oneway", |
Mschema-kotlin-jacksondefault / TopLevel.kt+6 −0
| @@ -218,6 +218,7 @@ enum class EnumEnum(val value: String) { | ||
| 218 | 218 | Left("left"), |
| 219 | 219 | Let("let"), |
| 220 | 220 | EnumList("list"), |
| 221 | + LocalDate("LocalDate"), | |
| 221 | 222 | Locale("Locale"), |
| 222 | 223 | Lock("lock"), |
| 223 | 224 | EnumLong("long"), |
| @@ -251,6 +252,8 @@ enum class EnumEnum(val value: String) { | ||
| 251 | 252 | Nullptr("nullptr"), |
| 252 | 253 | Number("number"), |
| 253 | 254 | Object("object"), |
| 255 | + OffsetDateTime("OffsetDateTime"), | |
| 256 | + OffsetTime("OffsetTime"), | |
| 254 | 257 | EnumObjectMapper("ObjectMapper"), |
| 255 | 258 | Of("of"), |
| 256 | 259 | Oneway("oneway"), |
| @@ -564,6 +567,7 @@ enum class EnumEnum(val value: String) { | ||
| 564 | 567 | "left" -> Left |
| 565 | 568 | "let" -> Let |
| 566 | 569 | "list" -> EnumList |
| 570 | + "LocalDate" -> LocalDate | |
| 567 | 571 | "Locale" -> Locale |
| 568 | 572 | "lock" -> Lock |
| 569 | 573 | "long" -> EnumLong |
| @@ -597,6 +601,8 @@ enum class EnumEnum(val value: String) { | ||
| 597 | 601 | "nullptr" -> Nullptr |
| 598 | 602 | "number" -> Number |
| 599 | 603 | "object" -> Object |
| 604 | + "OffsetDateTime" -> OffsetDateTime | |
| 605 | + "OffsetTime" -> OffsetTime | |
| 600 | 606 | "ObjectMapper" -> EnumObjectMapper |
| 601 | 607 | "of" -> Of |
| 602 | 608 | "oneway" -> Oneway |
Mschema-kotlindefault / TopLevel.kt+6 −0
| @@ -205,6 +205,7 @@ enum class EnumEnum(val value: String) { | ||
| 205 | 205 | Left("left"), |
| 206 | 206 | Let("let"), |
| 207 | 207 | EnumList("list"), |
| 208 | + LocalDate("LocalDate"), | |
| 208 | 209 | Locale("Locale"), |
| 209 | 210 | Lock("lock"), |
| 210 | 211 | EnumLong("long"), |
| @@ -238,6 +239,8 @@ enum class EnumEnum(val value: String) { | ||
| 238 | 239 | Nullptr("nullptr"), |
| 239 | 240 | Number("number"), |
| 240 | 241 | Object("object"), |
| 242 | + OffsetDateTime("OffsetDateTime"), | |
| 243 | + OffsetTime("OffsetTime"), | |
| 241 | 244 | ObjectMapper("ObjectMapper"), |
| 242 | 245 | Of("of"), |
| 243 | 246 | Oneway("oneway"), |
| @@ -551,6 +554,7 @@ enum class EnumEnum(val value: String) { | ||
| 551 | 554 | "left" -> Left |
| 552 | 555 | "let" -> Let |
| 553 | 556 | "list" -> EnumList |
| 557 | + "LocalDate" -> LocalDate | |
| 554 | 558 | "Locale" -> Locale |
| 555 | 559 | "lock" -> Lock |
| 556 | 560 | "long" -> EnumLong |
| @@ -584,6 +588,8 @@ enum class EnumEnum(val value: String) { | ||
| 584 | 588 | "nullptr" -> Nullptr |
| 585 | 589 | "number" -> Number |
| 586 | 590 | "object" -> Object |
| 591 | + "OffsetDateTime" -> OffsetDateTime | |
| 592 | + "OffsetTime" -> OffsetTime | |
| 587 | 593 | "ObjectMapper" -> ObjectMapper |
| 588 | 594 | "of" -> Of |
| 589 | 595 | "oneway" -> Oneway |
Mschema-kotlinxdefault / TopLevel.kt+3 −0
| @@ -194,6 +194,7 @@ enum class EnumEnum(val value: String) { | ||
| 194 | 194 | @SerialName("left") Left("left"), |
| 195 | 195 | @SerialName("let") Let("let"), |
| 196 | 196 | @SerialName("list") EnumList("list"), |
| 197 | + @SerialName("LocalDate") LocalDate("LocalDate"), | |
| 197 | 198 | @SerialName("Locale") Locale("Locale"), |
| 198 | 199 | @SerialName("lock") Lock("lock"), |
| 199 | 200 | @SerialName("long") EnumLong("long"), |
| @@ -227,6 +228,8 @@ enum class EnumEnum(val value: String) { | ||
| 227 | 228 | @SerialName("nullptr") Nullptr("nullptr"), |
| 228 | 229 | @SerialName("number") Number("number"), |
| 229 | 230 | @SerialName("object") Object("object"), |
| 231 | + @SerialName("OffsetDateTime") OffsetDateTime("OffsetDateTime"), | |
| 232 | + @SerialName("OffsetTime") OffsetTime("OffsetTime"), | |
| 230 | 233 | @SerialName("ObjectMapper") ObjectMapper("ObjectMapper"), |
| 231 | 234 | @SerialName("of") Of("of"), |
| 232 | 235 | @SerialName("oneway") Oneway("oneway"), |
Mschema-objective-cdefault / QTTopLevel.h+3 −0
| @@ -192,6 +192,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 192 | 192 | + (QTEnum *)left; |
| 193 | 193 | + (QTEnum *)let; |
| 194 | 194 | + (QTEnum *)list; |
| 195 | ++ (QTEnum *)localDate; | |
| 195 | 196 | + (QTEnum *)locale; |
| 196 | 197 | + (QTEnum *)lock; |
| 197 | 198 | + (QTEnum *)enumLong; |
| @@ -225,6 +226,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 225 | 226 | + (QTEnum *)nullptr; |
| 226 | 227 | + (QTEnum *)number; |
| 227 | 228 | + (QTEnum *)object; |
| 229 | ++ (QTEnum *)offsetDateTime; | |
| 230 | ++ (QTEnum *)offsetTime; | |
| 228 | 231 | + (QTEnum *)objectMapper; |
| 229 | 232 | + (QTEnum *)of; |
| 230 | 233 | + (QTEnum *)oneway; |
Mschema-objective-cdefault / QTTopLevel.m+6 −0
| @@ -195,6 +195,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 195 | 195 | @"left": [[QTEnum alloc] initWithValue:@"left"], |
| 196 | 196 | @"let": [[QTEnum alloc] initWithValue:@"let"], |
| 197 | 197 | @"list": [[QTEnum alloc] initWithValue:@"list"], |
| 198 | + @"LocalDate": [[QTEnum alloc] initWithValue:@"LocalDate"], | |
| 198 | 199 | @"Locale": [[QTEnum alloc] initWithValue:@"Locale"], |
| 199 | 200 | @"lock": [[QTEnum alloc] initWithValue:@"lock"], |
| 200 | 201 | @"long": [[QTEnum alloc] initWithValue:@"long"], |
| @@ -228,6 +229,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 228 | 229 | @"nullptr": [[QTEnum alloc] initWithValue:@"nullptr"], |
| 229 | 230 | @"number": [[QTEnum alloc] initWithValue:@"number"], |
| 230 | 231 | @"object": [[QTEnum alloc] initWithValue:@"object"], |
| 232 | + @"OffsetDateTime": [[QTEnum alloc] initWithValue:@"OffsetDateTime"], | |
| 233 | + @"OffsetTime": [[QTEnum alloc] initWithValue:@"OffsetTime"], | |
| 231 | 234 | @"ObjectMapper": [[QTEnum alloc] initWithValue:@"ObjectMapper"], |
| 232 | 235 | @"of": [[QTEnum alloc] initWithValue:@"of"], |
| 233 | 236 | @"oneway": [[QTEnum alloc] initWithValue:@"oneway"], |
| @@ -541,6 +544,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 541 | 544 | + (QTEnum *)left { return QTEnum.values[@"left"]; } |
| 542 | 545 | + (QTEnum *)let { return QTEnum.values[@"let"]; } |
| 543 | 546 | + (QTEnum *)list { return QTEnum.values[@"list"]; } |
| 547 | ++ (QTEnum *)localDate { return QTEnum.values[@"LocalDate"]; } | |
| 544 | 548 | + (QTEnum *)locale { return QTEnum.values[@"Locale"]; } |
| 545 | 549 | + (QTEnum *)lock { return QTEnum.values[@"lock"]; } |
| 546 | 550 | + (QTEnum *)enumLong { return QTEnum.values[@"long"]; } |
| @@ -574,6 +578,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 574 | 578 | + (QTEnum *)nullptr { return QTEnum.values[@"nullptr"]; } |
| 575 | 579 | + (QTEnum *)number { return QTEnum.values[@"number"]; } |
| 576 | 580 | + (QTEnum *)object { return QTEnum.values[@"object"]; } |
| 581 | ++ (QTEnum *)offsetDateTime { return QTEnum.values[@"OffsetDateTime"]; } | |
| 582 | ++ (QTEnum *)offsetTime { return QTEnum.values[@"OffsetTime"]; } | |
| 577 | 583 | + (QTEnum *)objectMapper { return QTEnum.values[@"ObjectMapper"]; } |
| 578 | 584 | + (QTEnum *)of { return QTEnum.values[@"of"]; } |
| 579 | 585 | + (QTEnum *)oneway { return QTEnum.values[@"oneway"]; } |
Mschema-phpdefault / TopLevel.php+12 −0
| @@ -290,6 +290,7 @@ class EnumEnum { | ||
| 290 | 290 | public static EnumEnum $LEFT; |
| 291 | 291 | public static EnumEnum $LET; |
| 292 | 292 | public static EnumEnum $LIST; |
| 293 | + public static EnumEnum $LOCAL_DATE; | |
| 293 | 294 | public static EnumEnum $LOCALE; |
| 294 | 295 | public static EnumEnum $LOCK; |
| 295 | 296 | public static EnumEnum $LONG; |
| @@ -323,6 +324,8 @@ class EnumEnum { | ||
| 323 | 324 | public static EnumEnum $NULLPTR; |
| 324 | 325 | public static EnumEnum $NUMBER; |
| 325 | 326 | public static EnumEnum $OBJECT; |
| 327 | + public static EnumEnum $OFFSET_DATE_TIME; | |
| 328 | + public static EnumEnum $OFFSET_TIME; | |
| 326 | 329 | public static EnumEnum $OBJECT_MAPPER; |
| 327 | 330 | public static EnumEnum $OF; |
| 328 | 331 | public static EnumEnum $ONEWAY; |
| @@ -634,6 +637,7 @@ class EnumEnum { | ||
| 634 | 637 | EnumEnum::$LEFT = new EnumEnum('left'); |
| 635 | 638 | EnumEnum::$LET = new EnumEnum('let'); |
| 636 | 639 | EnumEnum::$LIST = new EnumEnum('list'); |
| 640 | + EnumEnum::$LOCAL_DATE = new EnumEnum('LocalDate'); | |
| 637 | 641 | EnumEnum::$LOCALE = new EnumEnum('Locale'); |
| 638 | 642 | EnumEnum::$LOCK = new EnumEnum('lock'); |
| 639 | 643 | EnumEnum::$LONG = new EnumEnum('long'); |
| @@ -667,6 +671,8 @@ class EnumEnum { | ||
| 667 | 671 | EnumEnum::$NULLPTR = new EnumEnum('nullptr'); |
| 668 | 672 | EnumEnum::$NUMBER = new EnumEnum('number'); |
| 669 | 673 | EnumEnum::$OBJECT = new EnumEnum('object'); |
| 674 | + EnumEnum::$OFFSET_DATE_TIME = new EnumEnum('OffsetDateTime'); | |
| 675 | + EnumEnum::$OFFSET_TIME = new EnumEnum('OffsetTime'); | |
| 670 | 676 | EnumEnum::$OBJECT_MAPPER = new EnumEnum('ObjectMapper'); |
| 671 | 677 | EnumEnum::$OF = new EnumEnum('of'); |
| 672 | 678 | EnumEnum::$ONEWAY = new EnumEnum('oneway'); |
| @@ -990,6 +996,7 @@ class EnumEnum { | ||
| 990 | 996 | case EnumEnum::$LEFT->enum: return 'left'; |
| 991 | 997 | case EnumEnum::$LET->enum: return 'let'; |
| 992 | 998 | case EnumEnum::$LIST->enum: return 'list'; |
| 999 | + case EnumEnum::$LOCAL_DATE->enum: return 'LocalDate'; | |
| 993 | 1000 | case EnumEnum::$LOCALE->enum: return 'Locale'; |
| 994 | 1001 | case EnumEnum::$LOCK->enum: return 'lock'; |
| 995 | 1002 | case EnumEnum::$LONG->enum: return 'long'; |
| @@ -1023,6 +1030,8 @@ class EnumEnum { | ||
| 1023 | 1030 | case EnumEnum::$NULLPTR->enum: return 'nullptr'; |
| 1024 | 1031 | case EnumEnum::$NUMBER->enum: return 'number'; |
| 1025 | 1032 | case EnumEnum::$OBJECT->enum: return 'object'; |
| 1033 | + case EnumEnum::$OFFSET_DATE_TIME->enum: return 'OffsetDateTime'; | |
| 1034 | + case EnumEnum::$OFFSET_TIME->enum: return 'OffsetTime'; | |
| 1026 | 1035 | case EnumEnum::$OBJECT_MAPPER->enum: return 'ObjectMapper'; |
| 1027 | 1036 | case EnumEnum::$OF->enum: return 'of'; |
| 1028 | 1037 | case EnumEnum::$ONEWAY->enum: return 'oneway'; |
| @@ -1344,6 +1353,7 @@ class EnumEnum { | ||
| 1344 | 1353 | case 'left': return EnumEnum::$LEFT; |
| 1345 | 1354 | case 'let': return EnumEnum::$LET; |
| 1346 | 1355 | case 'list': return EnumEnum::$LIST; |
| 1356 | + case 'LocalDate': return EnumEnum::$LOCAL_DATE; | |
| 1347 | 1357 | case 'Locale': return EnumEnum::$LOCALE; |
| 1348 | 1358 | case 'lock': return EnumEnum::$LOCK; |
| 1349 | 1359 | case 'long': return EnumEnum::$LONG; |
| @@ -1377,6 +1387,8 @@ class EnumEnum { | ||
| 1377 | 1387 | case 'nullptr': return EnumEnum::$NULLPTR; |
| 1378 | 1388 | case 'number': return EnumEnum::$NUMBER; |
| 1379 | 1389 | case 'object': return EnumEnum::$OBJECT; |
| 1390 | + case 'OffsetDateTime': return EnumEnum::$OFFSET_DATE_TIME; | |
| 1391 | + case 'OffsetTime': return EnumEnum::$OFFSET_TIME; | |
| 1380 | 1392 | case 'ObjectMapper': return EnumEnum::$OBJECT_MAPPER; |
| 1381 | 1393 | case 'of': return EnumEnum::$OF; |
| 1382 | 1394 | case 'oneway': return EnumEnum::$ONEWAY; |
Mschema-pikedefault / TopLevel.pmod+4 −1
| @@ -210,6 +210,7 @@ enum Enum { | ||
| 210 | 210 | LEFT = "left", // json: "left" |
| 211 | 211 | LET = "let", // json: "let" |
| 212 | 212 | LIST = "list", // json: "list" |
| 213 | + LOCAL_DATE = "LocalDate", // json: "LocalDate" | |
| 213 | 214 | LOCALE = "Locale", // json: "Locale" |
| 214 | 215 | LOCK = "lock", // json: "lock" |
| 215 | 216 | LONG = "long", // json: "long" |
| @@ -243,6 +244,8 @@ enum Enum { | ||
| 243 | 244 | NULLPTR = "nullptr", // json: "nullptr" |
| 244 | 245 | NUMBER = "number", // json: "number" |
| 245 | 246 | OBJECT = "object", // json: "object" |
| 247 | + OFFSET_DATE_TIME = "OffsetDateTime", // json: "OffsetDateTime" | |
| 248 | + OFFSET_TIME = "OffsetTime", // json: "OffsetTime" | |
| 246 | 249 | OBJECT_MAPPER = "ObjectMapper", // json: "ObjectMapper" |
| 247 | 250 | OF = "of", // json: "of" |
| 248 | 251 | ONEWAY = "oneway", // json: "oneway" |
| @@ -379,5 +382,5 @@ enum Enum { | ||
| 379 | 382 | } |
| 380 | 383 | |
| 381 | 384 | Enum Enum_from_JSON(mixed json) { |
| 382 | - if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_dict"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MarshalJSON"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "ObjectMapper"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "to_dict"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "UnmarshalJSON"&&json != "UseSerializers"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json; | |
| 385 | + if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_dict"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "LocalDate"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MarshalJSON"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "OffsetDateTime"&&json != "OffsetTime"&&json != "ObjectMapper"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "to_dict"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "UnmarshalJSON"&&json != "UseSerializers"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json; | |
| 383 | 386 | } |
Mschema-pythondefault / quicktype.py+3 −0
| @@ -209,6 +209,7 @@ class EnumEnum(Enum): | ||
| 209 | 209 | LEFT = "left" |
| 210 | 210 | LET = "let" |
| 211 | 211 | LIST = "list" |
| 212 | + LOCAL_DATE = "LocalDate" | |
| 212 | 213 | LOCALE = "Locale" |
| 213 | 214 | LOCK = "lock" |
| 214 | 215 | LONG = "long" |
| @@ -242,6 +243,8 @@ class EnumEnum(Enum): | ||
| 242 | 243 | NULLPTR = "nullptr" |
| 243 | 244 | NUMBER = "number" |
| 244 | 245 | OBJECT = "object" |
| 246 | + OFFSET_DATE_TIME = "OffsetDateTime" | |
| 247 | + OFFSET_TIME = "OffsetTime" | |
| 245 | 248 | OBJECT_MAPPER = "ObjectMapper" |
| 246 | 249 | OF = "of" |
| 247 | 250 | ONEWAY = "oneway" |
Mschema-rubydefault / TopLevel.rb+4 −1
| @@ -17,7 +17,7 @@ module Types | ||
| 17 | 17 | |
| 18 | 18 | Hash = Strict::Hash |
| 19 | 19 | String = Strict::String |
| 20 | - Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_dict", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "Locale", "lock", "long", "map", "MarshalJSON", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectMapper", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "to_dict", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "UnmarshalJSON", "UseSerializers", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy") | |
| 20 | + Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_dict", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "LocalDate", "Locale", "lock", "long", "map", "MarshalJSON", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "OffsetDateTime", "OffsetTime", "ObjectMapper", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "to_dict", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "UnmarshalJSON", "UseSerializers", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy") | |
| 21 | 21 | end |
| 22 | 22 | |
| 23 | 23 | module Enum |
| @@ -198,6 +198,7 @@ module Enum | ||
| 198 | 198 | Left = "left" |
| 199 | 199 | Let = "let" |
| 200 | 200 | List = "list" |
| 201 | + LocalDate = "LocalDate" | |
| 201 | 202 | Locale = "Locale" |
| 202 | 203 | Lock = "lock" |
| 203 | 204 | Long = "long" |
| @@ -231,6 +232,8 @@ module Enum | ||
| 231 | 232 | Nullptr = "nullptr" |
| 232 | 233 | Number = "number" |
| 233 | 234 | Object = "object" |
| 235 | + OffsetDateTime = "OffsetDateTime" | |
| 236 | + OffsetTime = "OffsetTime" | |
| 234 | 237 | ObjectMapper = "ObjectMapper" |
| 235 | 238 | Of = "of" |
| 236 | 239 | Oneway = "oneway" |
Mschema-rustdefault / module_under_test.rs+9 −0
| @@ -440,6 +440,9 @@ pub enum Enum { | ||
| 440 | 440 | |
| 441 | 441 | List, |
| 442 | 442 | |
| 443 | + #[serde(rename = "LocalDate")] | |
| 444 | + LocalDate, | |
| 445 | + | |
| 443 | 446 | #[serde(rename = "Locale")] |
| 444 | 447 | Locale, |
| 445 | 448 | |
| @@ -520,6 +523,12 @@ pub enum Enum { | ||
| 520 | 523 | |
| 521 | 524 | Object, |
| 522 | 525 | |
| 526 | + #[serde(rename = "OffsetDateTime")] | |
| 527 | + OffsetDateTime, | |
| 528 | + | |
| 529 | + #[serde(rename = "OffsetTime")] | |
| 530 | + OffsetTime, | |
| 531 | + | |
| 523 | 532 | #[serde(rename = "ObjectMapper")] |
| 524 | 533 | ObjectMapper, |
Mschema-scala3-upickledefault / TopLevel.scala+9 −0
| @@ -260,6 +260,7 @@ enum EnumEnum : | ||
| 260 | 260 | case Left |
| 261 | 261 | case Let |
| 262 | 262 | case EnumList |
| 263 | + case LocalDate | |
| 263 | 264 | case Locale |
| 264 | 265 | case Lock |
| 265 | 266 | case EnumLong |
| @@ -293,6 +294,8 @@ enum EnumEnum : | ||
| 293 | 294 | case Nullptr |
| 294 | 295 | case Number |
| 295 | 296 | case Object |
| 297 | + case OffsetDateTime | |
| 298 | + case OffsetTime | |
| 296 | 299 | case ObjectMapper |
| 297 | 300 | case Of |
| 298 | 301 | case Oneway |
| @@ -606,6 +609,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 606 | 609 | case EnumEnum.Left => "left" |
| 607 | 610 | case EnumEnum.Let => "let" |
| 608 | 611 | case EnumEnum.EnumList => "list" |
| 612 | + case EnumEnum.LocalDate => "LocalDate" | |
| 609 | 613 | case EnumEnum.Locale => "Locale" |
| 610 | 614 | case EnumEnum.Lock => "lock" |
| 611 | 615 | case EnumEnum.EnumLong => "long" |
| @@ -639,6 +643,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 639 | 643 | case EnumEnum.Nullptr => "nullptr" |
| 640 | 644 | case EnumEnum.Number => "number" |
| 641 | 645 | case EnumEnum.Object => "object" |
| 646 | + case EnumEnum.OffsetDateTime => "OffsetDateTime" | |
| 647 | + case EnumEnum.OffsetTime => "OffsetTime" | |
| 642 | 648 | case EnumEnum.ObjectMapper => "ObjectMapper" |
| 643 | 649 | case EnumEnum.Of => "of" |
| 644 | 650 | case EnumEnum.Oneway => "oneway" |
| @@ -951,6 +957,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 951 | 957 | case "left" => EnumEnum.Left |
| 952 | 958 | case "let" => EnumEnum.Let |
| 953 | 959 | case "list" => EnumEnum.EnumList |
| 960 | + case "LocalDate" => EnumEnum.LocalDate | |
| 954 | 961 | case "Locale" => EnumEnum.Locale |
| 955 | 962 | case "lock" => EnumEnum.Lock |
| 956 | 963 | case "long" => EnumEnum.EnumLong |
| @@ -984,6 +991,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 984 | 991 | case "nullptr" => EnumEnum.Nullptr |
| 985 | 992 | case "number" => EnumEnum.Number |
| 986 | 993 | case "object" => EnumEnum.Object |
| 994 | + case "OffsetDateTime" => EnumEnum.OffsetDateTime | |
| 995 | + case "OffsetTime" => EnumEnum.OffsetTime | |
| 987 | 996 | case "ObjectMapper" => EnumEnum.ObjectMapper |
| 988 | 997 | case "of" => EnumEnum.Of |
| 989 | 998 | case "oneway" => EnumEnum.Oneway |
Mschema-scala3default / TopLevel.scala+9 −0
| @@ -189,6 +189,7 @@ enum EnumEnum : | ||
| 189 | 189 | case Left |
| 190 | 190 | case Let |
| 191 | 191 | case EnumList |
| 192 | + case LocalDate | |
| 192 | 193 | case Locale |
| 193 | 194 | case Lock |
| 194 | 195 | case EnumLong |
| @@ -222,6 +223,8 @@ enum EnumEnum : | ||
| 222 | 223 | case Nullptr |
| 223 | 224 | case Number |
| 224 | 225 | case Object |
| 226 | + case OffsetDateTime | |
| 227 | + case OffsetTime | |
| 225 | 228 | case ObjectMapper |
| 226 | 229 | case Of |
| 227 | 230 | case Oneway |
| @@ -534,6 +537,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap { | ||
| 534 | 537 | case "left" => scala.Right(EnumEnum.Left) |
| 535 | 538 | case "let" => scala.Right(EnumEnum.Let) |
| 536 | 539 | case "list" => scala.Right(EnumEnum.EnumList) |
| 540 | + case "LocalDate" => scala.Right(EnumEnum.LocalDate) | |
| 537 | 541 | case "Locale" => scala.Right(EnumEnum.Locale) |
| 538 | 542 | case "lock" => scala.Right(EnumEnum.Lock) |
| 539 | 543 | case "long" => scala.Right(EnumEnum.EnumLong) |
| @@ -567,6 +571,8 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap { | ||
| 567 | 571 | case "nullptr" => scala.Right(EnumEnum.Nullptr) |
| 568 | 572 | case "number" => scala.Right(EnumEnum.Number) |
| 569 | 573 | case "object" => scala.Right(EnumEnum.Object) |
| 574 | + case "OffsetDateTime" => scala.Right(EnumEnum.OffsetDateTime) | |
| 575 | + case "OffsetTime" => scala.Right(EnumEnum.OffsetTime) | |
| 570 | 576 | case "ObjectMapper" => scala.Right(EnumEnum.ObjectMapper) |
| 571 | 577 | case "of" => scala.Right(EnumEnum.Of) |
| 572 | 578 | case "oneway" => scala.Right(EnumEnum.Oneway) |
| @@ -880,6 +886,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap { | ||
| 880 | 886 | case EnumEnum.Left => "left" |
| 881 | 887 | case EnumEnum.Let => "let" |
| 882 | 888 | case EnumEnum.EnumList => "list" |
| 889 | + case EnumEnum.LocalDate => "LocalDate" | |
| 883 | 890 | case EnumEnum.Locale => "Locale" |
| 884 | 891 | case EnumEnum.Lock => "lock" |
| 885 | 892 | case EnumEnum.EnumLong => "long" |
| @@ -913,6 +920,8 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap { | ||
| 913 | 920 | case EnumEnum.Nullptr => "nullptr" |
| 914 | 921 | case EnumEnum.Number => "number" |
| 915 | 922 | case EnumEnum.Object => "object" |
| 923 | + case EnumEnum.OffsetDateTime => "OffsetDateTime" | |
| 924 | + case EnumEnum.OffsetTime => "OffsetTime" | |
| 916 | 925 | case EnumEnum.ObjectMapper => "ObjectMapper" |
| 917 | 926 | case EnumEnum.Of => "of" |
| 918 | 927 | case EnumEnum.Oneway => "oneway" |
Mschema-schemadefault / TopLevel.schema+3 −0
| @@ -193,6 +193,7 @@ | ||
| 193 | 193 | "left", |
| 194 | 194 | "let", |
| 195 | 195 | "list", |
| 196 | + "LocalDate", | |
| 196 | 197 | "Locale", |
| 197 | 198 | "lock", |
| 198 | 199 | "long", |
| @@ -226,6 +227,8 @@ | ||
| 226 | 227 | "nullptr", |
| 227 | 228 | "number", |
| 228 | 229 | "object", |
| 230 | + "OffsetDateTime", | |
| 231 | + "OffsetTime", | |
| 229 | 232 | "ObjectMapper", |
| 230 | 233 | "of", |
| 231 | 234 | "oneway", |
Mschema-swiftdefault / quicktype.swift+3 −0
| @@ -227,6 +227,7 @@ enum Enum: String, Codable { | ||
| 227 | 227 | case enumLeft = "left" |
| 228 | 228 | case enumLet = "let" |
| 229 | 229 | case list = "list" |
| 230 | + case localDate = "LocalDate" | |
| 230 | 231 | case locale = "Locale" |
| 231 | 232 | case lock = "lock" |
| 232 | 233 | case long = "long" |
| @@ -260,6 +261,8 @@ enum Enum: String, Codable { | ||
| 260 | 261 | case nullptr = "nullptr" |
| 261 | 262 | case number = "number" |
| 262 | 263 | case object = "object" |
| 264 | + case offsetDateTime = "OffsetDateTime" | |
| 265 | + case offsetTime = "OffsetTime" | |
| 263 | 266 | case objectMapper = "ObjectMapper" |
| 264 | 267 | case of = "of" |
| 265 | 268 | case oneway = "oneway" |
Mschema-typescript-effect-schemadefault / TopLevel.ts+3 −0
| @@ -179,6 +179,7 @@ export const Enum = S.Literal( | ||
| 179 | 179 | "left", |
| 180 | 180 | "let", |
| 181 | 181 | "list", |
| 182 | + "LocalDate", | |
| 182 | 183 | "Locale", |
| 183 | 184 | "lock", |
| 184 | 185 | "long", |
| @@ -212,6 +213,8 @@ export const Enum = S.Literal( | ||
| 212 | 213 | "nullptr", |
| 213 | 214 | "number", |
| 214 | 215 | "object", |
| 216 | + "OffsetDateTime", | |
| 217 | + "OffsetTime", | |
| 215 | 218 | "ObjectMapper", |
| 216 | 219 | "of", |
| 217 | 220 | "oneway", |
Mschema-typescript-zoddefault / TopLevel.ts+3 −0
| @@ -179,6 +179,7 @@ export const EnumSchema = z.enum([ | ||
| 179 | 179 | "left", |
| 180 | 180 | "let", |
| 181 | 181 | "list", |
| 182 | + "LocalDate", | |
| 182 | 183 | "Locale", |
| 183 | 184 | "lock", |
| 184 | 185 | "long", |
| @@ -212,6 +213,8 @@ export const EnumSchema = z.enum([ | ||
| 212 | 213 | "nullptr", |
| 213 | 214 | "number", |
| 214 | 215 | "object", |
| 216 | + "OffsetDateTime", | |
| 217 | + "OffsetTime", | |
| 215 | 218 | "ObjectMapper", |
| 216 | 219 | "of", |
| 217 | 220 | "oneway", |
Mschema-typescriptdefault / TopLevel.ts+4 −1
| @@ -12,7 +12,7 @@ export interface TopLevel { | ||
| 12 | 12 | [property: string]: unknown; |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | -export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_dict" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "Locale" | "lock" | "long" | "map" | "MarshalJSON" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectMapper" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "to_dict" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "UnmarshalJSON" | "UseSerializers" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy"; | |
| 15 | +export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_dict" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "LocalDate" | "Locale" | "lock" | "long" | "map" | "MarshalJSON" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "OffsetDateTime" | "OffsetTime" | "ObjectMapper" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "to_dict" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "UnmarshalJSON" | "UseSerializers" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy"; | |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
| 18 | 18 | // and asserts the results of JSON.parse at runtime |
| @@ -382,6 +382,7 @@ const typeMap: any = { | ||
| 382 | 382 | "left", |
| 383 | 383 | "let", |
| 384 | 384 | "list", |
| 385 | + "LocalDate", | |
| 385 | 386 | "Locale", |
| 386 | 387 | "lock", |
| 387 | 388 | "long", |
| @@ -415,6 +416,8 @@ const typeMap: any = { | ||
| 415 | 416 | "nullptr", |
| 416 | 417 | "number", |
| 417 | 418 | "object", |
| 419 | + "OffsetDateTime", | |
| 420 | + "OffsetTime", | |
| 418 | 421 | "ObjectMapper", |
| 419 | 422 | "of", |
| 420 | 423 | "oneway", |
Test case
49 generated files · +3,705 −168test/inputs/schema/keyword-unions.schema
Mschema-cjsondefault / TopLevel.c+312 −0
| @@ -5505,6 +5505,50 @@ void cJSON_DeleteUnionList(struct UnionList * x) { | ||
| 5505 | 5505 | } |
| 5506 | 5506 | } |
| 5507 | 5507 | |
| 5508 | +struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j) { | |
| 5509 | + struct UnionLocalDate * x = cJSON_malloc(sizeof(struct UnionLocalDate)); | |
| 5510 | + if (NULL != x) { | |
| 5511 | + memset(x, 0, sizeof(struct UnionLocalDate)); | |
| 5512 | + if (cJSON_IsNumber(j)) { | |
| 5513 | + x->type = cJSON_Number; | |
| 5514 | + x->value.number = cJSON_GetNumberValue(j); | |
| 5515 | + } | |
| 5516 | + else if (cJSON_IsObject(j)) { | |
| 5517 | + x->type = cJSON_Object; | |
| 5518 | + x->value.local_date = cJSON_GetLocalDateValue(j); | |
| 5519 | + if (NULL == x->value.local_date) x->type = 0; | |
| 5520 | + } | |
| 5521 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 5522 | + } | |
| 5523 | + return x; | |
| 5524 | +} | |
| 5525 | +struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionLocalDate * x = j ? cJSON_GetUnionLocalDateValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 5526 | +char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x) { cJSON * j = cJSON_CreateUnionLocalDate(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 5527 | + | |
| 5528 | +cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x) { | |
| 5529 | + cJSON * j = NULL; | |
| 5530 | + if (NULL != x) { | |
| 5531 | + if (cJSON_Number == x->type) { | |
| 5532 | + j = cJSON_CreateNumber(x->value.number); | |
| 5533 | + } | |
| 5534 | + else if (cJSON_Object == x->type) { | |
| 5535 | + j = cJSON_CreateLocalDate(x->value.local_date); | |
| 5536 | + } | |
| 5537 | + } | |
| 5538 | + return j; | |
| 5539 | +} | |
| 5540 | + | |
| 5541 | +void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x) { | |
| 5542 | + if (NULL != x) { | |
| 5543 | + if (cJSON_Number == x->type) { | |
| 5544 | + } | |
| 5545 | + else if (cJSON_Object == x->type) { | |
| 5546 | + cJSON_DeleteLocalDate(x->value.local_date); | |
| 5547 | + } | |
| 5548 | + cJSON_free(x); | |
| 5549 | + } | |
| 5550 | +} | |
| 5551 | + | |
| 5508 | 5552 | struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j) { |
| 5509 | 5553 | struct UnionLocale * x = cJSON_malloc(sizeof(struct UnionLocale)); |
| 5510 | 5554 | if (NULL != x) { |
| @@ -6561,6 +6605,94 @@ void cJSON_DeleteUnionOf(struct UnionOf * x) { | ||
| 6561 | 6605 | } |
| 6562 | 6606 | } |
| 6563 | 6607 | |
| 6608 | +struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j) { | |
| 6609 | + struct UnionOffsetDateTime * x = cJSON_malloc(sizeof(struct UnionOffsetDateTime)); | |
| 6610 | + if (NULL != x) { | |
| 6611 | + memset(x, 0, sizeof(struct UnionOffsetDateTime)); | |
| 6612 | + if (cJSON_IsNumber(j)) { | |
| 6613 | + x->type = cJSON_Number; | |
| 6614 | + x->value.number = cJSON_GetNumberValue(j); | |
| 6615 | + } | |
| 6616 | + else if (cJSON_IsObject(j)) { | |
| 6617 | + x->type = cJSON_Object; | |
| 6618 | + x->value.offset_date_time = cJSON_GetOffsetDateTimeValue(j); | |
| 6619 | + if (NULL == x->value.offset_date_time) x->type = 0; | |
| 6620 | + } | |
| 6621 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 6622 | + } | |
| 6623 | + return x; | |
| 6624 | +} | |
| 6625 | +struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionOffsetDateTime * x = j ? cJSON_GetUnionOffsetDateTimeValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 6626 | +char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x) { cJSON * j = cJSON_CreateUnionOffsetDateTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 6627 | + | |
| 6628 | +cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x) { | |
| 6629 | + cJSON * j = NULL; | |
| 6630 | + if (NULL != x) { | |
| 6631 | + if (cJSON_Number == x->type) { | |
| 6632 | + j = cJSON_CreateNumber(x->value.number); | |
| 6633 | + } | |
| 6634 | + else if (cJSON_Object == x->type) { | |
| 6635 | + j = cJSON_CreateOffsetDateTime(x->value.offset_date_time); | |
| 6636 | + } | |
| 6637 | + } | |
| 6638 | + return j; | |
| 6639 | +} | |
| 6640 | + | |
| 6641 | +void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x) { | |
| 6642 | + if (NULL != x) { | |
| 6643 | + if (cJSON_Number == x->type) { | |
| 6644 | + } | |
| 6645 | + else if (cJSON_Object == x->type) { | |
| 6646 | + cJSON_DeleteOffsetDateTime(x->value.offset_date_time); | |
| 6647 | + } | |
| 6648 | + cJSON_free(x); | |
| 6649 | + } | |
| 6650 | +} | |
| 6651 | + | |
| 6652 | +struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j) { | |
| 6653 | + struct UnionOffsetTime * x = cJSON_malloc(sizeof(struct UnionOffsetTime)); | |
| 6654 | + if (NULL != x) { | |
| 6655 | + memset(x, 0, sizeof(struct UnionOffsetTime)); | |
| 6656 | + if (cJSON_IsNumber(j)) { | |
| 6657 | + x->type = cJSON_Number; | |
| 6658 | + x->value.number = cJSON_GetNumberValue(j); | |
| 6659 | + } | |
| 6660 | + else if (cJSON_IsObject(j)) { | |
| 6661 | + x->type = cJSON_Object; | |
| 6662 | + x->value.offset_time = cJSON_GetOffsetTimeValue(j); | |
| 6663 | + if (NULL == x->value.offset_time) x->type = 0; | |
| 6664 | + } | |
| 6665 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 6666 | + } | |
| 6667 | + return x; | |
| 6668 | +} | |
| 6669 | +struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionOffsetTime * x = j ? cJSON_GetUnionOffsetTimeValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 6670 | +char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x) { cJSON * j = cJSON_CreateUnionOffsetTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 6671 | + | |
| 6672 | +cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x) { | |
| 6673 | + cJSON * j = NULL; | |
| 6674 | + if (NULL != x) { | |
| 6675 | + if (cJSON_Number == x->type) { | |
| 6676 | + j = cJSON_CreateNumber(x->value.number); | |
| 6677 | + } | |
| 6678 | + else if (cJSON_Object == x->type) { | |
| 6679 | + j = cJSON_CreateOffsetTime(x->value.offset_time); | |
| 6680 | + } | |
| 6681 | + } | |
| 6682 | + return j; | |
| 6683 | +} | |
| 6684 | + | |
| 6685 | +void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x) { | |
| 6686 | + if (NULL != x) { | |
| 6687 | + if (cJSON_Number == x->type) { | |
| 6688 | + } | |
| 6689 | + else if (cJSON_Object == x->type) { | |
| 6690 | + cJSON_DeleteOffsetTime(x->value.offset_time); | |
| 6691 | + } | |
| 6692 | + cJSON_free(x); | |
| 6693 | + } | |
| 6694 | +} | |
| 6695 | + | |
| 6564 | 6696 | struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j) { |
| 6565 | 6697 | struct UnionOneway * x = cJSON_malloc(sizeof(struct UnionOneway)); |
| 6566 | 6698 | if (NULL != x) { |
| @@ -21178,6 +21310,55 @@ void cJSON_DeleteList(struct List * x) { | ||
| 21178 | 21310 | } |
| 21179 | 21311 | } |
| 21180 | 21312 | |
| 21313 | +struct LocalDate * cJSON_ParseLocalDate(const char * s) { | |
| 21314 | + struct LocalDate * x = NULL; | |
| 21315 | + if (NULL != s) { | |
| 21316 | + cJSON * j = cJSON_Parse(s); | |
| 21317 | + if (NULL != j) { | |
| 21318 | + x = cJSON_GetLocalDateValue(j); | |
| 21319 | + cJSON_Delete(j); | |
| 21320 | + } | |
| 21321 | + } | |
| 21322 | + return x; | |
| 21323 | +} | |
| 21324 | + | |
| 21325 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) { | |
| 21326 | + struct LocalDate * x = NULL; | |
| 21327 | + if (NULL != j) { | |
| 21328 | + if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) { | |
| 21329 | + memset(x, 0, sizeof(struct LocalDate)); | |
| 21330 | + } | |
| 21331 | + } | |
| 21332 | + return x; | |
| 21333 | +} | |
| 21334 | + | |
| 21335 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) { | |
| 21336 | + cJSON * j = NULL; | |
| 21337 | + if (NULL != x) { | |
| 21338 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21339 | + } | |
| 21340 | + } | |
| 21341 | + return j; | |
| 21342 | +} | |
| 21343 | + | |
| 21344 | +char * cJSON_PrintLocalDate(const struct LocalDate * x) { | |
| 21345 | + char * s = NULL; | |
| 21346 | + if (NULL != x) { | |
| 21347 | + cJSON * j = cJSON_CreateLocalDate(x); | |
| 21348 | + if (NULL != j) { | |
| 21349 | + s = cJSON_Print(j); | |
| 21350 | + cJSON_Delete(j); | |
| 21351 | + } | |
| 21352 | + } | |
| 21353 | + return s; | |
| 21354 | +} | |
| 21355 | + | |
| 21356 | +void cJSON_DeleteLocalDate(struct LocalDate * x) { | |
| 21357 | + if (NULL != x) { | |
| 21358 | + cJSON_free(x); | |
| 21359 | + } | |
| 21360 | +} | |
| 21361 | + | |
| 21181 | 21362 | struct Locale * cJSON_ParseLocale(const char * s) { |
| 21182 | 21363 | struct Locale * x = NULL; |
| 21183 | 21364 | if (NULL != s) { |
| @@ -22354,6 +22535,104 @@ void cJSON_DeleteOf(struct Of * x) { | ||
| 22354 | 22535 | } |
| 22355 | 22536 | } |
| 22356 | 22537 | |
| 22538 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) { | |
| 22539 | + struct OffsetDateTime * x = NULL; | |
| 22540 | + if (NULL != s) { | |
| 22541 | + cJSON * j = cJSON_Parse(s); | |
| 22542 | + if (NULL != j) { | |
| 22543 | + x = cJSON_GetOffsetDateTimeValue(j); | |
| 22544 | + cJSON_Delete(j); | |
| 22545 | + } | |
| 22546 | + } | |
| 22547 | + return x; | |
| 22548 | +} | |
| 22549 | + | |
| 22550 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) { | |
| 22551 | + struct OffsetDateTime * x = NULL; | |
| 22552 | + if (NULL != j) { | |
| 22553 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) { | |
| 22554 | + memset(x, 0, sizeof(struct OffsetDateTime)); | |
| 22555 | + } | |
| 22556 | + } | |
| 22557 | + return x; | |
| 22558 | +} | |
| 22559 | + | |
| 22560 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) { | |
| 22561 | + cJSON * j = NULL; | |
| 22562 | + if (NULL != x) { | |
| 22563 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 22564 | + } | |
| 22565 | + } | |
| 22566 | + return j; | |
| 22567 | +} | |
| 22568 | + | |
| 22569 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) { | |
| 22570 | + char * s = NULL; | |
| 22571 | + if (NULL != x) { | |
| 22572 | + cJSON * j = cJSON_CreateOffsetDateTime(x); | |
| 22573 | + if (NULL != j) { | |
| 22574 | + s = cJSON_Print(j); | |
| 22575 | + cJSON_Delete(j); | |
| 22576 | + } | |
| 22577 | + } | |
| 22578 | + return s; | |
| 22579 | +} | |
| 22580 | + | |
| 22581 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) { | |
| 22582 | + if (NULL != x) { | |
| 22583 | + cJSON_free(x); | |
| 22584 | + } | |
| 22585 | +} | |
| 22586 | + | |
| 22587 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s) { | |
| 22588 | + struct OffsetTime * x = NULL; | |
| 22589 | + if (NULL != s) { | |
| 22590 | + cJSON * j = cJSON_Parse(s); | |
| 22591 | + if (NULL != j) { | |
| 22592 | + x = cJSON_GetOffsetTimeValue(j); | |
| 22593 | + cJSON_Delete(j); | |
| 22594 | + } | |
| 22595 | + } | |
| 22596 | + return x; | |
| 22597 | +} | |
| 22598 | + | |
| 22599 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) { | |
| 22600 | + struct OffsetTime * x = NULL; | |
| 22601 | + if (NULL != j) { | |
| 22602 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) { | |
| 22603 | + memset(x, 0, sizeof(struct OffsetTime)); | |
| 22604 | + } | |
| 22605 | + } | |
| 22606 | + return x; | |
| 22607 | +} | |
| 22608 | + | |
| 22609 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) { | |
| 22610 | + cJSON * j = NULL; | |
| 22611 | + if (NULL != x) { | |
| 22612 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 22613 | + } | |
| 22614 | + } | |
| 22615 | + return j; | |
| 22616 | +} | |
| 22617 | + | |
| 22618 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x) { | |
| 22619 | + char * s = NULL; | |
| 22620 | + if (NULL != x) { | |
| 22621 | + cJSON * j = cJSON_CreateOffsetTime(x); | |
| 22622 | + if (NULL != j) { | |
| 22623 | + s = cJSON_Print(j); | |
| 22624 | + cJSON_Delete(j); | |
| 22625 | + } | |
| 22626 | + } | |
| 22627 | + return s; | |
| 22628 | +} | |
| 22629 | + | |
| 22630 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x) { | |
| 22631 | + if (NULL != x) { | |
| 22632 | + cJSON_free(x); | |
| 22633 | + } | |
| 22634 | +} | |
| 22635 | + | |
| 22357 | 22636 | struct Oneway * cJSON_ParseOneway(const char * s) { |
| 22358 | 22637 | struct Oneway * x = NULL; |
| 22359 | 22638 | if (NULL != s) { |
| @@ -32724,6 +33003,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 32724 | 33003 | x->list = cJSON_GetUnionListValue(cJSON_GetObjectItemCaseSensitive(j, "list")); |
| 32725 | 33004 | if (NULL == x->list) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32726 | 33005 | } |
| 33006 | + if (cJSON_HasObjectItem(j, "LocalDate")) { | |
| 33007 | + if (!cJSON_IsUnionLocalDate(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 33008 | + x->local_date = cJSON_GetUnionLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate")); | |
| 33009 | + if (NULL == x->local_date) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 33010 | + } | |
| 32727 | 33011 | if (cJSON_HasObjectItem(j, "Locale")) { |
| 32728 | 33012 | if (!cJSON_IsUnionLocale(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32729 | 33013 | x->locale = cJSON_GetUnionLocaleValue(cJSON_GetObjectItemCaseSensitive(j, "Locale")); |
| @@ -32899,6 +33183,16 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 32899 | 33183 | x->of = cJSON_GetUnionOfValue(cJSON_GetObjectItemCaseSensitive(j, "of")); |
| 32900 | 33184 | if (NULL == x->of) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32901 | 33185 | } |
| 33186 | + if (cJSON_HasObjectItem(j, "OffsetDateTime")) { | |
| 33187 | + if (!cJSON_IsUnionOffsetDateTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 33188 | + x->offset_date_time = cJSON_GetUnionOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime")); | |
| 33189 | + if (NULL == x->offset_date_time) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 33190 | + } | |
| 33191 | + if (cJSON_HasObjectItem(j, "OffsetTime")) { | |
| 33192 | + if (!cJSON_IsUnionOffsetTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 33193 | + x->offset_time = cJSON_GetUnionOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime")); | |
| 33194 | + if (NULL == x->offset_time) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 33195 | + } | |
| 32902 | 33196 | if (cJSON_HasObjectItem(j, "oneway")) { |
| 32903 | 33197 | if (!cJSON_IsUnionOneway(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32904 | 33198 | x->oneway = cJSON_GetUnionOnewayValue(cJSON_GetObjectItemCaseSensitive(j, "oneway")); |
| @@ -34090,6 +34384,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 34090 | 34384 | if (NULL != x->list) { |
| 34091 | 34385 | cJSON_AddItemToObject(j, "list", cJSON_CreateUnionList(x->list)); |
| 34092 | 34386 | } |
| 34387 | + if (NULL != x->local_date) { | |
| 34388 | + cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateUnionLocalDate(x->local_date)); | |
| 34389 | + } | |
| 34093 | 34390 | if (NULL != x->locale) { |
| 34094 | 34391 | cJSON_AddItemToObject(j, "Locale", cJSON_CreateUnionLocale(x->locale)); |
| 34095 | 34392 | } |
| @@ -34195,6 +34492,12 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 34195 | 34492 | if (NULL != x->of) { |
| 34196 | 34493 | cJSON_AddItemToObject(j, "of", cJSON_CreateUnionOf(x->of)); |
| 34197 | 34494 | } |
| 34495 | + if (NULL != x->offset_date_time) { | |
| 34496 | + cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateUnionOffsetDateTime(x->offset_date_time)); | |
| 34497 | + } | |
| 34498 | + if (NULL != x->offset_time) { | |
| 34499 | + cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateUnionOffsetTime(x->offset_time)); | |
| 34500 | + } | |
| 34198 | 34501 | if (NULL != x->oneway) { |
| 34199 | 34502 | cJSON_AddItemToObject(j, "oneway", cJSON_CreateUnionOneway(x->oneway)); |
| 34200 | 34503 | } |
| @@ -35138,6 +35441,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 35138 | 35441 | if (NULL != x->list) { |
| 35139 | 35442 | cJSON_DeleteUnionList(x->list); |
| 35140 | 35443 | } |
| 35444 | + if (NULL != x->local_date) { | |
| 35445 | + cJSON_DeleteUnionLocalDate(x->local_date); | |
| 35446 | + } | |
| 35141 | 35447 | if (NULL != x->locale) { |
| 35142 | 35448 | cJSON_DeleteUnionLocale(x->locale); |
| 35143 | 35449 | } |
| @@ -35243,6 +35549,12 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 35243 | 35549 | if (NULL != x->of) { |
| 35244 | 35550 | cJSON_DeleteUnionOf(x->of); |
| 35245 | 35551 | } |
| 35552 | + if (NULL != x->offset_date_time) { | |
| 35553 | + cJSON_DeleteUnionOffsetDateTime(x->offset_date_time); | |
| 35554 | + } | |
| 35555 | + if (NULL != x->offset_time) { | |
| 35556 | + cJSON_DeleteUnionOffsetTime(x->offset_time); | |
| 35557 | + } | |
| 35246 | 35558 | if (NULL != x->oneway) { |
| 35247 | 35559 | cJSON_DeleteUnionOneway(x->oneway); |
| 35248 | 35560 | } |
Mschema-cjsondefault / TopLevel.h+75 −0
| @@ -1423,6 +1423,17 @@ struct UnionList { | ||
| 1423 | 1423 | } value; |
| 1424 | 1424 | }; |
| 1425 | 1425 | |
| 1426 | +struct LocalDate { | |
| 1427 | +}; | |
| 1428 | + | |
| 1429 | +struct UnionLocalDate { | |
| 1430 | + int type; | |
| 1431 | + union { | |
| 1432 | + double number; | |
| 1433 | + struct LocalDate * local_date; | |
| 1434 | + } value; | |
| 1435 | +}; | |
| 1436 | + | |
| 1426 | 1437 | struct Locale { |
| 1427 | 1438 | }; |
| 1428 | 1439 | |
| @@ -1687,6 +1698,28 @@ struct UnionOf { | ||
| 1687 | 1698 | } value; |
| 1688 | 1699 | }; |
| 1689 | 1700 | |
| 1701 | +struct OffsetDateTime { | |
| 1702 | +}; | |
| 1703 | + | |
| 1704 | +struct UnionOffsetDateTime { | |
| 1705 | + int type; | |
| 1706 | + union { | |
| 1707 | + double number; | |
| 1708 | + struct OffsetDateTime * offset_date_time; | |
| 1709 | + } value; | |
| 1710 | +}; | |
| 1711 | + | |
| 1712 | +struct OffsetTime { | |
| 1713 | +}; | |
| 1714 | + | |
| 1715 | +struct UnionOffsetTime { | |
| 1716 | + int type; | |
| 1717 | + union { | |
| 1718 | + double number; | |
| 1719 | + struct OffsetTime * offset_time; | |
| 1720 | + } value; | |
| 1721 | +}; | |
| 1722 | + | |
| 1690 | 1723 | struct Oneway { |
| 1691 | 1724 | }; |
| 1692 | 1725 | |
| @@ -3990,6 +4023,7 @@ struct TopLevel { | ||
| 3990 | 4023 | struct UnionLeft * left; |
| 3991 | 4024 | struct UnionLet * let; |
| 3992 | 4025 | struct UnionList * list; |
| 4026 | + struct UnionLocalDate * local_date; | |
| 3993 | 4027 | struct UnionLocale * locale; |
| 3994 | 4028 | struct UnionLock * lock; |
| 3995 | 4029 | struct UnionLong * top_level_long; |
| @@ -4025,6 +4059,8 @@ struct TopLevel { | ||
| 4025 | 4059 | struct UnionObject * object; |
| 4026 | 4060 | struct UnionObjectMapper * object_mapper; |
| 4027 | 4061 | struct UnionOf * of; |
| 4062 | + struct UnionOffsetDateTime * offset_date_time; | |
| 4063 | + struct UnionOffsetTime * offset_time; | |
| 4028 | 4064 | struct UnionOneway * oneway; |
| 4029 | 4065 | struct UnionOpen * open; |
| 4030 | 4066 | struct UnionOperator * top_level_operator; |
| @@ -5031,6 +5067,13 @@ void cJSON_DeleteUnionList(struct UnionList * x); | ||
| 5031 | 5067 | struct UnionList * cJSON_ParseUnionList(const char * s); |
| 5032 | 5068 | char * cJSON_PrintUnionList(const struct UnionList * x); |
| 5033 | 5069 | |
| 5070 | +#define cJSON_IsUnionLocalDate(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5071 | +struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j); | |
| 5072 | +cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x); | |
| 5073 | +void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x); | |
| 5074 | +struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s); | |
| 5075 | +char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x); | |
| 5076 | + | |
| 5034 | 5077 | #define cJSON_IsUnionLocale(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) |
| 5035 | 5078 | struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j); |
| 5036 | 5079 | cJSON * cJSON_CreateUnionLocale(const struct UnionLocale * x); |
| @@ -5199,6 +5242,20 @@ void cJSON_DeleteUnionOf(struct UnionOf * x); | ||
| 5199 | 5242 | struct UnionOf * cJSON_ParseUnionOf(const char * s); |
| 5200 | 5243 | char * cJSON_PrintUnionOf(const struct UnionOf * x); |
| 5201 | 5244 | |
| 5245 | +#define cJSON_IsUnionOffsetDateTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5246 | +struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j); | |
| 5247 | +cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x); | |
| 5248 | +void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x); | |
| 5249 | +struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s); | |
| 5250 | +char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x); | |
| 5251 | + | |
| 5252 | +#define cJSON_IsUnionOffsetTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5253 | +struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j); | |
| 5254 | +cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x); | |
| 5255 | +void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x); | |
| 5256 | +struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s); | |
| 5257 | +char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x); | |
| 5258 | + | |
| 5202 | 5259 | #define cJSON_IsUnionOneway(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) |
| 5203 | 5260 | struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j); |
| 5204 | 5261 | cJSON * cJSON_CreateUnionOneway(const struct UnionOneway * x); |
| @@ -7300,6 +7357,12 @@ cJSON * cJSON_CreateList(const struct List * x); | ||
| 7300 | 7357 | char * cJSON_PrintList(const struct List * x); |
| 7301 | 7358 | void cJSON_DeleteList(struct List * x); |
| 7302 | 7359 | |
| 7360 | +struct LocalDate * cJSON_ParseLocalDate(const char * s); | |
| 7361 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j); | |
| 7362 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x); | |
| 7363 | +char * cJSON_PrintLocalDate(const struct LocalDate * x); | |
| 7364 | +void cJSON_DeleteLocalDate(struct LocalDate * x); | |
| 7365 | + | |
| 7303 | 7366 | struct Locale * cJSON_ParseLocale(const char * s); |
| 7304 | 7367 | struct Locale * cJSON_GetLocaleValue(const cJSON * j); |
| 7305 | 7368 | cJSON * cJSON_CreateLocale(const struct Locale * x); |
| @@ -7444,6 +7507,18 @@ cJSON * cJSON_CreateOf(const struct Of * x); | ||
| 7444 | 7507 | char * cJSON_PrintOf(const struct Of * x); |
| 7445 | 7508 | void cJSON_DeleteOf(struct Of * x); |
| 7446 | 7509 | |
| 7510 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s); | |
| 7511 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j); | |
| 7512 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x); | |
| 7513 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x); | |
| 7514 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x); | |
| 7515 | + | |
| 7516 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s); | |
| 7517 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j); | |
| 7518 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x); | |
| 7519 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x); | |
| 7520 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x); | |
| 7521 | + | |
| 7447 | 7522 | struct Oneway * cJSON_ParseOneway(const char * s); |
| 7448 | 7523 | struct Oneway * cJSON_GetOnewayValue(const cJSON * j); |
| 7449 | 7524 | cJSON * cJSON_CreateOneway(const struct Oneway * x); |
Mschema-cplusplusdefault / quicktype.hpp+180 −0
| @@ -1589,6 +1589,18 @@ namespace quicktype { | ||
| 1589 | 1589 | |
| 1590 | 1590 | using UnionList = std::variant<List, double>; |
| 1591 | 1591 | |
| 1592 | + class LocalDate { | |
| 1593 | + public: | |
| 1594 | + LocalDate() = default; | |
| 1595 | + virtual ~LocalDate() = default; | |
| 1596 | + | |
| 1597 | + private: | |
| 1598 | + | |
| 1599 | + public: | |
| 1600 | + }; | |
| 1601 | + | |
| 1602 | + using UnionLocalDate = std::variant<LocalDate, double>; | |
| 1603 | + | |
| 1592 | 1604 | class Locale { |
| 1593 | 1605 | public: |
| 1594 | 1606 | Locale() = default; |
| @@ -1877,6 +1889,30 @@ namespace quicktype { | ||
| 1877 | 1889 | |
| 1878 | 1890 | using UnionOf = std::variant<Of, double>; |
| 1879 | 1891 | |
| 1892 | + class OffsetDateTime { | |
| 1893 | + public: | |
| 1894 | + OffsetDateTime() = default; | |
| 1895 | + virtual ~OffsetDateTime() = default; | |
| 1896 | + | |
| 1897 | + private: | |
| 1898 | + | |
| 1899 | + public: | |
| 1900 | + }; | |
| 1901 | + | |
| 1902 | + using UnionOffsetDateTime = std::variant<OffsetDateTime, double>; | |
| 1903 | + | |
| 1904 | + class OffsetTime { | |
| 1905 | + public: | |
| 1906 | + OffsetTime() = default; | |
| 1907 | + virtual ~OffsetTime() = default; | |
| 1908 | + | |
| 1909 | + private: | |
| 1910 | + | |
| 1911 | + public: | |
| 1912 | + }; | |
| 1913 | + | |
| 1914 | + using UnionOffsetTime = std::variant<OffsetTime, double>; | |
| 1915 | + | |
| 1880 | 1916 | class Oneway { |
| 1881 | 1917 | public: |
| 1882 | 1918 | Oneway() = default; |
| @@ -4378,6 +4414,7 @@ namespace quicktype { | ||
| 4378 | 4414 | std::optional<UnionLeft> left; |
| 4379 | 4415 | std::optional<UnionLet> let; |
| 4380 | 4416 | std::optional<UnionList> list; |
| 4417 | + std::optional<UnionLocalDate> local_date; | |
| 4381 | 4418 | std::optional<UnionLocale> locale; |
| 4382 | 4419 | std::optional<UnionLock> lock; |
| 4383 | 4420 | std::optional<UnionLong> top_level_long; |
| @@ -4413,6 +4450,8 @@ namespace quicktype { | ||
| 4413 | 4450 | std::optional<UnionObject> object; |
| 4414 | 4451 | std::optional<UnionObjectMapper> object_mapper; |
| 4415 | 4452 | std::optional<UnionOf> of; |
| 4453 | + std::optional<UnionOffsetDateTime> offset_date_time; | |
| 4454 | + std::optional<UnionOffsetTime> offset_time; | |
| 4416 | 4455 | std::optional<UnionOneway> oneway; |
| 4417 | 4456 | std::optional<UnionOpen> open; |
| 4418 | 4457 | std::optional<UnionOperator> top_level_operator; |
| @@ -5260,6 +5299,10 @@ namespace quicktype { | ||
| 5260 | 5299 | std::optional<UnionList> & get_mutable_list() { return list; } |
| 5261 | 5300 | void set_list(const std::optional<UnionList> & value) { this->list = value; } |
| 5262 | 5301 | |
| 5302 | + const std::optional<UnionLocalDate> & get_local_date() const { return local_date; } | |
| 5303 | + std::optional<UnionLocalDate> & get_mutable_local_date() { return local_date; } | |
| 5304 | + void set_local_date(const std::optional<UnionLocalDate> & value) { this->local_date = value; } | |
| 5305 | + | |
| 5263 | 5306 | const std::optional<UnionLocale> & get_locale() const { return locale; } |
| 5264 | 5307 | std::optional<UnionLocale> & get_mutable_locale() { return locale; } |
| 5265 | 5308 | void set_locale(const std::optional<UnionLocale> & value) { this->locale = value; } |
| @@ -5400,6 +5443,14 @@ namespace quicktype { | ||
| 5400 | 5443 | std::optional<UnionOf> & get_mutable_of() { return of; } |
| 5401 | 5444 | void set_of(const std::optional<UnionOf> & value) { this->of = value; } |
| 5402 | 5445 | |
| 5446 | + const std::optional<UnionOffsetDateTime> & get_offset_date_time() const { return offset_date_time; } | |
| 5447 | + std::optional<UnionOffsetDateTime> & get_mutable_offset_date_time() { return offset_date_time; } | |
| 5448 | + void set_offset_date_time(const std::optional<UnionOffsetDateTime> & value) { this->offset_date_time = value; } | |
| 5449 | + | |
| 5450 | + const std::optional<UnionOffsetTime> & get_offset_time() const { return offset_time; } | |
| 5451 | + std::optional<UnionOffsetTime> & get_mutable_offset_time() { return offset_time; } | |
| 5452 | + void set_offset_time(const std::optional<UnionOffsetTime> & value) { this->offset_time = value; } | |
| 5453 | + | |
| 5403 | 5454 | const std::optional<UnionOneway> & get_oneway() const { return oneway; } |
| 5404 | 5455 | std::optional<UnionOneway> & get_mutable_oneway() { return oneway; } |
| 5405 | 5456 | void set_oneway(const std::optional<UnionOneway> & value) { this->oneway = value; } |
| @@ -6294,6 +6345,9 @@ void to_json(json & j, const Let & x); | ||
| 6294 | 6345 | void from_json(const json & j, List & x); |
| 6295 | 6346 | void to_json(json & j, const List & x); |
| 6296 | 6347 | |
| 6348 | +void from_json(const json & j, LocalDate & x); | |
| 6349 | +void to_json(json & j, const LocalDate & x); | |
| 6350 | + | |
| 6297 | 6351 | void from_json(const json & j, Locale & x); |
| 6298 | 6352 | void to_json(json & j, const Locale & x); |
| 6299 | 6353 | |
| @@ -6366,6 +6420,12 @@ void to_json(json & j, const ObjectMapper & x); | ||
| 6366 | 6420 | void from_json(const json & j, Of & x); |
| 6367 | 6421 | void to_json(json & j, const Of & x); |
| 6368 | 6422 | |
| 6423 | +void from_json(const json & j, OffsetDateTime & x); | |
| 6424 | +void to_json(json & j, const OffsetDateTime & x); | |
| 6425 | + | |
| 6426 | +void from_json(const json & j, OffsetTime & x); | |
| 6427 | +void to_json(json & j, const OffsetTime & x); | |
| 6428 | + | |
| 6369 | 6429 | void from_json(const json & j, Oneway & x); |
| 6370 | 6430 | void to_json(json & j, const Oneway & x); |
| 6371 | 6431 | |
| @@ -7699,6 +7759,12 @@ struct adl_serializer<std::variant<quicktype::List, double>> { | ||
| 7699 | 7759 | static void to_json(json & j, const std::variant<quicktype::List, double> & x); |
| 7700 | 7760 | }; |
| 7701 | 7761 | |
| 7762 | +template <> | |
| 7763 | +struct adl_serializer<std::variant<quicktype::LocalDate, double>> { | |
| 7764 | + static void from_json(const json & j, std::variant<quicktype::LocalDate, double> & x); | |
| 7765 | + static void to_json(json & j, const std::variant<quicktype::LocalDate, double> & x); | |
| 7766 | +}; | |
| 7767 | + | |
| 7702 | 7768 | template <> |
| 7703 | 7769 | struct adl_serializer<std::variant<quicktype::Locale, double>> { |
| 7704 | 7770 | static void from_json(const json & j, std::variant<quicktype::Locale, double> & x); |
| @@ -7843,6 +7909,18 @@ struct adl_serializer<std::variant<quicktype::Of, double>> { | ||
| 7843 | 7909 | static void to_json(json & j, const std::variant<quicktype::Of, double> & x); |
| 7844 | 7910 | }; |
| 7845 | 7911 | |
| 7912 | +template <> | |
| 7913 | +struct adl_serializer<std::variant<quicktype::OffsetDateTime, double>> { | |
| 7914 | + static void from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x); | |
| 7915 | + static void to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x); | |
| 7916 | +}; | |
| 7917 | + | |
| 7918 | +template <> | |
| 7919 | +struct adl_serializer<std::variant<quicktype::OffsetTime, double>> { | |
| 7920 | + static void from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x); | |
| 7921 | + static void to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x); | |
| 7922 | +}; | |
| 7923 | + | |
| 7846 | 7924 | template <> |
| 7847 | 7925 | struct adl_serializer<std::variant<quicktype::Oneway, double>> { |
| 7848 | 7926 | static void from_json(const json & j, std::variant<quicktype::Oneway, double> & x); |
| @@ -10377,6 +10455,17 @@ namespace quicktype { | ||
| 10377 | 10455 | (void)x; |
| 10378 | 10456 | } |
| 10379 | 10457 | |
| 10458 | + inline void from_json(const json & j, LocalDate& x) { | |
| 10459 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10460 | + (void)j; | |
| 10461 | + (void)x; | |
| 10462 | + } | |
| 10463 | + | |
| 10464 | + inline void to_json(json & j, const LocalDate & x) { | |
| 10465 | + j = json::object(); | |
| 10466 | + (void)x; | |
| 10467 | + } | |
| 10468 | + | |
| 10380 | 10469 | inline void from_json(const json & j, Locale& x) { |
| 10381 | 10470 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10382 | 10471 | (void)j; |
| @@ -10641,6 +10730,28 @@ namespace quicktype { | ||
| 10641 | 10730 | (void)x; |
| 10642 | 10731 | } |
| 10643 | 10732 | |
| 10733 | + inline void from_json(const json & j, OffsetDateTime& x) { | |
| 10734 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10735 | + (void)j; | |
| 10736 | + (void)x; | |
| 10737 | + } | |
| 10738 | + | |
| 10739 | + inline void to_json(json & j, const OffsetDateTime & x) { | |
| 10740 | + j = json::object(); | |
| 10741 | + (void)x; | |
| 10742 | + } | |
| 10743 | + | |
| 10744 | + inline void from_json(const json & j, OffsetTime& x) { | |
| 10745 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10746 | + (void)j; | |
| 10747 | + (void)x; | |
| 10748 | + } | |
| 10749 | + | |
| 10750 | + inline void to_json(json & j, const OffsetTime & x) { | |
| 10751 | + j = json::object(); | |
| 10752 | + (void)x; | |
| 10753 | + } | |
| 10754 | + | |
| 10644 | 10755 | inline void from_json(const json & j, Oneway& x) { |
| 10645 | 10756 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10646 | 10757 | (void)j; |
| @@ -13124,6 +13235,8 @@ namespace quicktype { | ||
| 13124 | 13235 | x.set_let(get_stack_optional<std::variant<Let, double>>(j, "let")); |
| 13125 | 13236 | if (j.find("list") != j.end() && j.at("list").is_null()) throw std::runtime_error("Unexpected null"); |
| 13126 | 13237 | x.set_list(get_stack_optional<std::variant<List, double>>(j, "list")); |
| 13238 | + if (j.find("LocalDate") != j.end() && j.at("LocalDate").is_null()) throw std::runtime_error("Unexpected null"); | |
| 13239 | + x.set_local_date(get_stack_optional<std::variant<LocalDate, double>>(j, "LocalDate")); | |
| 13127 | 13240 | if (j.find("Locale") != j.end() && j.at("Locale").is_null()) throw std::runtime_error("Unexpected null"); |
| 13128 | 13241 | x.set_locale(get_stack_optional<std::variant<Locale, double>>(j, "Locale")); |
| 13129 | 13242 | if (j.find("lock") != j.end() && j.at("lock").is_null()) throw std::runtime_error("Unexpected null"); |
| @@ -13194,6 +13307,10 @@ namespace quicktype { | ||
| 13194 | 13307 | x.set_object_mapper(get_stack_optional<std::variant<ObjectMapper, double>>(j, "ObjectMapper")); |
| 13195 | 13308 | if (j.find("of") != j.end() && j.at("of").is_null()) throw std::runtime_error("Unexpected null"); |
| 13196 | 13309 | x.set_of(get_stack_optional<std::variant<Of, double>>(j, "of")); |
| 13310 | + if (j.find("OffsetDateTime") != j.end() && j.at("OffsetDateTime").is_null()) throw std::runtime_error("Unexpected null"); | |
| 13311 | + x.set_offset_date_time(get_stack_optional<std::variant<OffsetDateTime, double>>(j, "OffsetDateTime")); | |
| 13312 | + if (j.find("OffsetTime") != j.end() && j.at("OffsetTime").is_null()) throw std::runtime_error("Unexpected null"); | |
| 13313 | + x.set_offset_time(get_stack_optional<std::variant<OffsetTime, double>>(j, "OffsetTime")); | |
| 13197 | 13314 | if (j.find("oneway") != j.end() && j.at("oneway").is_null()) throw std::runtime_error("Unexpected null"); |
| 13198 | 13315 | x.set_oneway(get_stack_optional<std::variant<Oneway, double>>(j, "oneway")); |
| 13199 | 13316 | if (j.find("open") != j.end() && j.at("open").is_null()) throw std::runtime_error("Unexpected null"); |
| @@ -13635,6 +13752,7 @@ namespace quicktype { | ||
| 13635 | 13752 | j["left"] = x.get_left(); |
| 13636 | 13753 | j["let"] = x.get_let(); |
| 13637 | 13754 | j["list"] = x.get_list(); |
| 13755 | + j["LocalDate"] = x.get_local_date(); | |
| 13638 | 13756 | j["Locale"] = x.get_locale(); |
| 13639 | 13757 | j["lock"] = x.get_lock(); |
| 13640 | 13758 | j["long"] = x.get_top_level_long(); |
| @@ -13670,6 +13788,8 @@ namespace quicktype { | ||
| 13670 | 13788 | j["object"] = x.get_object(); |
| 13671 | 13789 | j["ObjectMapper"] = x.get_object_mapper(); |
| 13672 | 13790 | j["of"] = x.get_of(); |
| 13791 | + j["OffsetDateTime"] = x.get_offset_date_time(); | |
| 13792 | + j["OffsetTime"] = x.get_offset_time(); | |
| 13673 | 13793 | j["oneway"] = x.get_oneway(); |
| 13674 | 13794 | j["open"] = x.get_open(); |
| 13675 | 13795 | j["operator"] = x.get_top_level_operator(); |
| @@ -16302,6 +16422,26 @@ namespace nlohmann { | ||
| 16302 | 16422 | } |
| 16303 | 16423 | } |
| 16304 | 16424 | |
| 16425 | + inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::from_json(const json & j, std::variant<quicktype::LocalDate, double> & x) { | |
| 16426 | + if (j.is_number()) | |
| 16427 | + x = j.get<double>(); | |
| 16428 | + else if (j.is_object()) | |
| 16429 | + x = j.get<quicktype::LocalDate>(); | |
| 16430 | + else throw std::runtime_error("Could not deserialise!"); | |
| 16431 | + } | |
| 16432 | + | |
| 16433 | + inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::to_json(json & j, const std::variant<quicktype::LocalDate, double> & x) { | |
| 16434 | + switch (x.index()) { | |
| 16435 | + case 0: | |
| 16436 | + j = std::get<quicktype::LocalDate>(x); | |
| 16437 | + break; | |
| 16438 | + case 1: | |
| 16439 | + j = std::get<double>(x); | |
| 16440 | + break; | |
| 16441 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 16442 | + } | |
| 16443 | + } | |
| 16444 | + | |
| 16305 | 16445 | inline void adl_serializer<std::variant<quicktype::Locale, double>>::from_json(const json & j, std::variant<quicktype::Locale, double> & x) { |
| 16306 | 16446 | if (j.is_number()) |
| 16307 | 16447 | x = j.get<double>(); |
| @@ -16782,6 +16922,46 @@ namespace nlohmann { | ||
| 16782 | 16922 | } |
| 16783 | 16923 | } |
| 16784 | 16924 | |
| 16925 | + inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x) { | |
| 16926 | + if (j.is_number()) | |
| 16927 | + x = j.get<double>(); | |
| 16928 | + else if (j.is_object()) | |
| 16929 | + x = j.get<quicktype::OffsetDateTime>(); | |
| 16930 | + else throw std::runtime_error("Could not deserialise!"); | |
| 16931 | + } | |
| 16932 | + | |
| 16933 | + inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x) { | |
| 16934 | + switch (x.index()) { | |
| 16935 | + case 0: | |
| 16936 | + j = std::get<quicktype::OffsetDateTime>(x); | |
| 16937 | + break; | |
| 16938 | + case 1: | |
| 16939 | + j = std::get<double>(x); | |
| 16940 | + break; | |
| 16941 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 16942 | + } | |
| 16943 | + } | |
| 16944 | + | |
| 16945 | + inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x) { | |
| 16946 | + if (j.is_number()) | |
| 16947 | + x = j.get<double>(); | |
| 16948 | + else if (j.is_object()) | |
| 16949 | + x = j.get<quicktype::OffsetTime>(); | |
| 16950 | + else throw std::runtime_error("Could not deserialise!"); | |
| 16951 | + } | |
| 16952 | + | |
| 16953 | + inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x) { | |
| 16954 | + switch (x.index()) { | |
| 16955 | + case 0: | |
| 16956 | + j = std::get<quicktype::OffsetTime>(x); | |
| 16957 | + break; | |
| 16958 | + case 1: | |
| 16959 | + j = std::get<double>(x); | |
| 16960 | + break; | |
| 16961 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 16962 | + } | |
| 16963 | + } | |
| 16964 | + | |
| 16785 | 16965 | inline void adl_serializer<std::variant<quicktype::Oneway, double>>::from_json(const json & j, std::variant<quicktype::Oneway, double> & x) { |
| 16786 | 16966 | if (j.is_number()) |
| 16787 | 16967 | x = j.get<double>(); |
Mschema-crystaldefault / TopLevel.cr+30 −0
| @@ -421,6 +421,9 @@ class TopLevel | ||
| 421 | 421 | |
| 422 | 422 | property list : UnionList? |
| 423 | 423 | |
| 424 | + @[JSON::Field(key: "LocalDate")] | |
| 425 | + property local_date : UnionLocalDate? | |
| 426 | + | |
| 424 | 427 | @[JSON::Field(key: "Locale")] |
| 425 | 428 | property locale : UnionLocale? |
| 426 | 429 | |
| @@ -507,6 +510,12 @@ class TopLevel | ||
| 507 | 510 | @[JSON::Field(key: "of")] |
| 508 | 511 | property top_level_of : UnionOf? |
| 509 | 512 | |
| 513 | + @[JSON::Field(key: "OffsetDateTime")] | |
| 514 | + property offset_date_time : UnionOffsetDateTime? | |
| 515 | + | |
| 516 | + @[JSON::Field(key: "OffsetTime")] | |
| 517 | + property offset_time : UnionOffsetTime? | |
| 518 | + | |
| 510 | 519 | property oneway : UnionOneway? |
| 511 | 520 | |
| 512 | 521 | property open : UnionOpen? |
| @@ -1610,6 +1619,11 @@ class List | ||
| 1610 | 1619 | |
| 1611 | 1620 | end |
| 1612 | 1621 | |
| 1622 | +class LocalDate | |
| 1623 | + include JSON::Serializable | |
| 1624 | + | |
| 1625 | +end | |
| 1626 | + | |
| 1613 | 1627 | class Locale |
| 1614 | 1628 | include JSON::Serializable |
| 1615 | 1629 | |
| @@ -1760,6 +1774,16 @@ class ObjectMapper | ||
| 1760 | 1774 | |
| 1761 | 1775 | end |
| 1762 | 1776 | |
| 1777 | +class OffsetDateTime | |
| 1778 | + include JSON::Serializable | |
| 1779 | + | |
| 1780 | +end | |
| 1781 | + | |
| 1782 | +class OffsetTime | |
| 1783 | + include JSON::Serializable | |
| 1784 | + | |
| 1785 | +end | |
| 1786 | + | |
| 1763 | 1787 | class Oneway |
| 1764 | 1788 | include JSON::Serializable |
| 1765 | 1789 | |
| @@ -2843,6 +2867,8 @@ alias UnionLet = Float64 | Let | ||
| 2843 | 2867 | |
| 2844 | 2868 | alias UnionList = Float64 | List |
| 2845 | 2869 | |
| 2870 | +alias UnionLocalDate = Float64 | LocalDate | |
| 2871 | + | |
| 2846 | 2872 | alias UnionLocale = Float64 | Locale |
| 2847 | 2873 | |
| 2848 | 2874 | alias UnionLock = Float64 | Lock |
| @@ -2903,6 +2929,10 @@ alias UnionObject = Float64 | ObjectClass | ||
| 2903 | 2929 | |
| 2904 | 2930 | alias UnionObjectMapper = Float64 | ObjectMapper |
| 2905 | 2931 | |
| 2932 | +alias UnionOffsetDateTime = Float64 | OffsetDateTime | |
| 2933 | + | |
| 2934 | +alias UnionOffsetTime = Float64 | OffsetTime | |
| 2935 | + | |
| 2906 | 2936 | alias UnionOneway = Float64 | Oneway |
| 2907 | 2937 | |
| 2908 | 2938 | alias UnionOpen = Float64 | Open |
Mschema-csharp-recordsdefault / QuickType.cs+165 −0
| @@ -562,6 +562,9 @@ namespace QuickType | ||
| 562 | 562 | [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 563 | 563 | public UnionList? List { get; set; } |
| 564 | 564 | |
| 565 | + [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 566 | + public UnionLocalDate? LocalDate { get; set; } | |
| 567 | + | |
| 565 | 568 | [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 566 | 569 | public UnionLocale? Locale { get; set; } |
| 567 | 570 | |
| @@ -667,6 +670,12 @@ namespace QuickType | ||
| 667 | 670 | [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 668 | 671 | public UnionOf? Of { get; set; } |
| 669 | 672 | |
| 673 | + [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 674 | + public UnionOffsetDateTime? OffsetDateTime { get; set; } | |
| 675 | + | |
| 676 | + [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 677 | + public UnionOffsetTime? OffsetTime { get; set; } | |
| 678 | + | |
| 670 | 679 | [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 671 | 680 | public UnionOneway? Oneway { get; set; } |
| 672 | 681 | |
| @@ -1735,6 +1744,10 @@ namespace QuickType | ||
| 1735 | 1744 | { |
| 1736 | 1745 | } |
| 1737 | 1746 | |
| 1747 | + public partial record LocalDate | |
| 1748 | + { | |
| 1749 | + } | |
| 1750 | + | |
| 1738 | 1751 | public partial record Locale |
| 1739 | 1752 | { |
| 1740 | 1753 | } |
| @@ -1867,6 +1880,14 @@ namespace QuickType | ||
| 1867 | 1880 | { |
| 1868 | 1881 | } |
| 1869 | 1882 | |
| 1883 | + public partial record OffsetDateTime | |
| 1884 | + { | |
| 1885 | + } | |
| 1886 | + | |
| 1887 | + public partial record OffsetTime | |
| 1888 | + { | |
| 1889 | + } | |
| 1890 | + | |
| 1870 | 1891 | public partial record Oneway |
| 1871 | 1892 | { |
| 1872 | 1893 | } |
| @@ -3953,6 +3974,15 @@ namespace QuickType | ||
| 3953 | 3974 | public static implicit operator UnionList(List List) => new UnionList { List = List }; |
| 3954 | 3975 | } |
| 3955 | 3976 | |
| 3977 | + public partial struct UnionLocalDate | |
| 3978 | + { | |
| 3979 | + public double? Double; | |
| 3980 | + public LocalDate? LocalDate; | |
| 3981 | + | |
| 3982 | + public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double }; | |
| 3983 | + public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate }; | |
| 3984 | + } | |
| 3985 | + | |
| 3956 | 3986 | public partial struct UnionLocale |
| 3957 | 3987 | { |
| 3958 | 3988 | public double? Double; |
| @@ -4250,6 +4280,24 @@ namespace QuickType | ||
| 4250 | 4280 | public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of }; |
| 4251 | 4281 | } |
| 4252 | 4282 | |
| 4283 | + public partial struct UnionOffsetDateTime | |
| 4284 | + { | |
| 4285 | + public double? Double; | |
| 4286 | + public OffsetDateTime? OffsetDateTime; | |
| 4287 | + | |
| 4288 | + public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double }; | |
| 4289 | + public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime }; | |
| 4290 | + } | |
| 4291 | + | |
| 4292 | + public partial struct UnionOffsetTime | |
| 4293 | + { | |
| 4294 | + public double? Double; | |
| 4295 | + public OffsetTime? OffsetTime; | |
| 4296 | + | |
| 4297 | + public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double }; | |
| 4298 | + public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime }; | |
| 4299 | + } | |
| 4300 | + | |
| 4253 | 4301 | public partial struct UnionOneway |
| 4254 | 4302 | { |
| 4255 | 4303 | public double? Double; |
| @@ -5555,6 +5603,7 @@ namespace QuickType | ||
| 5555 | 5603 | UnionJsonReaderConverter.Singleton, |
| 5556 | 5604 | UnionJsonTokenTypeConverter.Singleton, |
| 5557 | 5605 | UnionKSerializerConverter.Singleton, |
| 5606 | + UnionLocalDateConverter.Singleton, | |
| 5558 | 5607 | UnionLocaleConverter.Singleton, |
| 5559 | 5608 | UnionMapEntryConverter.Singleton, |
| 5560 | 5609 | UnionMarshalJsonConverter.Singleton, |
| @@ -5565,6 +5614,8 @@ namespace QuickType | ||
| 5565 | 5614 | UnionNullConverter.Singleton, |
| 5566 | 5615 | UnionNoneConverter.Singleton, |
| 5567 | 5616 | UnionObjectMapperConverter.Singleton, |
| 5617 | + UnionOffsetDateTimeConverter.Singleton, | |
| 5618 | + UnionOffsetTimeConverter.Singleton, | |
| 5568 | 5619 | UnionPrimitiveKindConverter.Singleton, |
| 5569 | 5620 | UnionProtocolConverter.Singleton, |
| 5570 | 5621 | UnionRegExpConverter.Singleton, |
| @@ -7234,6 +7285,44 @@ namespace QuickType | ||
| 7234 | 7285 | public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter(); |
| 7235 | 7286 | } |
| 7236 | 7287 | |
| 7288 | + internal class UnionLocalDateConverter : JsonConverter | |
| 7289 | + { | |
| 7290 | + public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?); | |
| 7291 | + | |
| 7292 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7293 | + { | |
| 7294 | + switch (reader.TokenType) | |
| 7295 | + { | |
| 7296 | + case JsonToken.Integer: | |
| 7297 | + case JsonToken.Float: | |
| 7298 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7299 | + return new UnionLocalDate { Double = doubleValue }; | |
| 7300 | + case JsonToken.StartObject: | |
| 7301 | + var objectValue = serializer.Deserialize<LocalDate>(reader); | |
| 7302 | + return new UnionLocalDate { LocalDate = objectValue }; | |
| 7303 | + } | |
| 7304 | + throw new Exception("Cannot unmarshal type UnionLocalDate"); | |
| 7305 | + } | |
| 7306 | + | |
| 7307 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7308 | + { | |
| 7309 | + var value = (UnionLocalDate)untypedValue; | |
| 7310 | + if (value.Double != null) | |
| 7311 | + { | |
| 7312 | + serializer.Serialize(writer, value.Double.Value); | |
| 7313 | + return; | |
| 7314 | + } | |
| 7315 | + if (value.LocalDate != null) | |
| 7316 | + { | |
| 7317 | + serializer.Serialize(writer, value.LocalDate); | |
| 7318 | + return; | |
| 7319 | + } | |
| 7320 | + throw new Exception("Cannot marshal type UnionLocalDate"); | |
| 7321 | + } | |
| 7322 | + | |
| 7323 | + public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter(); | |
| 7324 | + } | |
| 7325 | + | |
| 7237 | 7326 | internal class UnionLocaleConverter : JsonConverter |
| 7238 | 7327 | { |
| 7239 | 7328 | public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?); |
| @@ -7614,6 +7703,82 @@ namespace QuickType | ||
| 7614 | 7703 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7615 | 7704 | } |
| 7616 | 7705 | |
| 7706 | + internal class UnionOffsetDateTimeConverter : JsonConverter | |
| 7707 | + { | |
| 7708 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?); | |
| 7709 | + | |
| 7710 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7711 | + { | |
| 7712 | + switch (reader.TokenType) | |
| 7713 | + { | |
| 7714 | + case JsonToken.Integer: | |
| 7715 | + case JsonToken.Float: | |
| 7716 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7717 | + return new UnionOffsetDateTime { Double = doubleValue }; | |
| 7718 | + case JsonToken.StartObject: | |
| 7719 | + var objectValue = serializer.Deserialize<OffsetDateTime>(reader); | |
| 7720 | + return new UnionOffsetDateTime { OffsetDateTime = objectValue }; | |
| 7721 | + } | |
| 7722 | + throw new Exception("Cannot unmarshal type UnionOffsetDateTime"); | |
| 7723 | + } | |
| 7724 | + | |
| 7725 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7726 | + { | |
| 7727 | + var value = (UnionOffsetDateTime)untypedValue; | |
| 7728 | + if (value.Double != null) | |
| 7729 | + { | |
| 7730 | + serializer.Serialize(writer, value.Double.Value); | |
| 7731 | + return; | |
| 7732 | + } | |
| 7733 | + if (value.OffsetDateTime != null) | |
| 7734 | + { | |
| 7735 | + serializer.Serialize(writer, value.OffsetDateTime); | |
| 7736 | + return; | |
| 7737 | + } | |
| 7738 | + throw new Exception("Cannot marshal type UnionOffsetDateTime"); | |
| 7739 | + } | |
| 7740 | + | |
| 7741 | + public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter(); | |
| 7742 | + } | |
| 7743 | + | |
| 7744 | + internal class UnionOffsetTimeConverter : JsonConverter | |
| 7745 | + { | |
| 7746 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?); | |
| 7747 | + | |
| 7748 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7749 | + { | |
| 7750 | + switch (reader.TokenType) | |
| 7751 | + { | |
| 7752 | + case JsonToken.Integer: | |
| 7753 | + case JsonToken.Float: | |
| 7754 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7755 | + return new UnionOffsetTime { Double = doubleValue }; | |
| 7756 | + case JsonToken.StartObject: | |
| 7757 | + var objectValue = serializer.Deserialize<OffsetTime>(reader); | |
| 7758 | + return new UnionOffsetTime { OffsetTime = objectValue }; | |
| 7759 | + } | |
| 7760 | + throw new Exception("Cannot unmarshal type UnionOffsetTime"); | |
| 7761 | + } | |
| 7762 | + | |
| 7763 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7764 | + { | |
| 7765 | + var value = (UnionOffsetTime)untypedValue; | |
| 7766 | + if (value.Double != null) | |
| 7767 | + { | |
| 7768 | + serializer.Serialize(writer, value.Double.Value); | |
| 7769 | + return; | |
| 7770 | + } | |
| 7771 | + if (value.OffsetTime != null) | |
| 7772 | + { | |
| 7773 | + serializer.Serialize(writer, value.OffsetTime); | |
| 7774 | + return; | |
| 7775 | + } | |
| 7776 | + throw new Exception("Cannot marshal type UnionOffsetTime"); | |
| 7777 | + } | |
| 7778 | + | |
| 7779 | + public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter(); | |
| 7780 | + } | |
| 7781 | + | |
| 7617 | 7782 | internal class UnionPrimitiveKindConverter : JsonConverter |
| 7618 | 7783 | { |
| 7619 | 7784 | public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?); |
Mschema-csharp-SystemTextJsondefault / QuickType.cs+162 −0
| @@ -738,6 +738,10 @@ namespace QuickType | ||
| 738 | 738 | [JsonPropertyName("list")] |
| 739 | 739 | public UnionList? List { get; set; } |
| 740 | 740 | |
| 741 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 742 | + [JsonPropertyName("LocalDate")] | |
| 743 | + public UnionLocalDate? LocalDate { get; set; } | |
| 744 | + | |
| 741 | 745 | [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
| 742 | 746 | [JsonPropertyName("Locale")] |
| 743 | 747 | public UnionLocale? Locale { get; set; } |
| @@ -878,6 +882,14 @@ namespace QuickType | ||
| 878 | 882 | [JsonPropertyName("of")] |
| 879 | 883 | public UnionOf? Of { get; set; } |
| 880 | 884 | |
| 885 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 886 | + [JsonPropertyName("OffsetDateTime")] | |
| 887 | + public UnionOffsetDateTime? OffsetDateTime { get; set; } | |
| 888 | + | |
| 889 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 890 | + [JsonPropertyName("OffsetTime")] | |
| 891 | + public UnionOffsetTime? OffsetTime { get; set; } | |
| 892 | + | |
| 881 | 893 | [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
| 882 | 894 | [JsonPropertyName("oneway")] |
| 883 | 895 | public UnionOneway? Oneway { get; set; } |
| @@ -2083,6 +2095,10 @@ namespace QuickType | ||
| 2083 | 2095 | { |
| 2084 | 2096 | } |
| 2085 | 2097 | |
| 2098 | + public partial class LocalDate | |
| 2099 | + { | |
| 2100 | + } | |
| 2101 | + | |
| 2086 | 2102 | public partial class Locale |
| 2087 | 2103 | { |
| 2088 | 2104 | } |
| @@ -2215,6 +2231,14 @@ namespace QuickType | ||
| 2215 | 2231 | { |
| 2216 | 2232 | } |
| 2217 | 2233 | |
| 2234 | + public partial class OffsetDateTime | |
| 2235 | + { | |
| 2236 | + } | |
| 2237 | + | |
| 2238 | + public partial class OffsetTime | |
| 2239 | + { | |
| 2240 | + } | |
| 2241 | + | |
| 2218 | 2242 | public partial class Oneway |
| 2219 | 2243 | { |
| 2220 | 2244 | } |
| @@ -4311,6 +4335,15 @@ namespace QuickType | ||
| 4311 | 4335 | public static implicit operator UnionList(List List) => new UnionList { List = List }; |
| 4312 | 4336 | } |
| 4313 | 4337 | |
| 4338 | + public partial struct UnionLocalDate | |
| 4339 | + { | |
| 4340 | + public double? Double; | |
| 4341 | + public LocalDate? LocalDate; | |
| 4342 | + | |
| 4343 | + public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double }; | |
| 4344 | + public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate }; | |
| 4345 | + } | |
| 4346 | + | |
| 4314 | 4347 | public partial struct UnionLocale |
| 4315 | 4348 | { |
| 4316 | 4349 | public double? Double; |
| @@ -4608,6 +4641,24 @@ namespace QuickType | ||
| 4608 | 4641 | public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of }; |
| 4609 | 4642 | } |
| 4610 | 4643 | |
| 4644 | + public partial struct UnionOffsetDateTime | |
| 4645 | + { | |
| 4646 | + public double? Double; | |
| 4647 | + public OffsetDateTime? OffsetDateTime; | |
| 4648 | + | |
| 4649 | + public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double }; | |
| 4650 | + public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime }; | |
| 4651 | + } | |
| 4652 | + | |
| 4653 | + public partial struct UnionOffsetTime | |
| 4654 | + { | |
| 4655 | + public double? Double; | |
| 4656 | + public OffsetTime? OffsetTime; | |
| 4657 | + | |
| 4658 | + public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double }; | |
| 4659 | + public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime }; | |
| 4660 | + } | |
| 4661 | + | |
| 4611 | 4662 | public partial struct UnionOneway |
| 4612 | 4663 | { |
| 4613 | 4664 | public double? Double; |
| @@ -5893,6 +5944,7 @@ namespace QuickType | ||
| 5893 | 5944 | UnionJsonReaderConverter.Singleton, |
| 5894 | 5945 | UnionJsonTokenTypeConverter.Singleton, |
| 5895 | 5946 | UnionKSerializerConverter.Singleton, |
| 5947 | + UnionLocalDateConverter.Singleton, | |
| 5896 | 5948 | UnionLocaleConverter.Singleton, |
| 5897 | 5949 | UnionMapEntryConverter.Singleton, |
| 5898 | 5950 | UnionMarshalJsonConverter.Singleton, |
| @@ -5903,6 +5955,8 @@ namespace QuickType | ||
| 5903 | 5955 | UnionNullConverter.Singleton, |
| 5904 | 5956 | UnionNoneConverter.Singleton, |
| 5905 | 5957 | UnionObjectMapperConverter.Singleton, |
| 5958 | + UnionOffsetDateTimeConverter.Singleton, | |
| 5959 | + UnionOffsetTimeConverter.Singleton, | |
| 5906 | 5960 | UnionPrimitiveKindConverter.Singleton, |
| 5907 | 5961 | UnionProtocolConverter.Singleton, |
| 5908 | 5962 | UnionRegExpConverter.Singleton, |
| @@ -7502,6 +7556,42 @@ namespace QuickType | ||
| 7502 | 7556 | public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter(); |
| 7503 | 7557 | } |
| 7504 | 7558 | |
| 7559 | + internal class UnionLocalDateConverter : JsonConverter<UnionLocalDate> | |
| 7560 | + { | |
| 7561 | + public override bool CanConvert(Type t) => t == typeof(UnionLocalDate); | |
| 7562 | + | |
| 7563 | + public override UnionLocalDate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7564 | + { | |
| 7565 | + switch (reader.TokenType) | |
| 7566 | + { | |
| 7567 | + case JsonTokenType.Number: | |
| 7568 | + var doubleValue1 = reader.GetDouble(); | |
| 7569 | + return new UnionLocalDate { Double = doubleValue1 }; | |
| 7570 | + case JsonTokenType.StartObject: | |
| 7571 | + var objectValue = JsonSerializer.Deserialize<LocalDate>(ref reader, options); | |
| 7572 | + return new UnionLocalDate { LocalDate = objectValue }; | |
| 7573 | + } | |
| 7574 | + throw new JsonException("Cannot unmarshal type UnionLocalDate"); | |
| 7575 | + } | |
| 7576 | + | |
| 7577 | + public override void Write(Utf8JsonWriter writer, UnionLocalDate value, JsonSerializerOptions options) | |
| 7578 | + { | |
| 7579 | + if (value.Double != null) | |
| 7580 | + { | |
| 7581 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 7582 | + return; | |
| 7583 | + } | |
| 7584 | + if (value.LocalDate != null) | |
| 7585 | + { | |
| 7586 | + JsonSerializer.Serialize(writer, value.LocalDate, options); | |
| 7587 | + return; | |
| 7588 | + } | |
| 7589 | + throw new NotSupportedException("Cannot marshal type UnionLocalDate"); | |
| 7590 | + } | |
| 7591 | + | |
| 7592 | + public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter(); | |
| 7593 | + } | |
| 7594 | + | |
| 7505 | 7595 | internal class UnionLocaleConverter : JsonConverter<UnionLocale> |
| 7506 | 7596 | { |
| 7507 | 7597 | public override bool CanConvert(Type t) => t == typeof(UnionLocale); |
| @@ -7862,6 +7952,78 @@ namespace QuickType | ||
| 7862 | 7952 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7863 | 7953 | } |
| 7864 | 7954 | |
| 7955 | + internal class UnionOffsetDateTimeConverter : JsonConverter<UnionOffsetDateTime> | |
| 7956 | + { | |
| 7957 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime); | |
| 7958 | + | |
| 7959 | + public override UnionOffsetDateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7960 | + { | |
| 7961 | + switch (reader.TokenType) | |
| 7962 | + { | |
| 7963 | + case JsonTokenType.Number: | |
| 7964 | + var doubleValue1 = reader.GetDouble(); | |
| 7965 | + return new UnionOffsetDateTime { Double = doubleValue1 }; | |
| 7966 | + case JsonTokenType.StartObject: | |
| 7967 | + var objectValue = JsonSerializer.Deserialize<OffsetDateTime>(ref reader, options); | |
| 7968 | + return new UnionOffsetDateTime { OffsetDateTime = objectValue }; | |
| 7969 | + } | |
| 7970 | + throw new JsonException("Cannot unmarshal type UnionOffsetDateTime"); | |
| 7971 | + } | |
| 7972 | + | |
| 7973 | + public override void Write(Utf8JsonWriter writer, UnionOffsetDateTime value, JsonSerializerOptions options) | |
| 7974 | + { | |
| 7975 | + if (value.Double != null) | |
| 7976 | + { | |
| 7977 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 7978 | + return; | |
| 7979 | + } | |
| 7980 | + if (value.OffsetDateTime != null) | |
| 7981 | + { | |
| 7982 | + JsonSerializer.Serialize(writer, value.OffsetDateTime, options); | |
| 7983 | + return; | |
| 7984 | + } | |
| 7985 | + throw new NotSupportedException("Cannot marshal type UnionOffsetDateTime"); | |
| 7986 | + } | |
| 7987 | + | |
| 7988 | + public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter(); | |
| 7989 | + } | |
| 7990 | + | |
| 7991 | + internal class UnionOffsetTimeConverter : JsonConverter<UnionOffsetTime> | |
| 7992 | + { | |
| 7993 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime); | |
| 7994 | + | |
| 7995 | + public override UnionOffsetTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7996 | + { | |
| 7997 | + switch (reader.TokenType) | |
| 7998 | + { | |
| 7999 | + case JsonTokenType.Number: | |
| 8000 | + var doubleValue1 = reader.GetDouble(); | |
| 8001 | + return new UnionOffsetTime { Double = doubleValue1 }; | |
| 8002 | + case JsonTokenType.StartObject: | |
| 8003 | + var objectValue = JsonSerializer.Deserialize<OffsetTime>(ref reader, options); | |
| 8004 | + return new UnionOffsetTime { OffsetTime = objectValue }; | |
| 8005 | + } | |
| 8006 | + throw new JsonException("Cannot unmarshal type UnionOffsetTime"); | |
| 8007 | + } | |
| 8008 | + | |
| 8009 | + public override void Write(Utf8JsonWriter writer, UnionOffsetTime value, JsonSerializerOptions options) | |
| 8010 | + { | |
| 8011 | + if (value.Double != null) | |
| 8012 | + { | |
| 8013 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 8014 | + return; | |
| 8015 | + } | |
| 8016 | + if (value.OffsetTime != null) | |
| 8017 | + { | |
| 8018 | + JsonSerializer.Serialize(writer, value.OffsetTime, options); | |
| 8019 | + return; | |
| 8020 | + } | |
| 8021 | + throw new NotSupportedException("Cannot marshal type UnionOffsetTime"); | |
| 8022 | + } | |
| 8023 | + | |
| 8024 | + public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter(); | |
| 8025 | + } | |
| 8026 | + | |
| 7865 | 8027 | internal class UnionPrimitiveKindConverter : JsonConverter<UnionPrimitiveKind> |
| 7866 | 8028 | { |
| 7867 | 8029 | public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind); |
Mschema-csharpdefault / QuickType.cs+165 −0
| @@ -562,6 +562,9 @@ namespace QuickType | ||
| 562 | 562 | [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 563 | 563 | public UnionList? List { get; set; } |
| 564 | 564 | |
| 565 | + [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 566 | + public UnionLocalDate? LocalDate { get; set; } | |
| 567 | + | |
| 565 | 568 | [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 566 | 569 | public UnionLocale? Locale { get; set; } |
| 567 | 570 | |
| @@ -667,6 +670,12 @@ namespace QuickType | ||
| 667 | 670 | [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 668 | 671 | public UnionOf? Of { get; set; } |
| 669 | 672 | |
| 673 | + [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 674 | + public UnionOffsetDateTime? OffsetDateTime { get; set; } | |
| 675 | + | |
| 676 | + [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 677 | + public UnionOffsetTime? OffsetTime { get; set; } | |
| 678 | + | |
| 670 | 679 | [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 671 | 680 | public UnionOneway? Oneway { get; set; } |
| 672 | 681 | |
| @@ -1743,6 +1752,10 @@ namespace QuickType | ||
| 1743 | 1752 | { |
| 1744 | 1753 | } |
| 1745 | 1754 | |
| 1755 | + public partial class LocalDate | |
| 1756 | + { | |
| 1757 | + } | |
| 1758 | + | |
| 1746 | 1759 | public partial class Locale |
| 1747 | 1760 | { |
| 1748 | 1761 | } |
| @@ -1875,6 +1888,14 @@ namespace QuickType | ||
| 1875 | 1888 | { |
| 1876 | 1889 | } |
| 1877 | 1890 | |
| 1891 | + public partial class OffsetDateTime | |
| 1892 | + { | |
| 1893 | + } | |
| 1894 | + | |
| 1895 | + public partial class OffsetTime | |
| 1896 | + { | |
| 1897 | + } | |
| 1898 | + | |
| 1878 | 1899 | public partial class Oneway |
| 1879 | 1900 | { |
| 1880 | 1901 | } |
| @@ -3971,6 +3992,15 @@ namespace QuickType | ||
| 3971 | 3992 | public static implicit operator UnionList(List List) => new UnionList { List = List }; |
| 3972 | 3993 | } |
| 3973 | 3994 | |
| 3995 | + public partial struct UnionLocalDate | |
| 3996 | + { | |
| 3997 | + public double? Double; | |
| 3998 | + public LocalDate? LocalDate; | |
| 3999 | + | |
| 4000 | + public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double }; | |
| 4001 | + public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate }; | |
| 4002 | + } | |
| 4003 | + | |
| 3974 | 4004 | public partial struct UnionLocale |
| 3975 | 4005 | { |
| 3976 | 4006 | public double? Double; |
| @@ -4268,6 +4298,24 @@ namespace QuickType | ||
| 4268 | 4298 | public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of }; |
| 4269 | 4299 | } |
| 4270 | 4300 | |
| 4301 | + public partial struct UnionOffsetDateTime | |
| 4302 | + { | |
| 4303 | + public double? Double; | |
| 4304 | + public OffsetDateTime? OffsetDateTime; | |
| 4305 | + | |
| 4306 | + public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double }; | |
| 4307 | + public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime }; | |
| 4308 | + } | |
| 4309 | + | |
| 4310 | + public partial struct UnionOffsetTime | |
| 4311 | + { | |
| 4312 | + public double? Double; | |
| 4313 | + public OffsetTime? OffsetTime; | |
| 4314 | + | |
| 4315 | + public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double }; | |
| 4316 | + public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime }; | |
| 4317 | + } | |
| 4318 | + | |
| 4271 | 4319 | public partial struct UnionOneway |
| 4272 | 4320 | { |
| 4273 | 4321 | public double? Double; |
| @@ -5555,6 +5603,7 @@ namespace QuickType | ||
| 5555 | 5603 | UnionJsonReaderConverter.Singleton, |
| 5556 | 5604 | UnionJsonTokenTypeConverter.Singleton, |
| 5557 | 5605 | UnionKSerializerConverter.Singleton, |
| 5606 | + UnionLocalDateConverter.Singleton, | |
| 5558 | 5607 | UnionLocaleConverter.Singleton, |
| 5559 | 5608 | UnionMapEntryConverter.Singleton, |
| 5560 | 5609 | UnionMarshalJsonConverter.Singleton, |
| @@ -5565,6 +5614,8 @@ namespace QuickType | ||
| 5565 | 5614 | UnionNullConverter.Singleton, |
| 5566 | 5615 | UnionNoneConverter.Singleton, |
| 5567 | 5616 | UnionObjectMapperConverter.Singleton, |
| 5617 | + UnionOffsetDateTimeConverter.Singleton, | |
| 5618 | + UnionOffsetTimeConverter.Singleton, | |
| 5568 | 5619 | UnionPrimitiveKindConverter.Singleton, |
| 5569 | 5620 | UnionProtocolConverter.Singleton, |
| 5570 | 5621 | UnionRegExpConverter.Singleton, |
| @@ -7234,6 +7285,44 @@ namespace QuickType | ||
| 7234 | 7285 | public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter(); |
| 7235 | 7286 | } |
| 7236 | 7287 | |
| 7288 | + internal class UnionLocalDateConverter : JsonConverter | |
| 7289 | + { | |
| 7290 | + public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?); | |
| 7291 | + | |
| 7292 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7293 | + { | |
| 7294 | + switch (reader.TokenType) | |
| 7295 | + { | |
| 7296 | + case JsonToken.Integer: | |
| 7297 | + case JsonToken.Float: | |
| 7298 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7299 | + return new UnionLocalDate { Double = doubleValue }; | |
| 7300 | + case JsonToken.StartObject: | |
| 7301 | + var objectValue = serializer.Deserialize<LocalDate>(reader); | |
| 7302 | + return new UnionLocalDate { LocalDate = objectValue }; | |
| 7303 | + } | |
| 7304 | + throw new Exception("Cannot unmarshal type UnionLocalDate"); | |
| 7305 | + } | |
| 7306 | + | |
| 7307 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7308 | + { | |
| 7309 | + var value = (UnionLocalDate)untypedValue; | |
| 7310 | + if (value.Double != null) | |
| 7311 | + { | |
| 7312 | + serializer.Serialize(writer, value.Double.Value); | |
| 7313 | + return; | |
| 7314 | + } | |
| 7315 | + if (value.LocalDate != null) | |
| 7316 | + { | |
| 7317 | + serializer.Serialize(writer, value.LocalDate); | |
| 7318 | + return; | |
| 7319 | + } | |
| 7320 | + throw new Exception("Cannot marshal type UnionLocalDate"); | |
| 7321 | + } | |
| 7322 | + | |
| 7323 | + public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter(); | |
| 7324 | + } | |
| 7325 | + | |
| 7237 | 7326 | internal class UnionLocaleConverter : JsonConverter |
| 7238 | 7327 | { |
| 7239 | 7328 | public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?); |
| @@ -7614,6 +7703,82 @@ namespace QuickType | ||
| 7614 | 7703 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7615 | 7704 | } |
| 7616 | 7705 | |
| 7706 | + internal class UnionOffsetDateTimeConverter : JsonConverter | |
| 7707 | + { | |
| 7708 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?); | |
| 7709 | + | |
| 7710 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7711 | + { | |
| 7712 | + switch (reader.TokenType) | |
| 7713 | + { | |
| 7714 | + case JsonToken.Integer: | |
| 7715 | + case JsonToken.Float: | |
| 7716 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7717 | + return new UnionOffsetDateTime { Double = doubleValue }; | |
| 7718 | + case JsonToken.StartObject: | |
| 7719 | + var objectValue = serializer.Deserialize<OffsetDateTime>(reader); | |
| 7720 | + return new UnionOffsetDateTime { OffsetDateTime = objectValue }; | |
| 7721 | + } | |
| 7722 | + throw new Exception("Cannot unmarshal type UnionOffsetDateTime"); | |
| 7723 | + } | |
| 7724 | + | |
| 7725 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7726 | + { | |
| 7727 | + var value = (UnionOffsetDateTime)untypedValue; | |
| 7728 | + if (value.Double != null) | |
| 7729 | + { | |
| 7730 | + serializer.Serialize(writer, value.Double.Value); | |
| 7731 | + return; | |
| 7732 | + } | |
| 7733 | + if (value.OffsetDateTime != null) | |
| 7734 | + { | |
| 7735 | + serializer.Serialize(writer, value.OffsetDateTime); | |
| 7736 | + return; | |
| 7737 | + } | |
| 7738 | + throw new Exception("Cannot marshal type UnionOffsetDateTime"); | |
| 7739 | + } | |
| 7740 | + | |
| 7741 | + public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter(); | |
| 7742 | + } | |
| 7743 | + | |
| 7744 | + internal class UnionOffsetTimeConverter : JsonConverter | |
| 7745 | + { | |
| 7746 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?); | |
| 7747 | + | |
| 7748 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7749 | + { | |
| 7750 | + switch (reader.TokenType) | |
| 7751 | + { | |
| 7752 | + case JsonToken.Integer: | |
| 7753 | + case JsonToken.Float: | |
| 7754 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7755 | + return new UnionOffsetTime { Double = doubleValue }; | |
| 7756 | + case JsonToken.StartObject: | |
| 7757 | + var objectValue = serializer.Deserialize<OffsetTime>(reader); | |
| 7758 | + return new UnionOffsetTime { OffsetTime = objectValue }; | |
| 7759 | + } | |
| 7760 | + throw new Exception("Cannot unmarshal type UnionOffsetTime"); | |
| 7761 | + } | |
| 7762 | + | |
| 7763 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7764 | + { | |
| 7765 | + var value = (UnionOffsetTime)untypedValue; | |
| 7766 | + if (value.Double != null) | |
| 7767 | + { | |
| 7768 | + serializer.Serialize(writer, value.Double.Value); | |
| 7769 | + return; | |
| 7770 | + } | |
| 7771 | + if (value.OffsetTime != null) | |
| 7772 | + { | |
| 7773 | + serializer.Serialize(writer, value.OffsetTime); | |
| 7774 | + return; | |
| 7775 | + } | |
| 7776 | + throw new Exception("Cannot marshal type UnionOffsetTime"); | |
| 7777 | + } | |
| 7778 | + | |
| 7779 | + public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter(); | |
| 7780 | + } | |
| 7781 | + | |
| 7617 | 7782 | internal class UnionPrimitiveKindConverter : JsonConverter |
| 7618 | 7783 | { |
| 7619 | 7784 | public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?); |
Mschema-dartdefault / TopLevel.dart+42 −0
| @@ -188,6 +188,7 @@ class TopLevel { | ||
| 188 | 188 | final dynamic left; |
| 189 | 189 | final dynamic let; |
| 190 | 190 | final dynamic list; |
| 191 | + final dynamic localDate; | |
| 191 | 192 | final dynamic locale; |
| 192 | 193 | final dynamic lock; |
| 193 | 194 | final dynamic long; |
| @@ -223,6 +224,8 @@ class TopLevel { | ||
| 223 | 224 | final dynamic object; |
| 224 | 225 | final dynamic objectMapper; |
| 225 | 226 | final dynamic of; |
| 227 | + final dynamic offsetDateTime; | |
| 228 | + final dynamic offsetTime; | |
| 226 | 229 | final dynamic oneway; |
| 227 | 230 | final dynamic open; |
| 228 | 231 | final dynamic topLevelOperator; |
| @@ -533,6 +536,7 @@ class TopLevel { | ||
| 533 | 536 | this.left, |
| 534 | 537 | this.let, |
| 535 | 538 | this.list, |
| 539 | + this.localDate, | |
| 536 | 540 | this.locale, |
| 537 | 541 | this.lock, |
| 538 | 542 | this.long, |
| @@ -568,6 +572,8 @@ class TopLevel { | ||
| 568 | 572 | this.object, |
| 569 | 573 | this.objectMapper, |
| 570 | 574 | this.of, |
| 575 | + this.offsetDateTime, | |
| 576 | + this.offsetTime, | |
| 571 | 577 | this.oneway, |
| 572 | 578 | this.open, |
| 573 | 579 | this.topLevelOperator, |
| @@ -879,6 +885,7 @@ class TopLevel { | ||
| 879 | 885 | left: json["left"], |
| 880 | 886 | let: json["let"], |
| 881 | 887 | list: json["list"], |
| 888 | + localDate: json["LocalDate"], | |
| 882 | 889 | locale: json["Locale"], |
| 883 | 890 | lock: json["lock"], |
| 884 | 891 | long: json["long"], |
| @@ -914,6 +921,8 @@ class TopLevel { | ||
| 914 | 921 | object: json["object"], |
| 915 | 922 | objectMapper: json["ObjectMapper"], |
| 916 | 923 | of: json["of"], |
| 924 | + offsetDateTime: json["OffsetDateTime"], | |
| 925 | + offsetTime: json["OffsetTime"], | |
| 917 | 926 | oneway: json["oneway"], |
| 918 | 927 | open: json["open"], |
| 919 | 928 | topLevelOperator: json["operator"], |
| @@ -1225,6 +1234,7 @@ class TopLevel { | ||
| 1225 | 1234 | "left": left, |
| 1226 | 1235 | "let": let, |
| 1227 | 1236 | "list": list, |
| 1237 | + "LocalDate": localDate, | |
| 1228 | 1238 | "Locale": locale, |
| 1229 | 1239 | "lock": lock, |
| 1230 | 1240 | "long": long, |
| @@ -1260,6 +1270,8 @@ class TopLevel { | ||
| 1260 | 1270 | "object": object, |
| 1261 | 1271 | "ObjectMapper": objectMapper, |
| 1262 | 1272 | "of": of, |
| 1273 | + "OffsetDateTime": offsetDateTime, | |
| 1274 | + "OffsetTime": offsetTime, | |
| 1263 | 1275 | "oneway": oneway, |
| 1264 | 1276 | "open": open, |
| 1265 | 1277 | "operator": topLevelOperator, |
| @@ -2792,6 +2804,16 @@ class ListClass { | ||
| 2792 | 2804 | }; |
| 2793 | 2805 | } |
| 2794 | 2806 | |
| 2807 | +class LocalDate { | |
| 2808 | + LocalDate(); | |
| 2809 | + | |
| 2810 | + factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate( | |
| 2811 | + ); | |
| 2812 | + | |
| 2813 | + Map<String, dynamic> toJson() => { | |
| 2814 | + }; | |
| 2815 | +} | |
| 2816 | + | |
| 2795 | 2817 | class Locale { |
| 2796 | 2818 | Locale(); |
| 2797 | 2819 | |
| @@ -3092,6 +3114,26 @@ class Of { | ||
| 3092 | 3114 | }; |
| 3093 | 3115 | } |
| 3094 | 3116 | |
| 3117 | +class OffsetDateTime { | |
| 3118 | + OffsetDateTime(); | |
| 3119 | + | |
| 3120 | + factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime( | |
| 3121 | + ); | |
| 3122 | + | |
| 3123 | + Map<String, dynamic> toJson() => { | |
| 3124 | + }; | |
| 3125 | +} | |
| 3126 | + | |
| 3127 | +class OffsetTime { | |
| 3128 | + OffsetTime(); | |
| 3129 | + | |
| 3130 | + factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime( | |
| 3131 | + ); | |
| 3132 | + | |
| 3133 | + Map<String, dynamic> toJson() => { | |
| 3134 | + }; | |
| 3135 | +} | |
| 3136 | + | |
| 3095 | 3137 | class Oneway { |
| 3096 | 3138 | Oneway(); |
Mschema-elixirdefault / QuickType.ex+133 −1
| @@ -4848,6 +4848,35 @@ defmodule ListClass do | ||
| 4848 | 4848 | end |
| 4849 | 4849 | end |
| 4850 | 4850 | |
| 4851 | +defmodule LocalDate do | |
| 4852 | + defstruct [] | |
| 4853 | + | |
| 4854 | + @type t :: %__MODULE__{ | |
| 4855 | + } | |
| 4856 | + | |
| 4857 | + def from_map(m) when is_map(m) do | |
| 4858 | + %LocalDate{ | |
| 4859 | + } | |
| 4860 | + end | |
| 4861 | + | |
| 4862 | + def from_json(json) do | |
| 4863 | + json | |
| 4864 | + |> Jason.decode!() | |
| 4865 | + |> from_map() | |
| 4866 | + end | |
| 4867 | + | |
| 4868 | + def to_map(_struct) do | |
| 4869 | + %{ | |
| 4870 | + } | |
| 4871 | + end | |
| 4872 | + | |
| 4873 | + def to_json(struct) do | |
| 4874 | + struct | |
| 4875 | + |> to_map() | |
| 4876 | + |> Jason.encode!() | |
| 4877 | + end | |
| 4878 | +end | |
| 4879 | + | |
| 4851 | 4880 | defmodule Locale do |
| 4852 | 4881 | defstruct [] |
| 4853 | 4882 | |
| @@ -5747,6 +5776,64 @@ defmodule Of do | ||
| 5747 | 5776 | end |
| 5748 | 5777 | end |
| 5749 | 5778 | |
| 5779 | +defmodule OffsetDateTime do | |
| 5780 | + defstruct [] | |
| 5781 | + | |
| 5782 | + @type t :: %__MODULE__{ | |
| 5783 | + } | |
| 5784 | + | |
| 5785 | + def from_map(m) when is_map(m) do | |
| 5786 | + %OffsetDateTime{ | |
| 5787 | + } | |
| 5788 | + end | |
| 5789 | + | |
| 5790 | + def from_json(json) do | |
| 5791 | + json | |
| 5792 | + |> Jason.decode!() | |
| 5793 | + |> from_map() | |
| 5794 | + end | |
| 5795 | + | |
| 5796 | + def to_map(_struct) do | |
| 5797 | + %{ | |
| 5798 | + } | |
| 5799 | + end | |
| 5800 | + | |
| 5801 | + def to_json(struct) do | |
| 5802 | + struct | |
| 5803 | + |> to_map() | |
| 5804 | + |> Jason.encode!() | |
| 5805 | + end | |
| 5806 | +end | |
| 5807 | + | |
| 5808 | +defmodule OffsetTime do | |
| 5809 | + defstruct [] | |
| 5810 | + | |
| 5811 | + @type t :: %__MODULE__{ | |
| 5812 | + } | |
| 5813 | + | |
| 5814 | + def from_map(m) when is_map(m) do | |
| 5815 | + %OffsetTime{ | |
| 5816 | + } | |
| 5817 | + end | |
| 5818 | + | |
| 5819 | + def from_json(json) do | |
| 5820 | + json | |
| 5821 | + |> Jason.decode!() | |
| 5822 | + |> from_map() | |
| 5823 | + end | |
| 5824 | + | |
| 5825 | + def to_map(_struct) do | |
| 5826 | + %{ | |
| 5827 | + } | |
| 5828 | + end | |
| 5829 | + | |
| 5830 | + def to_json(struct) do | |
| 5831 | + struct | |
| 5832 | + |> to_map() | |
| 5833 | + |> Jason.encode!() | |
| 5834 | + end | |
| 5835 | +end | |
| 5836 | + | |
| 5750 | 5837 | defmodule Oneway do |
| 5751 | 5838 | defstruct [] |
| 5752 | 5839 | |
| @@ -9924,7 +10011,7 @@ defmodule Yield do | ||
| 9924 | 10011 | end |
| 9925 | 10012 | |
| 9926 | 10013 | defmodule TopLevel do |
| 9927 | - defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :top_level_do, :double, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_dict, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :k_serializer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :nullptr, :number, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :primitive_kind, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serial_descriptor, :serializable, :serialize, :serializer_provider, :serial_name, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 10014 | + defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :top_level_do, :double, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_dict, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :k_serializer, :lambda, :lazy, :left, :let, :list, :local_date, :locale, :lock, :long, :map, :map_entry, :marshal_json, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :nullptr, :number, :object, :object_mapper, :of, :offset_date_time, :offset_time, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :primitive_kind, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serial_descriptor, :serializable, :serialize, :serializer_provider, :serial_name, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_dict, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unmarshal_json, :unowned, :unsafe, :unsigned, :use_serializers, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 9928 | 10015 | |
| 9929 | 10016 | @type t :: %__MODULE__{ |
| 9930 | 10017 | empty: Empty.t() | float() | nil, |
| @@ -10106,6 +10193,7 @@ defmodule TopLevel do | ||
| 10106 | 10193 | left: Left.t() | float() | nil, |
| 10107 | 10194 | let: Let.t() | float() | nil, |
| 10108 | 10195 | list: ListClass.t() | float() | nil, |
| 10196 | + local_date: LocalDate.t() | float() | nil, | |
| 10109 | 10197 | locale: Locale.t() | float() | nil, |
| 10110 | 10198 | lock: Lock.t() | float() | nil, |
| 10111 | 10199 | long: Long.t() | float() | nil, |
| @@ -10141,6 +10229,8 @@ defmodule TopLevel do | ||
| 10141 | 10229 | object: Object.t() | float() | nil, |
| 10142 | 10230 | object_mapper: ObjectMapper.t() | float() | nil, |
| 10143 | 10231 | of: Of.t() | float() | nil, |
| 10232 | + offset_date_time: OffsetDateTime.t() | float() | nil, | |
| 10233 | + offset_time: OffsetTime.t() | float() | nil, | |
| 10144 | 10234 | oneway: Oneway.t() | float() | nil, |
| 10145 | 10235 | open: Open.t() | float() | nil, |
| 10146 | 10236 | operator: Operator.t() | float() | nil, |
| @@ -12416,6 +12506,18 @@ defmodule TopLevel do | ||
| 12416 | 12506 | def encode_list(value) when is_nil(value), do: value |
| 12417 | 12507 | def encode_list(_), do: {:error, "Unexpected type when encoding TopLevel.list"} |
| 12418 | 12508 | |
| 12509 | + def decode_local_date(%{} = value), do: LocalDate.from_map(value) | |
| 12510 | + def decode_local_date(value) when is_float(value), do: value | |
| 12511 | + def decode_local_date(value) when is_integer(value), do: value | |
| 12512 | + def decode_local_date(value) when is_nil(value), do: value | |
| 12513 | + def decode_local_date(_), do: {:error, "Unexpected type when decoding TopLevel.local_date"} | |
| 12514 | + | |
| 12515 | + def encode_local_date(%LocalDate{} = value), do: LocalDate.to_map(value) | |
| 12516 | + def encode_local_date(value) when is_float(value), do: value | |
| 12517 | + def encode_local_date(value) when is_integer(value), do: value | |
| 12518 | + def encode_local_date(value) when is_nil(value), do: value | |
| 12519 | + def encode_local_date(_), do: {:error, "Unexpected type when encoding TopLevel.local_date"} | |
| 12520 | + | |
| 12419 | 12521 | def decode_locale(%{} = value), do: Locale.from_map(value) |
| 12420 | 12522 | def decode_locale(value) when is_float(value), do: value |
| 12421 | 12523 | def decode_locale(value) when is_integer(value), do: value |
| @@ -12836,6 +12938,30 @@ defmodule TopLevel do | ||
| 12836 | 12938 | def encode_of(value) when is_nil(value), do: value |
| 12837 | 12939 | def encode_of(_), do: {:error, "Unexpected type when encoding TopLevel.of"} |
| 12838 | 12940 | |
| 12941 | + def decode_offset_date_time(%{} = value), do: OffsetDateTime.from_map(value) | |
| 12942 | + def decode_offset_date_time(value) when is_float(value), do: value | |
| 12943 | + def decode_offset_date_time(value) when is_integer(value), do: value | |
| 12944 | + def decode_offset_date_time(value) when is_nil(value), do: value | |
| 12945 | + def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_date_time"} | |
| 12946 | + | |
| 12947 | + def encode_offset_date_time(%OffsetDateTime{} = value), do: OffsetDateTime.to_map(value) | |
| 12948 | + def encode_offset_date_time(value) when is_float(value), do: value | |
| 12949 | + def encode_offset_date_time(value) when is_integer(value), do: value | |
| 12950 | + def encode_offset_date_time(value) when is_nil(value), do: value | |
| 12951 | + def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_date_time"} | |
| 12952 | + | |
| 12953 | + def decode_offset_time(%{} = value), do: OffsetTime.from_map(value) | |
| 12954 | + def decode_offset_time(value) when is_float(value), do: value | |
| 12955 | + def decode_offset_time(value) when is_integer(value), do: value | |
| 12956 | + def decode_offset_time(value) when is_nil(value), do: value | |
| 12957 | + def decode_offset_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_time"} | |
| 12958 | + | |
| 12959 | + def encode_offset_time(%OffsetTime{} = value), do: OffsetTime.to_map(value) | |
| 12960 | + def encode_offset_time(value) when is_float(value), do: value | |
| 12961 | + def encode_offset_time(value) when is_integer(value), do: value | |
| 12962 | + def encode_offset_time(value) when is_nil(value), do: value | |
| 12963 | + def encode_offset_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_time"} | |
| 12964 | + | |
| 12839 | 12965 | def decode_oneway(%{} = value), do: Oneway.from_map(value) |
| 12840 | 12966 | def decode_oneway(value) when is_float(value), do: value |
| 12841 | 12967 | def decode_oneway(value) when is_integer(value), do: value |
| @@ -14565,6 +14691,7 @@ defmodule TopLevel do | ||
| 14565 | 14691 | left: decode_left(m["left"]), |
| 14566 | 14692 | let: decode_let(m["let"]), |
| 14567 | 14693 | list: decode_list(m["list"]), |
| 14694 | + local_date: decode_local_date(m["LocalDate"]), | |
| 14568 | 14695 | locale: decode_locale(m["Locale"]), |
| 14569 | 14696 | lock: decode_lock(m["lock"]), |
| 14570 | 14697 | long: decode_long(m["long"]), |
| @@ -14600,6 +14727,8 @@ defmodule TopLevel do | ||
| 14600 | 14727 | object: decode_object(m["object"]), |
| 14601 | 14728 | object_mapper: decode_object_mapper(m["ObjectMapper"]), |
| 14602 | 14729 | of: decode_of(m["of"]), |
| 14730 | + offset_date_time: decode_offset_date_time(m["OffsetDateTime"]), | |
| 14731 | + offset_time: decode_offset_time(m["OffsetTime"]), | |
| 14603 | 14732 | oneway: decode_oneway(m["oneway"]), |
| 14604 | 14733 | open: decode_open(m["open"]), |
| 14605 | 14734 | operator: decode_operator(m["operator"]), |
| @@ -14919,6 +15048,7 @@ defmodule TopLevel do | ||
| 14919 | 15048 | "left" => encode_left(struct.left), |
| 14920 | 15049 | "let" => encode_let(struct.let), |
| 14921 | 15050 | "list" => encode_list(struct.list), |
| 15051 | + "LocalDate" => encode_local_date(struct.local_date), | |
| 14922 | 15052 | "Locale" => encode_locale(struct.locale), |
| 14923 | 15053 | "lock" => encode_lock(struct.lock), |
| 14924 | 15054 | "long" => encode_long(struct.long), |
| @@ -14954,6 +15084,8 @@ defmodule TopLevel do | ||
| 14954 | 15084 | "object" => encode_object(struct.object), |
| 14955 | 15085 | "ObjectMapper" => encode_object_mapper(struct.object_mapper), |
| 14956 | 15086 | "of" => encode_of(struct.of), |
| 15087 | + "OffsetDateTime" => encode_offset_date_time(struct.offset_date_time), | |
| 15088 | + "OffsetTime" => encode_offset_time(struct.offset_time), | |
| 14957 | 15089 | "oneway" => encode_oneway(struct.oneway), |
| 14958 | 15090 | "open" => encode_open(struct.open), |
| 14959 | 15091 | "operator" => encode_operator(struct.operator), |
Mschema-elmdefault / QuickType.elm+105 −0
| @@ -175,6 +175,7 @@ module QuickType exposing | ||
| 175 | 175 | , Lazy |
| 176 | 176 | , Left |
| 177 | 177 | , ListClass |
| 178 | + , LocalDate | |
| 178 | 179 | , Locale |
| 179 | 180 | , Lock |
| 180 | 181 | , Long |
| @@ -206,6 +207,8 @@ module QuickType exposing | ||
| 206 | 207 | , Number |
| 207 | 208 | , Object |
| 208 | 209 | , ObjectMapper |
| 210 | + , OffsetDateTime | |
| 211 | + , OffsetTime | |
| 209 | 212 | , Oneway |
| 210 | 213 | , Open |
| 211 | 214 | , Operator |
| @@ -517,6 +520,7 @@ module QuickType exposing | ||
| 517 | 520 | , UnionLazy(..) |
| 518 | 521 | , UnionLeft(..) |
| 519 | 522 | , UnionList(..) |
| 523 | + , UnionLocalDate(..) | |
| 520 | 524 | , UnionLocale(..) |
| 521 | 525 | , UnionLock(..) |
| 522 | 526 | , UnionLong(..) |
| @@ -548,6 +552,8 @@ module QuickType exposing | ||
| 548 | 552 | , UnionNumber(..) |
| 549 | 553 | , UnionObject(..) |
| 550 | 554 | , UnionObjectMapper(..) |
| 555 | + , UnionOffsetDateTime(..) | |
| 556 | + , UnionOffsetTime(..) | |
| 551 | 557 | , UnionOneway(..) |
| 552 | 558 | , UnionOpen(..) |
| 553 | 559 | , UnionOperator(..) |
| @@ -886,6 +892,7 @@ type alias QuickType = | ||
| 886 | 892 | , left : Maybe UnionLeft |
| 887 | 893 | , quickTypeLet : Maybe UnionLet |
| 888 | 894 | , list : Maybe UnionList |
| 895 | + , localDate : Maybe UnionLocalDate | |
| 889 | 896 | , locale : Maybe UnionLocale |
| 890 | 897 | , lock : Maybe UnionLock |
| 891 | 898 | , long : Maybe UnionLong |
| @@ -921,6 +928,8 @@ type alias QuickType = | ||
| 921 | 928 | , object : Maybe UnionObject |
| 922 | 929 | , objectMapper : Maybe UnionObjectMapper |
| 923 | 930 | , quickTypeOf : Maybe UnionOf |
| 931 | + , offsetDateTime : Maybe UnionOffsetDateTime | |
| 932 | + , offsetTime : Maybe UnionOffsetTime | |
| 924 | 933 | , oneway : Maybe UnionOneway |
| 925 | 934 | , open : Maybe UnionOpen |
| 926 | 935 | , operator : Maybe UnionOperator |
| @@ -2332,6 +2341,14 @@ type alias ListClass = | ||
| 2332 | 2341 | { |
| 2333 | 2342 | } |
| 2334 | 2343 | |
| 2344 | +type UnionLocalDate | |
| 2345 | + = DoubleInUnionLocalDate Float | |
| 2346 | + | LocalDateInUnionLocalDate LocalDate | |
| 2347 | + | |
| 2348 | +type alias LocalDate = | |
| 2349 | + { | |
| 2350 | + } | |
| 2351 | + | |
| 2335 | 2352 | type UnionLocale |
| 2336 | 2353 | = DoubleInUnionLocale Float |
| 2337 | 2354 | | LocaleInUnionLocale Locale |
| @@ -2580,6 +2597,22 @@ type alias ObjectMapper = | ||
| 2580 | 2597 | { |
| 2581 | 2598 | } |
| 2582 | 2599 | |
| 2600 | +type UnionOffsetDateTime | |
| 2601 | + = DoubleInUnionOffsetDateTime Float | |
| 2602 | + | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime | |
| 2603 | + | |
| 2604 | +type alias OffsetDateTime = | |
| 2605 | + { | |
| 2606 | + } | |
| 2607 | + | |
| 2608 | +type UnionOffsetTime | |
| 2609 | + = DoubleInUnionOffsetTime Float | |
| 2610 | + | OffsetTimeInUnionOffsetTime OffsetTime | |
| 2611 | + | |
| 2612 | +type alias OffsetTime = | |
| 2613 | + { | |
| 2614 | + } | |
| 2615 | + | |
| 2583 | 2616 | type UnionOneway |
| 2584 | 2617 | = DoubleInUnionOneway Float |
| 2585 | 2618 | | OnewayInUnionOneway Oneway |
| @@ -3981,6 +4014,7 @@ quickType = | ||
| 3981 | 4014 | |> Jpipe.custom (optionalField "left" (Jdec.map Just unionLeft) Nothing) |
| 3982 | 4015 | |> Jpipe.custom (optionalField "let" (Jdec.map Just unionLet) Nothing) |
| 3983 | 4016 | |> Jpipe.custom (optionalField "list" (Jdec.map Just unionList) Nothing) |
| 4017 | + |> Jpipe.custom (optionalField "LocalDate" (Jdec.map Just unionLocalDate) Nothing) | |
| 3984 | 4018 | |> Jpipe.custom (optionalField "Locale" (Jdec.map Just unionLocale) Nothing) |
| 3985 | 4019 | |> Jpipe.custom (optionalField "lock" (Jdec.map Just unionLock) Nothing) |
| 3986 | 4020 | |> Jpipe.custom (optionalField "long" (Jdec.map Just unionLong) Nothing) |
| @@ -4016,6 +4050,8 @@ quickType = | ||
| 4016 | 4050 | |> Jpipe.custom (optionalField "object" (Jdec.map Just unionObject) Nothing) |
| 4017 | 4051 | |> Jpipe.custom (optionalField "ObjectMapper" (Jdec.map Just unionObjectMapper) Nothing) |
| 4018 | 4052 | |> Jpipe.custom (optionalField "of" (Jdec.map Just unionOf) Nothing) |
| 4053 | + |> Jpipe.custom (optionalField "OffsetDateTime" (Jdec.map Just unionOffsetDateTime) Nothing) | |
| 4054 | + |> Jpipe.custom (optionalField "OffsetTime" (Jdec.map Just unionOffsetTime) Nothing) | |
| 4019 | 4055 | |> Jpipe.custom (optionalField "oneway" (Jdec.map Just unionOneway) Nothing) |
| 4020 | 4056 | |> Jpipe.custom (optionalField "open" (Jdec.map Just unionOpen) Nothing) |
| 4021 | 4057 | |> Jpipe.custom (optionalField "operator" (Jdec.map Just unionOperator) Nothing) |
| @@ -4328,6 +4364,7 @@ encodeQuickType x = | ||
| 4328 | 4364 | , ("left", makeNullableEncoder encodeUnionLeft x.left) |
| 4329 | 4365 | , ("let", makeNullableEncoder encodeUnionLet x.quickTypeLet) |
| 4330 | 4366 | , ("list", makeNullableEncoder encodeUnionList x.list) |
| 4367 | + , ("LocalDate", makeNullableEncoder encodeUnionLocalDate x.localDate) | |
| 4331 | 4368 | , ("Locale", makeNullableEncoder encodeUnionLocale x.locale) |
| 4332 | 4369 | , ("lock", makeNullableEncoder encodeUnionLock x.lock) |
| 4333 | 4370 | , ("long", makeNullableEncoder encodeUnionLong x.long) |
| @@ -4363,6 +4400,8 @@ encodeQuickType x = | ||
| 4363 | 4400 | , ("object", makeNullableEncoder encodeUnionObject x.object) |
| 4364 | 4401 | , ("ObjectMapper", makeNullableEncoder encodeUnionObjectMapper x.objectMapper) |
| 4365 | 4402 | , ("of", makeNullableEncoder encodeUnionOf x.quickTypeOf) |
| 4403 | + , ("OffsetDateTime", makeNullableEncoder encodeUnionOffsetDateTime x.offsetDateTime) | |
| 4404 | + , ("OffsetTime", makeNullableEncoder encodeUnionOffsetTime x.offsetTime) | |
| 4366 | 4405 | , ("oneway", makeNullableEncoder encodeUnionOneway x.oneway) |
| 4367 | 4406 | , ("open", makeNullableEncoder encodeUnionOpen x.open) |
| 4368 | 4407 | , ("operator", makeNullableEncoder encodeUnionOperator x.operator) |
| @@ -8014,6 +8053,28 @@ encodeListClass x = | ||
| 8014 | 8053 | [ |
| 8015 | 8054 | ] |
| 8016 | 8055 | |
| 8056 | +unionLocalDate : Jdec.Decoder UnionLocalDate | |
| 8057 | +unionLocalDate = | |
| 8058 | + Jdec.oneOf | |
| 8059 | + [ Jdec.map DoubleInUnionLocalDate Jdec.float | |
| 8060 | + , Jdec.map LocalDateInUnionLocalDate localDate | |
| 8061 | + ] | |
| 8062 | + | |
| 8063 | +encodeUnionLocalDate : UnionLocalDate -> Jenc.Value | |
| 8064 | +encodeUnionLocalDate x = case x of | |
| 8065 | + DoubleInUnionLocalDate y -> Jenc.float y | |
| 8066 | + LocalDateInUnionLocalDate y -> encodeLocalDate y | |
| 8067 | + | |
| 8068 | +localDate : Jdec.Decoder LocalDate | |
| 8069 | +localDate = | |
| 8070 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate) | |
| 8071 | + | |
| 8072 | +encodeLocalDate : LocalDate -> Jenc.Value | |
| 8073 | +encodeLocalDate x = | |
| 8074 | + Jenc.object | |
| 8075 | + [ | |
| 8076 | + ] | |
| 8077 | + | |
| 8017 | 8078 | unionLocale : Jdec.Decoder UnionLocale |
| 8018 | 8079 | unionLocale = |
| 8019 | 8080 | Jdec.oneOf |
| @@ -8696,6 +8757,50 @@ encodeObjectMapper x = | ||
| 8696 | 8757 | [ |
| 8697 | 8758 | ] |
| 8698 | 8759 | |
| 8760 | +unionOffsetDateTime : Jdec.Decoder UnionOffsetDateTime | |
| 8761 | +unionOffsetDateTime = | |
| 8762 | + Jdec.oneOf | |
| 8763 | + [ Jdec.map DoubleInUnionOffsetDateTime Jdec.float | |
| 8764 | + , Jdec.map OffsetDateTimeInUnionOffsetDateTime offsetDateTime | |
| 8765 | + ] | |
| 8766 | + | |
| 8767 | +encodeUnionOffsetDateTime : UnionOffsetDateTime -> Jenc.Value | |
| 8768 | +encodeUnionOffsetDateTime x = case x of | |
| 8769 | + DoubleInUnionOffsetDateTime y -> Jenc.float y | |
| 8770 | + OffsetDateTimeInUnionOffsetDateTime y -> encodeOffsetDateTime y | |
| 8771 | + | |
| 8772 | +offsetDateTime : Jdec.Decoder OffsetDateTime | |
| 8773 | +offsetDateTime = | |
| 8774 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime) | |
| 8775 | + | |
| 8776 | +encodeOffsetDateTime : OffsetDateTime -> Jenc.Value | |
| 8777 | +encodeOffsetDateTime x = | |
| 8778 | + Jenc.object | |
| 8779 | + [ | |
| 8780 | + ] | |
| 8781 | + | |
| 8782 | +unionOffsetTime : Jdec.Decoder UnionOffsetTime | |
| 8783 | +unionOffsetTime = | |
| 8784 | + Jdec.oneOf | |
| 8785 | + [ Jdec.map DoubleInUnionOffsetTime Jdec.float | |
| 8786 | + , Jdec.map OffsetTimeInUnionOffsetTime offsetTime | |
| 8787 | + ] | |
| 8788 | + | |
| 8789 | +encodeUnionOffsetTime : UnionOffsetTime -> Jenc.Value | |
| 8790 | +encodeUnionOffsetTime x = case x of | |
| 8791 | + DoubleInUnionOffsetTime y -> Jenc.float y | |
| 8792 | + OffsetTimeInUnionOffsetTime y -> encodeOffsetTime y | |
| 8793 | + | |
| 8794 | +offsetTime : Jdec.Decoder OffsetTime | |
| 8795 | +offsetTime = | |
| 8796 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime) | |
| 8797 | + | |
| 8798 | +encodeOffsetTime : OffsetTime -> Jenc.Value | |
| 8799 | +encodeOffsetTime x = | |
| 8800 | + Jenc.object | |
| 8801 | + [ | |
| 8802 | + ] | |
| 8803 | + | |
| 8699 | 8804 | unionOneway : Jdec.Decoder UnionOneway |
| 8700 | 8805 | unionOneway = |
| 8701 | 8806 | Jdec.oneOf |
Mschema-flowdefault / TopLevel.js+27 −0
| @@ -189,6 +189,7 @@ export type TopLevel = { | ||
| 189 | 189 | left?: UnionLeft; |
| 190 | 190 | let?: UnionLet; |
| 191 | 191 | list?: UnionList; |
| 192 | + LocalDate?: UnionLocalDate; | |
| 192 | 193 | Locale?: UnionLocale; |
| 193 | 194 | lock?: UnionLock; |
| 194 | 195 | long?: UnionLong; |
| @@ -224,6 +225,8 @@ export type TopLevel = { | ||
| 224 | 225 | object?: UnionObject; |
| 225 | 226 | ObjectMapper?: UnionObjectMapper; |
| 226 | 227 | of?: UnionOf; |
| 228 | + OffsetDateTime?: UnionOffsetDateTime; | |
| 229 | + OffsetTime?: UnionOffsetTime; | |
| 227 | 230 | oneway?: UnionOneway; |
| 228 | 231 | open?: UnionOpen; |
| 229 | 232 | operator?: UnionOperator; |
| @@ -536,6 +539,11 @@ export type UnionKSerializer = KSerializer | number; | ||
| 536 | 539 | export type KSerializer = { |
| 537 | 540 | }; |
| 538 | 541 | |
| 542 | +export type UnionLocalDate = LocalDate | number; | |
| 543 | + | |
| 544 | +export type LocalDate = { | |
| 545 | +}; | |
| 546 | + | |
| 539 | 547 | export type UnionLocale = Locale | number; |
| 540 | 548 | |
| 541 | 549 | export type Locale = { |
| @@ -586,6 +594,16 @@ export type UnionObjectMapper = ObjectMapper | number; | ||
| 586 | 594 | export type ObjectMapper = { |
| 587 | 595 | }; |
| 588 | 596 | |
| 597 | +export type UnionOffsetDateTime = OffsetDateTime | number; | |
| 598 | + | |
| 599 | +export type OffsetDateTime = { | |
| 600 | +}; | |
| 601 | + | |
| 602 | +export type UnionOffsetTime = OffsetTime | number; | |
| 603 | + | |
| 604 | +export type OffsetTime = { | |
| 605 | +}; | |
| 606 | + | |
| 589 | 607 | export type UnionPrimitiveKind = PrimitiveKind | number; |
| 590 | 608 | |
| 591 | 609 | export type PrimitiveKind = { |
| @@ -2431,6 +2449,7 @@ const typeMap: any = { | ||
| 2431 | 2449 | { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) }, |
| 2432 | 2450 | { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) }, |
| 2433 | 2451 | { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) }, |
| 2452 | + { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) }, | |
| 2434 | 2453 | { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) }, |
| 2435 | 2454 | { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) }, |
| 2436 | 2455 | { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) }, |
| @@ -2466,6 +2485,8 @@ const typeMap: any = { | ||
| 2466 | 2485 | { json: "object", js: "object", typ: u(undefined, u(r("ObjectClass"), 3.14)) }, |
| 2467 | 2486 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) }, |
| 2468 | 2487 | { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) }, |
| 2488 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) }, | |
| 2489 | + { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) }, | |
| 2469 | 2490 | { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) }, |
| 2470 | 2491 | { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) }, |
| 2471 | 2492 | { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) }, |
| @@ -2668,6 +2689,8 @@ const typeMap: any = { | ||
| 2668 | 2689 | ], false), |
| 2669 | 2690 | "KSerializer": o([ |
| 2670 | 2691 | ], false), |
| 2692 | + "LocalDate": o([ | |
| 2693 | + ], false), | |
| 2671 | 2694 | "Locale": o([ |
| 2672 | 2695 | ], false), |
| 2673 | 2696 | "MapEntry": o([ |
| @@ -2688,6 +2711,10 @@ const typeMap: any = { | ||
| 2688 | 2711 | ], false), |
| 2689 | 2712 | "ObjectMapper": o([ |
| 2690 | 2713 | ], false), |
| 2714 | + "OffsetDateTime": o([ | |
| 2715 | + ], false), | |
| 2716 | + "OffsetTime": o([ | |
| 2717 | + ], false), | |
| 2691 | 2718 | "PrimitiveKind": o([ |
| 2692 | 2719 | ], false), |
| 2693 | 2720 | "Protocol": o([ |
Mschema-golangdefault / quicktype.go+78 −0
| @@ -201,6 +201,7 @@ type TopLevel struct { | ||
| 201 | 201 | Left *UnionLeft `json:"left"` |
| 202 | 202 | Let *UnionLet `json:"let"` |
| 203 | 203 | List *UnionList `json:"list"` |
| 204 | + LocalDate *UnionLocalDate `json:"LocalDate"` | |
| 204 | 205 | Locale *UnionLocale `json:"Locale"` |
| 205 | 206 | Lock *UnionLock `json:"lock"` |
| 206 | 207 | Long *UnionLong `json:"long"` |
| @@ -236,6 +237,8 @@ type TopLevel struct { | ||
| 236 | 237 | Object *UnionObject `json:"object"` |
| 237 | 238 | ObjectMapper *UnionObjectMapper `json:"ObjectMapper"` |
| 238 | 239 | Of *UnionOf `json:"of"` |
| 240 | + OffsetDateTime *UnionOffsetDateTime `json:"OffsetDateTime"` | |
| 241 | + OffsetTime *UnionOffsetTime `json:"OffsetTime"` | |
| 239 | 242 | Oneway *UnionOneway `json:"oneway"` |
| 240 | 243 | Open *UnionOpen `json:"open"` |
| 241 | 244 | Operator *UnionOperator `json:"operator"` |
| @@ -886,6 +889,9 @@ type Let struct { | ||
| 886 | 889 | type List struct { |
| 887 | 890 | } |
| 888 | 891 | |
| 892 | +type LocalDate struct { | |
| 893 | +} | |
| 894 | + | |
| 889 | 895 | type Locale struct { |
| 890 | 896 | } |
| 891 | 897 | |
| @@ -985,6 +991,12 @@ type ObjectMapper struct { | ||
| 985 | 991 | type Of struct { |
| 986 | 992 | } |
| 987 | 993 | |
| 994 | +type OffsetDateTime struct { | |
| 995 | +} | |
| 996 | + | |
| 997 | +type OffsetTime struct { | |
| 998 | +} | |
| 999 | + | |
| 988 | 1000 | type Oneway struct { |
| 989 | 1001 | } |
| 990 | 1002 | |
| @@ -5199,6 +5211,28 @@ func (x *UnionList) MarshalJSON() ([]byte, error) { | ||
| 5199 | 5211 | return marshalUnion(nil, x.Double, nil, nil, false, nil, x.List != nil, x.List, false, nil, false, nil, false) |
| 5200 | 5212 | } |
| 5201 | 5213 | |
| 5214 | +type UnionLocalDate struct { | |
| 5215 | + Double *float64 | |
| 5216 | + LocalDate *LocalDate | |
| 5217 | +} | |
| 5218 | + | |
| 5219 | +func (x *UnionLocalDate) UnmarshalJSON(data []byte) error { | |
| 5220 | + x.LocalDate = nil | |
| 5221 | + var c LocalDate | |
| 5222 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 5223 | + if err != nil { | |
| 5224 | + return err | |
| 5225 | + } | |
| 5226 | + if object { | |
| 5227 | + x.LocalDate = &c | |
| 5228 | + } | |
| 5229 | + return nil | |
| 5230 | +} | |
| 5231 | + | |
| 5232 | +func (x *UnionLocalDate) MarshalJSON() ([]byte, error) { | |
| 5233 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.LocalDate != nil, x.LocalDate, false, nil, false, nil, false) | |
| 5234 | +} | |
| 5235 | + | |
| 5202 | 5236 | type UnionLocale struct { |
| 5203 | 5237 | Double *float64 |
| 5204 | 5238 | Locale *Locale |
| @@ -5925,6 +5959,50 @@ func (x *UnionOf) MarshalJSON() ([]byte, error) { | ||
| 5925 | 5959 | return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Of != nil, x.Of, false, nil, false, nil, false) |
| 5926 | 5960 | } |
| 5927 | 5961 | |
| 5962 | +type UnionOffsetDateTime struct { | |
| 5963 | + Double *float64 | |
| 5964 | + OffsetDateTime *OffsetDateTime | |
| 5965 | +} | |
| 5966 | + | |
| 5967 | +func (x *UnionOffsetDateTime) UnmarshalJSON(data []byte) error { | |
| 5968 | + x.OffsetDateTime = nil | |
| 5969 | + var c OffsetDateTime | |
| 5970 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 5971 | + if err != nil { | |
| 5972 | + return err | |
| 5973 | + } | |
| 5974 | + if object { | |
| 5975 | + x.OffsetDateTime = &c | |
| 5976 | + } | |
| 5977 | + return nil | |
| 5978 | +} | |
| 5979 | + | |
| 5980 | +func (x *UnionOffsetDateTime) MarshalJSON() ([]byte, error) { | |
| 5981 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetDateTime != nil, x.OffsetDateTime, false, nil, false, nil, false) | |
| 5982 | +} | |
| 5983 | + | |
| 5984 | +type UnionOffsetTime struct { | |
| 5985 | + Double *float64 | |
| 5986 | + OffsetTime *OffsetTime | |
| 5987 | +} | |
| 5988 | + | |
| 5989 | +func (x *UnionOffsetTime) UnmarshalJSON(data []byte) error { | |
| 5990 | + x.OffsetTime = nil | |
| 5991 | + var c OffsetTime | |
| 5992 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 5993 | + if err != nil { | |
| 5994 | + return err | |
| 5995 | + } | |
| 5996 | + if object { | |
| 5997 | + x.OffsetTime = &c | |
| 5998 | + } | |
| 5999 | + return nil | |
| 6000 | +} | |
| 6001 | + | |
| 6002 | +func (x *UnionOffsetTime) MarshalJSON() ([]byte, error) { | |
| 6003 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetTime != nil, x.OffsetTime, false, nil, false, nil, false) | |
| 6004 | +} | |
| 6005 | + | |
| 5928 | 6006 | type UnionOneway struct { |
| 5929 | 6007 | Double *float64 |
| 5930 | 6008 | Oneway *Oneway |
Mschema-haskelldefault / QuickType.hs+85 −1
| @@ -164,6 +164,7 @@ module QuickType | ||
| 164 | 164 | , Lazy (..) |
| 165 | 165 | , LeftClass (..) |
| 166 | 166 | , List (..) |
| 167 | + , LocalDate (..) | |
| 167 | 168 | , Locale (..) |
| 168 | 169 | , Lock (..) |
| 169 | 170 | , Long (..) |
| @@ -195,6 +196,8 @@ module QuickType | ||
| 195 | 196 | , NumberClass (..) |
| 196 | 197 | , ObjectClass (..) |
| 197 | 198 | , ObjectMapper (..) |
| 199 | + , OffsetDateTime (..) | |
| 200 | + , OffsetTime (..) | |
| 198 | 201 | , Oneway (..) |
| 199 | 202 | , Open (..) |
| 200 | 203 | , Operator (..) |
| @@ -506,6 +509,7 @@ module QuickType | ||
| 506 | 509 | , UnionLazy (..) |
| 507 | 510 | , UnionLeft (..) |
| 508 | 511 | , UnionList (..) |
| 512 | + , UnionLocalDate (..) | |
| 509 | 513 | , UnionLocale (..) |
| 510 | 514 | , UnionLock (..) |
| 511 | 515 | , UnionLong (..) |
| @@ -537,6 +541,8 @@ module QuickType | ||
| 537 | 541 | , UnionNumber (..) |
| 538 | 542 | , UnionObject (..) |
| 539 | 543 | , UnionObjectMapper (..) |
| 544 | + , UnionOffsetDateTime (..) | |
| 545 | + , UnionOffsetTime (..) | |
| 540 | 546 | , UnionOneway (..) |
| 541 | 547 | , UnionOpen (..) |
| 542 | 548 | , UnionOperator (..) |
| @@ -876,6 +882,7 @@ data QuickType = QuickType | ||
| 876 | 882 | , leftQuickType :: Maybe UnionLeft |
| 877 | 883 | , quickTypeLetQuickType :: Maybe UnionLet |
| 878 | 884 | , listQuickType :: Maybe UnionList |
| 885 | + , localDateQuickType :: Maybe UnionLocalDate | |
| 879 | 886 | , localeQuickType :: Maybe UnionLocale |
| 880 | 887 | , lockQuickType :: Maybe UnionLock |
| 881 | 888 | , longQuickType :: Maybe UnionLong |
| @@ -911,6 +918,8 @@ data QuickType = QuickType | ||
| 911 | 918 | , objectQuickType :: Maybe UnionObject |
| 912 | 919 | , objectMapperQuickType :: Maybe UnionObjectMapper |
| 913 | 920 | , quickTypeOfQuickType :: Maybe UnionOf |
| 921 | + , offsetDateTimeQuickType :: Maybe UnionOffsetDateTime | |
| 922 | + , offsetTimeQuickType :: Maybe UnionOffsetTime | |
| 914 | 923 | , onewayQuickType :: Maybe UnionOneway |
| 915 | 924 | , openQuickType :: Maybe UnionOpen |
| 916 | 925 | , operatorQuickType :: Maybe UnionOperator |
| @@ -2491,6 +2500,15 @@ data List = List | ||
| 2491 | 2500 | { |
| 2492 | 2501 | } deriving (Show) |
| 2493 | 2502 | |
| 2503 | +data UnionLocalDate | |
| 2504 | + = DoubleInUnionLocalDate Double | |
| 2505 | + | LocalDateInUnionLocalDate LocalDate | |
| 2506 | + deriving (Show) | |
| 2507 | + | |
| 2508 | +data LocalDate = LocalDate | |
| 2509 | + { | |
| 2510 | + } deriving (Show) | |
| 2511 | + | |
| 2494 | 2512 | data UnionLocale |
| 2495 | 2513 | = DoubleInUnionLocale Double |
| 2496 | 2514 | | LocaleInUnionLocale Locale |
| @@ -2770,6 +2788,24 @@ data ObjectMapper = ObjectMapper | ||
| 2770 | 2788 | { |
| 2771 | 2789 | } deriving (Show) |
| 2772 | 2790 | |
| 2791 | +data UnionOffsetDateTime | |
| 2792 | + = DoubleInUnionOffsetDateTime Double | |
| 2793 | + | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime | |
| 2794 | + deriving (Show) | |
| 2795 | + | |
| 2796 | +data OffsetDateTime = OffsetDateTime | |
| 2797 | + { | |
| 2798 | + } deriving (Show) | |
| 2799 | + | |
| 2800 | +data UnionOffsetTime | |
| 2801 | + = DoubleInUnionOffsetTime Double | |
| 2802 | + | OffsetTimeInUnionOffsetTime OffsetTime | |
| 2803 | + deriving (Show) | |
| 2804 | + | |
| 2805 | +data OffsetTime = OffsetTime | |
| 2806 | + { | |
| 2807 | + } deriving (Show) | |
| 2808 | + | |
| 2773 | 2809 | data UnionOneway |
| 2774 | 2810 | = DoubleInUnionOneway Double |
| 2775 | 2811 | | OnewayInUnionOneway Oneway |
| @@ -4124,7 +4160,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType | ||
| 4124 | 4160 | decodeTopLevel = decode |
| 4125 | 4161 | |
| 4126 | 4162 | instance ToJSON QuickType where |
| 4127 | - toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromDictQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType kSerializerQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType marshalJSONQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType quickTypeOfQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType primitiveKindQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serialDescriptorQuickType serializableQuickType serializeQuickType serializerProviderQuickType serialNameQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toDictQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unmarshalJSONQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) = | |
| 4163 | + toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromDictQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType kSerializerQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localDateQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType marshalJSONQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType quickTypeOfQuickType offsetDateTimeQuickType offsetTimeQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType primitiveKindQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serialDescriptorQuickType serializableQuickType serializeQuickType serializerProviderQuickType serialNameQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toDictQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unmarshalJSONQuickType unownedQuickType unsafeQuickType unsignedQuickType useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) = | |
| 4128 | 4164 | object $ foldMap (maybe [] pure) |
| 4129 | 4165 | [ ("_" .=) <$> emptyQuickType |
| 4130 | 4166 | , ("_Bool" .=) <$> quickTypeBoolQuickType |
| @@ -4305,6 +4341,7 @@ instance ToJSON QuickType where | ||
| 4305 | 4341 | , ("left" .=) <$> leftQuickType |
| 4306 | 4342 | , ("let" .=) <$> quickTypeLetQuickType |
| 4307 | 4343 | , ("list" .=) <$> listQuickType |
| 4344 | + , ("LocalDate" .=) <$> localDateQuickType | |
| 4308 | 4345 | , ("Locale" .=) <$> localeQuickType |
| 4309 | 4346 | , ("lock" .=) <$> lockQuickType |
| 4310 | 4347 | , ("long" .=) <$> longQuickType |
| @@ -4340,6 +4377,8 @@ instance ToJSON QuickType where | ||
| 4340 | 4377 | , ("object" .=) <$> objectQuickType |
| 4341 | 4378 | , ("ObjectMapper" .=) <$> objectMapperQuickType |
| 4342 | 4379 | , ("of" .=) <$> quickTypeOfQuickType |
| 4380 | + , ("OffsetDateTime" .=) <$> offsetDateTimeQuickType | |
| 4381 | + , ("OffsetTime" .=) <$> offsetTimeQuickType | |
| 4343 | 4382 | , ("oneway" .=) <$> onewayQuickType |
| 4344 | 4383 | , ("open" .=) <$> openQuickType |
| 4345 | 4384 | , ("operator" .=) <$> operatorQuickType |
| @@ -4652,6 +4691,7 @@ instance FromJSON QuickType where | ||
| 4652 | 4691 | <*> v .:! "left" |
| 4653 | 4692 | <*> v .:! "let" |
| 4654 | 4693 | <*> v .:! "list" |
| 4694 | + <*> v .:! "LocalDate" | |
| 4655 | 4695 | <*> v .:! "Locale" |
| 4656 | 4696 | <*> v .:! "lock" |
| 4657 | 4697 | <*> v .:! "long" |
| @@ -4687,6 +4727,8 @@ instance FromJSON QuickType where | ||
| 4687 | 4727 | <*> v .:! "object" |
| 4688 | 4728 | <*> v .:! "ObjectMapper" |
| 4689 | 4729 | <*> v .:! "of" |
| 4730 | + <*> v .:! "OffsetDateTime" | |
| 4731 | + <*> v .:! "OffsetTime" | |
| 4690 | 4732 | <*> v .:! "oneway" |
| 4691 | 4733 | <*> v .:! "open" |
| 4692 | 4734 | <*> v .:! "operator" |
| @@ -7071,6 +7113,20 @@ instance ToJSON List where | ||
| 7071 | 7113 | instance FromJSON List where |
| 7072 | 7114 | parseJSON (Object _) = return List |
| 7073 | 7115 | |
| 7116 | +instance ToJSON UnionLocalDate where | |
| 7117 | + toJSON (DoubleInUnionLocalDate x) = toJSON x | |
| 7118 | + toJSON (LocalDateInUnionLocalDate x) = toJSON x | |
| 7119 | + | |
| 7120 | +instance FromJSON UnionLocalDate where | |
| 7121 | + parseJSON xs@(Number _) = (fmap DoubleInUnionLocalDate . parseJSON) xs | |
| 7122 | + parseJSON xs@(Object _) = (fmap LocalDateInUnionLocalDate . parseJSON) xs | |
| 7123 | + | |
| 7124 | +instance ToJSON LocalDate where | |
| 7125 | + toJSON = \_ -> emptyObject | |
| 7126 | + | |
| 7127 | +instance FromJSON LocalDate where | |
| 7128 | + parseJSON (Object _) = return LocalDate | |
| 7129 | + | |
| 7074 | 7130 | instance ToJSON UnionLocale where |
| 7075 | 7131 | toJSON (DoubleInUnionLocale x) = toJSON x |
| 7076 | 7132 | toJSON (LocaleInUnionLocale x) = toJSON x |
| @@ -7505,6 +7561,34 @@ instance ToJSON ObjectMapper where | ||
| 7505 | 7561 | instance FromJSON ObjectMapper where |
| 7506 | 7562 | parseJSON (Object _) = return ObjectMapper |
| 7507 | 7563 | |
| 7564 | +instance ToJSON UnionOffsetDateTime where | |
| 7565 | + toJSON (DoubleInUnionOffsetDateTime x) = toJSON x | |
| 7566 | + toJSON (OffsetDateTimeInUnionOffsetDateTime x) = toJSON x | |
| 7567 | + | |
| 7568 | +instance FromJSON UnionOffsetDateTime where | |
| 7569 | + parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetDateTime . parseJSON) xs | |
| 7570 | + parseJSON xs@(Object _) = (fmap OffsetDateTimeInUnionOffsetDateTime . parseJSON) xs | |
| 7571 | + | |
| 7572 | +instance ToJSON OffsetDateTime where | |
| 7573 | + toJSON = \_ -> emptyObject | |
| 7574 | + | |
| 7575 | +instance FromJSON OffsetDateTime where | |
| 7576 | + parseJSON (Object _) = return OffsetDateTime | |
| 7577 | + | |
| 7578 | +instance ToJSON UnionOffsetTime where | |
| 7579 | + toJSON (DoubleInUnionOffsetTime x) = toJSON x | |
| 7580 | + toJSON (OffsetTimeInUnionOffsetTime x) = toJSON x | |
| 7581 | + | |
| 7582 | +instance FromJSON UnionOffsetTime where | |
| 7583 | + parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetTime . parseJSON) xs | |
| 7584 | + parseJSON xs@(Object _) = (fmap OffsetTimeInUnionOffsetTime . parseJSON) xs | |
| 7585 | + | |
| 7586 | +instance ToJSON OffsetTime where | |
| 7587 | + toJSON = \_ -> emptyObject | |
| 7588 | + | |
| 7589 | +instance FromJSON OffsetTime where | |
| 7590 | + parseJSON (Object _) = return OffsetTime | |
| 7591 | + | |
| 7508 | 7592 | instance ToJSON UnionOneway where |
| 7509 | 7593 | toJSON (DoubleInUnionOneway x) = toJSON x |
| 7510 | 7594 | toJSON (OnewayInUnionOneway x) = toJSON x |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / LocalDate.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class LocalDate { | |
| 7 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / OffsetDateTime.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetDateTime { | |
| 7 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / OffsetTime.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetTime { | |
| 7 | +} |
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -182,6 +182,7 @@ public class TopLevel { | ||
| 182 | 182 | private UnionLeft left; |
| 183 | 183 | private UnionLet let; |
| 184 | 184 | private UnionList list; |
| 185 | + private UnionLocalDate localDate; | |
| 185 | 186 | private UnionLocale locale; |
| 186 | 187 | private UnionLock lock; |
| 187 | 188 | private UnionLong topLevelLong; |
| @@ -217,6 +218,8 @@ public class TopLevel { | ||
| 217 | 218 | private UnionObject object; |
| 218 | 219 | private UnionObjectMapper objectMapper; |
| 219 | 220 | private UnionOf of; |
| 221 | + private UnionOffsetDateTime offsetDateTime; | |
| 222 | + private UnionOffsetTime offsetTime; | |
| 220 | 223 | private UnionOneway oneway; |
| 221 | 224 | private UnionOpen open; |
| 222 | 225 | private UnionOperator operator; |
| @@ -1242,6 +1245,11 @@ public class TopLevel { | ||
| 1242 | 1245 | @JsonProperty("list") |
| 1243 | 1246 | public void setList(UnionList value) { this.list = value; } |
| 1244 | 1247 | |
| 1248 | + @JsonProperty("LocalDate") | |
| 1249 | + public UnionLocalDate getLocalDate() { return localDate; } | |
| 1250 | + @JsonProperty("LocalDate") | |
| 1251 | + public void setLocalDate(UnionLocalDate value) { this.localDate = value; } | |
| 1252 | + | |
| 1245 | 1253 | @JsonProperty("Locale") |
| 1246 | 1254 | public UnionLocale getLocale() { return locale; } |
| 1247 | 1255 | @JsonProperty("Locale") |
| @@ -1417,6 +1425,16 @@ public class TopLevel { | ||
| 1417 | 1425 | @JsonProperty("of") |
| 1418 | 1426 | public void setOf(UnionOf value) { this.of = value; } |
| 1419 | 1427 | |
| 1428 | + @JsonProperty("OffsetDateTime") | |
| 1429 | + public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; } | |
| 1430 | + @JsonProperty("OffsetDateTime") | |
| 1431 | + public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; } | |
| 1432 | + | |
| 1433 | + @JsonProperty("OffsetTime") | |
| 1434 | + public UnionOffsetTime getOffsetTime() { return offsetTime; } | |
| 1435 | + @JsonProperty("OffsetTime") | |
| 1436 | + public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; } | |
| 1437 | + | |
| 1420 | 1438 | @JsonProperty("oneway") |
| 1421 | 1439 | public UnionOneway getOneway() { return oneway; } |
| 1422 | 1440 | @JsonProperty("oneway") |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionLocalDate.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionLocalDate.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionLocalDate.Serializer.class) | |
| 12 | +public class UnionLocalDate { | |
| 13 | + public Double doubleValue; | |
| 14 | + public LocalDate localDateValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionLocalDate> { | |
| 17 | + @Override | |
| 18 | + public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionLocalDate value = new UnionLocalDate(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.localDateValue = jsonParser.readValueAs(LocalDate.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionLocalDate"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionLocalDate> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.localDateValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.localDateValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionOffsetDateTime.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionOffsetDateTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetDateTime.Serializer.class) | |
| 12 | +public class UnionOffsetDateTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetDateTime offsetDateTimeValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetDateTime value = new UnionOffsetDateTime(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.offsetDateTimeValue = jsonParser.readValueAs(OffsetDateTime.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetDateTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetDateTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetDateTimeValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetDateTimeValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionOffsetTime.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionOffsetTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetTime.Serializer.class) | |
| 12 | +public class UnionOffsetTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetTime offsetTimeValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetTime value = new UnionOffsetTime(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.offsetTimeValue = jsonParser.readValueAs(OffsetTime.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetTimeValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetTimeValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / LocalDateClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class LocalDateClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetDateTimeClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetTimeClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetTimeClass { | |
| 7 | +} |
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -182,6 +182,7 @@ public class TopLevel { | ||
| 182 | 182 | private UnionLeft left; |
| 183 | 183 | private UnionLet let; |
| 184 | 184 | private UnionList list; |
| 185 | + private UnionLocalDate localDate; | |
| 185 | 186 | private UnionLocale locale; |
| 186 | 187 | private UnionLock lock; |
| 187 | 188 | private UnionLong topLevelLong; |
| @@ -217,6 +218,8 @@ public class TopLevel { | ||
| 217 | 218 | private UnionObject object; |
| 218 | 219 | private UnionObjectMapper objectMapper; |
| 219 | 220 | private UnionOf of; |
| 221 | + private UnionOffsetDateTime offsetDateTime; | |
| 222 | + private UnionOffsetTime offsetTime; | |
| 220 | 223 | private UnionOneway oneway; |
| 221 | 224 | private UnionOpen open; |
| 222 | 225 | private UnionOperator operator; |
| @@ -1242,6 +1245,11 @@ public class TopLevel { | ||
| 1242 | 1245 | @JsonProperty("list") |
| 1243 | 1246 | public void setList(UnionList value) { this.list = value; } |
| 1244 | 1247 | |
| 1248 | + @JsonProperty("LocalDate") | |
| 1249 | + public UnionLocalDate getLocalDate() { return localDate; } | |
| 1250 | + @JsonProperty("LocalDate") | |
| 1251 | + public void setLocalDate(UnionLocalDate value) { this.localDate = value; } | |
| 1252 | + | |
| 1245 | 1253 | @JsonProperty("Locale") |
| 1246 | 1254 | public UnionLocale getLocale() { return locale; } |
| 1247 | 1255 | @JsonProperty("Locale") |
| @@ -1417,6 +1425,16 @@ public class TopLevel { | ||
| 1417 | 1425 | @JsonProperty("of") |
| 1418 | 1426 | public void setOf(UnionOf value) { this.of = value; } |
| 1419 | 1427 | |
| 1428 | + @JsonProperty("OffsetDateTime") | |
| 1429 | + public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; } | |
| 1430 | + @JsonProperty("OffsetDateTime") | |
| 1431 | + public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; } | |
| 1432 | + | |
| 1433 | + @JsonProperty("OffsetTime") | |
| 1434 | + public UnionOffsetTime getOffsetTime() { return offsetTime; } | |
| 1435 | + @JsonProperty("OffsetTime") | |
| 1436 | + public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; } | |
| 1437 | + | |
| 1420 | 1438 | @JsonProperty("oneway") |
| 1421 | 1439 | public UnionOneway getOneway() { return oneway; } |
| 1422 | 1440 | @JsonProperty("oneway") |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionLocalDate.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionLocalDate.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionLocalDate.Serializer.class) | |
| 12 | +public class UnionLocalDate { | |
| 13 | + public Double doubleValue; | |
| 14 | + public LocalDateClass localDateClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionLocalDate> { | |
| 17 | + @Override | |
| 18 | + public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionLocalDate value = new UnionLocalDate(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.localDateClassValue = jsonParser.readValueAs(LocalDateClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionLocalDate"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionLocalDate> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.localDateClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.localDateClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionOffsetDateTime.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionOffsetDateTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetDateTime.Serializer.class) | |
| 12 | +public class UnionOffsetDateTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetDateTimeClass offsetDateTimeClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetDateTime value = new UnionOffsetDateTime(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.offsetDateTimeClassValue = jsonParser.readValueAs(OffsetDateTimeClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetDateTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetDateTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetDateTimeClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetDateTimeClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionOffsetTime.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionOffsetTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetTime.Serializer.class) | |
| 12 | +public class UnionOffsetTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetTimeClass offsetTimeClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetTime value = new UnionOffsetTime(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.offsetTimeClassValue = jsonParser.readValueAs(OffsetTimeClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetTimeClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetTimeClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / LocalDateClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class LocalDateClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetDateTimeClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / OffsetTimeClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class OffsetTimeClass { | |
| 7 | +} |
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -182,6 +182,7 @@ public class TopLevel { | ||
| 182 | 182 | private UnionLeft left; |
| 183 | 183 | private UnionLet let; |
| 184 | 184 | private UnionList list; |
| 185 | + private UnionLocalDate localDate; | |
| 185 | 186 | private UnionLocale locale; |
| 186 | 187 | private UnionLock lock; |
| 187 | 188 | private UnionLong topLevelLong; |
| @@ -217,6 +218,8 @@ public class TopLevel { | ||
| 217 | 218 | private UnionObject object; |
| 218 | 219 | private UnionObjectMapper objectMapper; |
| 219 | 220 | private UnionOf of; |
| 221 | + private UnionOffsetDateTime offsetDateTime; | |
| 222 | + private UnionOffsetTime offsetTime; | |
| 220 | 223 | private UnionOneway oneway; |
| 221 | 224 | private UnionOpen open; |
| 222 | 225 | private UnionOperator operator; |
| @@ -1242,6 +1245,11 @@ public class TopLevel { | ||
| 1242 | 1245 | @JsonProperty("list") |
| 1243 | 1246 | public void setList(UnionList value) { this.list = value; } |
| 1244 | 1247 | |
| 1248 | + @JsonProperty("LocalDate") | |
| 1249 | + public UnionLocalDate getLocalDate() { return localDate; } | |
| 1250 | + @JsonProperty("LocalDate") | |
| 1251 | + public void setLocalDate(UnionLocalDate value) { this.localDate = value; } | |
| 1252 | + | |
| 1245 | 1253 | @JsonProperty("Locale") |
| 1246 | 1254 | public UnionLocale getLocale() { return locale; } |
| 1247 | 1255 | @JsonProperty("Locale") |
| @@ -1417,6 +1425,16 @@ public class TopLevel { | ||
| 1417 | 1425 | @JsonProperty("of") |
| 1418 | 1426 | public void setOf(UnionOf value) { this.of = value; } |
| 1419 | 1427 | |
| 1428 | + @JsonProperty("OffsetDateTime") | |
| 1429 | + public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; } | |
| 1430 | + @JsonProperty("OffsetDateTime") | |
| 1431 | + public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; } | |
| 1432 | + | |
| 1433 | + @JsonProperty("OffsetTime") | |
| 1434 | + public UnionOffsetTime getOffsetTime() { return offsetTime; } | |
| 1435 | + @JsonProperty("OffsetTime") | |
| 1436 | + public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; } | |
| 1437 | + | |
| 1420 | 1438 | @JsonProperty("oneway") |
| 1421 | 1439 | public UnionOneway getOneway() { return oneway; } |
| 1422 | 1440 | @JsonProperty("oneway") |
Aschema-javadefault / src / main / java / io / quicktype / UnionLocalDate.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionLocalDate.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionLocalDate.Serializer.class) | |
| 12 | +public class UnionLocalDate { | |
| 13 | + public Double doubleValue; | |
| 14 | + public LocalDateClass localDateClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionLocalDate> { | |
| 17 | + @Override | |
| 18 | + public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionLocalDate value = new UnionLocalDate(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.localDateClassValue = jsonParser.readValueAs(LocalDateClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionLocalDate"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionLocalDate> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.localDateClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.localDateClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / UnionOffsetDateTime.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionOffsetDateTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetDateTime.Serializer.class) | |
| 12 | +public class UnionOffsetDateTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetDateTimeClass offsetDateTimeClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetDateTime value = new UnionOffsetDateTime(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.offsetDateTimeClassValue = jsonParser.readValueAs(OffsetDateTimeClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetDateTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetDateTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetDateTimeClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetDateTimeClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / UnionOffsetTime.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionOffsetTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetTime.Serializer.class) | |
| 12 | +public class UnionOffsetTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetTimeClass offsetTimeClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetTime value = new UnionOffsetTime(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.offsetTimeClassValue = jsonParser.readValueAs(OffsetTimeClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetTimeClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetTimeClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Mschema-javascript-prop-typesdefault / toplevel.js+12 −0
| @@ -49,6 +49,7 @@ let _JSONParser; | ||
| 49 | 49 | let _JSONReader; |
| 50 | 50 | let _JSONTokenType; |
| 51 | 51 | let _KSerializer; |
| 52 | +let _LocalDate; | |
| 52 | 53 | let _Locale; |
| 53 | 54 | let _MapEntry; |
| 54 | 55 | let _MarshalJSON; |
| @@ -59,6 +60,8 @@ let _NSString; | ||
| 59 | 60 | let _Null; |
| 60 | 61 | let _None; |
| 61 | 62 | let _ObjectMapper; |
| 63 | +let _OffsetDateTime; | |
| 64 | +let _OffsetTime; | |
| 62 | 65 | let _PrimitiveKind; |
| 63 | 66 | let _Protocol; |
| 64 | 67 | let _RegExp; |
| @@ -427,6 +430,8 @@ _JSONTokenType = PropTypes.shape({ | ||
| 427 | 430 | }); |
| 428 | 431 | _KSerializer = PropTypes.shape({ |
| 429 | 432 | }); |
| 433 | +_LocalDate = PropTypes.shape({ | |
| 434 | +}); | |
| 430 | 435 | _Locale = PropTypes.shape({ |
| 431 | 436 | }); |
| 432 | 437 | _MapEntry = PropTypes.shape({ |
| @@ -447,6 +452,10 @@ _None = PropTypes.shape({ | ||
| 447 | 452 | }); |
| 448 | 453 | _ObjectMapper = PropTypes.shape({ |
| 449 | 454 | }); |
| 455 | +_OffsetDateTime = PropTypes.shape({ | |
| 456 | +}); | |
| 457 | +_OffsetTime = PropTypes.shape({ | |
| 458 | +}); | |
| 450 | 459 | _PrimitiveKind = PropTypes.shape({ |
| 451 | 460 | }); |
| 452 | 461 | _Protocol = PropTypes.shape({ |
| @@ -1219,6 +1228,7 @@ _TopLevel = PropTypes.shape({ | ||
| 1219 | 1228 | "left": PropTypes.oneOfType([_Left, PropTypes.number, PropTypes.oneOf([null])]), |
| 1220 | 1229 | "let": PropTypes.oneOfType([_Let, PropTypes.number, PropTypes.oneOf([null])]), |
| 1221 | 1230 | "list": PropTypes.oneOfType([_List, PropTypes.number, PropTypes.oneOf([null])]), |
| 1231 | + "LocalDate": PropTypes.oneOfType([_LocalDate, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1222 | 1232 | "Locale": PropTypes.oneOfType([_Locale, PropTypes.number, PropTypes.oneOf([null])]), |
| 1223 | 1233 | "lock": PropTypes.oneOfType([_Lock, PropTypes.number, PropTypes.oneOf([null])]), |
| 1224 | 1234 | "long": PropTypes.oneOfType([_Long, PropTypes.number, PropTypes.oneOf([null])]), |
| @@ -1254,6 +1264,8 @@ _TopLevel = PropTypes.shape({ | ||
| 1254 | 1264 | "object": PropTypes.oneOfType([_Object, PropTypes.number, PropTypes.oneOf([null])]), |
| 1255 | 1265 | "ObjectMapper": PropTypes.oneOfType([_ObjectMapper, PropTypes.number, PropTypes.oneOf([null])]), |
| 1256 | 1266 | "of": PropTypes.oneOfType([_Of, PropTypes.number, PropTypes.oneOf([null])]), |
| 1267 | + "OffsetDateTime": PropTypes.oneOfType([_OffsetDateTime, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1268 | + "OffsetTime": PropTypes.oneOfType([_OffsetTime, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1257 | 1269 | "oneway": PropTypes.oneOfType([_Oneway, PropTypes.number, PropTypes.oneOf([null])]), |
| 1258 | 1270 | "open": PropTypes.oneOfType([_Open, PropTypes.number, PropTypes.oneOf([null])]), |
| 1259 | 1271 | "operator": PropTypes.oneOfType([_Operator, PropTypes.number, PropTypes.oneOf([null])]), |
Mschema-javascriptdefault / TopLevel.js+9 −0
| @@ -372,6 +372,7 @@ const typeMap = { | ||
| 372 | 372 | { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) }, |
| 373 | 373 | { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) }, |
| 374 | 374 | { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) }, |
| 375 | + { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) }, | |
| 375 | 376 | { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) }, |
| 376 | 377 | { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) }, |
| 377 | 378 | { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) }, |
| @@ -407,6 +408,8 @@ const typeMap = { | ||
| 407 | 408 | { json: "object", js: "object", typ: u(undefined, u(r("Object"), 3.14)) }, |
| 408 | 409 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) }, |
| 409 | 410 | { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) }, |
| 411 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) }, | |
| 412 | + { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) }, | |
| 410 | 413 | { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) }, |
| 411 | 414 | { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) }, |
| 412 | 415 | { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) }, |
| @@ -609,6 +612,8 @@ const typeMap = { | ||
| 609 | 612 | ], false), |
| 610 | 613 | "KSerializer": o([ |
| 611 | 614 | ], false), |
| 615 | + "LocalDate": o([ | |
| 616 | + ], false), | |
| 612 | 617 | "Locale": o([ |
| 613 | 618 | ], false), |
| 614 | 619 | "MapEntry": o([ |
| @@ -629,6 +634,10 @@ const typeMap = { | ||
| 629 | 634 | ], false), |
| 630 | 635 | "ObjectMapper": o([ |
| 631 | 636 | ], false), |
| 637 | + "OffsetDateTime": o([ | |
| 638 | + ], false), | |
| 639 | + "OffsetTime": o([ | |
| 640 | + ], false), | |
| 632 | 641 | "PrimitiveKind": o([ |
| 633 | 642 | ], false), |
| 634 | 643 | "Protocol": o([ |
Mschema-objective-cdefault / QTTopLevel.h+15 −0
| @@ -155,6 +155,7 @@ | ||
| 155 | 155 | @class QTLeft; |
| 156 | 156 | @class QTLet; |
| 157 | 157 | @class QTList; |
| 158 | +@class QTLocalDate; | |
| 158 | 159 | @class QTLocale; |
| 159 | 160 | @class QTLock; |
| 160 | 161 | @class QTMap; |
| @@ -184,6 +185,8 @@ | ||
| 184 | 185 | @class QTObject; |
| 185 | 186 | @class QTObjectMapper; |
| 186 | 187 | @class QTOf; |
| 188 | +@class QTOffsetDateTime; | |
| 189 | +@class QTOffsetTime; | |
| 187 | 190 | @class QTOneway; |
| 188 | 191 | @class QTOpen; |
| 189 | 192 | @class QTOperator; |
| @@ -540,6 +543,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 540 | 543 | @property (nonatomic, nullable, copy) id left; |
| 541 | 544 | @property (nonatomic, nullable, copy) id let; |
| 542 | 545 | @property (nonatomic, nullable, copy) id list; |
| 546 | +@property (nonatomic, nullable, copy) id localDate; | |
| 543 | 547 | @property (nonatomic, nullable, copy) id locale; |
| 544 | 548 | @property (nonatomic, nullable, copy) id lock; |
| 545 | 549 | @property (nonatomic, nullable, copy) id qtTopLevelLong; |
| @@ -575,6 +579,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 575 | 579 | @property (nonatomic, nullable, copy) id object; |
| 576 | 580 | @property (nonatomic, nullable, copy) id objectMapper; |
| 577 | 581 | @property (nonatomic, nullable, copy) id of; |
| 582 | +@property (nonatomic, nullable, copy) id offsetDateTime; | |
| 583 | +@property (nonatomic, nullable, copy) id offsetTime; | |
| 578 | 584 | @property (nonatomic, nullable, copy) id oneway; |
| 579 | 585 | @property (nonatomic, nullable, copy) id open; |
| 580 | 586 | @property (nonatomic, nullable, copy) id operator; |
| @@ -1158,6 +1164,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1158 | 1164 | @interface QTList : NSObject |
| 1159 | 1165 | @end |
| 1160 | 1166 | |
| 1167 | +@interface QTLocalDate : NSObject | |
| 1168 | +@end | |
| 1169 | + | |
| 1161 | 1170 | @interface QTLocale : NSObject |
| 1162 | 1171 | @end |
| 1163 | 1172 | |
| @@ -1245,6 +1254,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1245 | 1254 | @interface QTOf : NSObject |
| 1246 | 1255 | @end |
| 1247 | 1256 | |
| 1257 | +@interface QTOffsetDateTime : NSObject | |
| 1258 | +@end | |
| 1259 | + | |
| 1260 | +@interface QTOffsetTime : NSObject | |
| 1261 | +@end | |
| 1262 | + | |
| 1248 | 1263 | @interface QTOneway : NSObject |
| 1249 | 1264 | @end |
Mschema-objective-cdefault / QTTopLevel.m+135 −0
| @@ -758,6 +758,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 758 | 758 | - (NSDictionary *)JSONDictionary; |
| 759 | 759 | @end |
| 760 | 760 | |
| 761 | +@interface QTLocalDate (JSONConversion) | |
| 762 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 763 | +- (NSDictionary *)JSONDictionary; | |
| 764 | +@end | |
| 765 | + | |
| 761 | 766 | @interface QTLocale (JSONConversion) |
| 762 | 767 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 763 | 768 | - (NSDictionary *)JSONDictionary; |
| @@ -903,6 +908,16 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 903 | 908 | - (NSDictionary *)JSONDictionary; |
| 904 | 909 | @end |
| 905 | 910 | |
| 911 | +@interface QTOffsetDateTime (JSONConversion) | |
| 912 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 913 | +- (NSDictionary *)JSONDictionary; | |
| 914 | +@end | |
| 915 | + | |
| 916 | +@interface QTOffsetTime (JSONConversion) | |
| 917 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 918 | +- (NSDictionary *)JSONDictionary; | |
| 919 | +@end | |
| 920 | + | |
| 906 | 921 | @interface QTOneway (JSONConversion) |
| 907 | 922 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 908 | 923 | - (NSDictionary *)JSONDictionary; |
| @@ -1943,6 +1958,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 1943 | 1958 | @"left": @"left", |
| 1944 | 1959 | @"let": @"let", |
| 1945 | 1960 | @"list": @"list", |
| 1961 | + @"LocalDate": @"localDate", | |
| 1946 | 1962 | @"Locale": @"locale", |
| 1947 | 1963 | @"lock": @"lock", |
| 1948 | 1964 | @"long": @"qtTopLevelLong", |
| @@ -1978,6 +1994,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 1978 | 1994 | @"object": @"object", |
| 1979 | 1995 | @"ObjectMapper": @"objectMapper", |
| 1980 | 1996 | @"of": @"of", |
| 1997 | + @"OffsetDateTime": @"offsetDateTime", | |
| 1998 | + @"OffsetTime": @"offsetTime", | |
| 1981 | 1999 | @"oneway": @"oneway", |
| 1982 | 2000 | @"open": @"open", |
| 1983 | 2001 | @"operator": @"operator", |
| @@ -7982,6 +8000,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 7982 | 8000 | } |
| 7983 | 8001 | @end |
| 7984 | 8002 | |
| 8003 | +@implementation QTLocalDate | |
| 8004 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 8005 | +{ | |
| 8006 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 8007 | + return properties = properties ? properties : @{ | |
| 8008 | + }; | |
| 8009 | +} | |
| 8010 | + | |
| 8011 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 8012 | +{ | |
| 8013 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil; | |
| 8014 | +} | |
| 8015 | + | |
| 8016 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 8017 | +{ | |
| 8018 | + if (self = [super init]) { | |
| 8019 | + [self setValuesForKeysWithDictionary:dict]; | |
| 8020 | + } | |
| 8021 | + return self; | |
| 8022 | +} | |
| 8023 | + | |
| 8024 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 8025 | +{ | |
| 8026 | + id resolved = QTLocalDate.properties[key]; | |
| 8027 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 8028 | +} | |
| 8029 | + | |
| 8030 | +- (void)setNilValueForKey:(NSString *)key | |
| 8031 | +{ | |
| 8032 | + id resolved = QTLocalDate.properties[key]; | |
| 8033 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 8034 | +} | |
| 8035 | + | |
| 8036 | +- (NSDictionary *)JSONDictionary | |
| 8037 | +{ | |
| 8038 | + return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues]; | |
| 8039 | +} | |
| 8040 | +@end | |
| 8041 | + | |
| 7985 | 8042 | @implementation QTLocale |
| 7986 | 8043 | + (NSDictionary<NSString *, NSString *> *)properties |
| 7987 | 8044 | { |
| @@ -9113,6 +9170,84 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 9113 | 9170 | } |
| 9114 | 9171 | @end |
| 9115 | 9172 | |
| 9173 | +@implementation QTOffsetDateTime | |
| 9174 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 9175 | +{ | |
| 9176 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 9177 | + return properties = properties ? properties : @{ | |
| 9178 | + }; | |
| 9179 | +} | |
| 9180 | + | |
| 9181 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 9182 | +{ | |
| 9183 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil; | |
| 9184 | +} | |
| 9185 | + | |
| 9186 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 9187 | +{ | |
| 9188 | + if (self = [super init]) { | |
| 9189 | + [self setValuesForKeysWithDictionary:dict]; | |
| 9190 | + } | |
| 9191 | + return self; | |
| 9192 | +} | |
| 9193 | + | |
| 9194 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 9195 | +{ | |
| 9196 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 9197 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 9198 | +} | |
| 9199 | + | |
| 9200 | +- (void)setNilValueForKey:(NSString *)key | |
| 9201 | +{ | |
| 9202 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 9203 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 9204 | +} | |
| 9205 | + | |
| 9206 | +- (NSDictionary *)JSONDictionary | |
| 9207 | +{ | |
| 9208 | + return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues]; | |
| 9209 | +} | |
| 9210 | +@end | |
| 9211 | + | |
| 9212 | +@implementation QTOffsetTime | |
| 9213 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 9214 | +{ | |
| 9215 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 9216 | + return properties = properties ? properties : @{ | |
| 9217 | + }; | |
| 9218 | +} | |
| 9219 | + | |
| 9220 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 9221 | +{ | |
| 9222 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil; | |
| 9223 | +} | |
| 9224 | + | |
| 9225 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 9226 | +{ | |
| 9227 | + if (self = [super init]) { | |
| 9228 | + [self setValuesForKeysWithDictionary:dict]; | |
| 9229 | + } | |
| 9230 | + return self; | |
| 9231 | +} | |
| 9232 | + | |
| 9233 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 9234 | +{ | |
| 9235 | + id resolved = QTOffsetTime.properties[key]; | |
| 9236 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 9237 | +} | |
| 9238 | + | |
| 9239 | +- (void)setNilValueForKey:(NSString *)key | |
| 9240 | +{ | |
| 9241 | + id resolved = QTOffsetTime.properties[key]; | |
| 9242 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 9243 | +} | |
| 9244 | + | |
| 9245 | +- (NSDictionary *)JSONDictionary | |
| 9246 | +{ | |
| 9247 | + return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues]; | |
| 9248 | +} | |
| 9249 | +@end | |
| 9250 | + | |
| 9116 | 9251 | @implementation QTOneway |
| 9117 | 9252 | + (NSDictionary<NSString *, NSString *> *)properties |
| 9118 | 9253 | { |
Mschema-phpdefault / TopLevel.php+549 −165
| @@ -183,6 +183,7 @@ class TopLevel { | ||
| 183 | 183 | private Left|float|null $left; // json:left Optional |
| 184 | 184 | private Let|float|null $let; // json:let Optional |
| 185 | 185 | private ListClass|float|null $list; // json:list Optional |
| 186 | + private LocalDate|float|null $localDate; // json:LocalDate Optional | |
| 186 | 187 | private LocaleClass|float|null $locale; // json:Locale Optional |
| 187 | 188 | private Lock|float|null $lock; // json:lock Optional |
| 188 | 189 | private Long|float|null $long; // json:long Optional |
| @@ -218,6 +219,8 @@ class TopLevel { | ||
| 218 | 219 | private ObjectClass|float|null $object; // json:object Optional |
| 219 | 220 | private ObjectMapper|float|null $objectMapper; // json:ObjectMapper Optional |
| 220 | 221 | private Of|float|null $of; // json:of Optional |
| 222 | + private OffsetDateTime|float|null $offsetDateTime; // json:OffsetDateTime Optional | |
| 223 | + private OffsetTime|float|null $offsetTime; // json:OffsetTime Optional | |
| 221 | 224 | private Oneway|float|null $oneway; // json:oneway Optional |
| 222 | 225 | private Open|float|null $open; // json:open Optional |
| 223 | 226 | private Operator|float|null $operator; // json:operator Optional |
| @@ -528,6 +531,7 @@ class TopLevel { | ||
| 528 | 531 | * @param Left|float|null $left |
| 529 | 532 | * @param Let|float|null $let |
| 530 | 533 | * @param ListClass|float|null $list |
| 534 | + * @param LocalDate|float|null $localDate | |
| 531 | 535 | * @param LocaleClass|float|null $locale |
| 532 | 536 | * @param Lock|float|null $lock |
| 533 | 537 | * @param Long|float|null $long |
| @@ -563,6 +567,8 @@ class TopLevel { | ||
| 563 | 567 | * @param ObjectClass|float|null $object |
| 564 | 568 | * @param ObjectMapper|float|null $objectMapper |
| 565 | 569 | * @param Of|float|null $of |
| 570 | + * @param OffsetDateTime|float|null $offsetDateTime | |
| 571 | + * @param OffsetTime|float|null $offsetTime | |
| 566 | 572 | * @param Oneway|float|null $oneway |
| 567 | 573 | * @param Open|float|null $open |
| 568 | 574 | * @param Operator|float|null $operator |
| @@ -693,7 +699,7 @@ class TopLevel { | ||
| 693 | 699 | * @param Yes|float|null $yes |
| 694 | 700 | * @param YieldClass|float|null $yield |
| 695 | 701 | */ |
| 696 | - public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromDict|float|null $fromDict, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, KSerializer|float|null $kSerializer, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MarshalJSON|float|null $marshalJSON, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, Of|float|null $of, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrimitiveKind|float|null $primitiveKind, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToDict|float|null $toDict, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, UnmarshalJSON|float|null $unmarshalJSON, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, UseSerializers|float|null $useSerializers, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) { | |
| 702 | + public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromDict|float|null $fromDict, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, KSerializer|float|null $kSerializer, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocalDate|float|null $localDate, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MarshalJSON|float|null $marshalJSON, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, Of|float|null $of, OffsetDateTime|float|null $offsetDateTime, OffsetTime|float|null $offsetTime, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrimitiveKind|float|null $primitiveKind, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToDict|float|null $toDict, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, UnmarshalJSON|float|null $unmarshalJSON, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, UseSerializers|float|null $useSerializers, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) { | |
| 697 | 703 | $this->empty = $empty; |
| 698 | 704 | $this->topLevelBool = $topLevelBool; |
| 699 | 705 | $this->complex = $complex; |
| @@ -873,6 +879,7 @@ class TopLevel { | ||
| 873 | 879 | $this->left = $left; |
| 874 | 880 | $this->let = $let; |
| 875 | 881 | $this->list = $list; |
| 882 | + $this->localDate = $localDate; | |
| 876 | 883 | $this->locale = $locale; |
| 877 | 884 | $this->lock = $lock; |
| 878 | 885 | $this->long = $long; |
| @@ -908,6 +915,8 @@ class TopLevel { | ||
| 908 | 915 | $this->object = $object; |
| 909 | 916 | $this->objectMapper = $objectMapper; |
| 910 | 917 | $this->of = $of; |
| 918 | + $this->offsetDateTime = $offsetDateTime; | |
| 919 | + $this->offsetTime = $offsetTime; | |
| 911 | 920 | $this->oneway = $oneway; |
| 912 | 921 | $this->open = $open; |
| 913 | 922 | $this->operator = $operator; |
| @@ -14624,6 +14633,82 @@ class TopLevel { | ||
| 14624 | 14633 | return ListClass::sample(); /*209:list*/ |
| 14625 | 14634 | } |
| 14626 | 14635 | |
| 14636 | + /** | |
| 14637 | + * @param stdClass|float|null $value | |
| 14638 | + * @throws Exception | |
| 14639 | + * @return LocalDate|float|null | |
| 14640 | + */ | |
| 14641 | + public static function fromLocalDate(stdClass|float|null $value): LocalDate|float|null { | |
| 14642 | + if (is_null($value)) { | |
| 14643 | + return $value; /*null*/ | |
| 14644 | + } elseif (is_object($value)) { | |
| 14645 | + return LocalDate::from($value); /*class*/ | |
| 14646 | + } elseif (is_float($value) || is_int($value)) { | |
| 14647 | + return $value; /*float*/ | |
| 14648 | + } else { | |
| 14649 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 14650 | + } | |
| 14651 | + } | |
| 14652 | + | |
| 14653 | + /** | |
| 14654 | + * @throws Exception | |
| 14655 | + * @return stdClass|float|null | |
| 14656 | + */ | |
| 14657 | + public function toLocalDate(): stdClass|float|null { | |
| 14658 | + if (TopLevel::validateLocalDate($this->localDate)) { | |
| 14659 | + if (is_null($this->localDate)) { | |
| 14660 | + return $this->localDate; /*null*/ | |
| 14661 | + } elseif ($this->localDate instanceof LocalDate) { | |
| 14662 | + return $this->localDate->to(); /*class*/ | |
| 14663 | + } elseif (is_float($this->localDate) || is_int($this->localDate)) { | |
| 14664 | + return $this->localDate; /*float*/ | |
| 14665 | + } else { | |
| 14666 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 14667 | + } | |
| 14668 | + } | |
| 14669 | + throw new Exception('never get to this TopLevel::localDate'); | |
| 14670 | + } | |
| 14671 | + | |
| 14672 | + /** | |
| 14673 | + * @param LocalDate|float|null | |
| 14674 | + * @return bool | |
| 14675 | + * @throws Exception | |
| 14676 | + */ | |
| 14677 | + public static function validateLocalDate(LocalDate|float|null $value): bool { | |
| 14678 | + if (is_null($value)) { | |
| 14679 | + if (!is_null($value)) { | |
| 14680 | + throw new Exception("Attribute Error:TopLevel::localDate"); | |
| 14681 | + } | |
| 14682 | + } elseif ($value instanceof LocalDate) { | |
| 14683 | + $value->validate(); | |
| 14684 | + } elseif (is_float($value) || is_int($value)) { | |
| 14685 | + if (!is_float($value) && !is_int($value)) { | |
| 14686 | + throw new Exception("Attribute Error:TopLevel::localDate"); | |
| 14687 | + } | |
| 14688 | + } else { | |
| 14689 | + throw new Exception("Attribute Error:TopLevel::localDate"); | |
| 14690 | + } | |
| 14691 | + return true; | |
| 14692 | + } | |
| 14693 | + | |
| 14694 | + /** | |
| 14695 | + * @throws Exception | |
| 14696 | + * @return LocalDate|float|null | |
| 14697 | + */ | |
| 14698 | + public function getLocalDate(): LocalDate|float|null { | |
| 14699 | + if (TopLevel::validateLocalDate($this->localDate)) { | |
| 14700 | + return $this->localDate; | |
| 14701 | + } | |
| 14702 | + throw new Exception('never get to getLocalDate TopLevel::localDate'); | |
| 14703 | + } | |
| 14704 | + | |
| 14705 | + /** | |
| 14706 | + * @return LocalDate|float|null | |
| 14707 | + */ | |
| 14708 | + public static function sampleLocalDate(): LocalDate|float|null { | |
| 14709 | + return LocalDate::sample(); /*210:localDate*/ | |
| 14710 | + } | |
| 14711 | + | |
| 14627 | 14712 | /** |
| 14628 | 14713 | * @param stdClass|float|null $value |
| 14629 | 14714 | * @throws Exception |
| @@ -14697,7 +14782,7 @@ class TopLevel { | ||
| 14697 | 14782 | * @return LocaleClass|float|null |
| 14698 | 14783 | */ |
| 14699 | 14784 | public static function sampleLocale(): LocaleClass|float|null { |
| 14700 | - return LocaleClass::sample(); /*210:locale*/ | |
| 14785 | + return LocaleClass::sample(); /*211:locale*/ | |
| 14701 | 14786 | } |
| 14702 | 14787 | |
| 14703 | 14788 | /** |
| @@ -14773,7 +14858,7 @@ class TopLevel { | ||
| 14773 | 14858 | * @return Lock|float|null |
| 14774 | 14859 | */ |
| 14775 | 14860 | public static function sampleLock(): Lock|float|null { |
| 14776 | - return Lock::sample(); /*211:lock*/ | |
| 14861 | + return Lock::sample(); /*212:lock*/ | |
| 14777 | 14862 | } |
| 14778 | 14863 | |
| 14779 | 14864 | /** |
| @@ -14849,7 +14934,7 @@ class TopLevel { | ||
| 14849 | 14934 | * @return Long|float|null |
| 14850 | 14935 | */ |
| 14851 | 14936 | public static function sampleLong(): Long|float|null { |
| 14852 | - return Long::sample(); /*212:long*/ | |
| 14937 | + return Long::sample(); /*213:long*/ | |
| 14853 | 14938 | } |
| 14854 | 14939 | |
| 14855 | 14940 | /** |
| @@ -14925,7 +15010,7 @@ class TopLevel { | ||
| 14925 | 15010 | * @return Map|float|null |
| 14926 | 15011 | */ |
| 14927 | 15012 | public static function sampleMap(): Map|float|null { |
| 14928 | - return Map::sample(); /*213:map*/ | |
| 15013 | + return Map::sample(); /*214:map*/ | |
| 14929 | 15014 | } |
| 14930 | 15015 | |
| 14931 | 15016 | /** |
| @@ -15001,7 +15086,7 @@ class TopLevel { | ||
| 15001 | 15086 | * @return MapEntry|float|null |
| 15002 | 15087 | */ |
| 15003 | 15088 | public static function sampleMapEntry(): MapEntry|float|null { |
| 15004 | - return MapEntry::sample(); /*214:mapEntry*/ | |
| 15089 | + return MapEntry::sample(); /*215:mapEntry*/ | |
| 15005 | 15090 | } |
| 15006 | 15091 | |
| 15007 | 15092 | /** |
| @@ -15077,7 +15162,7 @@ class TopLevel { | ||
| 15077 | 15162 | * @return MarshalJSON|float|null |
| 15078 | 15163 | */ |
| 15079 | 15164 | public static function sampleMarshalJSON(): MarshalJSON|float|null { |
| 15080 | - return MarshalJSON::sample(); /*215:marshalJSON*/ | |
| 15165 | + return MarshalJSON::sample(); /*216:marshalJSON*/ | |
| 15081 | 15166 | } |
| 15082 | 15167 | |
| 15083 | 15168 | /** |
| @@ -15153,7 +15238,7 @@ class TopLevel { | ||
| 15153 | 15238 | * @return MetadataPropertyHandling|float|null |
| 15154 | 15239 | */ |
| 15155 | 15240 | public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null { |
| 15156 | - return MetadataPropertyHandling::sample(); /*216:metadataPropertyHandling*/ | |
| 15241 | + return MetadataPropertyHandling::sample(); /*217:metadataPropertyHandling*/ | |
| 15157 | 15242 | } |
| 15158 | 15243 | |
| 15159 | 15244 | /** |
| @@ -15229,7 +15314,7 @@ class TopLevel { | ||
| 15229 | 15314 | * @return Module|float|null |
| 15230 | 15315 | */ |
| 15231 | 15316 | public static function sampleModule(): Module|float|null { |
| 15232 | - return Module::sample(); /*217:module*/ | |
| 15317 | + return Module::sample(); /*218:module*/ | |
| 15233 | 15318 | } |
| 15234 | 15319 | |
| 15235 | 15320 | /** |
| @@ -15305,7 +15390,7 @@ class TopLevel { | ||
| 15305 | 15390 | * @return Mutable|float|null |
| 15306 | 15391 | */ |
| 15307 | 15392 | public static function sampleMutable(): Mutable|float|null { |
| 15308 | - return Mutable::sample(); /*218:mutable*/ | |
| 15393 | + return Mutable::sample(); /*219:mutable*/ | |
| 15309 | 15394 | } |
| 15310 | 15395 | |
| 15311 | 15396 | /** |
| @@ -15381,7 +15466,7 @@ class TopLevel { | ||
| 15381 | 15466 | * @return Mutating|float|null |
| 15382 | 15467 | */ |
| 15383 | 15468 | public static function sampleMutating(): Mutating|float|null { |
| 15384 | - return Mutating::sample(); /*219:mutating*/ | |
| 15469 | + return Mutating::sample(); /*220:mutating*/ | |
| 15385 | 15470 | } |
| 15386 | 15471 | |
| 15387 | 15472 | /** |
| @@ -15457,7 +15542,7 @@ class TopLevel { | ||
| 15457 | 15542 | * @return NamespaceClass|float|null |
| 15458 | 15543 | */ |
| 15459 | 15544 | public static function sampleNamespace(): NamespaceClass|float|null { |
| 15460 | - return NamespaceClass::sample(); /*220:namespace*/ | |
| 15545 | + return NamespaceClass::sample(); /*221:namespace*/ | |
| 15461 | 15546 | } |
| 15462 | 15547 | |
| 15463 | 15548 | /** |
| @@ -15533,7 +15618,7 @@ class TopLevel { | ||
| 15533 | 15618 | * @return Native|float|null |
| 15534 | 15619 | */ |
| 15535 | 15620 | public static function sampleNative(): Native|float|null { |
| 15536 | - return Native::sample(); /*221:native*/ | |
| 15621 | + return Native::sample(); /*222:native*/ | |
| 15537 | 15622 | } |
| 15538 | 15623 | |
| 15539 | 15624 | /** |
| @@ -15609,7 +15694,7 @@ class TopLevel { | ||
| 15609 | 15694 | * @return NewClass|float|null |
| 15610 | 15695 | */ |
| 15611 | 15696 | public static function sampleNew(): NewClass|float|null { |
| 15612 | - return NewClass::sample(); /*222:new*/ | |
| 15697 | + return NewClass::sample(); /*223:new*/ | |
| 15613 | 15698 | } |
| 15614 | 15699 | |
| 15615 | 15700 | /** |
| @@ -15685,7 +15770,7 @@ class TopLevel { | ||
| 15685 | 15770 | * @return Newtonsoft|float|null |
| 15686 | 15771 | */ |
| 15687 | 15772 | public static function sampleNewtonsoft(): Newtonsoft|float|null { |
| 15688 | - return Newtonsoft::sample(); /*223:newtonsoft*/ | |
| 15773 | + return Newtonsoft::sample(); /*224:newtonsoft*/ | |
| 15689 | 15774 | } |
| 15690 | 15775 | |
| 15691 | 15776 | /** |
| @@ -15761,7 +15846,7 @@ class TopLevel { | ||
| 15761 | 15846 | * @return Nil|float|null |
| 15762 | 15847 | */ |
| 15763 | 15848 | public static function sampleNil(): Nil|float|null { |
| 15764 | - return Nil::sample(); /*224:nil*/ | |
| 15849 | + return Nil::sample(); /*225:nil*/ | |
| 15765 | 15850 | } |
| 15766 | 15851 | |
| 15767 | 15852 | /** |
| @@ -15837,7 +15922,7 @@ class TopLevel { | ||
| 15837 | 15922 | * @return No|float|null |
| 15838 | 15923 | */ |
| 15839 | 15924 | public static function sampleNo(): No|float|null { |
| 15840 | - return No::sample(); /*225:no*/ | |
| 15925 | + return No::sample(); /*226:no*/ | |
| 15841 | 15926 | } |
| 15842 | 15927 | |
| 15843 | 15928 | /** |
| @@ -15913,7 +15998,7 @@ class TopLevel { | ||
| 15913 | 15998 | * @return Noexcept|float|null |
| 15914 | 15999 | */ |
| 15915 | 16000 | public static function sampleNoexcept(): Noexcept|float|null { |
| 15916 | - return Noexcept::sample(); /*226:noexcept*/ | |
| 16001 | + return Noexcept::sample(); /*227:noexcept*/ | |
| 15917 | 16002 | } |
| 15918 | 16003 | |
| 15919 | 16004 | /** |
| @@ -15989,7 +16074,7 @@ class TopLevel { | ||
| 15989 | 16074 | * @return Nonatomic|float|null |
| 15990 | 16075 | */ |
| 15991 | 16076 | public static function sampleNonatomic(): Nonatomic|float|null { |
| 15992 | - return Nonatomic::sample(); /*227:nonatomic*/ | |
| 16077 | + return Nonatomic::sample(); /*228:nonatomic*/ | |
| 15993 | 16078 | } |
| 15994 | 16079 | |
| 15995 | 16080 | /** |
| @@ -16065,7 +16150,7 @@ class TopLevel { | ||
| 16065 | 16150 | * @return NoneClass|float|null |
| 16066 | 16151 | */ |
| 16067 | 16152 | public static function sampleTopLevelNone(): NoneClass|float|null { |
| 16068 | - return NoneClass::sample(); /*228:topLevelNone*/ | |
| 16153 | + return NoneClass::sample(); /*229:topLevelNone*/ | |
| 16069 | 16154 | } |
| 16070 | 16155 | |
| 16071 | 16156 | /** |
| @@ -16141,7 +16226,7 @@ class TopLevel { | ||
| 16141 | 16226 | * @return None|float|null |
| 16142 | 16227 | */ |
| 16143 | 16228 | public static function sampleNone(): None|float|null { |
| 16144 | - return None::sample(); /*229:none*/ | |
| 16229 | + return None::sample(); /*230:none*/ | |
| 16145 | 16230 | } |
| 16146 | 16231 | |
| 16147 | 16232 | /** |
| @@ -16217,7 +16302,7 @@ class TopLevel { | ||
| 16217 | 16302 | * @return Nonlocal|float|null |
| 16218 | 16303 | */ |
| 16219 | 16304 | public static function sampleNonlocal(): Nonlocal|float|null { |
| 16220 | - return Nonlocal::sample(); /*230:nonlocal*/ | |
| 16305 | + return Nonlocal::sample(); /*231:nonlocal*/ | |
| 16221 | 16306 | } |
| 16222 | 16307 | |
| 16223 | 16308 | /** |
| @@ -16293,7 +16378,7 @@ class TopLevel { | ||
| 16293 | 16378 | * @return Nonmutating|float|null |
| 16294 | 16379 | */ |
| 16295 | 16380 | public static function sampleNonmutating(): Nonmutating|float|null { |
| 16296 | - return Nonmutating::sample(); /*231:nonmutating*/ | |
| 16381 | + return Nonmutating::sample(); /*232:nonmutating*/ | |
| 16297 | 16382 | } |
| 16298 | 16383 | |
| 16299 | 16384 | /** |
| @@ -16369,7 +16454,7 @@ class TopLevel { | ||
| 16369 | 16454 | * @return NoSuchMethod|float|null |
| 16370 | 16455 | */ |
| 16371 | 16456 | public static function sampleNoSuchMethod(): NoSuchMethod|float|null { |
| 16372 | - return NoSuchMethod::sample(); /*232:noSuchMethod*/ | |
| 16457 | + return NoSuchMethod::sample(); /*233:noSuchMethod*/ | |
| 16373 | 16458 | } |
| 16374 | 16459 | |
| 16375 | 16460 | /** |
| @@ -16445,7 +16530,7 @@ class TopLevel { | ||
| 16445 | 16530 | * @return Not|float|null |
| 16446 | 16531 | */ |
| 16447 | 16532 | public static function sampleNot(): Not|float|null { |
| 16448 | - return Not::sample(); /*233:not*/ | |
| 16533 | + return Not::sample(); /*234:not*/ | |
| 16449 | 16534 | } |
| 16450 | 16535 | |
| 16451 | 16536 | /** |
| @@ -16521,7 +16606,7 @@ class TopLevel { | ||
| 16521 | 16606 | * @return NotEq|float|null |
| 16522 | 16607 | */ |
| 16523 | 16608 | public static function sampleNotEq(): NotEq|float|null { |
| 16524 | - return NotEq::sample(); /*234:notEq*/ | |
| 16609 | + return NotEq::sample(); /*235:notEq*/ | |
| 16525 | 16610 | } |
| 16526 | 16611 | |
| 16527 | 16612 | /** |
| @@ -16597,7 +16682,7 @@ class TopLevel { | ||
| 16597 | 16682 | * @return NSError|float|null |
| 16598 | 16683 | */ |
| 16599 | 16684 | public static function sampleNSError(): NSError|float|null { |
| 16600 | - return NSError::sample(); /*235:nsError*/ | |
| 16685 | + return NSError::sample(); /*236:nsError*/ | |
| 16601 | 16686 | } |
| 16602 | 16687 | |
| 16603 | 16688 | /** |
| @@ -16673,7 +16758,7 @@ class TopLevel { | ||
| 16673 | 16758 | * @return NSObject|float|null |
| 16674 | 16759 | */ |
| 16675 | 16760 | public static function sampleNSObject(): NSObject|float|null { |
| 16676 | - return NSObject::sample(); /*236:nsObject*/ | |
| 16761 | + return NSObject::sample(); /*237:nsObject*/ | |
| 16677 | 16762 | } |
| 16678 | 16763 | |
| 16679 | 16764 | /** |
| @@ -16749,7 +16834,7 @@ class TopLevel { | ||
| 16749 | 16834 | * @return NSString|float|null |
| 16750 | 16835 | */ |
| 16751 | 16836 | public static function sampleNSString(): NSString|float|null { |
| 16752 | - return NSString::sample(); /*237:nsString*/ | |
| 16837 | + return NSString::sample(); /*238:nsString*/ | |
| 16753 | 16838 | } |
| 16754 | 16839 | |
| 16755 | 16840 | /** |
| @@ -16825,7 +16910,7 @@ class TopLevel { | ||
| 16825 | 16910 | * @return NULLClass|float|null |
| 16826 | 16911 | */ |
| 16827 | 16912 | public static function sampleNull(): NULLClass|float|null { |
| 16828 | - return NULLClass::sample(); /*238:null*/ | |
| 16913 | + return NULLClass::sample(); /*239:null*/ | |
| 16829 | 16914 | } |
| 16830 | 16915 | |
| 16831 | 16916 | /** |
| @@ -16901,7 +16986,7 @@ class TopLevel { | ||
| 16901 | 16986 | * @return UnionNullNull|float|null |
| 16902 | 16987 | */ |
| 16903 | 16988 | public static function sampleTopLevelNull(): UnionNullNull|float|null { |
| 16904 | - return UnionNullNull::sample(); /*239:topLevelNull*/ | |
| 16989 | + return UnionNullNull::sample(); /*240:topLevelNull*/ | |
| 16905 | 16990 | } |
| 16906 | 16991 | |
| 16907 | 16992 | /** |
| @@ -16977,7 +17062,7 @@ class TopLevel { | ||
| 16977 | 17062 | * @return Nullptr|float|null |
| 16978 | 17063 | */ |
| 16979 | 17064 | public static function sampleNullptr(): Nullptr|float|null { |
| 16980 | - return Nullptr::sample(); /*240:nullptr*/ | |
| 17065 | + return Nullptr::sample(); /*241:nullptr*/ | |
| 16981 | 17066 | } |
| 16982 | 17067 | |
| 16983 | 17068 | /** |
| @@ -17053,7 +17138,7 @@ class TopLevel { | ||
| 17053 | 17138 | * @return Number|float|null |
| 17054 | 17139 | */ |
| 17055 | 17140 | public static function sampleNumber(): Number|float|null { |
| 17056 | - return Number::sample(); /*241:number*/ | |
| 17141 | + return Number::sample(); /*242:number*/ | |
| 17057 | 17142 | } |
| 17058 | 17143 | |
| 17059 | 17144 | /** |
| @@ -17129,7 +17214,7 @@ class TopLevel { | ||
| 17129 | 17214 | * @return ObjectClass|float|null |
| 17130 | 17215 | */ |
| 17131 | 17216 | public static function sampleObject(): ObjectClass|float|null { |
| 17132 | - return ObjectClass::sample(); /*242:object*/ | |
| 17217 | + return ObjectClass::sample(); /*243:object*/ | |
| 17133 | 17218 | } |
| 17134 | 17219 | |
| 17135 | 17220 | /** |
| @@ -17205,7 +17290,7 @@ class TopLevel { | ||
| 17205 | 17290 | * @return ObjectMapper|float|null |
| 17206 | 17291 | */ |
| 17207 | 17292 | public static function sampleObjectMapper(): ObjectMapper|float|null { |
| 17208 | - return ObjectMapper::sample(); /*243:objectMapper*/ | |
| 17293 | + return ObjectMapper::sample(); /*244:objectMapper*/ | |
| 17209 | 17294 | } |
| 17210 | 17295 | |
| 17211 | 17296 | /** |
| @@ -17281,7 +17366,159 @@ class TopLevel { | ||
| 17281 | 17366 | * @return Of|float|null |
| 17282 | 17367 | */ |
| 17283 | 17368 | public static function sampleOf(): Of|float|null { |
| 17284 | - return Of::sample(); /*244:of*/ | |
| 17369 | + return Of::sample(); /*245:of*/ | |
| 17370 | + } | |
| 17371 | + | |
| 17372 | + /** | |
| 17373 | + * @param stdClass|float|null $value | |
| 17374 | + * @throws Exception | |
| 17375 | + * @return OffsetDateTime|float|null | |
| 17376 | + */ | |
| 17377 | + public static function fromOffsetDateTime(stdClass|float|null $value): OffsetDateTime|float|null { | |
| 17378 | + if (is_null($value)) { | |
| 17379 | + return $value; /*null*/ | |
| 17380 | + } elseif (is_object($value)) { | |
| 17381 | + return OffsetDateTime::from($value); /*class*/ | |
| 17382 | + } elseif (is_float($value) || is_int($value)) { | |
| 17383 | + return $value; /*float*/ | |
| 17384 | + } else { | |
| 17385 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 17386 | + } | |
| 17387 | + } | |
| 17388 | + | |
| 17389 | + /** | |
| 17390 | + * @throws Exception | |
| 17391 | + * @return stdClass|float|null | |
| 17392 | + */ | |
| 17393 | + public function toOffsetDateTime(): stdClass|float|null { | |
| 17394 | + if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) { | |
| 17395 | + if (is_null($this->offsetDateTime)) { | |
| 17396 | + return $this->offsetDateTime; /*null*/ | |
| 17397 | + } elseif ($this->offsetDateTime instanceof OffsetDateTime) { | |
| 17398 | + return $this->offsetDateTime->to(); /*class*/ | |
| 17399 | + } elseif (is_float($this->offsetDateTime) || is_int($this->offsetDateTime)) { | |
| 17400 | + return $this->offsetDateTime; /*float*/ | |
| 17401 | + } else { | |
| 17402 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 17403 | + } | |
| 17404 | + } | |
| 17405 | + throw new Exception('never get to this TopLevel::offsetDateTime'); | |
| 17406 | + } | |
| 17407 | + | |
| 17408 | + /** | |
| 17409 | + * @param OffsetDateTime|float|null | |
| 17410 | + * @return bool | |
| 17411 | + * @throws Exception | |
| 17412 | + */ | |
| 17413 | + public static function validateOffsetDateTime(OffsetDateTime|float|null $value): bool { | |
| 17414 | + if (is_null($value)) { | |
| 17415 | + if (!is_null($value)) { | |
| 17416 | + throw new Exception("Attribute Error:TopLevel::offsetDateTime"); | |
| 17417 | + } | |
| 17418 | + } elseif ($value instanceof OffsetDateTime) { | |
| 17419 | + $value->validate(); | |
| 17420 | + } elseif (is_float($value) || is_int($value)) { | |
| 17421 | + if (!is_float($value) && !is_int($value)) { | |
| 17422 | + throw new Exception("Attribute Error:TopLevel::offsetDateTime"); | |
| 17423 | + } | |
| 17424 | + } else { | |
| 17425 | + throw new Exception("Attribute Error:TopLevel::offsetDateTime"); | |
| 17426 | + } | |
| 17427 | + return true; | |
| 17428 | + } | |
| 17429 | + | |
| 17430 | + /** | |
| 17431 | + * @throws Exception | |
| 17432 | + * @return OffsetDateTime|float|null | |
| 17433 | + */ | |
| 17434 | + public function getOffsetDateTime(): OffsetDateTime|float|null { | |
| 17435 | + if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) { | |
| 17436 | + return $this->offsetDateTime; | |
| 17437 | + } | |
| 17438 | + throw new Exception('never get to getOffsetDateTime TopLevel::offsetDateTime'); | |
| 17439 | + } | |
| 17440 | + | |
| 17441 | + /** | |
| 17442 | + * @return OffsetDateTime|float|null | |
| 17443 | + */ | |
| 17444 | + public static function sampleOffsetDateTime(): OffsetDateTime|float|null { | |
| 17445 | + return OffsetDateTime::sample(); /*246:offsetDateTime*/ | |
| 17446 | + } | |
| 17447 | + | |
| 17448 | + /** | |
| 17449 | + * @param stdClass|float|null $value | |
| 17450 | + * @throws Exception | |
| 17451 | + * @return OffsetTime|float|null | |
| 17452 | + */ | |
| 17453 | + public static function fromOffsetTime(stdClass|float|null $value): OffsetTime|float|null { | |
| 17454 | + if (is_null($value)) { | |
| 17455 | + return $value; /*null*/ | |
| 17456 | + } elseif (is_object($value)) { | |
| 17457 | + return OffsetTime::from($value); /*class*/ | |
| 17458 | + } elseif (is_float($value) || is_int($value)) { | |
| 17459 | + return $value; /*float*/ | |
| 17460 | + } else { | |
| 17461 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 17462 | + } | |
| 17463 | + } | |
| 17464 | + | |
| 17465 | + /** | |
| 17466 | + * @throws Exception | |
| 17467 | + * @return stdClass|float|null | |
| 17468 | + */ | |
| 17469 | + public function toOffsetTime(): stdClass|float|null { | |
| 17470 | + if (TopLevel::validateOffsetTime($this->offsetTime)) { | |
| 17471 | + if (is_null($this->offsetTime)) { | |
| 17472 | + return $this->offsetTime; /*null*/ | |
| 17473 | + } elseif ($this->offsetTime instanceof OffsetTime) { | |
| 17474 | + return $this->offsetTime->to(); /*class*/ | |
| 17475 | + } elseif (is_float($this->offsetTime) || is_int($this->offsetTime)) { | |
| 17476 | + return $this->offsetTime; /*float*/ | |
| 17477 | + } else { | |
| 17478 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 17479 | + } | |
| 17480 | + } | |
| 17481 | + throw new Exception('never get to this TopLevel::offsetTime'); | |
| 17482 | + } | |
| 17483 | + | |
| 17484 | + /** | |
| 17485 | + * @param OffsetTime|float|null | |
| 17486 | + * @return bool | |
| 17487 | + * @throws Exception | |
| 17488 | + */ | |
| 17489 | + public static function validateOffsetTime(OffsetTime|float|null $value): bool { | |
| 17490 | + if (is_null($value)) { | |
| 17491 | + if (!is_null($value)) { | |
| 17492 | + throw new Exception("Attribute Error:TopLevel::offsetTime"); | |
| 17493 | + } | |
| 17494 | + } elseif ($value instanceof OffsetTime) { | |
| 17495 | + $value->validate(); | |
| 17496 | + } elseif (is_float($value) || is_int($value)) { | |
| 17497 | + if (!is_float($value) && !is_int($value)) { | |
| 17498 | + throw new Exception("Attribute Error:TopLevel::offsetTime"); | |
| 17499 | + } | |
| 17500 | + } else { | |
| 17501 | + throw new Exception("Attribute Error:TopLevel::offsetTime"); | |
| 17502 | + } | |
| 17503 | + return true; | |
| 17504 | + } | |
| 17505 | + | |
| 17506 | + /** | |
| 17507 | + * @throws Exception | |
| 17508 | + * @return OffsetTime|float|null | |
| 17509 | + */ | |
| 17510 | + public function getOffsetTime(): OffsetTime|float|null { | |
| 17511 | + if (TopLevel::validateOffsetTime($this->offsetTime)) { | |
| 17512 | + return $this->offsetTime; | |
| 17513 | + } | |
| 17514 | + throw new Exception('never get to getOffsetTime TopLevel::offsetTime'); | |
| 17515 | + } | |
| 17516 | + | |
| 17517 | + /** | |
| 17518 | + * @return OffsetTime|float|null | |
| 17519 | + */ | |
| 17520 | + public static function sampleOffsetTime(): OffsetTime|float|null { | |
| 17521 | + return OffsetTime::sample(); /*247:offsetTime*/ | |
| 17285 | 17522 | } |
| 17286 | 17523 | |
| 17287 | 17524 | /** |
| @@ -17357,7 +17594,7 @@ class TopLevel { | ||
| 17357 | 17594 | * @return Oneway|float|null |
| 17358 | 17595 | */ |
| 17359 | 17596 | public static function sampleOneway(): Oneway|float|null { |
| 17360 | - return Oneway::sample(); /*245:oneway*/ | |
| 17597 | + return Oneway::sample(); /*248:oneway*/ | |
| 17361 | 17598 | } |
| 17362 | 17599 | |
| 17363 | 17600 | /** |
| @@ -17433,7 +17670,7 @@ class TopLevel { | ||
| 17433 | 17670 | * @return Open|float|null |
| 17434 | 17671 | */ |
| 17435 | 17672 | public static function sampleOpen(): Open|float|null { |
| 17436 | - return Open::sample(); /*246:open*/ | |
| 17673 | + return Open::sample(); /*249:open*/ | |
| 17437 | 17674 | } |
| 17438 | 17675 | |
| 17439 | 17676 | /** |
| @@ -17509,7 +17746,7 @@ class TopLevel { | ||
| 17509 | 17746 | * @return Operator|float|null |
| 17510 | 17747 | */ |
| 17511 | 17748 | public static function sampleOperator(): Operator|float|null { |
| 17512 | - return Operator::sample(); /*247:operator*/ | |
| 17749 | + return Operator::sample(); /*250:operator*/ | |
| 17513 | 17750 | } |
| 17514 | 17751 | |
| 17515 | 17752 | /** |
| @@ -17585,7 +17822,7 @@ class TopLevel { | ||
| 17585 | 17822 | * @return Optional|float|null |
| 17586 | 17823 | */ |
| 17587 | 17824 | public static function sampleOptional(): Optional|float|null { |
| 17588 | - return Optional::sample(); /*248:optional*/ | |
| 17825 | + return Optional::sample(); /*251:optional*/ | |
| 17589 | 17826 | } |
| 17590 | 17827 | |
| 17591 | 17828 | /** |
| @@ -17661,7 +17898,7 @@ class TopLevel { | ||
| 17661 | 17898 | * @return OrClass|float|null |
| 17662 | 17899 | */ |
| 17663 | 17900 | public static function sampleOr(): OrClass|float|null { |
| 17664 | - return OrClass::sample(); /*249:or*/ | |
| 17901 | + return OrClass::sample(); /*252:or*/ | |
| 17665 | 17902 | } |
| 17666 | 17903 | |
| 17667 | 17904 | /** |
| @@ -17737,7 +17974,7 @@ class TopLevel { | ||
| 17737 | 17974 | * @return OrEq|float|null |
| 17738 | 17975 | */ |
| 17739 | 17976 | public static function sampleOrEq(): OrEq|float|null { |
| 17740 | - return OrEq::sample(); /*250:orEq*/ | |
| 17977 | + return OrEq::sample(); /*253:orEq*/ | |
| 17741 | 17978 | } |
| 17742 | 17979 | |
| 17743 | 17980 | /** |
| @@ -17813,7 +18050,7 @@ class TopLevel { | ||
| 17813 | 18050 | * @return Out|float|null |
| 17814 | 18051 | */ |
| 17815 | 18052 | public static function sampleOut(): Out|float|null { |
| 17816 | - return Out::sample(); /*251:out*/ | |
| 18053 | + return Out::sample(); /*254:out*/ | |
| 17817 | 18054 | } |
| 17818 | 18055 | |
| 17819 | 18056 | /** |
| @@ -17889,7 +18126,7 @@ class TopLevel { | ||
| 17889 | 18126 | * @return OverrideClass|float|null |
| 17890 | 18127 | */ |
| 17891 | 18128 | public static function sampleOverride(): OverrideClass|float|null { |
| 17892 | - return OverrideClass::sample(); /*252:override*/ | |
| 18129 | + return OverrideClass::sample(); /*255:override*/ | |
| 17893 | 18130 | } |
| 17894 | 18131 | |
| 17895 | 18132 | /** |
| @@ -17965,7 +18202,7 @@ class TopLevel { | ||
| 17965 | 18202 | * @return Package|float|null |
| 17966 | 18203 | */ |
| 17967 | 18204 | public static function samplePackage(): Package|float|null { |
| 17968 | - return Package::sample(); /*253:package*/ | |
| 18205 | + return Package::sample(); /*256:package*/ | |
| 17969 | 18206 | } |
| 17970 | 18207 | |
| 17971 | 18208 | /** |
| @@ -18041,7 +18278,7 @@ class TopLevel { | ||
| 18041 | 18278 | * @return Params|float|null |
| 18042 | 18279 | */ |
| 18043 | 18280 | public static function sampleParams(): Params|float|null { |
| 18044 | - return Params::sample(); /*254:params*/ | |
| 18281 | + return Params::sample(); /*257:params*/ | |
| 18045 | 18282 | } |
| 18046 | 18283 | |
| 18047 | 18284 | /** |
| @@ -18117,7 +18354,7 @@ class TopLevel { | ||
| 18117 | 18354 | * @return Pass|float|null |
| 18118 | 18355 | */ |
| 18119 | 18356 | public static function samplePass(): Pass|float|null { |
| 18120 | - return Pass::sample(); /*255:pass*/ | |
| 18357 | + return Pass::sample(); /*258:pass*/ | |
| 18121 | 18358 | } |
| 18122 | 18359 | |
| 18123 | 18360 | /** |
| @@ -18193,7 +18430,7 @@ class TopLevel { | ||
| 18193 | 18430 | * @return Port|float|null |
| 18194 | 18431 | */ |
| 18195 | 18432 | public static function samplePort(): Port|float|null { |
| 18196 | - return Port::sample(); /*256:port*/ | |
| 18433 | + return Port::sample(); /*259:port*/ | |
| 18197 | 18434 | } |
| 18198 | 18435 | |
| 18199 | 18436 | /** |
| @@ -18269,7 +18506,7 @@ class TopLevel { | ||
| 18269 | 18506 | * @return Postfix|float|null |
| 18270 | 18507 | */ |
| 18271 | 18508 | public static function samplePostfix(): Postfix|float|null { |
| 18272 | - return Postfix::sample(); /*257:postfix*/ | |
| 18509 | + return Postfix::sample(); /*260:postfix*/ | |
| 18273 | 18510 | } |
| 18274 | 18511 | |
| 18275 | 18512 | /** |
| @@ -18345,7 +18582,7 @@ class TopLevel { | ||
| 18345 | 18582 | * @return Precedence|float|null |
| 18346 | 18583 | */ |
| 18347 | 18584 | public static function samplePrecedence(): Precedence|float|null { |
| 18348 | - return Precedence::sample(); /*258:precedence*/ | |
| 18585 | + return Precedence::sample(); /*261:precedence*/ | |
| 18349 | 18586 | } |
| 18350 | 18587 | |
| 18351 | 18588 | /** |
| @@ -18421,7 +18658,7 @@ class TopLevel { | ||
| 18421 | 18658 | * @return Prefix|float|null |
| 18422 | 18659 | */ |
| 18423 | 18660 | public static function samplePrefix(): Prefix|float|null { |
| 18424 | - return Prefix::sample(); /*259:prefix*/ | |
| 18661 | + return Prefix::sample(); /*262:prefix*/ | |
| 18425 | 18662 | } |
| 18426 | 18663 | |
| 18427 | 18664 | /** |
| @@ -18497,7 +18734,7 @@ class TopLevel { | ||
| 18497 | 18734 | * @return PrimitiveKind|float|null |
| 18498 | 18735 | */ |
| 18499 | 18736 | public static function samplePrimitiveKind(): PrimitiveKind|float|null { |
| 18500 | - return PrimitiveKind::sample(); /*260:primitiveKind*/ | |
| 18737 | + return PrimitiveKind::sample(); /*263:primitiveKind*/ | |
| 18501 | 18738 | } |
| 18502 | 18739 | |
| 18503 | 18740 | /** |
| @@ -18573,7 +18810,7 @@ class TopLevel { | ||
| 18573 | 18810 | * @return PrintClass|float|null |
| 18574 | 18811 | */ |
| 18575 | 18812 | public static function samplePrint(): PrintClass|float|null { |
| 18576 | - return PrintClass::sample(); /*261:print*/ | |
| 18813 | + return PrintClass::sample(); /*264:print*/ | |
| 18577 | 18814 | } |
| 18578 | 18815 | |
| 18579 | 18816 | /** |
| @@ -18649,7 +18886,7 @@ class TopLevel { | ||
| 18649 | 18886 | * @return Printf|float|null |
| 18650 | 18887 | */ |
| 18651 | 18888 | public static function samplePrintf(): Printf|float|null { |
| 18652 | - return Printf::sample(); /*262:printf*/ | |
| 18889 | + return Printf::sample(); /*265:printf*/ | |
| 18653 | 18890 | } |
| 18654 | 18891 | |
| 18655 | 18892 | /** |
| @@ -18725,7 +18962,7 @@ class TopLevel { | ||
| 18725 | 18962 | * @return PrintMembers|float|null |
| 18726 | 18963 | */ |
| 18727 | 18964 | public static function samplePrintMembers(): PrintMembers|float|null { |
| 18728 | - return PrintMembers::sample(); /*263:printMembers*/ | |
| 18965 | + return PrintMembers::sample(); /*266:printMembers*/ | |
| 18729 | 18966 | } |
| 18730 | 18967 | |
| 18731 | 18968 | /** |
| @@ -18801,7 +19038,7 @@ class TopLevel { | ||
| 18801 | 19038 | * @return PrivateClass|float|null |
| 18802 | 19039 | */ |
| 18803 | 19040 | public static function samplePrivate(): PrivateClass|float|null { |
| 18804 | - return PrivateClass::sample(); /*264:private*/ | |
| 19041 | + return PrivateClass::sample(); /*267:private*/ | |
| 18805 | 19042 | } |
| 18806 | 19043 | |
| 18807 | 19044 | /** |
| @@ -18877,7 +19114,7 @@ class TopLevel { | ||
| 18877 | 19114 | * @return ProtectedClass|float|null |
| 18878 | 19115 | */ |
| 18879 | 19116 | public static function sampleProtected(): ProtectedClass|float|null { |
| 18880 | - return ProtectedClass::sample(); /*265:protected*/ | |
| 19117 | + return ProtectedClass::sample(); /*268:protected*/ | |
| 18881 | 19118 | } |
| 18882 | 19119 | |
| 18883 | 19120 | /** |
| @@ -18953,7 +19190,7 @@ class TopLevel { | ||
| 18953 | 19190 | * @return Protocol|float|null |
| 18954 | 19191 | */ |
| 18955 | 19192 | public static function sampleProtocol(): Protocol|float|null { |
| 18956 | - return Protocol::sample(); /*266:protocol*/ | |
| 19193 | + return Protocol::sample(); /*269:protocol*/ | |
| 18957 | 19194 | } |
| 18958 | 19195 | |
| 18959 | 19196 | /** |
| @@ -19029,7 +19266,7 @@ class TopLevel { | ||
| 19029 | 19266 | * @return ProtocolClass|float|null |
| 19030 | 19267 | */ |
| 19031 | 19268 | public static function sampleTopLevelProtocol(): ProtocolClass|float|null { |
| 19032 | - return ProtocolClass::sample(); /*267:topLevelProtocol*/ | |
| 19269 | + return ProtocolClass::sample(); /*270:topLevelProtocol*/ | |
| 19033 | 19270 | } |
| 19034 | 19271 | |
| 19035 | 19272 | /** |
| @@ -19105,7 +19342,7 @@ class TopLevel { | ||
| 19105 | 19342 | * @return PublicClass|float|null |
| 19106 | 19343 | */ |
| 19107 | 19344 | public static function samplePublic(): PublicClass|float|null { |
| 19108 | - return PublicClass::sample(); /*268:public*/ | |
| 19345 | + return PublicClass::sample(); /*271:public*/ | |
| 19109 | 19346 | } |
| 19110 | 19347 | |
| 19111 | 19348 | /** |
| @@ -19181,7 +19418,7 @@ class TopLevel { | ||
| 19181 | 19418 | * @return Quicktype|float|null |
| 19182 | 19419 | */ |
| 19183 | 19420 | public static function sampleQuicktype(): Quicktype|float|null { |
| 19184 | - return Quicktype::sample(); /*269:quicktype*/ | |
| 19421 | + return Quicktype::sample(); /*272:quicktype*/ | |
| 19185 | 19422 | } |
| 19186 | 19423 | |
| 19187 | 19424 | /** |
| @@ -19257,7 +19494,7 @@ class TopLevel { | ||
| 19257 | 19494 | * @return Raise|float|null |
| 19258 | 19495 | */ |
| 19259 | 19496 | public static function sampleRaise(): Raise|float|null { |
| 19260 | - return Raise::sample(); /*270:raise*/ | |
| 19497 | + return Raise::sample(); /*273:raise*/ | |
| 19261 | 19498 | } |
| 19262 | 19499 | |
| 19263 | 19500 | /** |
| @@ -19333,7 +19570,7 @@ class TopLevel { | ||
| 19333 | 19570 | * @return Range|float|null |
| 19334 | 19571 | */ |
| 19335 | 19572 | public static function sampleRange(): Range|float|null { |
| 19336 | - return Range::sample(); /*271:range*/ | |
| 19573 | + return Range::sample(); /*274:range*/ | |
| 19337 | 19574 | } |
| 19338 | 19575 | |
| 19339 | 19576 | /** |
| @@ -19409,7 +19646,7 @@ class TopLevel { | ||
| 19409 | 19646 | * @return ReadonlyClass|float|null |
| 19410 | 19647 | */ |
| 19411 | 19648 | public static function sampleReadonly(): ReadonlyClass|float|null { |
| 19412 | - return ReadonlyClass::sample(); /*272:readonly*/ | |
| 19649 | + return ReadonlyClass::sample(); /*275:readonly*/ | |
| 19413 | 19650 | } |
| 19414 | 19651 | |
| 19415 | 19652 | /** |
| @@ -19485,7 +19722,7 @@ class TopLevel { | ||
| 19485 | 19722 | * @return Ref|float|null |
| 19486 | 19723 | */ |
| 19487 | 19724 | public static function sampleRef(): Ref|float|null { |
| 19488 | - return Ref::sample(); /*273:ref*/ | |
| 19725 | + return Ref::sample(); /*276:ref*/ | |
| 19489 | 19726 | } |
| 19490 | 19727 | |
| 19491 | 19728 | /** |
| @@ -19561,7 +19798,7 @@ class TopLevel { | ||
| 19561 | 19798 | * @return RegExp|float|null |
| 19562 | 19799 | */ |
| 19563 | 19800 | public static function sampleRegExp(): RegExp|float|null { |
| 19564 | - return RegExp::sample(); /*274:regExp*/ | |
| 19801 | + return RegExp::sample(); /*277:regExp*/ | |
| 19565 | 19802 | } |
| 19566 | 19803 | |
| 19567 | 19804 | /** |
| @@ -19637,7 +19874,7 @@ class TopLevel { | ||
| 19637 | 19874 | * @return Register|float|null |
| 19638 | 19875 | */ |
| 19639 | 19876 | public static function sampleRegister(): Register|float|null { |
| 19640 | - return Register::sample(); /*275:register*/ | |
| 19877 | + return Register::sample(); /*278:register*/ | |
| 19641 | 19878 | } |
| 19642 | 19879 | |
| 19643 | 19880 | /** |
| @@ -19713,7 +19950,7 @@ class TopLevel { | ||
| 19713 | 19950 | * @return ReinterpretCast|float|null |
| 19714 | 19951 | */ |
| 19715 | 19952 | public static function sampleReinterpretCast(): ReinterpretCast|float|null { |
| 19716 | - return ReinterpretCast::sample(); /*276:reinterpretCast*/ | |
| 19953 | + return ReinterpretCast::sample(); /*279:reinterpretCast*/ | |
| 19717 | 19954 | } |
| 19718 | 19955 | |
| 19719 | 19956 | /** |
| @@ -19789,7 +20026,7 @@ class TopLevel { | ||
| 19789 | 20026 | * @return Repeat|float|null |
| 19790 | 20027 | */ |
| 19791 | 20028 | public static function sampleRepeat(): Repeat|float|null { |
| 19792 | - return Repeat::sample(); /*277:repeat*/ | |
| 20029 | + return Repeat::sample(); /*280:repeat*/ | |
| 19793 | 20030 | } |
| 19794 | 20031 | |
| 19795 | 20032 | /** |
| @@ -19865,7 +20102,7 @@ class TopLevel { | ||
| 19865 | 20102 | * @return RequireClass|float|null |
| 19866 | 20103 | */ |
| 19867 | 20104 | public static function sampleRequire(): RequireClass|float|null { |
| 19868 | - return RequireClass::sample(); /*278:require*/ | |
| 20105 | + return RequireClass::sample(); /*281:require*/ | |
| 19869 | 20106 | } |
| 19870 | 20107 | |
| 19871 | 20108 | /** |
| @@ -19941,7 +20178,7 @@ class TopLevel { | ||
| 19941 | 20178 | * @return Required|float|null |
| 19942 | 20179 | */ |
| 19943 | 20180 | public static function sampleRequired(): Required|float|null { |
| 19944 | - return Required::sample(); /*279:required*/ | |
| 20181 | + return Required::sample(); /*282:required*/ | |
| 19945 | 20182 | } |
| 19946 | 20183 | |
| 19947 | 20184 | /** |
| @@ -20017,7 +20254,7 @@ class TopLevel { | ||
| 20017 | 20254 | * @return Requires|float|null |
| 20018 | 20255 | */ |
| 20019 | 20256 | public static function sampleRequires(): Requires|float|null { |
| 20020 | - return Requires::sample(); /*280:requires*/ | |
| 20257 | + return Requires::sample(); /*283:requires*/ | |
| 20021 | 20258 | } |
| 20022 | 20259 | |
| 20023 | 20260 | /** |
| @@ -20093,7 +20330,7 @@ class TopLevel { | ||
| 20093 | 20330 | * @return Restrict|float|null |
| 20094 | 20331 | */ |
| 20095 | 20332 | public static function sampleRestrict(): Restrict|float|null { |
| 20096 | - return Restrict::sample(); /*281:restrict*/ | |
| 20333 | + return Restrict::sample(); /*284:restrict*/ | |
| 20097 | 20334 | } |
| 20098 | 20335 | |
| 20099 | 20336 | /** |
| @@ -20169,7 +20406,7 @@ class TopLevel { | ||
| 20169 | 20406 | * @return Retain|float|null |
| 20170 | 20407 | */ |
| 20171 | 20408 | public static function sampleRetain(): Retain|float|null { |
| 20172 | - return Retain::sample(); /*282:retain*/ | |
| 20409 | + return Retain::sample(); /*285:retain*/ | |
| 20173 | 20410 | } |
| 20174 | 20411 | |
| 20175 | 20412 | /** |
| @@ -20245,7 +20482,7 @@ class TopLevel { | ||
| 20245 | 20482 | * @return Rethrows|float|null |
| 20246 | 20483 | */ |
| 20247 | 20484 | public static function sampleRethrows(): Rethrows|float|null { |
| 20248 | - return Rethrows::sample(); /*283:rethrows*/ | |
| 20485 | + return Rethrows::sample(); /*286:rethrows*/ | |
| 20249 | 20486 | } |
| 20250 | 20487 | |
| 20251 | 20488 | /** |
| @@ -20321,7 +20558,7 @@ class TopLevel { | ||
| 20321 | 20558 | * @return ReturnClass|float|null |
| 20322 | 20559 | */ |
| 20323 | 20560 | public static function sampleReturn(): ReturnClass|float|null { |
| 20324 | - return ReturnClass::sample(); /*284:return*/ | |
| 20561 | + return ReturnClass::sample(); /*287:return*/ | |
| 20325 | 20562 | } |
| 20326 | 20563 | |
| 20327 | 20564 | /** |
| @@ -20397,7 +20634,7 @@ class TopLevel { | ||
| 20397 | 20634 | * @return Right|float|null |
| 20398 | 20635 | */ |
| 20399 | 20636 | public static function sampleRight(): Right|float|null { |
| 20400 | - return Right::sample(); /*285:right*/ | |
| 20637 | + return Right::sample(); /*288:right*/ | |
| 20401 | 20638 | } |
| 20402 | 20639 | |
| 20403 | 20640 | /** |
| @@ -20473,7 +20710,7 @@ class TopLevel { | ||
| 20473 | 20710 | * @return RuntimeType|float|null |
| 20474 | 20711 | */ |
| 20475 | 20712 | public static function sampleRuntimeType(): RuntimeType|float|null { |
| 20476 | - return RuntimeType::sample(); /*286:runtimeType*/ | |
| 20713 | + return RuntimeType::sample(); /*289:runtimeType*/ | |
| 20477 | 20714 | } |
| 20478 | 20715 | |
| 20479 | 20716 | /** |
| @@ -20549,7 +20786,7 @@ class TopLevel { | ||
| 20549 | 20786 | * @return S|float|null |
| 20550 | 20787 | */ |
| 20551 | 20788 | public static function sampleS(): S|float|null { |
| 20552 | - return S::sample(); /*287:s*/ | |
| 20789 | + return S::sample(); /*290:s*/ | |
| 20553 | 20790 | } |
| 20554 | 20791 | |
| 20555 | 20792 | /** |
| @@ -20625,7 +20862,7 @@ class TopLevel { | ||
| 20625 | 20862 | * @return Sbyte|float|null |
| 20626 | 20863 | */ |
| 20627 | 20864 | public static function sampleSbyte(): Sbyte|float|null { |
| 20628 | - return Sbyte::sample(); /*288:sbyte*/ | |
| 20865 | + return Sbyte::sample(); /*291:sbyte*/ | |
| 20629 | 20866 | } |
| 20630 | 20867 | |
| 20631 | 20868 | /** |
| @@ -20701,7 +20938,7 @@ class TopLevel { | ||
| 20701 | 20938 | * @return Sealed|float|null |
| 20702 | 20939 | */ |
| 20703 | 20940 | public static function sampleSealed(): Sealed|float|null { |
| 20704 | - return Sealed::sample(); /*289:sealed*/ | |
| 20941 | + return Sealed::sample(); /*292:sealed*/ | |
| 20705 | 20942 | } |
| 20706 | 20943 | |
| 20707 | 20944 | /** |
| @@ -20777,7 +21014,7 @@ class TopLevel { | ||
| 20777 | 21014 | * @return Sel|float|null |
| 20778 | 21015 | */ |
| 20779 | 21016 | public static function sampleSel(): Sel|float|null { |
| 20780 | - return Sel::sample(); /*290:sel*/ | |
| 21017 | + return Sel::sample(); /*293:sel*/ | |
| 20781 | 21018 | } |
| 20782 | 21019 | |
| 20783 | 21020 | /** |
| @@ -20853,7 +21090,7 @@ class TopLevel { | ||
| 20853 | 21090 | * @return Select|float|null |
| 20854 | 21091 | */ |
| 20855 | 21092 | public static function sampleSelect(): Select|float|null { |
| 20856 | - return Select::sample(); /*291:select*/ | |
| 21093 | + return Select::sample(); /*294:select*/ | |
| 20857 | 21094 | } |
| 20858 | 21095 | |
| 20859 | 21096 | /** |
| @@ -20929,7 +21166,7 @@ class TopLevel { | ||
| 20929 | 21166 | * @return SelfClass|float|null |
| 20930 | 21167 | */ |
| 20931 | 21168 | public static function sampleSelf(): SelfClass|float|null { |
| 20932 | - return SelfClass::sample(); /*292:self*/ | |
| 21169 | + return SelfClass::sample(); /*295:self*/ | |
| 20933 | 21170 | } |
| 20934 | 21171 | |
| 20935 | 21172 | /** |
| @@ -21005,7 +21242,7 @@ class TopLevel { | ||
| 21005 | 21242 | * @return UnionSelfSelf|float|null |
| 21006 | 21243 | */ |
| 21007 | 21244 | public static function sampleTopLevelSelf(): UnionSelfSelf|float|null { |
| 21008 | - return UnionSelfSelf::sample(); /*293:topLevelSelf*/ | |
| 21245 | + return UnionSelfSelf::sample(); /*296:topLevelSelf*/ | |
| 21009 | 21246 | } |
| 21010 | 21247 | |
| 21011 | 21248 | /** |
| @@ -21081,7 +21318,7 @@ class TopLevel { | ||
| 21081 | 21318 | * @return Sendable|float|null |
| 21082 | 21319 | */ |
| 21083 | 21320 | public static function sampleSendable(): Sendable|float|null { |
| 21084 | - return Sendable::sample(); /*294:sendable*/ | |
| 21321 | + return Sendable::sample(); /*297:sendable*/ | |
| 21085 | 21322 | } |
| 21086 | 21323 | |
| 21087 | 21324 | /** |
| @@ -21157,7 +21394,7 @@ class TopLevel { | ||
| 21157 | 21394 | * @return SerialDescriptor|float|null |
| 21158 | 21395 | */ |
| 21159 | 21396 | public static function sampleSerialDescriptor(): SerialDescriptor|float|null { |
| 21160 | - return SerialDescriptor::sample(); /*295:serialDescriptor*/ | |
| 21397 | + return SerialDescriptor::sample(); /*298:serialDescriptor*/ | |
| 21161 | 21398 | } |
| 21162 | 21399 | |
| 21163 | 21400 | /** |
| @@ -21233,7 +21470,7 @@ class TopLevel { | ||
| 21233 | 21470 | * @return SerializableClass|float|null |
| 21234 | 21471 | */ |
| 21235 | 21472 | public static function sampleSerializable(): SerializableClass|float|null { |
| 21236 | - return SerializableClass::sample(); /*296:serializable*/ | |
| 21473 | + return SerializableClass::sample(); /*299:serializable*/ | |
| 21237 | 21474 | } |
| 21238 | 21475 | |
| 21239 | 21476 | /** |
| @@ -21309,7 +21546,7 @@ class TopLevel { | ||
| 21309 | 21546 | * @return Serialize|float|null |
| 21310 | 21547 | */ |
| 21311 | 21548 | public static function sampleSerialize(): Serialize|float|null { |
| 21312 | - return Serialize::sample(); /*297:serialize*/ | |
| 21549 | + return Serialize::sample(); /*300:serialize*/ | |
| 21313 | 21550 | } |
| 21314 | 21551 | |
| 21315 | 21552 | /** |
| @@ -21385,7 +21622,7 @@ class TopLevel { | ||
| 21385 | 21622 | * @return SerializerProvider|float|null |
| 21386 | 21623 | */ |
| 21387 | 21624 | public static function sampleSerializerProvider(): SerializerProvider|float|null { |
| 21388 | - return SerializerProvider::sample(); /*298:serializerProvider*/ | |
| 21625 | + return SerializerProvider::sample(); /*301:serializerProvider*/ | |
| 21389 | 21626 | } |
| 21390 | 21627 | |
| 21391 | 21628 | /** |
| @@ -21461,7 +21698,7 @@ class TopLevel { | ||
| 21461 | 21698 | * @return SerialName|float|null |
| 21462 | 21699 | */ |
| 21463 | 21700 | public static function sampleSerialName(): SerialName|float|null { |
| 21464 | - return SerialName::sample(); /*299:serialName*/ | |
| 21701 | + return SerialName::sample(); /*302:serialName*/ | |
| 21465 | 21702 | } |
| 21466 | 21703 | |
| 21467 | 21704 | /** |
| @@ -21537,7 +21774,7 @@ class TopLevel { | ||
| 21537 | 21774 | * @return Set|float|null |
| 21538 | 21775 | */ |
| 21539 | 21776 | public static function sampleSet(): Set|float|null { |
| 21540 | - return Set::sample(); /*300:set*/ | |
| 21777 | + return Set::sample(); /*303:set*/ | |
| 21541 | 21778 | } |
| 21542 | 21779 | |
| 21543 | 21780 | /** |
| @@ -21613,7 +21850,7 @@ class TopLevel { | ||
| 21613 | 21850 | * @return Short|float|null |
| 21614 | 21851 | */ |
| 21615 | 21852 | public static function sampleShort(): Short|float|null { |
| 21616 | - return Short::sample(); /*301:short*/ | |
| 21853 | + return Short::sample(); /*304:short*/ | |
| 21617 | 21854 | } |
| 21618 | 21855 | |
| 21619 | 21856 | /** |
| @@ -21689,7 +21926,7 @@ class TopLevel { | ||
| 21689 | 21926 | * @return Signed|float|null |
| 21690 | 21927 | */ |
| 21691 | 21928 | public static function sampleSigned(): Signed|float|null { |
| 21692 | - return Signed::sample(); /*302:signed*/ | |
| 21929 | + return Signed::sample(); /*305:signed*/ | |
| 21693 | 21930 | } |
| 21694 | 21931 | |
| 21695 | 21932 | /** |
| @@ -21765,7 +22002,7 @@ class TopLevel { | ||
| 21765 | 22002 | * @return SimpleModule|float|null |
| 21766 | 22003 | */ |
| 21767 | 22004 | public static function sampleSimpleModule(): SimpleModule|float|null { |
| 21768 | - return SimpleModule::sample(); /*303:simpleModule*/ | |
| 22005 | + return SimpleModule::sample(); /*306:simpleModule*/ | |
| 21769 | 22006 | } |
| 21770 | 22007 | |
| 21771 | 22008 | /** |
| @@ -21841,7 +22078,7 @@ class TopLevel { | ||
| 21841 | 22078 | * @return Sizeof|float|null |
| 21842 | 22079 | */ |
| 21843 | 22080 | public static function sampleSizeof(): Sizeof|float|null { |
| 21844 | - return Sizeof::sample(); /*304:sizeof*/ | |
| 22081 | + return Sizeof::sample(); /*307:sizeof*/ | |
| 21845 | 22082 | } |
| 21846 | 22083 | |
| 21847 | 22084 | /** |
| @@ -21917,7 +22154,7 @@ class TopLevel { | ||
| 21917 | 22154 | * @return Stackalloc|float|null |
| 21918 | 22155 | */ |
| 21919 | 22156 | public static function sampleStackalloc(): Stackalloc|float|null { |
| 21920 | - return Stackalloc::sample(); /*305:stackalloc*/ | |
| 22157 | + return Stackalloc::sample(); /*308:stackalloc*/ | |
| 21921 | 22158 | } |
| 21922 | 22159 | |
| 21923 | 22160 | /** |
| @@ -21993,7 +22230,7 @@ class TopLevel { | ||
| 21993 | 22230 | * @return Standards|float|null |
| 21994 | 22231 | */ |
| 21995 | 22232 | public static function sampleStandards(): Standards|float|null { |
| 21996 | - return Standards::sample(); /*306:standards*/ | |
| 22233 | + return Standards::sample(); /*309:standards*/ | |
| 21997 | 22234 | } |
| 21998 | 22235 | |
| 21999 | 22236 | /** |
| @@ -22069,7 +22306,7 @@ class TopLevel { | ||
| 22069 | 22306 | * @return StaticClass|float|null |
| 22070 | 22307 | */ |
| 22071 | 22308 | public static function sampleStatic(): StaticClass|float|null { |
| 22072 | - return StaticClass::sample(); /*307:static*/ | |
| 22309 | + return StaticClass::sample(); /*310:static*/ | |
| 22073 | 22310 | } |
| 22074 | 22311 | |
| 22075 | 22312 | /** |
| @@ -22145,7 +22382,7 @@ class TopLevel { | ||
| 22145 | 22382 | * @return StaticAssert|float|null |
| 22146 | 22383 | */ |
| 22147 | 22384 | public static function sampleStaticAssert(): StaticAssert|float|null { |
| 22148 | - return StaticAssert::sample(); /*308:staticAssert*/ | |
| 22385 | + return StaticAssert::sample(); /*311:staticAssert*/ | |
| 22149 | 22386 | } |
| 22150 | 22387 | |
| 22151 | 22388 | /** |
| @@ -22221,7 +22458,7 @@ class TopLevel { | ||
| 22221 | 22458 | * @return StaticCast|float|null |
| 22222 | 22459 | */ |
| 22223 | 22460 | public static function sampleStaticCast(): StaticCast|float|null { |
| 22224 | - return StaticCast::sample(); /*309:staticCast*/ | |
| 22461 | + return StaticCast::sample(); /*312:staticCast*/ | |
| 22225 | 22462 | } |
| 22226 | 22463 | |
| 22227 | 22464 | /** |
| @@ -22297,7 +22534,7 @@ class TopLevel { | ||
| 22297 | 22534 | * @return StdDeserializer|float|null |
| 22298 | 22535 | */ |
| 22299 | 22536 | public static function sampleStdDeserializer(): StdDeserializer|float|null { |
| 22300 | - return StdDeserializer::sample(); /*310:stdDeserializer*/ | |
| 22537 | + return StdDeserializer::sample(); /*313:stdDeserializer*/ | |
| 22301 | 22538 | } |
| 22302 | 22539 | |
| 22303 | 22540 | /** |
| @@ -22373,7 +22610,7 @@ class TopLevel { | ||
| 22373 | 22610 | * @return StdSerializer|float|null |
| 22374 | 22611 | */ |
| 22375 | 22612 | public static function sampleStdSerializer(): StdSerializer|float|null { |
| 22376 | - return StdSerializer::sample(); /*311:stdSerializer*/ | |
| 22613 | + return StdSerializer::sample(); /*314:stdSerializer*/ | |
| 22377 | 22614 | } |
| 22378 | 22615 | |
| 22379 | 22616 | /** |
| @@ -22449,7 +22686,7 @@ class TopLevel { | ||
| 22449 | 22686 | * @return Strictfp|float|null |
| 22450 | 22687 | */ |
| 22451 | 22688 | public static function sampleStrictfp(): Strictfp|float|null { |
| 22452 | - return Strictfp::sample(); /*312:strictfp*/ | |
| 22689 | + return Strictfp::sample(); /*315:strictfp*/ | |
| 22453 | 22690 | } |
| 22454 | 22691 | |
| 22455 | 22692 | /** |
| @@ -22525,7 +22762,7 @@ class TopLevel { | ||
| 22525 | 22762 | * @return StringClass|float|null |
| 22526 | 22763 | */ |
| 22527 | 22764 | public static function sampleString(): StringClass|float|null { |
| 22528 | - return StringClass::sample(); /*313:string*/ | |
| 22765 | + return StringClass::sample(); /*316:string*/ | |
| 22529 | 22766 | } |
| 22530 | 22767 | |
| 22531 | 22768 | /** |
| @@ -22601,7 +22838,7 @@ class TopLevel { | ||
| 22601 | 22838 | * @return Struct|float|null |
| 22602 | 22839 | */ |
| 22603 | 22840 | public static function sampleStruct(): Struct|float|null { |
| 22604 | - return Struct::sample(); /*314:struct*/ | |
| 22841 | + return Struct::sample(); /*317:struct*/ | |
| 22605 | 22842 | } |
| 22606 | 22843 | |
| 22607 | 22844 | /** |
| @@ -22677,7 +22914,7 @@ class TopLevel { | ||
| 22677 | 22914 | * @return Subscript|float|null |
| 22678 | 22915 | */ |
| 22679 | 22916 | public static function sampleSubscript(): Subscript|float|null { |
| 22680 | - return Subscript::sample(); /*315:subscript*/ | |
| 22917 | + return Subscript::sample(); /*318:subscript*/ | |
| 22681 | 22918 | } |
| 22682 | 22919 | |
| 22683 | 22920 | /** |
| @@ -22753,7 +22990,7 @@ class TopLevel { | ||
| 22753 | 22990 | * @return Super|float|null |
| 22754 | 22991 | */ |
| 22755 | 22992 | public static function sampleSuper(): Super|float|null { |
| 22756 | - return Super::sample(); /*316:super*/ | |
| 22993 | + return Super::sample(); /*319:super*/ | |
| 22757 | 22994 | } |
| 22758 | 22995 | |
| 22759 | 22996 | /** |
| @@ -22829,7 +23066,7 @@ class TopLevel { | ||
| 22829 | 23066 | * @return SwitchClass|float|null |
| 22830 | 23067 | */ |
| 22831 | 23068 | public static function sampleSwitch(): SwitchClass|float|null { |
| 22832 | - return SwitchClass::sample(); /*317:switch*/ | |
| 23069 | + return SwitchClass::sample(); /*320:switch*/ | |
| 22833 | 23070 | } |
| 22834 | 23071 | |
| 22835 | 23072 | /** |
| @@ -22905,7 +23142,7 @@ class TopLevel { | ||
| 22905 | 23142 | * @return Symbol|float|null |
| 22906 | 23143 | */ |
| 22907 | 23144 | public static function sampleSymbol(): Symbol|float|null { |
| 22908 | - return Symbol::sample(); /*318:symbol*/ | |
| 23145 | + return Symbol::sample(); /*321:symbol*/ | |
| 22909 | 23146 | } |
| 22910 | 23147 | |
| 22911 | 23148 | /** |
| @@ -22981,7 +23218,7 @@ class TopLevel { | ||
| 22981 | 23218 | * @return Synchronized|float|null |
| 22982 | 23219 | */ |
| 22983 | 23220 | public static function sampleSynchronized(): Synchronized|float|null { |
| 22984 | - return Synchronized::sample(); /*319:synchronized*/ | |
| 23221 | + return Synchronized::sample(); /*322:synchronized*/ | |
| 22985 | 23222 | } |
| 22986 | 23223 | |
| 22987 | 23224 | /** |
| @@ -23057,7 +23294,7 @@ class TopLevel { | ||
| 23057 | 23294 | * @return System|float|null |
| 23058 | 23295 | */ |
| 23059 | 23296 | public static function sampleSystem(): System|float|null { |
| 23060 | - return System::sample(); /*320:system*/ | |
| 23297 | + return System::sample(); /*323:system*/ | |
| 23061 | 23298 | } |
| 23062 | 23299 | |
| 23063 | 23300 | /** |
| @@ -23133,7 +23370,7 @@ class TopLevel { | ||
| 23133 | 23370 | * @return Template|float|null |
| 23134 | 23371 | */ |
| 23135 | 23372 | public static function sampleTemplate(): Template|float|null { |
| 23136 | - return Template::sample(); /*321:template*/ | |
| 23373 | + return Template::sample(); /*324:template*/ | |
| 23137 | 23374 | } |
| 23138 | 23375 | |
| 23139 | 23376 | /** |
| @@ -23209,7 +23446,7 @@ class TopLevel { | ||
| 23209 | 23446 | * @return Then|float|null |
| 23210 | 23447 | */ |
| 23211 | 23448 | public static function sampleThen(): Then|float|null { |
| 23212 | - return Then::sample(); /*322:then*/ | |
| 23449 | + return Then::sample(); /*325:then*/ | |
| 23213 | 23450 | } |
| 23214 | 23451 | |
| 23215 | 23452 | /** |
| @@ -23285,7 +23522,7 @@ class TopLevel { | ||
| 23285 | 23522 | * @return This|float|null |
| 23286 | 23523 | */ |
| 23287 | 23524 | public static function sampleTopLevelThis(): This|float|null { |
| 23288 | - return This::sample(); /*323:topLevelThis*/ | |
| 23525 | + return This::sample(); /*326:topLevelThis*/ | |
| 23289 | 23526 | } |
| 23290 | 23527 | |
| 23291 | 23528 | /** |
| @@ -23361,7 +23598,7 @@ class TopLevel { | ||
| 23361 | 23598 | * @return ThreadLocal|float|null |
| 23362 | 23599 | */ |
| 23363 | 23600 | public static function sampleThreadLocal(): ThreadLocal|float|null { |
| 23364 | - return ThreadLocal::sample(); /*324:threadLocal*/ | |
| 23601 | + return ThreadLocal::sample(); /*327:threadLocal*/ | |
| 23365 | 23602 | } |
| 23366 | 23603 | |
| 23367 | 23604 | /** |
| @@ -23437,7 +23674,7 @@ class TopLevel { | ||
| 23437 | 23674 | * @return ThrowClass|float|null |
| 23438 | 23675 | */ |
| 23439 | 23676 | public static function sampleThrow(): ThrowClass|float|null { |
| 23440 | - return ThrowClass::sample(); /*325:throw*/ | |
| 23677 | + return ThrowClass::sample(); /*328:throw*/ | |
| 23441 | 23678 | } |
| 23442 | 23679 | |
| 23443 | 23680 | /** |
| @@ -23513,7 +23750,7 @@ class TopLevel { | ||
| 23513 | 23750 | * @return Throws|float|null |
| 23514 | 23751 | */ |
| 23515 | 23752 | public static function sampleThrows(): Throws|float|null { |
| 23516 | - return Throws::sample(); /*326:throws*/ | |
| 23753 | + return Throws::sample(); /*329:throws*/ | |
| 23517 | 23754 | } |
| 23518 | 23755 | |
| 23519 | 23756 | /** |
| @@ -23589,7 +23826,7 @@ class TopLevel { | ||
| 23589 | 23826 | * @return TimeOnly|float|null |
| 23590 | 23827 | */ |
| 23591 | 23828 | public static function sampleTimeOnly(): TimeOnly|float|null { |
| 23592 | - return TimeOnly::sample(); /*327:timeOnly*/ | |
| 23829 | + return TimeOnly::sample(); /*330:timeOnly*/ | |
| 23593 | 23830 | } |
| 23594 | 23831 | |
| 23595 | 23832 | /** |
| @@ -23665,7 +23902,7 @@ class TopLevel { | ||
| 23665 | 23902 | * @return TimeOnlyConverter|float|null |
| 23666 | 23903 | */ |
| 23667 | 23904 | public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null { |
| 23668 | - return TimeOnlyConverter::sample(); /*328:timeOnlyConverter*/ | |
| 23905 | + return TimeOnlyConverter::sample(); /*331:timeOnlyConverter*/ | |
| 23669 | 23906 | } |
| 23670 | 23907 | |
| 23671 | 23908 | /** |
| @@ -23741,7 +23978,7 @@ class TopLevel { | ||
| 23741 | 23978 | * @return TimeZone|float|null |
| 23742 | 23979 | */ |
| 23743 | 23980 | public static function sampleTimeZone(): TimeZone|float|null { |
| 23744 | - return TimeZone::sample(); /*329:timeZone*/ | |
| 23981 | + return TimeZone::sample(); /*332:timeZone*/ | |
| 23745 | 23982 | } |
| 23746 | 23983 | |
| 23747 | 23984 | /** |
| @@ -23817,7 +24054,7 @@ class TopLevel { | ||
| 23817 | 24054 | * @return ToDict|float|null |
| 23818 | 24055 | */ |
| 23819 | 24056 | public static function sampleToDict(): ToDict|float|null { |
| 23820 | - return ToDict::sample(); /*330:toDict*/ | |
| 24057 | + return ToDict::sample(); /*333:toDict*/ | |
| 23821 | 24058 | } |
| 23822 | 24059 | |
| 23823 | 24060 | /** |
| @@ -23893,7 +24130,7 @@ class TopLevel { | ||
| 23893 | 24130 | * @return ToJSON|float|null |
| 23894 | 24131 | */ |
| 23895 | 24132 | public static function sampleToJSON(): ToJSON|float|null { |
| 23896 | - return ToJSON::sample(); /*331:toJSON*/ | |
| 24133 | + return ToJSON::sample(); /*334:toJSON*/ | |
| 23897 | 24134 | } |
| 23898 | 24135 | |
| 23899 | 24136 | /** |
| @@ -23969,7 +24206,7 @@ class TopLevel { | ||
| 23969 | 24206 | * @return TopLevelClass|float|null |
| 23970 | 24207 | */ |
| 23971 | 24208 | public static function sampleTopLevel(): TopLevelClass|float|null { |
| 23972 | - return TopLevelClass::sample(); /*332:topLevel*/ | |
| 24209 | + return TopLevelClass::sample(); /*335:topLevel*/ | |
| 23973 | 24210 | } |
| 23974 | 24211 | |
| 23975 | 24212 | /** |
| @@ -24045,7 +24282,7 @@ class TopLevel { | ||
| 24045 | 24282 | * @return ToString|float|null |
| 24046 | 24283 | */ |
| 24047 | 24284 | public static function sampleToString(): ToString|float|null { |
| 24048 | - return ToString::sample(); /*333:toString*/ | |
| 24285 | + return ToString::sample(); /*336:toString*/ | |
| 24049 | 24286 | } |
| 24050 | 24287 | |
| 24051 | 24288 | /** |
| @@ -24121,7 +24358,7 @@ class TopLevel { | ||
| 24121 | 24358 | * @return Transient|float|null |
| 24122 | 24359 | */ |
| 24123 | 24360 | public static function sampleTransient(): Transient|float|null { |
| 24124 | - return Transient::sample(); /*334:transient*/ | |
| 24361 | + return Transient::sample(); /*337:transient*/ | |
| 24125 | 24362 | } |
| 24126 | 24363 | |
| 24127 | 24364 | /** |
| @@ -24197,7 +24434,7 @@ class TopLevel { | ||
| 24197 | 24434 | * @return TrueClass|float|null |
| 24198 | 24435 | */ |
| 24199 | 24436 | public static function sampleTrue(): TrueClass|float|null { |
| 24200 | - return TrueClass::sample(); /*335:true*/ | |
| 24437 | + return TrueClass::sample(); /*338:true*/ | |
| 24201 | 24438 | } |
| 24202 | 24439 | |
| 24203 | 24440 | /** |
| @@ -24273,7 +24510,7 @@ class TopLevel { | ||
| 24273 | 24510 | * @return UnionTrueTrue|float|null |
| 24274 | 24511 | */ |
| 24275 | 24512 | public static function sampleTopLevelTrue(): UnionTrueTrue|float|null { |
| 24276 | - return UnionTrueTrue::sample(); /*336:topLevelTrue*/ | |
| 24513 | + return UnionTrueTrue::sample(); /*339:topLevelTrue*/ | |
| 24277 | 24514 | } |
| 24278 | 24515 | |
| 24279 | 24516 | /** |
| @@ -24349,7 +24586,7 @@ class TopLevel { | ||
| 24349 | 24586 | * @return TryClass|float|null |
| 24350 | 24587 | */ |
| 24351 | 24588 | public static function sampleTry(): TryClass|float|null { |
| 24352 | - return TryClass::sample(); /*337:try*/ | |
| 24589 | + return TryClass::sample(); /*340:try*/ | |
| 24353 | 24590 | } |
| 24354 | 24591 | |
| 24355 | 24592 | /** |
| @@ -24425,7 +24662,7 @@ class TopLevel { | ||
| 24425 | 24662 | * @return Type|float|null |
| 24426 | 24663 | */ |
| 24427 | 24664 | public static function sampleType(): Type|float|null { |
| 24428 | - return Type::sample(); /*338:type*/ | |
| 24665 | + return Type::sample(); /*341:type*/ | |
| 24429 | 24666 | } |
| 24430 | 24667 | |
| 24431 | 24668 | /** |
| @@ -24501,7 +24738,7 @@ class TopLevel { | ||
| 24501 | 24738 | * @return TypeClass|float|null |
| 24502 | 24739 | */ |
| 24503 | 24740 | public static function sampleTopLevelType(): TypeClass|float|null { |
| 24504 | - return TypeClass::sample(); /*339:topLevelType*/ | |
| 24741 | + return TypeClass::sample(); /*342:topLevelType*/ | |
| 24505 | 24742 | } |
| 24506 | 24743 | |
| 24507 | 24744 | /** |
| @@ -24577,7 +24814,7 @@ class TopLevel { | ||
| 24577 | 24814 | * @return Typealias|float|null |
| 24578 | 24815 | */ |
| 24579 | 24816 | public static function sampleTypealias(): Typealias|float|null { |
| 24580 | - return Typealias::sample(); /*340:typealias*/ | |
| 24817 | + return Typealias::sample(); /*343:typealias*/ | |
| 24581 | 24818 | } |
| 24582 | 24819 | |
| 24583 | 24820 | /** |
| @@ -24653,7 +24890,7 @@ class TopLevel { | ||
| 24653 | 24890 | * @return Typedef|float|null |
| 24654 | 24891 | */ |
| 24655 | 24892 | public static function sampleTypedef(): Typedef|float|null { |
| 24656 | - return Typedef::sample(); /*341:typedef*/ | |
| 24893 | + return Typedef::sample(); /*344:typedef*/ | |
| 24657 | 24894 | } |
| 24658 | 24895 | |
| 24659 | 24896 | /** |
| @@ -24729,7 +24966,7 @@ class TopLevel { | ||
| 24729 | 24966 | * @return Typeid|float|null |
| 24730 | 24967 | */ |
| 24731 | 24968 | public static function sampleTypeid(): Typeid|float|null { |
| 24732 | - return Typeid::sample(); /*342:typeid*/ | |
| 24969 | + return Typeid::sample(); /*345:typeid*/ | |
| 24733 | 24970 | } |
| 24734 | 24971 | |
| 24735 | 24972 | /** |
| @@ -24805,7 +25042,7 @@ class TopLevel { | ||
| 24805 | 25042 | * @return Typename|float|null |
| 24806 | 25043 | */ |
| 24807 | 25044 | public static function sampleTypename(): Typename|float|null { |
| 24808 | - return Typename::sample(); /*343:typename*/ | |
| 25045 | + return Typename::sample(); /*346:typename*/ | |
| 24809 | 25046 | } |
| 24810 | 25047 | |
| 24811 | 25048 | /** |
| @@ -24881,7 +25118,7 @@ class TopLevel { | ||
| 24881 | 25118 | * @return Typeof|float|null |
| 24882 | 25119 | */ |
| 24883 | 25120 | public static function sampleTypeof(): Typeof|float|null { |
| 24884 | - return Typeof::sample(); /*344:typeof*/ | |
| 25121 | + return Typeof::sample(); /*347:typeof*/ | |
| 24885 | 25122 | } |
| 24886 | 25123 | |
| 24887 | 25124 | /** |
| @@ -24957,7 +25194,7 @@ class TopLevel { | ||
| 24957 | 25194 | * @return Uint|float|null |
| 24958 | 25195 | */ |
| 24959 | 25196 | public static function sampleUint(): Uint|float|null { |
| 24960 | - return Uint::sample(); /*345:uint*/ | |
| 25197 | + return Uint::sample(); /*348:uint*/ | |
| 24961 | 25198 | } |
| 24962 | 25199 | |
| 24963 | 25200 | /** |
| @@ -25033,7 +25270,7 @@ class TopLevel { | ||
| 25033 | 25270 | * @return Ulong|float|null |
| 25034 | 25271 | */ |
| 25035 | 25272 | public static function sampleUlong(): Ulong|float|null { |
| 25036 | - return Ulong::sample(); /*346:ulong*/ | |
| 25273 | + return Ulong::sample(); /*349:ulong*/ | |
| 25037 | 25274 | } |
| 25038 | 25275 | |
| 25039 | 25276 | /** |
| @@ -25109,7 +25346,7 @@ class TopLevel { | ||
| 25109 | 25346 | * @return Unchecked|float|null |
| 25110 | 25347 | */ |
| 25111 | 25348 | public static function sampleUnchecked(): Unchecked|float|null { |
| 25112 | - return Unchecked::sample(); /*347:unchecked*/ | |
| 25349 | + return Unchecked::sample(); /*350:unchecked*/ | |
| 25113 | 25350 | } |
| 25114 | 25351 | |
| 25115 | 25352 | /** |
| @@ -25185,7 +25422,7 @@ class TopLevel { | ||
| 25185 | 25422 | * @return Undefined|float|null |
| 25186 | 25423 | */ |
| 25187 | 25424 | public static function sampleUndefined(): Undefined|float|null { |
| 25188 | - return Undefined::sample(); /*348:undefined*/ | |
| 25425 | + return Undefined::sample(); /*351:undefined*/ | |
| 25189 | 25426 | } |
| 25190 | 25427 | |
| 25191 | 25428 | /** |
| @@ -25261,7 +25498,7 @@ class TopLevel { | ||
| 25261 | 25498 | * @return UnionClass|float|null |
| 25262 | 25499 | */ |
| 25263 | 25500 | public static function sampleUnion(): UnionClass|float|null { |
| 25264 | - return UnionClass::sample(); /*349:union*/ | |
| 25501 | + return UnionClass::sample(); /*352:union*/ | |
| 25265 | 25502 | } |
| 25266 | 25503 | |
| 25267 | 25504 | /** |
| @@ -25337,7 +25574,7 @@ class TopLevel { | ||
| 25337 | 25574 | * @return UnmarshalJSON|float|null |
| 25338 | 25575 | */ |
| 25339 | 25576 | public static function sampleUnmarshalJSON(): UnmarshalJSON|float|null { |
| 25340 | - return UnmarshalJSON::sample(); /*350:unmarshalJSON*/ | |
| 25577 | + return UnmarshalJSON::sample(); /*353:unmarshalJSON*/ | |
| 25341 | 25578 | } |
| 25342 | 25579 | |
| 25343 | 25580 | /** |
| @@ -25413,7 +25650,7 @@ class TopLevel { | ||
| 25413 | 25650 | * @return Unowned|float|null |
| 25414 | 25651 | */ |
| 25415 | 25652 | public static function sampleUnowned(): Unowned|float|null { |
| 25416 | - return Unowned::sample(); /*351:unowned*/ | |
| 25653 | + return Unowned::sample(); /*354:unowned*/ | |
| 25417 | 25654 | } |
| 25418 | 25655 | |
| 25419 | 25656 | /** |
| @@ -25489,7 +25726,7 @@ class TopLevel { | ||
| 25489 | 25726 | * @return Unsafe|float|null |
| 25490 | 25727 | */ |
| 25491 | 25728 | public static function sampleUnsafe(): Unsafe|float|null { |
| 25492 | - return Unsafe::sample(); /*352:unsafe*/ | |
| 25729 | + return Unsafe::sample(); /*355:unsafe*/ | |
| 25493 | 25730 | } |
| 25494 | 25731 | |
| 25495 | 25732 | /** |
| @@ -25565,7 +25802,7 @@ class TopLevel { | ||
| 25565 | 25802 | * @return Unsigned|float|null |
| 25566 | 25803 | */ |
| 25567 | 25804 | public static function sampleUnsigned(): Unsigned|float|null { |
| 25568 | - return Unsigned::sample(); /*353:unsigned*/ | |
| 25805 | + return Unsigned::sample(); /*356:unsigned*/ | |
| 25569 | 25806 | } |
| 25570 | 25807 | |
| 25571 | 25808 | /** |
| @@ -25641,7 +25878,7 @@ class TopLevel { | ||
| 25641 | 25878 | * @return UseSerializers|float|null |
| 25642 | 25879 | */ |
| 25643 | 25880 | public static function sampleUseSerializers(): UseSerializers|float|null { |
| 25644 | - return UseSerializers::sample(); /*354:useSerializers*/ | |
| 25881 | + return UseSerializers::sample(); /*357:useSerializers*/ | |
| 25645 | 25882 | } |
| 25646 | 25883 | |
| 25647 | 25884 | /** |
| @@ -25717,7 +25954,7 @@ class TopLevel { | ||
| 25717 | 25954 | * @return Ushort|float|null |
| 25718 | 25955 | */ |
| 25719 | 25956 | public static function sampleUshort(): Ushort|float|null { |
| 25720 | - return Ushort::sample(); /*355:ushort*/ | |
| 25957 | + return Ushort::sample(); /*358:ushort*/ | |
| 25721 | 25958 | } |
| 25722 | 25959 | |
| 25723 | 25960 | /** |
| @@ -25793,7 +26030,7 @@ class TopLevel { | ||
| 25793 | 26030 | * @return Using|float|null |
| 25794 | 26031 | */ |
| 25795 | 26032 | public static function sampleUsing(): Using|float|null { |
| 25796 | - return Using::sample(); /*356:using*/ | |
| 26033 | + return Using::sample(); /*359:using*/ | |
| 25797 | 26034 | } |
| 25798 | 26035 | |
| 25799 | 26036 | /** |
| @@ -25869,7 +26106,7 @@ class TopLevel { | ||
| 25869 | 26106 | * @return Utf8JSONReader|float|null |
| 25870 | 26107 | */ |
| 25871 | 26108 | public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null { |
| 25872 | - return Utf8JSONReader::sample(); /*357:utf8JSONReader*/ | |
| 26109 | + return Utf8JSONReader::sample(); /*360:utf8JSONReader*/ | |
| 25873 | 26110 | } |
| 25874 | 26111 | |
| 25875 | 26112 | /** |
| @@ -25945,7 +26182,7 @@ class TopLevel { | ||
| 25945 | 26182 | * @return Utf8JSONWriter|float|null |
| 25946 | 26183 | */ |
| 25947 | 26184 | public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null { |
| 25948 | - return Utf8JSONWriter::sample(); /*358:utf8JSONWriter*/ | |
| 26185 | + return Utf8JSONWriter::sample(); /*361:utf8JSONWriter*/ | |
| 25949 | 26186 | } |
| 25950 | 26187 | |
| 25951 | 26188 | /** |
| @@ -26021,7 +26258,7 @@ class TopLevel { | ||
| 26021 | 26258 | * @return UUID|float|null |
| 26022 | 26259 | */ |
| 26023 | 26260 | public static function sampleUUID(): UUID|float|null { |
| 26024 | - return UUID::sample(); /*359:uuid*/ | |
| 26261 | + return UUID::sample(); /*362:uuid*/ | |
| 26025 | 26262 | } |
| 26026 | 26263 | |
| 26027 | 26264 | /** |
| @@ -26097,7 +26334,7 @@ class TopLevel { | ||
| 26097 | 26334 | * @return VarClass|float|null |
| 26098 | 26335 | */ |
| 26099 | 26336 | public static function sampleVar(): VarClass|float|null { |
| 26100 | - return VarClass::sample(); /*360:var*/ | |
| 26337 | + return VarClass::sample(); /*363:var*/ | |
| 26101 | 26338 | } |
| 26102 | 26339 | |
| 26103 | 26340 | /** |
| @@ -26173,7 +26410,7 @@ class TopLevel { | ||
| 26173 | 26410 | * @return Virtual|float|null |
| 26174 | 26411 | */ |
| 26175 | 26412 | public static function sampleVirtual(): Virtual|float|null { |
| 26176 | - return Virtual::sample(); /*361:virtual*/ | |
| 26413 | + return Virtual::sample(); /*364:virtual*/ | |
| 26177 | 26414 | } |
| 26178 | 26415 | |
| 26179 | 26416 | /** |
| @@ -26249,7 +26486,7 @@ class TopLevel { | ||
| 26249 | 26486 | * @return VoidClass|float|null |
| 26250 | 26487 | */ |
| 26251 | 26488 | public static function sampleVoid(): VoidClass|float|null { |
| 26252 | - return VoidClass::sample(); /*362:void*/ | |
| 26489 | + return VoidClass::sample(); /*365:void*/ | |
| 26253 | 26490 | } |
| 26254 | 26491 | |
| 26255 | 26492 | /** |
| @@ -26325,7 +26562,7 @@ class TopLevel { | ||
| 26325 | 26562 | * @return Volatile|float|null |
| 26326 | 26563 | */ |
| 26327 | 26564 | public static function sampleVolatile(): Volatile|float|null { |
| 26328 | - return Volatile::sample(); /*363:volatile*/ | |
| 26565 | + return Volatile::sample(); /*366:volatile*/ | |
| 26329 | 26566 | } |
| 26330 | 26567 | |
| 26331 | 26568 | /** |
| @@ -26401,7 +26638,7 @@ class TopLevel { | ||
| 26401 | 26638 | * @return WcharT|float|null |
| 26402 | 26639 | */ |
| 26403 | 26640 | public static function sampleWcharT(): WcharT|float|null { |
| 26404 | - return WcharT::sample(); /*364:wcharT*/ | |
| 26641 | + return WcharT::sample(); /*367:wcharT*/ | |
| 26405 | 26642 | } |
| 26406 | 26643 | |
| 26407 | 26644 | /** |
| @@ -26477,7 +26714,7 @@ class TopLevel { | ||
| 26477 | 26714 | * @return Weak|float|null |
| 26478 | 26715 | */ |
| 26479 | 26716 | public static function sampleWeak(): Weak|float|null { |
| 26480 | - return Weak::sample(); /*365:weak*/ | |
| 26717 | + return Weak::sample(); /*368:weak*/ | |
| 26481 | 26718 | } |
| 26482 | 26719 | |
| 26483 | 26720 | /** |
| @@ -26553,7 +26790,7 @@ class TopLevel { | ||
| 26553 | 26790 | * @return Where|float|null |
| 26554 | 26791 | */ |
| 26555 | 26792 | public static function sampleWhere(): Where|float|null { |
| 26556 | - return Where::sample(); /*366:where*/ | |
| 26793 | + return Where::sample(); /*369:where*/ | |
| 26557 | 26794 | } |
| 26558 | 26795 | |
| 26559 | 26796 | /** |
| @@ -26629,7 +26866,7 @@ class TopLevel { | ||
| 26629 | 26866 | * @return WhileClass|float|null |
| 26630 | 26867 | */ |
| 26631 | 26868 | public static function sampleWhile(): WhileClass|float|null { |
| 26632 | - return WhileClass::sample(); /*367:while*/ | |
| 26869 | + return WhileClass::sample(); /*370:while*/ | |
| 26633 | 26870 | } |
| 26634 | 26871 | |
| 26635 | 26872 | /** |
| @@ -26705,7 +26942,7 @@ class TopLevel { | ||
| 26705 | 26942 | * @return WillSet|float|null |
| 26706 | 26943 | */ |
| 26707 | 26944 | public static function sampleWillSet(): WillSet|float|null { |
| 26708 | - return WillSet::sample(); /*368:willSet*/ | |
| 26945 | + return WillSet::sample(); /*371:willSet*/ | |
| 26709 | 26946 | } |
| 26710 | 26947 | |
| 26711 | 26948 | /** |
| @@ -26781,7 +27018,7 @@ class TopLevel { | ||
| 26781 | 27018 | * @return With|float|null |
| 26782 | 27019 | */ |
| 26783 | 27020 | public static function sampleWith(): With|float|null { |
| 26784 | - return With::sample(); /*369:with*/ | |
| 27021 | + return With::sample(); /*372:with*/ | |
| 26785 | 27022 | } |
| 26786 | 27023 | |
| 26787 | 27024 | /** |
| @@ -26857,7 +27094,7 @@ class TopLevel { | ||
| 26857 | 27094 | * @return XorClass|float|null |
| 26858 | 27095 | */ |
| 26859 | 27096 | public static function sampleXor(): XorClass|float|null { |
| 26860 | - return XorClass::sample(); /*370:xor*/ | |
| 27097 | + return XorClass::sample(); /*373:xor*/ | |
| 26861 | 27098 | } |
| 26862 | 27099 | |
| 26863 | 27100 | /** |
| @@ -26933,7 +27170,7 @@ class TopLevel { | ||
| 26933 | 27170 | * @return XorEq|float|null |
| 26934 | 27171 | */ |
| 26935 | 27172 | public static function sampleXorEq(): XorEq|float|null { |
| 26936 | - return XorEq::sample(); /*371:xorEq*/ | |
| 27173 | + return XorEq::sample(); /*374:xorEq*/ | |
| 26937 | 27174 | } |
| 26938 | 27175 | |
| 26939 | 27176 | /** |
| @@ -27009,7 +27246,7 @@ class TopLevel { | ||
| 27009 | 27246 | * @return Yes|float|null |
| 27010 | 27247 | */ |
| 27011 | 27248 | public static function sampleYes(): Yes|float|null { |
| 27012 | - return Yes::sample(); /*372:yes*/ | |
| 27249 | + return Yes::sample(); /*375:yes*/ | |
| 27013 | 27250 | } |
| 27014 | 27251 | |
| 27015 | 27252 | /** |
| @@ -27085,7 +27322,7 @@ class TopLevel { | ||
| 27085 | 27322 | * @return YieldClass|float|null |
| 27086 | 27323 | */ |
| 27087 | 27324 | public static function sampleYield(): YieldClass|float|null { |
| 27088 | - return YieldClass::sample(); /*373:yield*/ | |
| 27325 | + return YieldClass::sample(); /*376:yield*/ | |
| 27089 | 27326 | } |
| 27090 | 27327 | |
| 27091 | 27328 | /** |
| @@ -27272,6 +27509,7 @@ class TopLevel { | ||
| 27272 | 27509 | || TopLevel::validateLeft($this->left) |
| 27273 | 27510 | || TopLevel::validateLet($this->let) |
| 27274 | 27511 | || TopLevel::validateList($this->list) |
| 27512 | + || TopLevel::validateLocalDate($this->localDate) | |
| 27275 | 27513 | || TopLevel::validateLocale($this->locale) |
| 27276 | 27514 | || TopLevel::validateLock($this->lock) |
| 27277 | 27515 | || TopLevel::validateLong($this->long) |
| @@ -27307,6 +27545,8 @@ class TopLevel { | ||
| 27307 | 27545 | || TopLevel::validateObject($this->object) |
| 27308 | 27546 | || TopLevel::validateObjectMapper($this->objectMapper) |
| 27309 | 27547 | || TopLevel::validateOf($this->of) |
| 27548 | + || TopLevel::validateOffsetDateTime($this->offsetDateTime) | |
| 27549 | + || TopLevel::validateOffsetTime($this->offsetTime) | |
| 27310 | 27550 | || TopLevel::validateOneway($this->oneway) |
| 27311 | 27551 | || TopLevel::validateOpen($this->open) |
| 27312 | 27552 | || TopLevel::validateOperator($this->operator) |
| @@ -27623,6 +27863,7 @@ class TopLevel { | ||
| 27623 | 27863 | $out->{'left'} = $this->toLeft(); |
| 27624 | 27864 | $out->{'let'} = $this->toLet(); |
| 27625 | 27865 | $out->{'list'} = $this->toList(); |
| 27866 | + $out->{'LocalDate'} = $this->toLocalDate(); | |
| 27626 | 27867 | $out->{'Locale'} = $this->toLocale(); |
| 27627 | 27868 | $out->{'lock'} = $this->toLock(); |
| 27628 | 27869 | $out->{'long'} = $this->toLong(); |
| @@ -27658,6 +27899,8 @@ class TopLevel { | ||
| 27658 | 27899 | $out->{'object'} = $this->toObject(); |
| 27659 | 27900 | $out->{'ObjectMapper'} = $this->toObjectMapper(); |
| 27660 | 27901 | $out->{'of'} = $this->toOf(); |
| 27902 | + $out->{'OffsetDateTime'} = $this->toOffsetDateTime(); | |
| 27903 | + $out->{'OffsetTime'} = $this->toOffsetTime(); | |
| 27661 | 27904 | $out->{'oneway'} = $this->toOneway(); |
| 27662 | 27905 | $out->{'open'} = $this->toOpen(); |
| 27663 | 27906 | $out->{'operator'} = $this->toOperator(); |
| @@ -27976,6 +28219,7 @@ class TopLevel { | ||
| 27976 | 28219 | ,TopLevel::fromLeft($obj->{'left'}) |
| 27977 | 28220 | ,TopLevel::fromLet($obj->{'let'}) |
| 27978 | 28221 | ,TopLevel::fromList($obj->{'list'}) |
| 28222 | + ,TopLevel::fromLocalDate($obj->{'LocalDate'}) | |
| 27979 | 28223 | ,TopLevel::fromLocale($obj->{'Locale'}) |
| 27980 | 28224 | ,TopLevel::fromLock($obj->{'lock'}) |
| 27981 | 28225 | ,TopLevel::fromLong($obj->{'long'}) |
| @@ -28011,6 +28255,8 @@ class TopLevel { | ||
| 28011 | 28255 | ,TopLevel::fromObject($obj->{'object'}) |
| 28012 | 28256 | ,TopLevel::fromObjectMapper($obj->{'ObjectMapper'}) |
| 28013 | 28257 | ,TopLevel::fromOf($obj->{'of'}) |
| 28258 | + ,TopLevel::fromOffsetDateTime($obj->{'OffsetDateTime'}) | |
| 28259 | + ,TopLevel::fromOffsetTime($obj->{'OffsetTime'}) | |
| 28014 | 28260 | ,TopLevel::fromOneway($obj->{'oneway'}) |
| 28015 | 28261 | ,TopLevel::fromOpen($obj->{'open'}) |
| 28016 | 28262 | ,TopLevel::fromOperator($obj->{'operator'}) |
| @@ -28327,6 +28573,7 @@ class TopLevel { | ||
| 28327 | 28573 | ,TopLevel::sampleLeft() |
| 28328 | 28574 | ,TopLevel::sampleLet() |
| 28329 | 28575 | ,TopLevel::sampleList() |
| 28576 | + ,TopLevel::sampleLocalDate() | |
| 28330 | 28577 | ,TopLevel::sampleLocale() |
| 28331 | 28578 | ,TopLevel::sampleLock() |
| 28332 | 28579 | ,TopLevel::sampleLong() |
| @@ -28362,6 +28609,8 @@ class TopLevel { | ||
| 28362 | 28609 | ,TopLevel::sampleObject() |
| 28363 | 28610 | ,TopLevel::sampleObjectMapper() |
| 28364 | 28611 | ,TopLevel::sampleOf() |
| 28612 | + ,TopLevel::sampleOffsetDateTime() | |
| 28613 | + ,TopLevel::sampleOffsetTime() | |
| 28365 | 28614 | ,TopLevel::sampleOneway() |
| 28366 | 28615 | ,TopLevel::sampleOpen() |
| 28367 | 28616 | ,TopLevel::sampleOperator() |
| @@ -36280,6 +36529,51 @@ class ListClass { | ||
| 36280 | 36529 | } |
| 36281 | 36530 | } |
| 36282 | 36531 | |
| 36532 | +// This is an autogenerated file:LocalDate | |
| 36533 | + | |
| 36534 | +class LocalDate { | |
| 36535 | + | |
| 36536 | + /** | |
| 36537 | + */ | |
| 36538 | + public function __construct() { | |
| 36539 | + } | |
| 36540 | + | |
| 36541 | + /** | |
| 36542 | + * @throws Exception | |
| 36543 | + * @return bool | |
| 36544 | + */ | |
| 36545 | + public function validate(): bool { | |
| 36546 | + return true; | |
| 36547 | + } | |
| 36548 | + | |
| 36549 | + /** | |
| 36550 | + * @return stdClass | |
| 36551 | + * @throws Exception | |
| 36552 | + */ | |
| 36553 | + public function to(): stdClass { | |
| 36554 | + $out = new stdClass(); | |
| 36555 | + return $out; | |
| 36556 | + } | |
| 36557 | + | |
| 36558 | + /** | |
| 36559 | + * @param stdClass $obj | |
| 36560 | + * @return LocalDate | |
| 36561 | + * @throws Exception | |
| 36562 | + */ | |
| 36563 | + public static function from(stdClass $obj): LocalDate { | |
| 36564 | + return new LocalDate( | |
| 36565 | + ); | |
| 36566 | + } | |
| 36567 | + | |
| 36568 | + /** | |
| 36569 | + * @return LocalDate | |
| 36570 | + */ | |
| 36571 | + public static function sample(): LocalDate { | |
| 36572 | + return new LocalDate( | |
| 36573 | + ); | |
| 36574 | + } | |
| 36575 | +} | |
| 36576 | + | |
| 36283 | 36577 | // This is an autogenerated file:LocaleClass |
| 36284 | 36578 | |
| 36285 | 36579 | class LocaleClass { |
| @@ -37765,6 +38059,96 @@ class Of { | ||
| 37765 | 38059 | } |
| 37766 | 38060 | } |
| 37767 | 38061 | |
| 38062 | +// This is an autogenerated file:OffsetDateTime | |
| 38063 | + | |
| 38064 | +class OffsetDateTime { | |
| 38065 | + | |
| 38066 | + /** | |
| 38067 | + */ | |
| 38068 | + public function __construct() { | |
| 38069 | + } | |
| 38070 | + | |
| 38071 | + /** | |
| 38072 | + * @throws Exception | |
| 38073 | + * @return bool | |
| 38074 | + */ | |
| 38075 | + public function validate(): bool { | |
| 38076 | + return true; | |
| 38077 | + } | |
| 38078 | + | |
| 38079 | + /** | |
| 38080 | + * @return stdClass | |
| 38081 | + * @throws Exception | |
| 38082 | + */ | |
| 38083 | + public function to(): stdClass { | |
| 38084 | + $out = new stdClass(); | |
| 38085 | + return $out; | |
| 38086 | + } | |
| 38087 | + | |
| 38088 | + /** | |
| 38089 | + * @param stdClass $obj | |
| 38090 | + * @return OffsetDateTime | |
| 38091 | + * @throws Exception | |
| 38092 | + */ | |
| 38093 | + public static function from(stdClass $obj): OffsetDateTime { | |
| 38094 | + return new OffsetDateTime( | |
| 38095 | + ); | |
| 38096 | + } | |
| 38097 | + | |
| 38098 | + /** | |
| 38099 | + * @return OffsetDateTime | |
| 38100 | + */ | |
| 38101 | + public static function sample(): OffsetDateTime { | |
| 38102 | + return new OffsetDateTime( | |
| 38103 | + ); | |
| 38104 | + } | |
| 38105 | +} | |
| 38106 | + | |
| 38107 | +// This is an autogenerated file:OffsetTime | |
| 38108 | + | |
| 38109 | +class OffsetTime { | |
| 38110 | + | |
| 38111 | + /** | |
| 38112 | + */ | |
| 38113 | + public function __construct() { | |
| 38114 | + } | |
| 38115 | + | |
| 38116 | + /** | |
| 38117 | + * @throws Exception | |
| 38118 | + * @return bool | |
| 38119 | + */ | |
| 38120 | + public function validate(): bool { | |
| 38121 | + return true; | |
| 38122 | + } | |
| 38123 | + | |
| 38124 | + /** | |
| 38125 | + * @return stdClass | |
| 38126 | + * @throws Exception | |
| 38127 | + */ | |
| 38128 | + public function to(): stdClass { | |
| 38129 | + $out = new stdClass(); | |
| 38130 | + return $out; | |
| 38131 | + } | |
| 38132 | + | |
| 38133 | + /** | |
| 38134 | + * @param stdClass $obj | |
| 38135 | + * @return OffsetTime | |
| 38136 | + * @throws Exception | |
| 38137 | + */ | |
| 38138 | + public static function from(stdClass $obj): OffsetTime { | |
| 38139 | + return new OffsetTime( | |
| 38140 | + ); | |
| 38141 | + } | |
| 38142 | + | |
| 38143 | + /** | |
| 38144 | + * @return OffsetTime | |
| 38145 | + */ | |
| 38146 | + public static function sample(): OffsetTime { | |
| 38147 | + return new OffsetTime( | |
| 38148 | + ); | |
| 38149 | + } | |
| 38150 | +} | |
| 38151 | + | |
| 37768 | 38152 | // This is an autogenerated file:Oneway |
| 37769 | 38153 | |
| 37770 | 38154 | class Oneway { |
Mschema-pikedefault / TopLevel.pmod+78 −0
| @@ -192,6 +192,7 @@ class TopLevel { | ||
| 192 | 192 | UnionLeft left; // json: "left" |
| 193 | 193 | UnionLet let; // json: "let" |
| 194 | 194 | UnionList list; // json: "list" |
| 195 | + UnionLocalDate local_date; // json: "LocalDate" | |
| 195 | 196 | UnionLocale locale; // json: "Locale" |
| 196 | 197 | UnionLock lock; // json: "lock" |
| 197 | 198 | UnionLong long; // json: "long" |
| @@ -227,6 +228,8 @@ class TopLevel { | ||
| 227 | 228 | UnionObject top_level_object; // json: "object" |
| 228 | 229 | UnionObjectMapper object_mapper; // json: "ObjectMapper" |
| 229 | 230 | UnionOf of; // json: "of" |
| 231 | + UnionOffsetDateTime offset_date_time; // json: "OffsetDateTime" | |
| 232 | + UnionOffsetTime offset_time; // json: "OffsetTime" | |
| 230 | 233 | UnionOneway oneway; // json: "oneway" |
| 231 | 234 | UnionOpen open; // json: "open" |
| 232 | 235 | UnionOperator operator; // json: "operator" |
| @@ -538,6 +541,7 @@ class TopLevel { | ||
| 538 | 541 | "left" : left, |
| 539 | 542 | "let" : let, |
| 540 | 543 | "list" : list, |
| 544 | + "LocalDate" : local_date, | |
| 541 | 545 | "Locale" : locale, |
| 542 | 546 | "lock" : lock, |
| 543 | 547 | "long" : long, |
| @@ -573,6 +577,8 @@ class TopLevel { | ||
| 573 | 577 | "object" : top_level_object, |
| 574 | 578 | "ObjectMapper" : object_mapper, |
| 575 | 579 | "of" : of, |
| 580 | + "OffsetDateTime" : offset_date_time, | |
| 581 | + "OffsetTime" : offset_time, | |
| 576 | 582 | "oneway" : oneway, |
| 577 | 583 | "open" : open, |
| 578 | 584 | "operator" : operator, |
| @@ -1068,6 +1074,8 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 1068 | 1074 | retval.let = json["let"]; |
| 1069 | 1075 | if (arrayp(json["list"])) error("Unexpected array"); |
| 1070 | 1076 | retval.list = json["list"]; |
| 1077 | + if (arrayp(json["LocalDate"])) error("Unexpected array"); | |
| 1078 | + retval.local_date = json["LocalDate"]; | |
| 1071 | 1079 | if (arrayp(json["Locale"])) error("Unexpected array"); |
| 1072 | 1080 | retval.locale = json["Locale"]; |
| 1073 | 1081 | if (arrayp(json["lock"])) error("Unexpected array"); |
| @@ -1138,6 +1146,10 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 1138 | 1146 | retval.object_mapper = json["ObjectMapper"]; |
| 1139 | 1147 | if (arrayp(json["of"])) error("Unexpected array"); |
| 1140 | 1148 | retval.of = json["of"]; |
| 1149 | + if (arrayp(json["OffsetDateTime"])) error("Unexpected array"); | |
| 1150 | + retval.offset_date_time = json["OffsetDateTime"]; | |
| 1151 | + if (arrayp(json["OffsetTime"])) error("Unexpected array"); | |
| 1152 | + retval.offset_time = json["OffsetTime"]; | |
| 1141 | 1153 | if (arrayp(json["oneway"])) error("Unexpected array"); |
| 1142 | 1154 | retval.oneway = json["oneway"]; |
| 1143 | 1155 | if (arrayp(json["open"])) error("Unexpected array"); |
| @@ -4678,6 +4690,28 @@ List List_from_JSON(mixed json) { | ||
| 4678 | 4690 | return retval; |
| 4679 | 4691 | } |
| 4680 | 4692 | |
| 4693 | +typedef float|LocalDate UnionLocalDate; | |
| 4694 | + | |
| 4695 | +UnionLocalDate UnionLocalDate_from_JSON(mixed json) { | |
| 4696 | + return json; | |
| 4697 | +} | |
| 4698 | + | |
| 4699 | +class LocalDate { | |
| 4700 | + | |
| 4701 | + string encode_json() { | |
| 4702 | + mapping(string:mixed) json = ([ | |
| 4703 | + ]); | |
| 4704 | + | |
| 4705 | + return Standards.JSON.encode(json); | |
| 4706 | + } | |
| 4707 | +} | |
| 4708 | + | |
| 4709 | +LocalDate LocalDate_from_JSON(mixed json) { | |
| 4710 | + LocalDate retval = LocalDate(); | |
| 4711 | + | |
| 4712 | + return retval; | |
| 4713 | +} | |
| 4714 | + | |
| 4681 | 4715 | typedef float|Locale UnionLocale; |
| 4682 | 4716 | |
| 4683 | 4717 | UnionLocale UnionLocale_from_JSON(mixed json) { |
| @@ -5382,6 +5416,50 @@ Of Of_from_JSON(mixed json) { | ||
| 5382 | 5416 | return retval; |
| 5383 | 5417 | } |
| 5384 | 5418 | |
| 5419 | +typedef float|OffsetDateTime UnionOffsetDateTime; | |
| 5420 | + | |
| 5421 | +UnionOffsetDateTime UnionOffsetDateTime_from_JSON(mixed json) { | |
| 5422 | + return json; | |
| 5423 | +} | |
| 5424 | + | |
| 5425 | +class OffsetDateTime { | |
| 5426 | + | |
| 5427 | + string encode_json() { | |
| 5428 | + mapping(string:mixed) json = ([ | |
| 5429 | + ]); | |
| 5430 | + | |
| 5431 | + return Standards.JSON.encode(json); | |
| 5432 | + } | |
| 5433 | +} | |
| 5434 | + | |
| 5435 | +OffsetDateTime OffsetDateTime_from_JSON(mixed json) { | |
| 5436 | + OffsetDateTime retval = OffsetDateTime(); | |
| 5437 | + | |
| 5438 | + return retval; | |
| 5439 | +} | |
| 5440 | + | |
| 5441 | +typedef float|OffsetTime UnionOffsetTime; | |
| 5442 | + | |
| 5443 | +UnionOffsetTime UnionOffsetTime_from_JSON(mixed json) { | |
| 5444 | + return json; | |
| 5445 | +} | |
| 5446 | + | |
| 5447 | +class OffsetTime { | |
| 5448 | + | |
| 5449 | + string encode_json() { | |
| 5450 | + mapping(string:mixed) json = ([ | |
| 5451 | + ]); | |
| 5452 | + | |
| 5453 | + return Standards.JSON.encode(json); | |
| 5454 | + } | |
| 5455 | +} | |
| 5456 | + | |
| 5457 | +OffsetTime OffsetTime_from_JSON(mixed json) { | |
| 5458 | + OffsetTime retval = OffsetTime(); | |
| 5459 | + | |
| 5460 | + return retval; | |
| 5461 | +} | |
| 5462 | + | |
| 5385 | 5463 | typedef float|Oneway UnionOneway; |
| 5386 | 5464 | |
| 5387 | 5465 | UnionOneway UnionOneway_from_JSON(mixed json) { |
Mschema-pythondefault / quicktype.py+55 −1
| @@ -2092,6 +2092,20 @@ class ListClass: | ||
| 2092 | 2092 | return result |
| 2093 | 2093 | |
| 2094 | 2094 | |
| 2095 | +@dataclass | |
| 2096 | +class LocalDate: | |
| 2097 | + pass | |
| 2098 | + | |
| 2099 | + @staticmethod | |
| 2100 | + def from_dict(obj: Any) -> 'LocalDate': | |
| 2101 | + assert isinstance(obj, dict) | |
| 2102 | + return LocalDate() | |
| 2103 | + | |
| 2104 | + def to_dict(self) -> dict: | |
| 2105 | + result: dict = {} | |
| 2106 | + return result | |
| 2107 | + | |
| 2108 | + | |
| 2095 | 2109 | @dataclass |
| 2096 | 2110 | class Locale: |
| 2097 | 2111 | pass |
| @@ -2526,6 +2540,34 @@ class Of: | ||
| 2526 | 2540 | return result |
| 2527 | 2541 | |
| 2528 | 2542 | |
| 2543 | +@dataclass | |
| 2544 | +class OffsetDateTime: | |
| 2545 | + pass | |
| 2546 | + | |
| 2547 | + @staticmethod | |
| 2548 | + def from_dict(obj: Any) -> 'OffsetDateTime': | |
| 2549 | + assert isinstance(obj, dict) | |
| 2550 | + return OffsetDateTime() | |
| 2551 | + | |
| 2552 | + def to_dict(self) -> dict: | |
| 2553 | + result: dict = {} | |
| 2554 | + return result | |
| 2555 | + | |
| 2556 | + | |
| 2557 | +@dataclass | |
| 2558 | +class OffsetTime: | |
| 2559 | + pass | |
| 2560 | + | |
| 2561 | + @staticmethod | |
| 2562 | + def from_dict(obj: Any) -> 'OffsetTime': | |
| 2563 | + assert isinstance(obj, dict) | |
| 2564 | + return OffsetTime() | |
| 2565 | + | |
| 2566 | + def to_dict(self) -> dict: | |
| 2567 | + result: dict = {} | |
| 2568 | + return result | |
| 2569 | + | |
| 2570 | + | |
| 2529 | 2571 | @dataclass |
| 2530 | 2572 | class Oneway: |
| 2531 | 2573 | pass |
| @@ -5003,6 +5045,7 @@ class TopLevel: | ||
| 5003 | 5045 | left: float | Left | None = None |
| 5004 | 5046 | let: float | Let | None = None |
| 5005 | 5047 | list: float | ListClass | None = None |
| 5048 | + local_date: float | LocalDate | None = None | |
| 5006 | 5049 | locale: float | Locale | None = None |
| 5007 | 5050 | lock: float | Lock | None = None |
| 5008 | 5051 | long: float | Long | None = None |
| @@ -5038,6 +5081,8 @@ class TopLevel: | ||
| 5038 | 5081 | object: float | Object | None = None |
| 5039 | 5082 | object_mapper: float | ObjectMapper | None = None |
| 5040 | 5083 | of: float | Of | None = None |
| 5084 | + offset_date_time: float | OffsetDateTime | None = None | |
| 5085 | + offset_time: float | OffsetTime | None = None | |
| 5041 | 5086 | oneway: float | Oneway | None = None |
| 5042 | 5087 | open: float | Open | None = None |
| 5043 | 5088 | operator: float | Operator | None = None |
| @@ -5350,6 +5395,7 @@ class TopLevel: | ||
| 5350 | 5395 | left = from_union([from_float, Left.from_dict, from_none], obj.get("left")) |
| 5351 | 5396 | let = from_union([from_float, Let.from_dict, from_none], obj.get("let")) |
| 5352 | 5397 | list = from_union([from_float, ListClass.from_dict, from_none], obj.get("list")) |
| 5398 | + local_date = from_union([from_float, LocalDate.from_dict, from_none], obj.get("LocalDate")) | |
| 5353 | 5399 | locale = from_union([from_float, Locale.from_dict, from_none], obj.get("Locale")) |
| 5354 | 5400 | lock = from_union([from_float, Lock.from_dict, from_none], obj.get("lock")) |
| 5355 | 5401 | long = from_union([from_float, Long.from_dict, from_none], obj.get("long")) |
| @@ -5385,6 +5431,8 @@ class TopLevel: | ||
| 5385 | 5431 | object = from_union([from_float, Object.from_dict, from_none], obj.get("object")) |
| 5386 | 5432 | object_mapper = from_union([from_float, ObjectMapper.from_dict, from_none], obj.get("ObjectMapper")) |
| 5387 | 5433 | of = from_union([from_float, Of.from_dict, from_none], obj.get("of")) |
| 5434 | + offset_date_time = from_union([from_float, OffsetDateTime.from_dict, from_none], obj.get("OffsetDateTime")) | |
| 5435 | + offset_time = from_union([from_float, OffsetTime.from_dict, from_none], obj.get("OffsetTime")) | |
| 5388 | 5436 | oneway = from_union([from_float, Oneway.from_dict, from_none], obj.get("oneway")) |
| 5389 | 5437 | open = from_union([from_float, Open.from_dict, from_none], obj.get("open")) |
| 5390 | 5438 | operator = from_union([from_float, Operator.from_dict, from_none], obj.get("operator")) |
| @@ -5514,7 +5562,7 @@ class TopLevel: | ||
| 5514 | 5562 | xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq")) |
| 5515 | 5563 | yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES")) |
| 5516 | 5564 | top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield")) |
| 5517 | - return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, top_level_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, top_level_from_dict, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, k_serializer, top_level_lambda, lazy, left, let, list, locale, lock, long, map, map_entry, marshal_json, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, nullptr, number, object, object_mapper, of, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, primitive_kind, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serial_descriptor, serializable, serialize, serializer_provider, serial_name, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, top_level_to_dict, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unmarshal_json, unowned, unsafe, unsigned, use_serializers, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield) | |
| 5565 | + return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, top_level_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, top_level_from_dict, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, k_serializer, top_level_lambda, lazy, left, let, list, local_date, locale, lock, long, map, map_entry, marshal_json, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, nullptr, number, object, object_mapper, of, offset_date_time, offset_time, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, primitive_kind, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serial_descriptor, serializable, serialize, serializer_provider, serial_name, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, top_level_to_dict, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unmarshal_json, unowned, unsafe, unsigned, use_serializers, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield) | |
| 5518 | 5566 | |
| 5519 | 5567 | def to_dict(self) -> dict: |
| 5520 | 5568 | result: dict = {} |
| @@ -5876,6 +5924,8 @@ class TopLevel: | ||
| 5876 | 5924 | result["let"] = from_union([to_float, lambda x: to_class(Let, x), from_none], self.let) |
| 5877 | 5925 | if self.list is not None: |
| 5878 | 5926 | result["list"] = from_union([to_float, lambda x: to_class(ListClass, x), from_none], self.list) |
| 5927 | + if self.local_date is not None: | |
| 5928 | + result["LocalDate"] = from_union([to_float, lambda x: to_class(LocalDate, x), from_none], self.local_date) | |
| 5879 | 5929 | if self.locale is not None: |
| 5880 | 5930 | result["Locale"] = from_union([to_float, lambda x: to_class(Locale, x), from_none], self.locale) |
| 5881 | 5931 | if self.lock is not None: |
| @@ -5946,6 +5996,10 @@ class TopLevel: | ||
| 5946 | 5996 | result["ObjectMapper"] = from_union([to_float, lambda x: to_class(ObjectMapper, x), from_none], self.object_mapper) |
| 5947 | 5997 | if self.of is not None: |
| 5948 | 5998 | result["of"] = from_union([to_float, lambda x: to_class(Of, x), from_none], self.of) |
| 5999 | + if self.offset_date_time is not None: | |
| 6000 | + result["OffsetDateTime"] = from_union([to_float, lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time) | |
| 6001 | + if self.offset_time is not None: | |
| 6002 | + result["OffsetTime"] = from_union([to_float, lambda x: to_class(OffsetTime, x), from_none], self.offset_time) | |
| 5949 | 6003 | if self.oneway is not None: |
| 5950 | 6004 | result["oneway"] = from_union([to_float, lambda x: to_class(Oneway, x), from_none], self.oneway) |
| 5951 | 6005 | if self.open is not None: |
Mschema-ruby-syntaxdefault / TopLevel.rb+180 −0
| @@ -9082,6 +9082,63 @@ class UnionList < Dry::Struct | ||
| 9082 | 9082 | end |
| 9083 | 9083 | end |
| 9084 | 9084 | |
| 9085 | +class LocalDate < Dry::Struct | |
| 9086 | + | |
| 9087 | + def self.from_dynamic!(d) | |
| 9088 | + d = Types::Hash[d] | |
| 9089 | + new( | |
| 9090 | + ) | |
| 9091 | + end | |
| 9092 | + | |
| 9093 | + def self.from_json!(json) | |
| 9094 | + from_dynamic!(JSON.parse(json)) | |
| 9095 | + end | |
| 9096 | + | |
| 9097 | + def to_dynamic | |
| 9098 | + { | |
| 9099 | + } | |
| 9100 | + end | |
| 9101 | + | |
| 9102 | + def to_json(options = nil) | |
| 9103 | + JSON.generate(to_dynamic, options) | |
| 9104 | + end | |
| 9105 | +end | |
| 9106 | + | |
| 9107 | +class UnionLocalDate < Dry::Struct | |
| 9108 | + attribute :double, Types::Double.optional | |
| 9109 | + attribute :local_date, LocalDate.optional | |
| 9110 | + | |
| 9111 | + def self.from_dynamic!(d) | |
| 9112 | + if schema.key(:double).type.right.valid? d | |
| 9113 | + return new(double: d, local_date: nil) | |
| 9114 | + end | |
| 9115 | + begin | |
| 9116 | + value = LocalDate.from_dynamic!(d) | |
| 9117 | + if schema.key(:local_date).type.right.valid? value | |
| 9118 | + return new(local_date: value, double: nil) | |
| 9119 | + end | |
| 9120 | + rescue | |
| 9121 | + end | |
| 9122 | + raise "Invalid union" | |
| 9123 | + end | |
| 9124 | + | |
| 9125 | + def self.from_json!(json) | |
| 9126 | + from_dynamic!(JSON.parse(json)) | |
| 9127 | + end | |
| 9128 | + | |
| 9129 | + def to_dynamic | |
| 9130 | + if double != nil | |
| 9131 | + double | |
| 9132 | + elsif local_date != nil | |
| 9133 | + local_date.to_dynamic | |
| 9134 | + end | |
| 9135 | + end | |
| 9136 | + | |
| 9137 | + def to_json(options = nil) | |
| 9138 | + JSON.generate(to_dynamic, options) | |
| 9139 | + end | |
| 9140 | +end | |
| 9141 | + | |
| 9085 | 9142 | class Locale < Dry::Struct |
| 9086 | 9143 | |
| 9087 | 9144 | def self.from_dynamic!(d) |
| @@ -10735,6 +10792,120 @@ class UnionOf < Dry::Struct | ||
| 10735 | 10792 | end |
| 10736 | 10793 | end |
| 10737 | 10794 | |
| 10795 | +class OffsetDateTime < Dry::Struct | |
| 10796 | + | |
| 10797 | + def self.from_dynamic!(d) | |
| 10798 | + d = Types::Hash[d] | |
| 10799 | + new( | |
| 10800 | + ) | |
| 10801 | + end | |
| 10802 | + | |
| 10803 | + def self.from_json!(json) | |
| 10804 | + from_dynamic!(JSON.parse(json)) | |
| 10805 | + end | |
| 10806 | + | |
| 10807 | + def to_dynamic | |
| 10808 | + { | |
| 10809 | + } | |
| 10810 | + end | |
| 10811 | + | |
| 10812 | + def to_json(options = nil) | |
| 10813 | + JSON.generate(to_dynamic, options) | |
| 10814 | + end | |
| 10815 | +end | |
| 10816 | + | |
| 10817 | +class UnionOffsetDateTime < Dry::Struct | |
| 10818 | + attribute :double, Types::Double.optional | |
| 10819 | + attribute :offset_date_time, OffsetDateTime.optional | |
| 10820 | + | |
| 10821 | + def self.from_dynamic!(d) | |
| 10822 | + if schema.key(:double).type.right.valid? d | |
| 10823 | + return new(double: d, offset_date_time: nil) | |
| 10824 | + end | |
| 10825 | + begin | |
| 10826 | + value = OffsetDateTime.from_dynamic!(d) | |
| 10827 | + if schema.key(:offset_date_time).type.right.valid? value | |
| 10828 | + return new(offset_date_time: value, double: nil) | |
| 10829 | + end | |
| 10830 | + rescue | |
| 10831 | + end | |
| 10832 | + raise "Invalid union" | |
| 10833 | + end | |
| 10834 | + | |
| 10835 | + def self.from_json!(json) | |
| 10836 | + from_dynamic!(JSON.parse(json)) | |
| 10837 | + end | |
| 10838 | + | |
| 10839 | + def to_dynamic | |
| 10840 | + if double != nil | |
| 10841 | + double | |
| 10842 | + elsif offset_date_time != nil | |
| 10843 | + offset_date_time.to_dynamic | |
| 10844 | + end | |
| 10845 | + end | |
| 10846 | + | |
| 10847 | + def to_json(options = nil) | |
| 10848 | + JSON.generate(to_dynamic, options) | |
| 10849 | + end | |
| 10850 | +end | |
| 10851 | + | |
| 10852 | +class OffsetTime < Dry::Struct | |
| 10853 | + | |
| 10854 | + def self.from_dynamic!(d) | |
| 10855 | + d = Types::Hash[d] | |
| 10856 | + new( | |
| 10857 | + ) | |
| 10858 | + end | |
| 10859 | + | |
| 10860 | + def self.from_json!(json) | |
| 10861 | + from_dynamic!(JSON.parse(json)) | |
| 10862 | + end | |
| 10863 | + | |
| 10864 | + def to_dynamic | |
| 10865 | + { | |
| 10866 | + } | |
| 10867 | + end | |
| 10868 | + | |
| 10869 | + def to_json(options = nil) | |
| 10870 | + JSON.generate(to_dynamic, options) | |
| 10871 | + end | |
| 10872 | +end | |
| 10873 | + | |
| 10874 | +class UnionOffsetTime < Dry::Struct | |
| 10875 | + attribute :double, Types::Double.optional | |
| 10876 | + attribute :offset_time, OffsetTime.optional | |
| 10877 | + | |
| 10878 | + def self.from_dynamic!(d) | |
| 10879 | + if schema.key(:double).type.right.valid? d | |
| 10880 | + return new(double: d, offset_time: nil) | |
| 10881 | + end | |
| 10882 | + begin | |
| 10883 | + value = OffsetTime.from_dynamic!(d) | |
| 10884 | + if schema.key(:offset_time).type.right.valid? value | |
| 10885 | + return new(offset_time: value, double: nil) | |
| 10886 | + end | |
| 10887 | + rescue | |
| 10888 | + end | |
| 10889 | + raise "Invalid union" | |
| 10890 | + end | |
| 10891 | + | |
| 10892 | + def self.from_json!(json) | |
| 10893 | + from_dynamic!(JSON.parse(json)) | |
| 10894 | + end | |
| 10895 | + | |
| 10896 | + def to_dynamic | |
| 10897 | + if double != nil | |
| 10898 | + double | |
| 10899 | + elsif offset_time != nil | |
| 10900 | + offset_time.to_dynamic | |
| 10901 | + end | |
| 10902 | + end | |
| 10903 | + | |
| 10904 | + def to_json(options = nil) | |
| 10905 | + JSON.generate(to_dynamic, options) | |
| 10906 | + end | |
| 10907 | +end | |
| 10908 | + | |
| 10738 | 10909 | class Oneway < Dry::Struct |
| 10739 | 10910 | |
| 10740 | 10911 | def self.from_dynamic!(d) |
| @@ -19693,6 +19864,7 @@ class TopLevel < Dry::Struct | ||
| 19693 | 19864 | attribute :left, Types.Instance(UnionLeft).optional |
| 19694 | 19865 | attribute :let, Types.Instance(UnionLet).optional |
| 19695 | 19866 | attribute :list, Types.Instance(UnionList).optional |
| 19867 | + attribute :local_date, Types.Instance(UnionLocalDate).optional | |
| 19696 | 19868 | attribute :locale, Types.Instance(UnionLocale).optional |
| 19697 | 19869 | attribute :lock, Types.Instance(UnionLock).optional |
| 19698 | 19870 | attribute :long, Types.Instance(UnionLong).optional |
| @@ -19728,6 +19900,8 @@ class TopLevel < Dry::Struct | ||
| 19728 | 19900 | attribute :object, Types.Instance(UnionObject).optional |
| 19729 | 19901 | attribute :object_mapper, Types.Instance(UnionObjectMapper).optional |
| 19730 | 19902 | attribute :of, Types.Instance(UnionOf).optional |
| 19903 | + attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional | |
| 19904 | + attribute :offset_time, Types.Instance(UnionOffsetTime).optional | |
| 19731 | 19905 | attribute :oneway, Types.Instance(UnionOneway).optional |
| 19732 | 19906 | attribute :top_level_open, Types.Instance(UnionOpen).optional |
| 19733 | 19907 | attribute :operator, Types.Instance(UnionOperator).optional |
| @@ -20040,6 +20214,7 @@ class TopLevel < Dry::Struct | ||
| 20040 | 20214 | left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil, |
| 20041 | 20215 | let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil, |
| 20042 | 20216 | list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil, |
| 20217 | + local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil, | |
| 20043 | 20218 | locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil, |
| 20044 | 20219 | lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil, |
| 20045 | 20220 | long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil, |
| @@ -20075,6 +20250,8 @@ class TopLevel < Dry::Struct | ||
| 20075 | 20250 | object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil, |
| 20076 | 20251 | object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil, |
| 20077 | 20252 | of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil, |
| 20253 | + offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil, | |
| 20254 | + offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil, | |
| 20078 | 20255 | oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil, |
| 20079 | 20256 | top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil, |
| 20080 | 20257 | operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil, |
| @@ -20392,6 +20569,7 @@ class TopLevel < Dry::Struct | ||
| 20392 | 20569 | "left" => left&.to_dynamic, |
| 20393 | 20570 | "let" => let&.to_dynamic, |
| 20394 | 20571 | "list" => list&.to_dynamic, |
| 20572 | + "LocalDate" => local_date&.to_dynamic, | |
| 20395 | 20573 | "Locale" => locale&.to_dynamic, |
| 20396 | 20574 | "lock" => lock&.to_dynamic, |
| 20397 | 20575 | "long" => long&.to_dynamic, |
| @@ -20427,6 +20605,8 @@ class TopLevel < Dry::Struct | ||
| 20427 | 20605 | "object" => object&.to_dynamic, |
| 20428 | 20606 | "ObjectMapper" => object_mapper&.to_dynamic, |
| 20429 | 20607 | "of" => of&.to_dynamic, |
| 20608 | + "OffsetDateTime" => offset_date_time&.to_dynamic, | |
| 20609 | + "OffsetTime" => offset_time&.to_dynamic, | |
| 20430 | 20610 | "oneway" => oneway&.to_dynamic, |
| 20431 | 20611 | "open" => top_level_open&.to_dynamic, |
| 20432 | 20612 | "operator" => operator&.to_dynamic, |
Mschema-rubydefault / TopLevel.rb+180 −0
| @@ -9082,6 +9082,63 @@ class UnionList < Dry::Struct | ||
| 9082 | 9082 | end |
| 9083 | 9083 | end |
| 9084 | 9084 | |
| 9085 | +class LocalDate < Dry::Struct | |
| 9086 | + | |
| 9087 | + def self.from_dynamic!(d) | |
| 9088 | + d = Types::Hash[d] | |
| 9089 | + new( | |
| 9090 | + ) | |
| 9091 | + end | |
| 9092 | + | |
| 9093 | + def self.from_json!(json) | |
| 9094 | + from_dynamic!(JSON.parse(json)) | |
| 9095 | + end | |
| 9096 | + | |
| 9097 | + def to_dynamic | |
| 9098 | + { | |
| 9099 | + } | |
| 9100 | + end | |
| 9101 | + | |
| 9102 | + def to_json(options = nil) | |
| 9103 | + JSON.generate(to_dynamic, options) | |
| 9104 | + end | |
| 9105 | +end | |
| 9106 | + | |
| 9107 | +class UnionLocalDate < Dry::Struct | |
| 9108 | + attribute :double, Types::Double.optional | |
| 9109 | + attribute :local_date, LocalDate.optional | |
| 9110 | + | |
| 9111 | + def self.from_dynamic!(d) | |
| 9112 | + if schema.key(:double).type.right.valid? d | |
| 9113 | + return new(double: d, local_date: nil) | |
| 9114 | + end | |
| 9115 | + begin | |
| 9116 | + value = LocalDate.from_dynamic!(d) | |
| 9117 | + if schema.key(:local_date).type.right.valid? value | |
| 9118 | + return new(local_date: value, double: nil) | |
| 9119 | + end | |
| 9120 | + rescue | |
| 9121 | + end | |
| 9122 | + raise "Invalid union" | |
| 9123 | + end | |
| 9124 | + | |
| 9125 | + def self.from_json!(json) | |
| 9126 | + from_dynamic!(JSON.parse(json)) | |
| 9127 | + end | |
| 9128 | + | |
| 9129 | + def to_dynamic | |
| 9130 | + if double != nil | |
| 9131 | + double | |
| 9132 | + elsif local_date != nil | |
| 9133 | + local_date.to_dynamic | |
| 9134 | + end | |
| 9135 | + end | |
| 9136 | + | |
| 9137 | + def to_json(options = nil) | |
| 9138 | + JSON.generate(to_dynamic, options) | |
| 9139 | + end | |
| 9140 | +end | |
| 9141 | + | |
| 9085 | 9142 | class Locale < Dry::Struct |
| 9086 | 9143 | |
| 9087 | 9144 | def self.from_dynamic!(d) |
| @@ -10735,6 +10792,120 @@ class UnionOf < Dry::Struct | ||
| 10735 | 10792 | end |
| 10736 | 10793 | end |
| 10737 | 10794 | |
| 10795 | +class OffsetDateTime < Dry::Struct | |
| 10796 | + | |
| 10797 | + def self.from_dynamic!(d) | |
| 10798 | + d = Types::Hash[d] | |
| 10799 | + new( | |
| 10800 | + ) | |
| 10801 | + end | |
| 10802 | + | |
| 10803 | + def self.from_json!(json) | |
| 10804 | + from_dynamic!(JSON.parse(json)) | |
| 10805 | + end | |
| 10806 | + | |
| 10807 | + def to_dynamic | |
| 10808 | + { | |
| 10809 | + } | |
| 10810 | + end | |
| 10811 | + | |
| 10812 | + def to_json(options = nil) | |
| 10813 | + JSON.generate(to_dynamic, options) | |
| 10814 | + end | |
| 10815 | +end | |
| 10816 | + | |
| 10817 | +class UnionOffsetDateTime < Dry::Struct | |
| 10818 | + attribute :double, Types::Double.optional | |
| 10819 | + attribute :offset_date_time, OffsetDateTime.optional | |
| 10820 | + | |
| 10821 | + def self.from_dynamic!(d) | |
| 10822 | + if schema.key(:double).type.right.valid? d | |
| 10823 | + return new(double: d, offset_date_time: nil) | |
| 10824 | + end | |
| 10825 | + begin | |
| 10826 | + value = OffsetDateTime.from_dynamic!(d) | |
| 10827 | + if schema.key(:offset_date_time).type.right.valid? value | |
| 10828 | + return new(offset_date_time: value, double: nil) | |
| 10829 | + end | |
| 10830 | + rescue | |
| 10831 | + end | |
| 10832 | + raise "Invalid union" | |
| 10833 | + end | |
| 10834 | + | |
| 10835 | + def self.from_json!(json) | |
| 10836 | + from_dynamic!(JSON.parse(json)) | |
| 10837 | + end | |
| 10838 | + | |
| 10839 | + def to_dynamic | |
| 10840 | + if double != nil | |
| 10841 | + double | |
| 10842 | + elsif offset_date_time != nil | |
| 10843 | + offset_date_time.to_dynamic | |
| 10844 | + end | |
| 10845 | + end | |
| 10846 | + | |
| 10847 | + def to_json(options = nil) | |
| 10848 | + JSON.generate(to_dynamic, options) | |
| 10849 | + end | |
| 10850 | +end | |
| 10851 | + | |
| 10852 | +class OffsetTime < Dry::Struct | |
| 10853 | + | |
| 10854 | + def self.from_dynamic!(d) | |
| 10855 | + d = Types::Hash[d] | |
| 10856 | + new( | |
| 10857 | + ) | |
| 10858 | + end | |
| 10859 | + | |
| 10860 | + def self.from_json!(json) | |
| 10861 | + from_dynamic!(JSON.parse(json)) | |
| 10862 | + end | |
| 10863 | + | |
| 10864 | + def to_dynamic | |
| 10865 | + { | |
| 10866 | + } | |
| 10867 | + end | |
| 10868 | + | |
| 10869 | + def to_json(options = nil) | |
| 10870 | + JSON.generate(to_dynamic, options) | |
| 10871 | + end | |
| 10872 | +end | |
| 10873 | + | |
| 10874 | +class UnionOffsetTime < Dry::Struct | |
| 10875 | + attribute :double, Types::Double.optional | |
| 10876 | + attribute :offset_time, OffsetTime.optional | |
| 10877 | + | |
| 10878 | + def self.from_dynamic!(d) | |
| 10879 | + if schema.key(:double).type.right.valid? d | |
| 10880 | + return new(double: d, offset_time: nil) | |
| 10881 | + end | |
| 10882 | + begin | |
| 10883 | + value = OffsetTime.from_dynamic!(d) | |
| 10884 | + if schema.key(:offset_time).type.right.valid? value | |
| 10885 | + return new(offset_time: value, double: nil) | |
| 10886 | + end | |
| 10887 | + rescue | |
| 10888 | + end | |
| 10889 | + raise "Invalid union" | |
| 10890 | + end | |
| 10891 | + | |
| 10892 | + def self.from_json!(json) | |
| 10893 | + from_dynamic!(JSON.parse(json)) | |
| 10894 | + end | |
| 10895 | + | |
| 10896 | + def to_dynamic | |
| 10897 | + if double != nil | |
| 10898 | + double | |
| 10899 | + elsif offset_time != nil | |
| 10900 | + offset_time.to_dynamic | |
| 10901 | + end | |
| 10902 | + end | |
| 10903 | + | |
| 10904 | + def to_json(options = nil) | |
| 10905 | + JSON.generate(to_dynamic, options) | |
| 10906 | + end | |
| 10907 | +end | |
| 10908 | + | |
| 10738 | 10909 | class Oneway < Dry::Struct |
| 10739 | 10910 | |
| 10740 | 10911 | def self.from_dynamic!(d) |
| @@ -19693,6 +19864,7 @@ class TopLevel < Dry::Struct | ||
| 19693 | 19864 | attribute :left, Types.Instance(UnionLeft).optional |
| 19694 | 19865 | attribute :let, Types.Instance(UnionLet).optional |
| 19695 | 19866 | attribute :list, Types.Instance(UnionList).optional |
| 19867 | + attribute :local_date, Types.Instance(UnionLocalDate).optional | |
| 19696 | 19868 | attribute :locale, Types.Instance(UnionLocale).optional |
| 19697 | 19869 | attribute :lock, Types.Instance(UnionLock).optional |
| 19698 | 19870 | attribute :long, Types.Instance(UnionLong).optional |
| @@ -19728,6 +19900,8 @@ class TopLevel < Dry::Struct | ||
| 19728 | 19900 | attribute :object, Types.Instance(UnionObject).optional |
| 19729 | 19901 | attribute :object_mapper, Types.Instance(UnionObjectMapper).optional |
| 19730 | 19902 | attribute :of, Types.Instance(UnionOf).optional |
| 19903 | + attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional | |
| 19904 | + attribute :offset_time, Types.Instance(UnionOffsetTime).optional | |
| 19731 | 19905 | attribute :oneway, Types.Instance(UnionOneway).optional |
| 19732 | 19906 | attribute :top_level_open, Types.Instance(UnionOpen).optional |
| 19733 | 19907 | attribute :operator, Types.Instance(UnionOperator).optional |
| @@ -20040,6 +20214,7 @@ class TopLevel < Dry::Struct | ||
| 20040 | 20214 | left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil, |
| 20041 | 20215 | let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil, |
| 20042 | 20216 | list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil, |
| 20217 | + local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil, | |
| 20043 | 20218 | locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil, |
| 20044 | 20219 | lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil, |
| 20045 | 20220 | long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil, |
| @@ -20075,6 +20250,8 @@ class TopLevel < Dry::Struct | ||
| 20075 | 20250 | object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil, |
| 20076 | 20251 | object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil, |
| 20077 | 20252 | of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil, |
| 20253 | + offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil, | |
| 20254 | + offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil, | |
| 20078 | 20255 | oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil, |
| 20079 | 20256 | top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil, |
| 20080 | 20257 | operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil, |
| @@ -20392,6 +20569,7 @@ class TopLevel < Dry::Struct | ||
| 20392 | 20569 | "left" => left&.to_dynamic, |
| 20393 | 20570 | "let" => let&.to_dynamic, |
| 20394 | 20571 | "list" => list&.to_dynamic, |
| 20572 | + "LocalDate" => local_date&.to_dynamic, | |
| 20395 | 20573 | "Locale" => locale&.to_dynamic, |
| 20396 | 20574 | "lock" => lock&.to_dynamic, |
| 20397 | 20575 | "long" => long&.to_dynamic, |
| @@ -20427,6 +20605,8 @@ class TopLevel < Dry::Struct | ||
| 20427 | 20605 | "object" => object&.to_dynamic, |
| 20428 | 20606 | "ObjectMapper" => object_mapper&.to_dynamic, |
| 20429 | 20607 | "of" => of&.to_dynamic, |
| 20608 | + "OffsetDateTime" => offset_date_time&.to_dynamic, | |
| 20609 | + "OffsetTime" => offset_time&.to_dynamic, | |
| 20430 | 20610 | "oneway" => oneway&.to_dynamic, |
| 20431 | 20611 | "open" => top_level_open&.to_dynamic, |
| 20432 | 20612 | "operator" => operator&.to_dynamic, |
Mschema-rustdefault / module_under_test.rs+45 −0
| @@ -439,6 +439,9 @@ pub struct TopLevel { | ||
| 439 | 439 | |
| 440 | 440 | pub list: Option<UnionList>, |
| 441 | 441 | |
| 442 | + #[serde(rename = "LocalDate")] | |
| 443 | + pub local_date: Option<UnionLocalDate>, | |
| 444 | + | |
| 442 | 445 | #[serde(rename = "Locale")] |
| 443 | 446 | pub locale: Option<UnionLocale>, |
| 444 | 447 | |
| @@ -522,6 +525,12 @@ pub struct TopLevel { | ||
| 522 | 525 | |
| 523 | 526 | pub of: Option<UnionOf>, |
| 524 | 527 | |
| 528 | + #[serde(rename = "OffsetDateTime")] | |
| 529 | + pub offset_date_time: Option<UnionOffsetDateTime>, | |
| 530 | + | |
| 531 | + #[serde(rename = "OffsetTime")] | |
| 532 | + pub offset_time: Option<UnionOffsetTime>, | |
| 533 | + | |
| 525 | 534 | pub oneway: Option<UnionOneway>, |
| 526 | 535 | |
| 527 | 536 | pub open: Option<UnionOpen>, |
| @@ -2676,6 +2685,18 @@ pub enum UnionList { | ||
| 2676 | 2685 | pub struct List { |
| 2677 | 2686 | } |
| 2678 | 2687 | |
| 2688 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2689 | +#[serde(untagged)] | |
| 2690 | +pub enum UnionLocalDate { | |
| 2691 | + Double(f64), | |
| 2692 | + | |
| 2693 | + LocalDate(LocalDate), | |
| 2694 | +} | |
| 2695 | + | |
| 2696 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2697 | +pub struct LocalDate { | |
| 2698 | +} | |
| 2699 | + | |
| 2679 | 2700 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2680 | 2701 | #[serde(untagged)] |
| 2681 | 2702 | pub enum UnionLocale { |
| @@ -3072,6 +3093,30 @@ pub enum UnionOf { | ||
| 3072 | 3093 | pub struct Of { |
| 3073 | 3094 | } |
| 3074 | 3095 | |
| 3096 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3097 | +#[serde(untagged)] | |
| 3098 | +pub enum UnionOffsetDateTime { | |
| 3099 | + Double(f64), | |
| 3100 | + | |
| 3101 | + OffsetDateTime(OffsetDateTime), | |
| 3102 | +} | |
| 3103 | + | |
| 3104 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3105 | +pub struct OffsetDateTime { | |
| 3106 | +} | |
| 3107 | + | |
| 3108 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3109 | +#[serde(untagged)] | |
| 3110 | +pub enum UnionOffsetTime { | |
| 3111 | + Double(f64), | |
| 3112 | + | |
| 3113 | + OffsetTime(OffsetTime), | |
| 3114 | +} | |
| 3115 | + | |
| 3116 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3117 | +pub struct OffsetTime { | |
| 3118 | +} | |
| 3119 | + | |
| 3075 | 3120 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 3076 | 3121 | #[serde(untagged)] |
| 3077 | 3122 | pub enum UnionOneway { |
Mschema-schemadefault / TopLevel.schema+57 −0
| @@ -543,6 +543,9 @@ | ||
| 543 | 543 | "list": { |
| 544 | 544 | "$ref": "#/definitions/UnionList" |
| 545 | 545 | }, |
| 546 | + "LocalDate": { | |
| 547 | + "$ref": "#/definitions/UnionLocalDate" | |
| 548 | + }, | |
| 546 | 549 | "Locale": { |
| 547 | 550 | "$ref": "#/definitions/UnionLocale" |
| 548 | 551 | }, |
| @@ -648,6 +651,12 @@ | ||
| 648 | 651 | "of": { |
| 649 | 652 | "$ref": "#/definitions/UnionOf" |
| 650 | 653 | }, |
| 654 | + "OffsetDateTime": { | |
| 655 | + "$ref": "#/definitions/UnionOffsetDateTime" | |
| 656 | + }, | |
| 657 | + "OffsetTime": { | |
| 658 | + "$ref": "#/definitions/UnionOffsetTime" | |
| 659 | + }, | |
| 651 | 660 | "oneway": { |
| 652 | 661 | "$ref": "#/definitions/UnionOneway" |
| 653 | 662 | }, |
| @@ -1219,6 +1228,11 @@ | ||
| 1219 | 1228 | "additionalProperties": false, |
| 1220 | 1229 | "title": "KSerializer" |
| 1221 | 1230 | }, |
| 1231 | + "LocalDate": { | |
| 1232 | + "type": "object", | |
| 1233 | + "additionalProperties": false, | |
| 1234 | + "title": "LocalDate" | |
| 1235 | + }, | |
| 1222 | 1236 | "Locale": { |
| 1223 | 1237 | "type": "object", |
| 1224 | 1238 | "additionalProperties": false, |
| @@ -1269,6 +1283,16 @@ | ||
| 1269 | 1283 | "additionalProperties": false, |
| 1270 | 1284 | "title": "ObjectMapper" |
| 1271 | 1285 | }, |
| 1286 | + "OffsetDateTime": { | |
| 1287 | + "type": "object", | |
| 1288 | + "additionalProperties": false, | |
| 1289 | + "title": "OffsetDateTime" | |
| 1290 | + }, | |
| 1291 | + "OffsetTime": { | |
| 1292 | + "type": "object", | |
| 1293 | + "additionalProperties": false, | |
| 1294 | + "title": "OffsetTime" | |
| 1295 | + }, | |
| 1272 | 1296 | "PrimitiveKind": { |
| 1273 | 1297 | "type": "object", |
| 1274 | 1298 | "additionalProperties": false, |
| @@ -3145,6 +3169,17 @@ | ||
| 3145 | 3169 | ], |
| 3146 | 3170 | "title": "UnionKSerializer" |
| 3147 | 3171 | }, |
| 3172 | + "UnionLocalDate": { | |
| 3173 | + "anyOf": [ | |
| 3174 | + { | |
| 3175 | + "$ref": "#/definitions/LocalDate" | |
| 3176 | + }, | |
| 3177 | + { | |
| 3178 | + "type": "number" | |
| 3179 | + } | |
| 3180 | + ], | |
| 3181 | + "title": "UnionLocalDate" | |
| 3182 | + }, | |
| 3148 | 3183 | "UnionLocale": { |
| 3149 | 3184 | "anyOf": [ |
| 3150 | 3185 | { |
| @@ -3255,6 +3290,28 @@ | ||
| 3255 | 3290 | ], |
| 3256 | 3291 | "title": "UnionObjectMapper" |
| 3257 | 3292 | }, |
| 3293 | + "UnionOffsetDateTime": { | |
| 3294 | + "anyOf": [ | |
| 3295 | + { | |
| 3296 | + "$ref": "#/definitions/OffsetDateTime" | |
| 3297 | + }, | |
| 3298 | + { | |
| 3299 | + "type": "number" | |
| 3300 | + } | |
| 3301 | + ], | |
| 3302 | + "title": "UnionOffsetDateTime" | |
| 3303 | + }, | |
| 3304 | + "UnionOffsetTime": { | |
| 3305 | + "anyOf": [ | |
| 3306 | + { | |
| 3307 | + "$ref": "#/definitions/OffsetTime" | |
| 3308 | + }, | |
| 3309 | + { | |
| 3310 | + "type": "number" | |
| 3311 | + } | |
| 3312 | + ], | |
| 3313 | + "title": "UnionOffsetTime" | |
| 3314 | + }, | |
| 3258 | 3315 | "UnionPrimitiveKind": { |
| 3259 | 3316 | "anyOf": [ |
| 3260 | 3317 | { |
Mschema-swiftdefault / quicktype.swift+225 −0
| @@ -186,6 +186,7 @@ struct TopLevel: Codable { | ||
| 186 | 186 | let topLevelLeft: UnionLeft? |
| 187 | 187 | let topLevelLet: UnionLet? |
| 188 | 188 | let list: UnionList? |
| 189 | + let localDate: UnionLocalDate? | |
| 189 | 190 | let locale: UnionLocale? |
| 190 | 191 | let lock: UnionLock? |
| 191 | 192 | let long: UnionLong? |
| @@ -221,6 +222,8 @@ struct TopLevel: Codable { | ||
| 221 | 222 | let object: UnionObject? |
| 222 | 223 | let objectMapper: UnionObjectMapper? |
| 223 | 224 | let of: UnionOf? |
| 225 | + let offsetDateTime: UnionOffsetDateTime? | |
| 226 | + let offsetTime: UnionOffsetTime? | |
| 224 | 227 | let oneway: UnionOneway? |
| 225 | 228 | let topLevelOpen: UnionOpen? |
| 226 | 229 | let topLevelOperator: UnionOperator? |
| @@ -531,6 +534,7 @@ struct TopLevel: Codable { | ||
| 531 | 534 | case topLevelLeft = "left" |
| 532 | 535 | case topLevelLet = "let" |
| 533 | 536 | case list = "list" |
| 537 | + case localDate = "LocalDate" | |
| 534 | 538 | case locale = "Locale" |
| 535 | 539 | case lock = "lock" |
| 536 | 540 | case long = "long" |
| @@ -566,6 +570,8 @@ struct TopLevel: Codable { | ||
| 566 | 570 | case object = "object" |
| 567 | 571 | case objectMapper = "ObjectMapper" |
| 568 | 572 | case of = "of" |
| 573 | + case offsetDateTime = "OffsetDateTime" | |
| 574 | + case offsetTime = "OffsetTime" | |
| 569 | 575 | case oneway = "oneway" |
| 570 | 576 | case topLevelOpen = "open" |
| 571 | 577 | case topLevelOperator = "operator" |
| @@ -896,6 +902,7 @@ extension TopLevel { | ||
| 896 | 902 | topLevelLeft: UnionLeft?? = nil, |
| 897 | 903 | topLevelLet: UnionLet?? = nil, |
| 898 | 904 | list: UnionList?? = nil, |
| 905 | + localDate: UnionLocalDate?? = nil, | |
| 899 | 906 | locale: UnionLocale?? = nil, |
| 900 | 907 | lock: UnionLock?? = nil, |
| 901 | 908 | long: UnionLong?? = nil, |
| @@ -931,6 +938,8 @@ extension TopLevel { | ||
| 931 | 938 | object: UnionObject?? = nil, |
| 932 | 939 | objectMapper: UnionObjectMapper?? = nil, |
| 933 | 940 | of: UnionOf?? = nil, |
| 941 | + offsetDateTime: UnionOffsetDateTime?? = nil, | |
| 942 | + offsetTime: UnionOffsetTime?? = nil, | |
| 934 | 943 | oneway: UnionOneway?? = nil, |
| 935 | 944 | topLevelOpen: UnionOpen?? = nil, |
| 936 | 945 | topLevelOperator: UnionOperator?? = nil, |
| @@ -1241,6 +1250,7 @@ extension TopLevel { | ||
| 1241 | 1250 | topLevelLeft: topLevelLeft ?? self.topLevelLeft, |
| 1242 | 1251 | topLevelLet: topLevelLet ?? self.topLevelLet, |
| 1243 | 1252 | list: list ?? self.list, |
| 1253 | + localDate: localDate ?? self.localDate, | |
| 1244 | 1254 | locale: locale ?? self.locale, |
| 1245 | 1255 | lock: lock ?? self.lock, |
| 1246 | 1256 | long: long ?? self.long, |
| @@ -1276,6 +1286,8 @@ extension TopLevel { | ||
| 1276 | 1286 | object: object ?? self.object, |
| 1277 | 1287 | objectMapper: objectMapper ?? self.objectMapper, |
| 1278 | 1288 | of: of ?? self.of, |
| 1289 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 1290 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 1279 | 1291 | oneway: oneway ?? self.oneway, |
| 1280 | 1292 | topLevelOpen: topLevelOpen ?? self.topLevelOpen, |
| 1281 | 1293 | topLevelOperator: topLevelOperator ?? self.topLevelOperator, |
| @@ -10860,6 +10872,77 @@ extension List { | ||
| 10860 | 10872 | } |
| 10861 | 10873 | } |
| 10862 | 10874 | |
| 10875 | +enum UnionLocalDate: Codable { | |
| 10876 | + case double(Double) | |
| 10877 | + case localDate(LocalDate) | |
| 10878 | + | |
| 10879 | + init(from decoder: Decoder) throws { | |
| 10880 | + let container = try decoder.singleValueContainer() | |
| 10881 | + if let x = try? container.decode(Double.self) { | |
| 10882 | + self = .double(x) | |
| 10883 | + return | |
| 10884 | + } | |
| 10885 | + if let x = try? container.decode(LocalDate.self) { | |
| 10886 | + self = .localDate(x) | |
| 10887 | + return | |
| 10888 | + } | |
| 10889 | + throw DecodingError.typeMismatch(UnionLocalDate.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionLocalDate")) | |
| 10890 | + } | |
| 10891 | + | |
| 10892 | + func encode(to encoder: Encoder) throws { | |
| 10893 | + var container = encoder.singleValueContainer() | |
| 10894 | + switch self { | |
| 10895 | + case .double(let x): | |
| 10896 | + try container.encode(x) | |
| 10897 | + case .localDate(let x): | |
| 10898 | + try container.encode(x) | |
| 10899 | + } | |
| 10900 | + } | |
| 10901 | +} | |
| 10902 | + | |
| 10903 | +// MARK: - LocalDate | |
| 10904 | +struct LocalDate: Codable { | |
| 10905 | + private enum K: String, CodingKey { case unused } | |
| 10906 | + init(from decoder: Decoder) throws { | |
| 10907 | + _ = try decoder.container(keyedBy: K.self) | |
| 10908 | + } | |
| 10909 | + init() { | |
| 10910 | + } | |
| 10911 | +} | |
| 10912 | + | |
| 10913 | +// MARK: LocalDate convenience initializers and mutators | |
| 10914 | + | |
| 10915 | +extension LocalDate { | |
| 10916 | + init(data: Data) throws { | |
| 10917 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 10918 | + } | |
| 10919 | + | |
| 10920 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10921 | + guard let data = json.data(using: encoding) else { | |
| 10922 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 10923 | + } | |
| 10924 | + try self.init(data: data) | |
| 10925 | + } | |
| 10926 | + | |
| 10927 | + init(fromURL url: URL) throws { | |
| 10928 | + try self.init(data: try Data(contentsOf: url)) | |
| 10929 | + } | |
| 10930 | + | |
| 10931 | + func with( | |
| 10932 | + ) -> LocalDate { | |
| 10933 | + return LocalDate( | |
| 10934 | + ) | |
| 10935 | + } | |
| 10936 | + | |
| 10937 | + func jsonData() throws -> Data { | |
| 10938 | + return try newJSONEncoder().encode(self) | |
| 10939 | + } | |
| 10940 | + | |
| 10941 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 10942 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 10943 | + } | |
| 10944 | +} | |
| 10945 | + | |
| 10863 | 10946 | enum UnionLocale: Codable { |
| 10864 | 10947 | case double(Double) |
| 10865 | 10948 | case localeClass(LocaleClass) |
| @@ -12990,6 +13073,148 @@ extension Of { | ||
| 12990 | 13073 | } |
| 12991 | 13074 | } |
| 12992 | 13075 | |
| 13076 | +enum UnionOffsetDateTime: Codable { | |
| 13077 | + case double(Double) | |
| 13078 | + case offsetDateTime(OffsetDateTime) | |
| 13079 | + | |
| 13080 | + init(from decoder: Decoder) throws { | |
| 13081 | + let container = try decoder.singleValueContainer() | |
| 13082 | + if let x = try? container.decode(Double.self) { | |
| 13083 | + self = .double(x) | |
| 13084 | + return | |
| 13085 | + } | |
| 13086 | + if let x = try? container.decode(OffsetDateTime.self) { | |
| 13087 | + self = .offsetDateTime(x) | |
| 13088 | + return | |
| 13089 | + } | |
| 13090 | + throw DecodingError.typeMismatch(UnionOffsetDateTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetDateTime")) | |
| 13091 | + } | |
| 13092 | + | |
| 13093 | + func encode(to encoder: Encoder) throws { | |
| 13094 | + var container = encoder.singleValueContainer() | |
| 13095 | + switch self { | |
| 13096 | + case .double(let x): | |
| 13097 | + try container.encode(x) | |
| 13098 | + case .offsetDateTime(let x): | |
| 13099 | + try container.encode(x) | |
| 13100 | + } | |
| 13101 | + } | |
| 13102 | +} | |
| 13103 | + | |
| 13104 | +// MARK: - OffsetDateTime | |
| 13105 | +struct OffsetDateTime: Codable { | |
| 13106 | + private enum K: String, CodingKey { case unused } | |
| 13107 | + init(from decoder: Decoder) throws { | |
| 13108 | + _ = try decoder.container(keyedBy: K.self) | |
| 13109 | + } | |
| 13110 | + init() { | |
| 13111 | + } | |
| 13112 | +} | |
| 13113 | + | |
| 13114 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 13115 | + | |
| 13116 | +extension OffsetDateTime { | |
| 13117 | + init(data: Data) throws { | |
| 13118 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 13119 | + } | |
| 13120 | + | |
| 13121 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13122 | + guard let data = json.data(using: encoding) else { | |
| 13123 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13124 | + } | |
| 13125 | + try self.init(data: data) | |
| 13126 | + } | |
| 13127 | + | |
| 13128 | + init(fromURL url: URL) throws { | |
| 13129 | + try self.init(data: try Data(contentsOf: url)) | |
| 13130 | + } | |
| 13131 | + | |
| 13132 | + func with( | |
| 13133 | + ) -> OffsetDateTime { | |
| 13134 | + return OffsetDateTime( | |
| 13135 | + ) | |
| 13136 | + } | |
| 13137 | + | |
| 13138 | + func jsonData() throws -> Data { | |
| 13139 | + return try newJSONEncoder().encode(self) | |
| 13140 | + } | |
| 13141 | + | |
| 13142 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13143 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13144 | + } | |
| 13145 | +} | |
| 13146 | + | |
| 13147 | +enum UnionOffsetTime: Codable { | |
| 13148 | + case double(Double) | |
| 13149 | + case offsetTime(OffsetTime) | |
| 13150 | + | |
| 13151 | + init(from decoder: Decoder) throws { | |
| 13152 | + let container = try decoder.singleValueContainer() | |
| 13153 | + if let x = try? container.decode(Double.self) { | |
| 13154 | + self = .double(x) | |
| 13155 | + return | |
| 13156 | + } | |
| 13157 | + if let x = try? container.decode(OffsetTime.self) { | |
| 13158 | + self = .offsetTime(x) | |
| 13159 | + return | |
| 13160 | + } | |
| 13161 | + throw DecodingError.typeMismatch(UnionOffsetTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetTime")) | |
| 13162 | + } | |
| 13163 | + | |
| 13164 | + func encode(to encoder: Encoder) throws { | |
| 13165 | + var container = encoder.singleValueContainer() | |
| 13166 | + switch self { | |
| 13167 | + case .double(let x): | |
| 13168 | + try container.encode(x) | |
| 13169 | + case .offsetTime(let x): | |
| 13170 | + try container.encode(x) | |
| 13171 | + } | |
| 13172 | + } | |
| 13173 | +} | |
| 13174 | + | |
| 13175 | +// MARK: - OffsetTime | |
| 13176 | +struct OffsetTime: Codable { | |
| 13177 | + private enum K: String, CodingKey { case unused } | |
| 13178 | + init(from decoder: Decoder) throws { | |
| 13179 | + _ = try decoder.container(keyedBy: K.self) | |
| 13180 | + } | |
| 13181 | + init() { | |
| 13182 | + } | |
| 13183 | +} | |
| 13184 | + | |
| 13185 | +// MARK: OffsetTime convenience initializers and mutators | |
| 13186 | + | |
| 13187 | +extension OffsetTime { | |
| 13188 | + init(data: Data) throws { | |
| 13189 | + self = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 13190 | + } | |
| 13191 | + | |
| 13192 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13193 | + guard let data = json.data(using: encoding) else { | |
| 13194 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13195 | + } | |
| 13196 | + try self.init(data: data) | |
| 13197 | + } | |
| 13198 | + | |
| 13199 | + init(fromURL url: URL) throws { | |
| 13200 | + try self.init(data: try Data(contentsOf: url)) | |
| 13201 | + } | |
| 13202 | + | |
| 13203 | + func with( | |
| 13204 | + ) -> OffsetTime { | |
| 13205 | + return OffsetTime( | |
| 13206 | + ) | |
| 13207 | + } | |
| 13208 | + | |
| 13209 | + func jsonData() throws -> Data { | |
| 13210 | + return try newJSONEncoder().encode(self) | |
| 13211 | + } | |
| 13212 | + | |
| 13213 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13214 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13215 | + } | |
| 13216 | +} | |
| 13217 | + | |
| 12993 | 13218 | enum UnionOneway: Codable { |
| 12994 | 13219 | case double(Double) |
| 12995 | 13220 | case oneway(Oneway) |
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
| @@ -409,6 +409,12 @@ export class Open extends S.Class<Open>("Open")(S.Struct({}).pipe(S.filter(value | ||
| 409 | 409 | export class Oneway extends S.Class<Oneway>("Oneway")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 410 | 410 | ) {} |
| 411 | 411 | |
| 412 | +export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 413 | +) {} | |
| 414 | + | |
| 415 | +export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 416 | +) {} | |
| 417 | + | |
| 412 | 418 | export class Of extends S.Class<Of>("Of")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 413 | 419 | ) {} |
| 414 | 420 | |
| @@ -508,6 +514,9 @@ export class Lock extends S.Class<Lock>("Lock")(S.Struct({}).pipe(S.filter(value | ||
| 508 | 514 | export class Locale extends S.Class<Locale>("Locale")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 509 | 515 | ) {} |
| 510 | 516 | |
| 517 | +export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 518 | +) {} | |
| 519 | + | |
| 511 | 520 | export class List extends S.Class<List>("List")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 512 | 521 | ) {} |
| 513 | 522 | |
| @@ -1207,6 +1216,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | ||
| 1207 | 1216 | "left": S.optional(S.Union(S.Number, Left)), |
| 1208 | 1217 | "let": S.optional(S.Union(S.Number, Let)), |
| 1209 | 1218 | "list": S.optional(S.Union(S.Number, List)), |
| 1219 | + "LocalDate": S.optional(S.Union(S.Number, LocalDate)), | |
| 1210 | 1220 | "Locale": S.optional(S.Union(S.Number, Locale)), |
| 1211 | 1221 | "lock": S.optional(S.Union(S.Number, Lock)), |
| 1212 | 1222 | "long": S.optional(S.Union(S.Number, Long)), |
| @@ -1242,6 +1252,8 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | ||
| 1242 | 1252 | "object": S.optional(S.Union(S.Number, ObjectClass)), |
| 1243 | 1253 | "ObjectMapper": S.optional(S.Union(S.Number, ObjectMapper)), |
| 1244 | 1254 | "of": S.optional(S.Union(S.Number, Of)), |
| 1255 | + "OffsetDateTime": S.optional(S.Union(S.Number, OffsetDateTime)), | |
| 1256 | + "OffsetTime": S.optional(S.Union(S.Number, OffsetTime)), | |
| 1245 | 1257 | "oneway": S.optional(S.Union(S.Number, Oneway)), |
| 1246 | 1258 | "open": S.optional(S.Union(S.Number, Open)), |
| 1247 | 1259 | "operator": S.optional(S.Union(S.Number, Operator)), |
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
| @@ -693,6 +693,10 @@ export const ListSchema = z.object({ | ||
| 693 | 693 | }); |
| 694 | 694 | export type List = z.infer<typeof ListSchema>; |
| 695 | 695 | |
| 696 | +export const LocalDateSchema = z.object({ | |
| 697 | +}); | |
| 698 | +export type LocalDate = z.infer<typeof LocalDateSchema>; | |
| 699 | + | |
| 696 | 700 | export const LocaleSchema = z.object({ |
| 697 | 701 | }); |
| 698 | 702 | export type Locale = z.infer<typeof LocaleSchema>; |
| @@ -825,6 +829,14 @@ export const OfSchema = z.object({ | ||
| 825 | 829 | }); |
| 826 | 830 | export type Of = z.infer<typeof OfSchema>; |
| 827 | 831 | |
| 832 | +export const OffsetDateTimeSchema = z.object({ | |
| 833 | +}); | |
| 834 | +export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>; | |
| 835 | + | |
| 836 | +export const OffsetTimeSchema = z.object({ | |
| 837 | +}); | |
| 838 | +export type OffsetTime = z.infer<typeof OffsetTimeSchema>; | |
| 839 | + | |
| 828 | 840 | export const OnewaySchema = z.object({ |
| 829 | 841 | }); |
| 830 | 842 | export type Oneway = z.infer<typeof OnewaySchema>; |
| @@ -1549,6 +1561,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" && | ||
| 1549 | 1561 | "left": z.union([LeftSchema, z.number()]).optional(), |
| 1550 | 1562 | "let": z.union([LetSchema, z.number()]).optional(), |
| 1551 | 1563 | "list": z.union([ListSchema, z.number()]).optional(), |
| 1564 | + "LocalDate": z.union([LocalDateSchema, z.number()]).optional(), | |
| 1552 | 1565 | "Locale": z.union([LocaleSchema, z.number()]).optional(), |
| 1553 | 1566 | "lock": z.union([LockSchema, z.number()]).optional(), |
| 1554 | 1567 | "long": z.union([LongSchema, z.number()]).optional(), |
| @@ -1584,6 +1597,8 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" && | ||
| 1584 | 1597 | "object": z.union([ObjectClassSchema, z.number()]).optional(), |
| 1585 | 1598 | "ObjectMapper": z.union([ObjectMapperSchema, z.number()]).optional(), |
| 1586 | 1599 | "of": z.union([OfSchema, z.number()]).optional(), |
| 1600 | + "OffsetDateTime": z.union([OffsetDateTimeSchema, z.number()]).optional(), | |
| 1601 | + "OffsetTime": z.union([OffsetTimeSchema, z.number()]).optional(), | |
| 1587 | 1602 | "oneway": z.union([OnewaySchema, z.number()]).optional(), |
| 1588 | 1603 | "open": z.union([OpenSchema, z.number()]).optional(), |
| 1589 | 1604 | "operator": z.union([OperatorSchema, z.number()]).optional(), |
Mschema-typescriptdefault / TopLevel.ts+12 −0
| @@ -187,6 +187,7 @@ export interface TopLevel { | ||
| 187 | 187 | left?: UnionLeft; |
| 188 | 188 | let?: UnionLet; |
| 189 | 189 | list?: UnionList; |
| 190 | + LocalDate?: UnionLocalDate; | |
| 190 | 191 | Locale?: UnionLocale; |
| 191 | 192 | lock?: UnionLock; |
| 192 | 193 | long?: UnionLong; |
| @@ -222,6 +223,8 @@ export interface TopLevel { | ||
| 222 | 223 | object?: UnionObject; |
| 223 | 224 | ObjectMapper?: UnionObjectMapper; |
| 224 | 225 | of?: UnionOf; |
| 226 | + OffsetDateTime?: UnionOffsetDateTime; | |
| 227 | + OffsetTime?: UnionOffsetTime; | |
| 225 | 228 | oneway?: UnionOneway; |
| 226 | 229 | open?: UnionOpen; |
| 227 | 230 | operator?: UnionOperator; |
| @@ -426,6 +429,8 @@ export type UnionJSONTokenType = object | number; | ||
| 426 | 429 | |
| 427 | 430 | export type UnionKSerializer = object | number; |
| 428 | 431 | |
| 432 | +export type UnionLocalDate = object | number; | |
| 433 | + | |
| 429 | 434 | export type UnionLocale = object | number; |
| 430 | 435 | |
| 431 | 436 | export type UnionMapEntry = object | number; |
| @@ -446,6 +451,10 @@ export type UnionNone = object | number; | ||
| 446 | 451 | |
| 447 | 452 | export type UnionObjectMapper = object | number; |
| 448 | 453 | |
| 454 | +export type UnionOffsetDateTime = object | number; | |
| 455 | + | |
| 456 | +export type UnionOffsetTime = object | number; | |
| 457 | + | |
| 449 | 458 | export type UnionPrimitiveKind = object | number; |
| 450 | 459 | |
| 451 | 460 | export type UnionProtocol = object | number; |
| @@ -1405,6 +1414,7 @@ const typeMap: any = { | ||
| 1405 | 1414 | { json: "left", js: "left", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1406 | 1415 | { json: "let", js: "let", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1407 | 1416 | { json: "list", js: "list", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1417 | + { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1408 | 1418 | { json: "Locale", js: "Locale", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1409 | 1419 | { json: "lock", js: "lock", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1410 | 1420 | { json: "long", js: "long", typ: u(undefined, u(m("any"), 3.14)) }, |
| @@ -1440,6 +1450,8 @@ const typeMap: any = { | ||
| 1440 | 1450 | { json: "object", js: "object", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1441 | 1451 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1442 | 1452 | { json: "of", js: "of", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1453 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1454 | + { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1443 | 1455 | { json: "oneway", js: "oneway", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1444 | 1456 | { json: "open", js: "open", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1445 | 1457 | { json: "operator", js: "operator", typ: u(undefined, u(m("any"), 3.14)) }, |
No generated files match these filters.