@@ -26,6 +26,7 @@ public function hydrateObject(string $className, array $payload): object
26
26
'ApiClients\Client\GitHubAE\Schema\GpgKey ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey ($ payload ),
27
27
'ApiClients\Client\GitHubAE\Schema\GpgKey\Emails ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey⚡️Emails ($ payload ),
28
28
'ApiClients\Client\GitHubAE\Schema\GpgKey\Subkeys ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey⚡️Subkeys ($ payload ),
29
+ 'ApiClients\Client\GitHubAE\Schema\GpgKey\Subkeys\Emails ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey⚡️Subkeys⚡️Emails ($ payload ),
29
30
'ApiClients\Client\GitHubAE\Schema\BasicError ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️BasicError ($ payload ),
30
31
'ApiClients\Client\GitHubAE\Schema\ValidationError ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ValidationError ($ payload ),
31
32
'ApiClients\Client\GitHubAE\Schema\ValidationError\Errors ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ValidationError⚡️Errors ($ payload ),
@@ -339,6 +340,16 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Gp
339
340
goto after_emails;
340
341
}
341
342
343
+ static $ emailsCaster1 ;
344
+
345
+ if ($ emailsCaster1 === null ) {
346
+ $ emailsCaster1 = new \EventSauce \ObjectHydrator \PropertyCasters \CastListToType (...array (
347
+ 0 => 'ApiClients \\Client \\GitHubAE \\Schema \\GpgKey \\Subkeys \\Emails ' ,
348
+ ));
349
+ }
350
+
351
+ $ value = $ emailsCaster1 ->cast ($ value , $ this );
352
+
342
353
$ properties ['emails ' ] = $ value ;
343
354
344
355
after_emails:
@@ -458,6 +469,49 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Gp
458
469
}
459
470
460
471
472
+ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey⚡️Subkeys⚡️Emails (array $ payload ): \ApiClients \Client \GitHubAE \Schema \GpgKey \Subkeys \Emails
473
+ {
474
+ $ properties = [];
475
+ $ missingFields = [];
476
+ try {
477
+ $ value = $ payload ['email ' ] ?? null ;
478
+
479
+ if ($ value === null ) {
480
+ $ properties ['email ' ] = null ;
481
+ goto after_email;
482
+ }
483
+
484
+ $ properties ['email ' ] = $ value ;
485
+
486
+ after_email:
487
+
488
+ $ value = $ payload ['verified ' ] ?? null ;
489
+
490
+ if ($ value === null ) {
491
+ $ properties ['verified ' ] = null ;
492
+ goto after_verified;
493
+ }
494
+
495
+ $ properties ['verified ' ] = $ value ;
496
+
497
+ after_verified:
498
+
499
+ } catch (\Throwable $ exception ) {
500
+ throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubAE\Schema\GpgKey\Subkeys\Emails ' , $ exception , stack: $ this ->hydrationStack );
501
+ }
502
+
503
+ if (count ($ missingFields ) > 0 ) {
504
+ throw UnableToHydrateObject::dueToMissingFields (\ApiClients \Client \GitHubAE \Schema \GpgKey \Subkeys \Emails::class, $ missingFields , stack: $ this ->hydrationStack );
505
+ }
506
+
507
+ try {
508
+ return new \ApiClients \Client \GitHubAE \Schema \GpgKey \Subkeys \Emails (...$ properties );
509
+ } catch (\Throwable $ exception ) {
510
+ throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubAE\Schema\GpgKey\Subkeys\Emails ' , $ exception , stack: $ this ->hydrationStack );
511
+ }
512
+ }
513
+
514
+
461
515
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️BasicError (array $ payload ): \ApiClients \Client \GitHubAE \Schema \BasicError
462
516
{
463
517
$ properties = [];
@@ -707,6 +761,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
707
761
'ApiClients\Client\GitHubAE\Schema\GpgKey ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey ($ object ),
708
762
'ApiClients\Client\GitHubAE\Schema\GpgKey\Emails ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey⚡️Emails ($ object ),
709
763
'ApiClients\Client\GitHubAE\Schema\GpgKey\Subkeys ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey⚡️Subkeys ($ object ),
764
+ 'ApiClients\Client\GitHubAE\Schema\GpgKey\Subkeys\Emails ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey⚡️Subkeys⚡️Emails ($ object ),
710
765
'ApiClients\Client\GitHubAE\Schema\BasicError ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️BasicError ($ object ),
711
766
'ApiClients\Client\GitHubAE\Schema\ValidationError ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ValidationError ($ object ),
712
767
'ApiClients\Client\GitHubAE\Schema\ValidationError\Errors ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ValidationError⚡️Errors ($ object ),
@@ -956,7 +1011,8 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
956
1011
static $ emailsSerializer0 ;
957
1012
958
1013
if ($ emailsSerializer0 === null ) {
959
- $ emailsSerializer0 = new \EventSauce \ObjectHydrator \PropertySerializers \SerializeArrayItems (...array (
1014
+ $ emailsSerializer0 = new \EventSauce \ObjectHydrator \PropertyCasters \CastListToType (...array (
1015
+ 0 => 'ApiClients \\Client \\GitHubAE \\Schema \\GpgKey \\Subkeys \\Emails ' ,
960
1016
));
961
1017
}
962
1018
@@ -1048,6 +1104,31 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
1048
1104
}
1049
1105
1050
1106
1107
+ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️GpgKey⚡️Subkeys⚡️Emails (mixed $ object ): mixed
1108
+ {
1109
+ \assert ($ object instanceof \ApiClients \Client \GitHubAE \Schema \GpgKey \Subkeys \Emails);
1110
+ $ result = [];
1111
+
1112
+ $ email = $ object ->email ;
1113
+
1114
+ if ($ email === null ) {
1115
+ goto after_email;
1116
+ }
1117
+ after_email: $ result ['email ' ] = $ email ;
1118
+
1119
+
1120
+ $ verified = $ object ->verified ;
1121
+
1122
+ if ($ verified === null ) {
1123
+ goto after_verified;
1124
+ }
1125
+ after_verified: $ result ['verified ' ] = $ verified ;
1126
+
1127
+
1128
+ return $ result ;
1129
+ }
1130
+
1131
+
1051
1132
private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️BasicError (mixed $ object ): mixed
1052
1133
{
1053
1134
\assert ($ object instanceof \ApiClients \Client \GitHubAE \Schema \BasicError);
0 commit comments