public function normalize($object, $format = null, array $context = []) { return array_merge(['#type' => get_class($object)], $this->objectNormalizer->normalize($object, $format, $context)); }