mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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
384 B
21 lines
384 B
import { Expose } from 'class-transformer'
|
|
|
|
export class UserItem {
|
|
id: number;
|
|
username: string;
|
|
|
|
@Expose({ name: 'is_superuser' })
|
|
isSuperuser: boolean;
|
|
|
|
@Expose({ name: 'is_staff' })
|
|
isStaff: boolean;
|
|
|
|
toObject(): Object {
|
|
return {
|
|
id: this.id,
|
|
username: this.username,
|
|
is_superuser: this.isSuperuser,
|
|
is_staff: this.isStaff
|
|
}
|
|
}
|
|
}
|