setPagination($this->denormalizer->denormalize($data['pagination'], 'DigiComp\\HetznerDnsApi\\Model\\Pagination', 'json', $context)); } elseif (\array_key_exists('pagination', $data) && $data['pagination'] === null) { $object->setPagination(null); } return $object; } /** * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = array()) { $data = array(); if (null !== $object->getPagination()) { $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); } return $data; } }