src/Factory/SwaggerFactory.php
private function buildFromParser(SwaggerParser $parser)
    {
        $context = new DeserializationContext();

        $context->setVersion(
            $parser->getVersion()
        );

        return $this->serializer->deserialize($parser, Swagger::class, 'json', $context);
    }
private function buildFromParser(SwaggerParser $parser)
    {
        $context = new DeserializationContext();

        $context->setVersion(
            $parser->getVersion()
        );

        return $this->serializer->deserialize($parser, Swagger::class, 'json', $context);
    }
private function buildFromParser ( SwaggerParser $ parser ) { $ context = new DeserializationContext ( ) ; $ context -> setVersion ( $ parser -> getVersion ( ) ) ; return $ this -> serializer -> deserialize ( $ parser , Swagger :: class , 'json' , $ context ) ; }
Return de-serialized Swagger result

@param SwaggerParser $parser
@return Swagger
@throws \LogicException
Return de - serialized Swagger result