@@ -26,6 +26,7 @@ public function hydrateObject(string $className, array $payload): object
2626 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey ($ payload ),
2727 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey\Emails ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey⚡️Emails ($ payload ),
2828 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey\Subkeys ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey⚡️Subkeys ($ payload ),
29+ 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey\Subkeys\Emails ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey⚡️Subkeys⚡️Emails ($ payload ),
2930 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError ($ payload ),
3031 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError ($ payload ),
3132 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError\Errors ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError⚡️Errors ($ payload ),
@@ -339,6 +340,16 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
339340 goto after_emails;
340341 }
341342
343+ static $ emailsCaster1 ;
344+
345+ if ($ emailsCaster1 === null ) {
346+ $ emailsCaster1 = new \EventSauce \ObjectHydrator \PropertyCasters \CastListToType (...array (
347+ 0 => 'ApiClients \\Client \\GitHubEnterpriseCloud \\Schema \\GpgKey \\Subkeys \\Emails ' ,
348+ ));
349+ }
350+
351+ $ value = $ emailsCaster1 ->cast ($ value , $ this );
352+
342353 $ properties ['emails ' ] = $ value ;
343354
344355 after_emails:
@@ -458,6 +469,49 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
458469 }
459470
460471
472+ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey⚡️Subkeys⚡️Emails (array $ payload ): \ApiClients \Client \GitHubEnterpriseCloud \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\GitHubEnterpriseCloud\Schema\GpgKey\Subkeys\Emails ' , $ exception , stack: $ this ->hydrationStack );
501+ }
502+
503+ if (count ($ missingFields ) > 0 ) {
504+ throw UnableToHydrateObject::dueToMissingFields (\ApiClients \Client \GitHubEnterpriseCloud \Schema \GpgKey \Subkeys \Emails::class, $ missingFields , stack: $ this ->hydrationStack );
505+ }
506+
507+ try {
508+ return new \ApiClients \Client \GitHubEnterpriseCloud \Schema \GpgKey \Subkeys \Emails (...$ properties );
509+ } catch (\Throwable $ exception ) {
510+ throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey\Subkeys\Emails ' , $ exception , stack: $ this ->hydrationStack );
511+ }
512+ }
513+
514+
461515 private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError (array $ payload ): \ApiClients \Client \GitHubEnterpriseCloud \Schema \BasicError
462516 {
463517 $ properties = [];
@@ -707,6 +761,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
707761 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey ($ object ),
708762 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey\Emails ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey⚡️Emails ($ object ),
709763 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey\Subkeys ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey⚡️Subkeys ($ object ),
764+ 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey\Subkeys\Emails ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey⚡️Subkeys⚡️Emails ($ object ),
710765 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError ($ object ),
711766 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError ($ object ),
712767 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError\Errors ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError⚡️Errors ($ object ),
@@ -956,7 +1011,8 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
9561011 static $ emailsSerializer0 ;
9571012
9581013 if ($ emailsSerializer0 === null ) {
959- $ emailsSerializer0 = new \EventSauce \ObjectHydrator \PropertySerializers \SerializeArrayItems (...array (
1014+ $ emailsSerializer0 = new \EventSauce \ObjectHydrator \PropertyCasters \CastListToType (...array (
1015+ 0 => 'ApiClients \\Client \\GitHubEnterpriseCloud \\Schema \\GpgKey \\Subkeys \\Emails ' ,
9601016));
9611017 }
9621018
@@ -1048,6 +1104,31 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
10481104 }
10491105
10501106
1107+ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GpgKey⚡️Subkeys⚡️Emails (mixed $ object ): mixed
1108+ {
1109+ \assert ($ object instanceof \ApiClients \Client \GitHubEnterpriseCloud \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+
10511132 private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError (mixed $ object ): mixed
10521133 {
10531134 \assert ($ object instanceof \ApiClients \Client \GitHubEnterpriseCloud \Schema \BasicError);
0 commit comments