@codelytv/primitives-type
Version:
Type entity primitives from value objects
18 lines • 481 B
JavaScript
var Video = (function () {
function Video(id, name, duration) {
this.id = id;
this.name = name;
this.duration = duration;
}
Video.prototype.toPrimitives = function () {
var _a;
return {
id: this.id.value,
name: (_a = this.name) === null || _a === void 0 ? void 0 : _a.value,
duration: this.duration,
};
};
return Video;
}());
export { Video };
//# sourceMappingURL=Video.js.map