Files
luthor/otis/src/app/roles/role.ts
2021-01-05 13:02:52 +05:30

15 lines
290 B
TypeScript

import { Permission } from './permission';
export class Role {
id: string | undefined;
name: string;
permissions: Permission[];
public constructor(init?: Partial<Role>) {
this.id = undefined;
this.name = '';
this.permissions = [];
Object.assign(this, init);
}
}