denormalizer->denormalize($value, 'DigiComp\\HetznerDnsApi\\Model\\RecordResponse', 'json', $context); } $object->setRecords($values); } elseif (\array_key_exists('records', $data) && $data['records'] === null) { $object->setRecords(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->getRecords()) { $values = array(); foreach ($object->getRecords() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['records'] = $values; } return $data; } }