@codelytv/primitives-type
Version:
Type entity primitives from value objects
17 lines • 440 B
JavaScript
var Address = (function () {
function Address(street, city, number) {
this.street = street;
this.city = city;
this.number = number;
}
Address.prototype.toPrimitives = function () {
return {
street: this.street.value,
city: this.city.value,
number: this.number,
};
};
return Address;
}());
export { Address };
//# sourceMappingURL=Address.js.map