Loading web/src/data/models/prod/POIModel.ts 0 → 100644 +24 −0 Original line number Diff line number Diff line import { PointOfInterest } from "../../../infraestructure/entities/poi"; export interface POIModel { idPoint: number; idPlace: number; name: string; imageName: string; content: string; directions: string; } export const POIModelToEntity = (model: POIModel) =>{ const poi: PointOfInterest = { idPoint : model.idPoint, idPlace : model.idPlace, name: model.name, image: model.imageName, contentES: model.content, contentEN: model.content, directionsES: model.directions, directionsEN: model.directions } return poi; } No newline at end of file Loading
web/src/data/models/prod/POIModel.ts 0 → 100644 +24 −0 Original line number Diff line number Diff line import { PointOfInterest } from "../../../infraestructure/entities/poi"; export interface POIModel { idPoint: number; idPlace: number; name: string; imageName: string; content: string; directions: string; } export const POIModelToEntity = (model: POIModel) =>{ const poi: PointOfInterest = { idPoint : model.idPoint, idPlace : model.idPlace, name: model.name, image: model.imageName, contentES: model.content, contentEN: model.content, directionsES: model.directions, directionsEN: model.directions } return poi; } No newline at end of file