Serializer/Normalizer/NestedPropertyDenormalizer.php
protected function setAttributeValue($object, $attribute, $value, $format = null, array $context = [])
    {
        try {
            $reflectionProperty = new \ReflectionProperty(get_class($object), $attribute);
        } catch (\ReflectionException $reflectionException) {
            return;
        }

        if ($reflectionProperty->isStatic()) {
            return;
        }

        // Override visibility
        if (!$reflectionProperty->isPublic()) {
            $reflectionProperty->setAccessible(true);
        }

        $nestedClassAnnotation = $this->annotationReader->getPropertyAnnotation(
            $reflectionProperty,
            NestedClass::class
        );
        if ($nestedClassAnnotation instanceof NestedClass) {
            $value = $this->denormalizeNested($nestedClassAnnotation, $value);
        }

        $reflectionProperty->setValue($object, $value);
    }
protected function setAttributeValue($object, $attribute, $value, $format = null, array $context = [])
    {
        try {
            $reflectionProperty = new \ReflectionProperty(get_class($object), $attribute);
        } catch (\ReflectionException $reflectionException) {
            return;
        }

        if ($reflectionProperty->isStatic()) {
            return;
        }

        // Override visibility
        if (!$reflectionProperty->isPublic()) {
            $reflectionProperty->setAccessible(true);
        }

        $nestedClassAnnotation = $this->annotationReader->getPropertyAnnotation(
            $reflectionProperty,
            NestedClass::class
        );
        if ($nestedClassAnnotation instanceof NestedClass) {
            $value = $this->denormalizeNested($nestedClassAnnotation, $value);
        }

        $reflectionProperty->setValue($object, $value);
    }
{@inheritdoc}

@throws \UnexpectedValueException