"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.walletMapper = void 0;
const wallet_1 = require("../../../../domain/entities/wallet");
const wallet_entity_1 = require("../../entities/wallet.entity");
exports.walletMapper = {
    toDomain(entity) {
        return new wallet_1.Wallet(entity.id, entity.name, entity.syncType, entity.syncedAt, entity.encryptedPhrase, entity.deviceIds, entity.isAdmin, entity.isActive, entity.lastAccessedAt, entity.version, entity.createdAt, entity.updatedAt);
    },
    toEntity(domain) {
        const entity = new wallet_entity_1.WalletEntity();
        entity.id = domain.id;
        entity.name = domain.name;
        entity.syncType = domain.syncType;
        entity.syncedAt = domain.syncedAt;
        entity.encryptedPhrase = domain.encryptedPhrase;
        entity.deviceIds = domain.deviceIds;
        entity.isAdmin = domain.isAdmin;
        entity.isActive = domain.isActive;
        entity.lastAccessedAt = domain.lastAccessedAt;
        entity.version = domain.version;
        entity.createdAt = domain.createdAt;
        entity.updatedAt = domain.updatedAt;
        return entity;
    },
};
//# sourceMappingURL=wallet.mapper.js.map