File size: 303 Bytes
2c16c8c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export class User {
  constructor(

    public readonly id: number,

    public email: string,

    public profilePictureUrl?: string | null

  ) {}

  updateEmail(newEmail: string) {
    this.email = newEmail;
  }

  updateProfilePicture(url: string) {
    this.profilePictureUrl = url;
  }
}