UNPKG

shrimpy-node-temp

Version:
33 lines 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var allocation_dto_converter_1 = require("./allocation-dto-converter"); var StaticStrategyDtoConverter = /** @class */ (function () { function StaticStrategyDtoConverter() { this._allocationDtoConverter = new allocation_dto_converter_1.AllocationDtoConverter(); } StaticStrategyDtoConverter.prototype.convertFromDto = function (dto) { var _this = this; var allocations = dto.allocations.map(function (allocationDto) { return _this._allocationDtoConverter.convertFromDto(allocationDto); }); var result = { allocations: allocations, isDynamic: false, }; return result; }; StaticStrategyDtoConverter.prototype.convertToDto = function (model) { var _this = this; var allocationDtos = model.allocations.map(function (allocation) { return _this._allocationDtoConverter.convertToDto(allocation); }); var result = { allocations: allocationDtos, isDynamic: false }; return result; }; return StaticStrategyDtoConverter; }()); exports.StaticStrategyDtoConverter = StaticStrategyDtoConverter; //# sourceMappingURL=static-strategy-dto-converter.js.map