getProperties(TRUE)) ? TypedDataInternalPropertiesHelper::getNonInternalProperties($object) : $object->getValue(); } /** @var \Drupal\Core\TypedData\TypedDataInterface $property */ foreach ($object as $name => $property) { $attributes[$name] = $this->serializer->normalize($property, $format, $context); } return $attributes; } }