"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SSHKeyMapper = void 0;
class SSHKeyMapper {
    static toDto(sshKey) {
        return {
            id: sshKey.id,
            name: sshKey.name,
            publicKey: sshKey.publicKey,
            fingerprint: sshKey.fingerprint,
            type: sshKey.type,
            isActive: sshKey.isActive,
            autoGenerated: sshKey.autoGenerated,
            lastUsed: sshKey.lastUsed,
            createdAt: sshKey.createdAt,
            updatedAt: sshKey.updatedAt,
            tags: sshKey.tags || {},
            providerKeyMappings: sshKey.providerKeyMappings || {},
        };
    }
    static toDtoList(sshKeys) {
        return sshKeys.map((sshKey) => this.toDto(sshKey));
    }
}
exports.SSHKeyMapper = SSHKeyMapper;
