UNPKG

shrimpy-node

Version:
27 lines 999 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var decimal_dto_converter_1 = require("./decimal-dto-converter"); var NullableDecimalDtoConverter = /** @class */ (function () { function NullableDecimalDtoConverter() { this._decimalDtoConverter = new decimal_dto_converter_1.DecimalDtoConverter(); } NullableDecimalDtoConverter.prototype.convertFromDto = function (dto) { if (dto) { return this._decimalDtoConverter.convertFromDto(dto); } else { return null; } }; NullableDecimalDtoConverter.prototype.convertToDto = function (model) { if (model) { return this._decimalDtoConverter.convertToDto(model); } else { return null; } }; return NullableDecimalDtoConverter; }()); exports.NullableDecimalDtoConverter = NullableDecimalDtoConverter; //# sourceMappingURL=nullable-decimal-dto-converter.js.map