"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.networkMapper = void 0;
const network_1 = require("../../../../domain/entities/network");
const network_entity_1 = require("../../entities/network.entity");
exports.networkMapper = {
    toDomain(entity) {
        return new network_1.Network(entity.id, entity.name, entity.code, entity.addressType, entity.thumbnail, entity.explorer, entity.chainId, entity.status, entity.mcap, entity.createdAt, entity.updatedAt);
    },
    toEntity(domain) {
        const entity = new network_entity_1.NetworkEntity();
        entity.id = domain.id;
        entity.name = domain.name;
        entity.code = domain.code;
        entity.addressType = domain.addressType;
        entity.thumbnail = domain.thumbnail;
        entity.explorer = domain.explorer;
        entity.chainId = domain.chainId;
        entity.status = domain.status;
        entity.mcap = domain.mcap;
        entity.createdAt = domain.createdAt;
        entity.updatedAt = domain.updatedAt;
        return entity;
    },
};
//# sourceMappingURL=network.mapper.js.map