import { HttpStep } from '../../HttpStep.js';
export const NotOkAssertionKind = 'HttpAction#NotOkAssertion';
/**
 * An assertion that makes sure the input has a truly value.
 */
export class NotOkAssertion extends HttpStep {
    kind = NotOkAssertionKind;
    constructor(init) {
        super();
        if (typeof init === 'object') {
            this.new(init);
        }
    }
    new(init) {
        super.new(init);
        this.kind = NotOkAssertionKind;
    }
    checkValidity() {
        return true;
    }
    toJSON() {
        const result = {
            ...super.toJSON(),
            kind: NotOkAssertionKind,
        };
        return result;
    }
}
//# sourceMappingURL=NotOkAssertion.js.map