UNPKG

scheunemann-interfaces

Version:
24 lines (23 loc) 682 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RatingEntity = void 0; var RatingEntity = /** @class */ (function () { // #endregion Properties (4) // #region Constructors (1) function RatingEntity(data) { // #region Properties (4) this.comment = ''; this.createdAt = new Date(); this.rating = 5; this.userId = ''; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return RatingEntity; }()); exports.RatingEntity = RatingEntity;