import { IDtoConverter } from "../interfaces" ; import Decimal from "decimal.js" ; export class DecimalDtoConverter implements IDtoConverter < string , Decimal > { public convertFromDto ( dto ) { return new Decimal ( dto ) ; } public convertToDto ( model ) { return model . toString ( ) ; } }