import { HttpStep } from '../../HttpStep.js';
export const AsNumberStepKind = 'HttpAction#AsNumber';
/**
 * Reads the input and returns is as a number.
 */
export class AsNumberStep extends HttpStep {
    kind = AsNumberStepKind;
    constructor(init) {
        super();
        if (typeof init === 'object') {
            this.new(init);
        }
    }
    new(init) {
        super.new(init);
        this.kind = AsNumberStepKind;
    }
    checkValidity() {
        return true;
    }
    toJSON() {
        const result = {
            ...super.toJSON(),
            kind: AsNumberStepKind,
        };
        return result;
    }
}
//# sourceMappingURL=AsNumberStep.js.map