@@ -25,6 +25,7 @@ public function hydrateObject(string $className, array $payload): object
2525 return match ($ className ) {
2626 'ApiClients\Client\GitHubAE\Schema\ApiOverview ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview ($ payload ),
2727 'ApiClients\Client\GitHubAE\Schema\ApiOverview\SshKeyFingerprints ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️SshKeyFingerprints ($ payload ),
28+ 'ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains ($ payload ),
2829 default => throw UnableToHydrateObject::noHydrationDefined ($ className , $ this ->hydrationStack ),
2930 };
3031 }
@@ -165,6 +166,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
165166
166167 after_dependabot:
167168
169+ $ value = $ payload ['domains ' ] ?? null ;
170+
171+ if ($ value === null ) {
172+ $ properties ['domains ' ] = null ;
173+ goto after_domains;
174+ }
175+
176+ if (is_array ($ value )) {
177+ try {
178+ $ this ->hydrationStack [] = 'domains ' ;
179+ $ value = $ this ->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains ($ value );
180+ } finally {
181+ array_pop ($ this ->hydrationStack );
182+ }
183+ }
184+
185+ $ properties ['domains ' ] = $ value ;
186+
187+ after_domains:
188+
168189 } catch (\Throwable $ exception ) {
169190 throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubAE\Schema\ApiOverview ' , $ exception , stack: $ this ->hydrationStack );
170191 }
@@ -244,6 +265,71 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
244265 throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubAE\Schema\ApiOverview\SshKeyFingerprints ' , $ exception , stack: $ this ->hydrationStack );
245266 }
246267 }
268+
269+
270+ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains (array $ payload ): \ApiClients \Client \GitHubAE \Schema \ApiOverview \Domains
271+ {
272+ $ properties = [];
273+ $ missingFields = [];
274+ try {
275+ $ value = $ payload ['website ' ] ?? null ;
276+
277+ if ($ value === null ) {
278+ $ properties ['website ' ] = null ;
279+ goto after_website;
280+ }
281+
282+ $ properties ['website ' ] = $ value ;
283+
284+ after_website:
285+
286+ $ value = $ payload ['codespaces ' ] ?? null ;
287+
288+ if ($ value === null ) {
289+ $ properties ['codespaces ' ] = null ;
290+ goto after_codespaces;
291+ }
292+
293+ $ properties ['codespaces ' ] = $ value ;
294+
295+ after_codespaces:
296+
297+ $ value = $ payload ['copilot ' ] ?? null ;
298+
299+ if ($ value === null ) {
300+ $ properties ['copilot ' ] = null ;
301+ goto after_copilot;
302+ }
303+
304+ $ properties ['copilot ' ] = $ value ;
305+
306+ after_copilot:
307+
308+ $ value = $ payload ['packages ' ] ?? null ;
309+
310+ if ($ value === null ) {
311+ $ properties ['packages ' ] = null ;
312+ goto after_packages;
313+ }
314+
315+ $ properties ['packages ' ] = $ value ;
316+
317+ after_packages:
318+
319+ } catch (\Throwable $ exception ) {
320+ throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains ' , $ exception , stack: $ this ->hydrationStack );
321+ }
322+
323+ if (count ($ missingFields ) > 0 ) {
324+ throw UnableToHydrateObject::dueToMissingFields (\ApiClients \Client \GitHubAE \Schema \ApiOverview \Domains::class, $ missingFields , stack: $ this ->hydrationStack );
325+ }
326+
327+ try {
328+ return new \ApiClients \Client \GitHubAE \Schema \ApiOverview \Domains (...$ properties );
329+ } catch (\Throwable $ exception ) {
330+ throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains ' , $ exception , stack: $ this ->hydrationStack );
331+ }
332+ }
247333
248334 private function serializeViaTypeMap (string $ accessor , object $ object , array $ payloadToTypeMap ): array
249335 {
@@ -278,6 +364,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
278364 'DateTimeInterface ' => $ this ->serializeValueDateTimeInterface ($ object ),
279365 'ApiClients\Client\GitHubAE\Schema\ApiOverview ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview ($ object ),
280366 'ApiClients\Client\GitHubAE\Schema\ApiOverview\SshKeyFingerprints ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️SshKeyFingerprints ($ object ),
367+ 'ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains ($ object ),
281368 default => throw new \LogicException ('No serialization defined for $className ' ),
282369 };
283370 } catch (\Throwable $ exception ) {
@@ -512,6 +599,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
512599 $ dependabot = $ dependabotSerializer0 ->serialize ($ dependabot , $ this );
513600 after_dependabot: $ result ['dependabot ' ] = $ dependabot ;
514601
602+
603+ $ domains = $ object ->domains ;
604+
605+ if ($ domains === null ) {
606+ goto after_domains;
607+ }
608+ $ domains = $ this ->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains ($ domains );
609+ after_domains: $ result ['domains ' ] = $ domains ;
610+
515611
516612 return $ result ;
517613 }
@@ -556,6 +652,79 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
556652
557653 return $ result ;
558654 }
655+
656+
657+ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains (mixed $ object ): mixed
658+ {
659+ \assert ($ object instanceof \ApiClients \Client \GitHubAE \Schema \ApiOverview \Domains);
660+ $ result = [];
661+
662+ $ website = $ object ->website ;
663+
664+ if ($ website === null ) {
665+ goto after_website;
666+ }
667+ static $ websiteSerializer0 ;
668+
669+ if ($ websiteSerializer0 === null ) {
670+ $ websiteSerializer0 = new \EventSauce \ObjectHydrator \PropertySerializers \SerializeArrayItems (...array (
671+ ));
672+ }
673+
674+ $ website = $ websiteSerializer0 ->serialize ($ website , $ this );
675+ after_website: $ result ['website ' ] = $ website ;
676+
677+
678+ $ codespaces = $ object ->codespaces ;
679+
680+ if ($ codespaces === null ) {
681+ goto after_codespaces;
682+ }
683+ static $ codespacesSerializer0 ;
684+
685+ if ($ codespacesSerializer0 === null ) {
686+ $ codespacesSerializer0 = new \EventSauce \ObjectHydrator \PropertySerializers \SerializeArrayItems (...array (
687+ ));
688+ }
689+
690+ $ codespaces = $ codespacesSerializer0 ->serialize ($ codespaces , $ this );
691+ after_codespaces: $ result ['codespaces ' ] = $ codespaces ;
692+
693+
694+ $ copilot = $ object ->copilot ;
695+
696+ if ($ copilot === null ) {
697+ goto after_copilot;
698+ }
699+ static $ copilotSerializer0 ;
700+
701+ if ($ copilotSerializer0 === null ) {
702+ $ copilotSerializer0 = new \EventSauce \ObjectHydrator \PropertySerializers \SerializeArrayItems (...array (
703+ ));
704+ }
705+
706+ $ copilot = $ copilotSerializer0 ->serialize ($ copilot , $ this );
707+ after_copilot: $ result ['copilot ' ] = $ copilot ;
708+
709+
710+ $ packages = $ object ->packages ;
711+
712+ if ($ packages === null ) {
713+ goto after_packages;
714+ }
715+ static $ packagesSerializer0 ;
716+
717+ if ($ packagesSerializer0 === null ) {
718+ $ packagesSerializer0 = new \EventSauce \ObjectHydrator \PropertySerializers \SerializeArrayItems (...array (
719+ ));
720+ }
721+
722+ $ packages = $ packagesSerializer0 ->serialize ($ packages , $ this );
723+ after_packages: $ result ['packages ' ] = $ packages ;
724+
725+
726+ return $ result ;
727+ }
559728
560729
561730
0 commit comments