misc_pterodactyl-panel/resources/scripts/api/definitions/user/transformers.ts

16 lines
376 B
TypeScript
Raw Normal View History

import { SSHKey } from '@definitions/user/models';
export default class Transformers {
static toSSHKey (data: Record<any, any>): SSHKey {
return {
name: data.name,
publicKey: data.public_key,
fingerprint: data.fingerprint,
createdAt: new Date(data.created_at),
};
}
}
export class MetaTransformers {
}