$resolvedClass =
($this->objectClassResolver
)($object);
foreach ($normalizedData as $attribute =>
$value) { if ($this->nameConverter
) { $notConverted =
$attribute;
$attribute =
$this->nameConverter->
denormalize($attribute,
$resolvedClass,
$format,
$context);
if (isset($nestedData[$notConverted]) && !
isset($originalNestedData[$attribute])) { throw new LogicException(sprintf('Duplicate values for key "%s" found. One value is set via the SerializedPath annotation: "%s", the other one is set via the SerializedName annotation: "%s".',
$notConverted,
implode('->',
$nestedAttributes[$notConverted]->
getElements()),
$attribute));
} } $attributeContext =
$this->
getAttributeDenormalizationContext($resolvedClass,
$attribute,
$context);
if ((false !==
$allowedAttributes && !\
in_array($attribute,
$allowedAttributes)) || !
$this->
isAllowedAttribute($resolvedClass,
$attribute,
$format,
$context)) { if (!
($context[self::ALLOW_EXTRA_ATTRIBUTES
] ??
$this->defaultContext
[self::ALLOW_EXTRA_ATTRIBUTES
])) { $extraAttributes[] =
$attribute;
} continue;
} if ($attributeContext[self::DEEP_OBJECT_TO_POPULATE
] ??
$this->defaultContext
[self::DEEP_OBJECT_TO_POPULATE
] ?? false
) { try {