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.
26 lines
583 B
26 lines
583 B
export class MemberItem {
|
|
constructor(
|
|
public id: number,
|
|
public user: number,
|
|
public role: number,
|
|
public username: string,
|
|
public rolename: string
|
|
) {}
|
|
|
|
static valueOf(
|
|
{ id, user, role, username, rolename }:
|
|
{ id: number, user: number, role: number, username: string, rolename: string }
|
|
): MemberItem {
|
|
return new MemberItem(id, user, role, username, rolename)
|
|
}
|
|
|
|
toObject(): Object {
|
|
return {
|
|
id: this.id,
|
|
user: this.user,
|
|
role: this.role,
|
|
username: this.username,
|
|
rolename: this.rolename
|
|
}
|
|
}
|
|
}
|