"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformForm = transformForm;
function transformForm(payload) {
    return {
        form: {
            id: payload.id,
            action: payload.action,
            elements: payload.elements?.map((element) => ({
                id: element.id,
                name: element.name,
                tagName: element.tagName,
                type: element.type,
                value: element.value
            }))
        }
    };
}
//# sourceMappingURL=transformForm.js.map