src/Sulu/Bundle/AudienceTargetingBundle/Controller/TargetGroupController.php
private function deserializeData($data)
    {
        $result = $this->get('jms_serializer')->deserialize(
            $data,
            $this->getTargetGroupRepository()->getClassName(),
            'json',
            DeserializationContext::create()
                ->setSerializeNull(true)
        );

        return $result;
    }
private function deserializeData($data)
    {
        $result = $this->get('jms_serializer')->deserialize(
            $data,
            $this->getTargetGroupRepository()->getClassName(),
            'json',
            DeserializationContext::create()
                ->setSerializeNull(true)
        );

        return $result;
    }
private function deserializeData ( $ data ) { $ result = $ this -> get ( 'jms_serializer' ) -> deserialize ( $ data , $ this -> getTargetGroupRepository ( ) -> getClassName ( ) , 'json' , DeserializationContext :: create ( ) -> setSerializeNull ( true ) ) ; return $ result ; }
Deserializes string into TargetGroup object.

@param string $data

@return TargetGroupInterface
Deserializes string into TargetGroup object .