protected function denormalizeObject($data, $class, $format, array $context)
    {
        if (!$this->serializer instanceof DenormalizerInterface) {
            throw new LogicException(
                'Cannot denormalize object because the injected serializer is not a denormalizer'
            );
        }

        return $this->serializer->denormalize($data, $class, $format, $context);
    }
protected function denormalizeObject($data, $class, $format, array $context)
    {
        if (!$this->serializer instanceof DenormalizerInterface) {
            throw new LogicException(
                'Cannot denormalize object because the injected serializer is not a denormalizer'
            );
        }

        return $this->serializer->denormalize($data, $class, $format, $context);
    }
protected function denormalizeObject ( $ data , $ class , $ format , array $ context ) { if ( ! $ this -> serializer instanceof DenormalizerInterface ) { throw new LogicException ( 'Cannot denormalize object because the injected serializer is not a denormalizer' ) ; } return $ this -> serializer -> denormalize ( $ data , $ class , $ format , $ context ) ; }
Denormalizes the object.

@param array  $data
@param string $class
@param string $format
@param array  $context

@return object|void
Denormalizes the object .