"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tokenMapper = void 0;
const token_1 = require("../../../../domain/entities/token");
const token_entity_1 = require("../../entities/token.entity");
exports.tokenMapper = {
    toDomain(entity) {
        return new token_1.Token(entity.id, entity.isNative, entity.address, entity.networkId, entity.thumbnail, entity.name, entity.symbol, entity.decimals, entity.code, entity.info, entity.isActive, entity.minimumSwapValue, entity.mcap, entity.createdAt, entity.updatedAt);
    },
    toEntity(domain) {
        const entity = new token_entity_1.TokenEntity();
        entity.id = domain.id;
        entity.isNative = domain.isNative;
        entity.address = domain.address;
        entity.networkId = domain.networkId;
        entity.thumbnail = domain.thumbnail;
        entity.name = domain.name;
        entity.symbol = domain.symbol;
        entity.decimals = domain.decimals;
        entity.code = domain.code;
        entity.info = domain.info;
        entity.isActive = domain.isActive;
        entity.minimumSwapValue = domain.minimumSwapValue;
        entity.mcap = domain.mcap;
        entity.createdAt = domain.createdAt;
        entity.updatedAt = domain.updatedAt;
        return entity;
    },
};
//# sourceMappingURL=token.mapper.js.map