"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deviceMapper = void 0;
const device_1 = require("../../../../domain/entities/device");
const device_entity_1 = require("../../entities/device.entity");
exports.deviceMapper = {
    toDomain(entity) {
        return new device_1.Device(entity.id, entity.location, entity.type, entity.info, entity.ipAddress, entity.userAgent, entity.fingerprint, entity.status, entity.pushToken, entity.createdAt, entity.updatedAt);
    },
    toEntity(domain) {
        const entity = new device_entity_1.DeviceEntity();
        entity.id = domain.id;
        entity.location = domain.location;
        entity.type = domain.type;
        entity.info = domain.info;
        entity.ipAddress = domain.ipAddress;
        entity.userAgent = domain.userAgent;
        entity.fingerprint = domain.fingerprint;
        entity.status = domain.status;
        entity.pushToken = domain.pushToken;
        entity.createdAt = domain.createdAt;
        entity.updatedAt = domain.updatedAt;
        return entity;
    },
};
//# sourceMappingURL=device.mapper.js.map