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