import { HttpStep } from '../../HttpStep.js';
export const TrimStepKind = 'HttpAction#Trim';
/**
 * Reads the input and trims it.
 * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim.
 */
export class TrimStep extends HttpStep {
    kind = TrimStepKind;
    constructor(init) {
        super();
        if (typeof init === 'object') {
            this.new(init);
        }
    }
    new(init) {
        super.new(init);
        this.kind = TrimStepKind;
    }
    checkValidity() {
        return true;
    }
    toJSON() {
        const result = {
            ...super.toJSON(),
            kind: TrimStepKind,
        };
        return result;
    }
}
//# sourceMappingURL=TrimStep.js.map