scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
29 lines (28 loc) • 820 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.QuestionEntity = void 0;
var QuestionEntity = /** @class */ (function () {
function QuestionEntity(data) {
this.active = true;
this.createdAt = new Date();
this.updatedAt = new Date();
this.description = '';
this.id = '';
this.name = '';
this.value = '';
this.index = 0;
this.level = null;
this.questionIds = null;
this.inputs = null;
this.tags = [];
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return QuestionEntity;
}());
exports.QuestionEntity = QuestionEntity;