fix: adding toObject in ApiClasses
This commit is contained in:
@ -62,6 +62,17 @@ class User {
|
||||
set phoneNumber(value: string | undefined) {
|
||||
this._phoneNumber = value;
|
||||
}
|
||||
|
||||
toObject() {
|
||||
return {
|
||||
idUser: this._idUser,
|
||||
userSurname: this._userSurname,
|
||||
userName: this._userName,
|
||||
primaryMail: this._primaryMail,
|
||||
secondaryMail: this._secondaryMail,
|
||||
phoneNumber: this._phoneNumber,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export default User;
|
||||
|
Reference in New Issue
Block a user