export class HttpStep {
    /**
     * The kind of the action to perform.
     */
    kind = '';
    /**
     * Whether the step is disabled in the flow.
     */
    enabled;
    new(init) {
        const { kind, enabled } = init;
        this.kind = kind;
        if (typeof enabled === 'boolean') {
            this.enabled = enabled;
        }
        else {
            this.enabled = undefined;
        }
    }
    toJSON() {
        const result = {
            kind: this.kind,
        };
        if (typeof this.enabled === 'boolean') {
            result.enabled = this.enabled;
        }
        return result;
    }
}
//# sourceMappingURL=HttpStep.js.map