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