UNPKG

shrimpy-node

Version:
25 lines 996 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var decimal_dto_converter_1 = require("./decimal-dto-converter"); var AllocationDtoConverter = /** @class */ (function () { function AllocationDtoConverter() { this._decimalDtoConverter = new decimal_dto_converter_1.DecimalDtoConverter(); } AllocationDtoConverter.prototype.convertFromDto = function (dto) { var result = { percent: this._decimalDtoConverter.convertFromDto(dto.percent), symbol: dto.symbol, }; return result; }; AllocationDtoConverter.prototype.convertToDto = function (model) { var result = { percent: this._decimalDtoConverter.convertToDto(model.percent), symbol: model.symbol, }; return result; }; return AllocationDtoConverter; }()); exports.AllocationDtoConverter = AllocationDtoConverter; //# sourceMappingURL=allocation-dto-converter.js.map