@@ -41,8 +41,8 @@ public function denormalize($data, $class, $format = null, array $context = [])
41
41
if (property_exists ($ data , 'Limits ' ) && $ data ->{'Limits ' } !== null ) {
42
42
$ object ->setLimits ($ this ->denormalizer ->denormalize ($ data ->{'Limits ' }, 'Docker \\API \\Model \\ResourceObject ' , 'json ' , $ context ));
43
43
}
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 ));
46
46
}
47
47
48
48
return $ object ;
@@ -54,8 +54,8 @@ public function normalize($object, $format = null, array $context = [])
54
54
if (null !== $ object ->getLimits ()) {
55
55
$ data ->{'Limits ' } = $ this ->normalizer ->normalize ($ object ->getLimits (), 'json ' , $ context );
56
56
}
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 );
59
59
}
60
60
61
61
return $ data ;
0 commit comments