src/Serializer.php
public function deserialize($jsonString, $className)
    {
        if (!$this->isValidClassName($className)) {
            throw new \Exception($className.' is not defined in OpenApi PHP Annotations');
        }
        return $this->doDeserialize(json_decode($jsonString), $className);
    }
public function deserialize($jsonString, $className)
    {
        if (!$this->isValidClassName($className)) {
            throw new \Exception($className.' is not defined in OpenApi PHP Annotations');
        }
        return $this->doDeserialize(json_decode($jsonString), $className);
    }
public function deserialize ( $ jsonString , $ className ) { if ( ! $ this -> isValidClassName ( $ className ) ) { throw new \ Exception ( $ className . ' is not defined in OpenApi PHP Annotations' ) ; } return $ this -> doDeserialize ( json_decode ( $ jsonString ) , $ className ) ; }
Deserialize a string

@param $jsonString
@param $className

@return Annotations\AbstractAnnotation

@throws \Exception
Deserialize a string