"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addressMapper = void 0;
const address_1 = require("../../../../domain/entities/address");
const address_entity_1 = require("../../entities/address.entity");
exports.addressMapper = {
    toDomain(entity) {
        return new address_1.Address(entity.id, entity.address, entity.type, entity.walletId, entity.isPrimary, entity.createdAt, entity.updatedAt);
    },
    toEntity(domain) {
        const entity = new address_entity_1.AddressEntity();
        entity.id = domain.id;
        entity.address = domain.address;
        entity.type = domain.type;
        entity.walletId = domain.walletId;
        entity.isPrimary = domain.isPrimary;
        entity.createdAt = domain.createdAt;
        entity.updatedAt = domain.updatedAt;
        return entity;
    },
};
//# sourceMappingURL=address.mapper.js.map