Commit be413978 authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se creó una funcion que convierte de town model a town entity

parent a422ad5d
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
import { API_URL } from "../../common/constants/api";
import { TownEntity } from "../../domain/entities/town_entity";
import { TownModel } from "../models/prod/town_model";

export const townModelToEntity = (townModel: TownModel): TownEntity => {
    return {
        id: townModel.townId,
        name: townModel.name,
        imageUri: townModel.imageName,
        description: townModel.description,
        stateId: townModel.stateId
    }
}
 No newline at end of file