mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
371 B
21 lines
371 B
export class MemberItem {
|
|
id: number;
|
|
user: number;
|
|
role: number;
|
|
username: string;
|
|
rolename: string;
|
|
|
|
get isProjectAdmin(): boolean {
|
|
return this.rolename === 'project_admin'
|
|
}
|
|
|
|
toObject(): Object {
|
|
return {
|
|
id: this.id,
|
|
user: this.user,
|
|
role: this.role,
|
|
username: this.username,
|
|
rolename: this.rolename
|
|
}
|
|
}
|
|
}
|