export interface PersonModel { username ? : string ; password ? : string ; firstName ? : string ; lastName ? : string ; email ? : string ; enabled ? : boolean ; properties ? : any ; } export class Person { id : string ; password : string ; firstName : string ; lastName : string ; email : string ; enabled : boolean ; properties : any ; constructor ( user ) { this . id = user . username ; this . password = user . password || user . username ; this . firstName = user . firstName || user . username ; this . lastName = user . lastName || user . username ; this . email = user . email || `${ user . username }@alfresco.com` ; this . enabled = user . enabled || true ; } }