setPrimaryServer($this->denormalizer->denormalize($data['primary_server'], 'DigiComp\\HetznerDnsApi\\Model\\PrimaryServerResponse', 'json', $context)); } elseif (\array_key_exists('primary_server', $data) && $data['primary_server'] === null) { $object->setPrimaryServer(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->getPrimaryServer()) { $data['primary_server'] = $this->normalizer->normalize($object->getPrimaryServer(), 'json', $context); } return $data; } }