serializer->deserialize($data, $type, $format, $this->context); } public function arrayToObject(array $data, string $type, string $format = null): object { return $this->denormalizer->denormalize($data, $type, $format, $this->context); } public function setContext(array $context): void { $this->context = $context; } }