Loading mobile/src/infrastructure/utils/town_utils.ts 0 → 100644 +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 Loading
mobile/src/infrastructure/utils/town_utils.ts 0 → 100644 +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