$decoded */ $decoded = json_decode($data, true, flags: JSON_THROW_ON_ERROR); return CollectedClientData::create($data, $decoded); } public function supportsDenormalization( mixed $data, string $type, ?string $format = null, array $context = [] ): bool { return $type === CollectedClientData::class; } /** * @return array */ public function getSupportedTypes(?string $format): array { return [ CollectedClientData::class => true, ]; } }