projects/app-base-library/src/lib/shared/user.ts
Properties |
constructor(profile: any)
|
||||||
Parameters :
|
_profile |
_profile:
|
Type : any
|
authData |
authData:
|
Type : any
|
authenticated |
authenticated:
|
Type : boolean
|
data |
data:
|
Type : any
|
email:
|
Type : string
|
id |
id:
|
Type : string
|
name |
name:
|
Type : string
|
password |
password:
|
Type : string
|
export class User {
_profile: any;
id: string;
email: string;
name: string;
password: string;
authenticated: boolean;
authData: any;
data: any;
constructor(profile: any) {
this._profile = profile;
Object.keys(profile).forEach((k) => {
this[k] = profile[k];
});
}
}