@@ -41,8 +41,8 @@ public function denormalize($data, $class, $format = null, array $context = [])
4141 if (property_exists ($ data , 'Limits ' ) && $ data ->{'Limits ' } !== null ) {
4242 $ object ->setLimits ($ this ->denormalizer ->denormalize ($ data ->{'Limits ' }, 'Docker \\API \\Model \\ResourceObject ' , 'json ' , $ context ));
4343 }
44- if (property_exists ($ data , 'Reservation ' ) && $ data ->{'Reservation ' } !== null ) {
45- $ object ->setReservation ($ this ->denormalizer ->denormalize ($ data ->{'Reservation ' }, 'Docker \\API \\Model \\ResourceObject ' , 'json ' , $ context ));
44+ if (property_exists ($ data , 'Reservations ' ) && $ data ->{'Reservations ' } !== null ) {
45+ $ object ->setReservations ($ this ->denormalizer ->denormalize ($ data ->{'Reservations ' }, 'Docker \\API \\Model \\ResourceObject ' , 'json ' , $ context ));
4646 }
4747
4848 return $ object ;
@@ -54,8 +54,8 @@ public function normalize($object, $format = null, array $context = [])
5454 if (null !== $ object ->getLimits ()) {
5555 $ data ->{'Limits ' } = $ this ->normalizer ->normalize ($ object ->getLimits (), 'json ' , $ context );
5656 }
57- if (null !== $ object ->getReservation ()) {
58- $ data ->{'Reservation ' } = $ this ->normalizer ->normalize ($ object ->getReservation (), 'json ' , $ context );
57+ if (null !== $ object ->getReservations ()) {
58+ $ data ->{'Reservations ' } = $ this ->normalizer ->normalize ($ object ->getReservations (), 'json ' , $ context );
5959 }
6060
6161 return $ data ;
0 commit comments