fix: adding toObject in ApiClasses
This commit is contained in:
@ -36,6 +36,15 @@ class UserEntrepreneur extends User {
|
||||
set sneeStatus(value: boolean | undefined) {
|
||||
this._sneeStatus = value;
|
||||
}
|
||||
|
||||
toObject() {
|
||||
return {
|
||||
...super.toObject(),
|
||||
school: this._school,
|
||||
course: this._course,
|
||||
sneeStatus: this._sneeStatus,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export default UserEntrepreneur;
|
||||
|
Reference in New Issue
Block a user