import { HttpStep } from '../../HttpStep.js';
export const IsEmptyAssertionKind = 'HttpAction#IsEmptyAssertion';
/**
 * An assertion that makes sure the input is empty (empty array, empty string, empty object - no properties)
 */
export class IsEmptyAssertion extends HttpStep {
    kind = IsEmptyAssertionKind;
    constructor(init) {
        super();
        if (typeof init === 'object') {
            this.new(init);
        }
    }
    new(init) {
        super.new(init);
        this.kind = IsEmptyAssertionKind;
    }
    checkValidity() {
        return true;
    }
    toJSON() {
        const result = {
            ...super.toJSON(),
            kind: IsEmptyAssertionKind,
        };
        return result;
    }
}
//# sourceMappingURL=IsEmptyAssertion.js.map