3 namespace Drupal\serialization\Normalizer;
6 * Converts typed data objects to arrays.
8 class TypedDataNormalizer extends NormalizerBase {
11 * The interface or class that this Normalizer supports.
15 protected $supportedInterfaceOrClass = 'Drupal\Core\TypedData\TypedDataInterface';
20 public function normalize($object, $format = NULL, array $context = []) {
21 return $object->getValue();