import { IDtoConverter } from "../interfaces" ; import { IPredictionItemDto } from "../dtos" ; import { IPredictionItem } from "../models" ; export class PredictionItemDtoConverter implements IDtoConverter < IPredictionItemDto , IPredictionItem > { public convertFromDto ( dto ) { const result = { date : dto . date , updatedAt : dto . updatedAt , prediction : dto . prediction } ; return result ; } public convertToDto ( model ) { const result = { date : model . date , updatedAt : model . updatedAt , prediction : model . prediction } ; return result ; } }