import { BaseOpenApiV3_1ConverterNode, } from "../../BaseOpenApiV3_1Converter.node";
import { extendType } from "../../utils/extendType";
import { X_FERN_SERVER_NAME } from "./fernExtension.consts";
export class XFernServerNameConverterNode extends BaseOpenApiV3_1ConverterNode {
    serverName;
    constructor(args) {
        super(args);
        this.safeParse();
    }
    parse() {
        this.serverName = extendType(this.input)[X_FERN_SERVER_NAME];
    }
    convert() {
        if (this.serverName == null) {
            return undefined;
        }
        return this.serverName;
    }
}
