@@ -21,7 +21,7 @@ abstract class User implements _i1.SerializableModel {
2121 this .archivedAt,
2222 required this .userAuthId,
2323 this .displayName,
24- this .email,
24+ required this .email,
2525 this .image,
2626 this .memberships,
2727 int ? maxOwnedProjects,
@@ -36,7 +36,7 @@ abstract class User implements _i1.SerializableModel {
3636 DateTime ? archivedAt,
3737 required String userAuthId,
3838 String ? displayName,
39- String ? email,
39+ required String email,
4040 Uri ? image,
4141 List <_i2.UserRoleMembership >? memberships,
4242 int ? maxOwnedProjects,
@@ -54,7 +54,7 @@ abstract class User implements _i1.SerializableModel {
5454 : _i1.DateTimeJsonExtension .fromJson (jsonSerialization['archivedAt' ]),
5555 userAuthId: jsonSerialization['userAuthId' ] as String ,
5656 displayName: jsonSerialization['displayName' ] as String ? ,
57- email: jsonSerialization['email' ] as String ? ,
57+ email: jsonSerialization['email' ] as String ,
5858 image: jsonSerialization['image' ] == null
5959 ? null
6060 : _i1.UriJsonExtension .fromJson (jsonSerialization['image' ]),
@@ -83,7 +83,7 @@ abstract class User implements _i1.SerializableModel {
8383 String ? displayName;
8484
8585 /// The email address of the user.
86- String ? email;
86+ String email;
8787
8888 /// The image url of the user.
8989 Uri ? image;
@@ -119,7 +119,7 @@ abstract class User implements _i1.SerializableModel {
119119 if (archivedAt != null ) 'archivedAt' : archivedAt? .toJson (),
120120 'userAuthId' : userAuthId,
121121 if (displayName != null ) 'displayName' : displayName,
122- if (email != null ) 'email' : email,
122+ 'email' : email,
123123 if (image != null ) 'image' : image? .toJson (),
124124 if (memberships != null )
125125 'memberships' : memberships? .toJson (valueToJson: (v) => v.toJson ()),
@@ -143,7 +143,7 @@ class _UserImpl extends User {
143143 DateTime ? archivedAt,
144144 required String userAuthId,
145145 String ? displayName,
146- String ? email,
146+ required String email,
147147 Uri ? image,
148148 List <_i2.UserRoleMembership >? memberships,
149149 int ? maxOwnedProjects,
@@ -171,7 +171,7 @@ class _UserImpl extends User {
171171 Object ? archivedAt = _Undefined ,
172172 String ? userAuthId,
173173 Object ? displayName = _Undefined ,
174- Object ? email = _Undefined ,
174+ String ? email,
175175 Object ? image = _Undefined ,
176176 Object ? memberships = _Undefined ,
177177 Object ? maxOwnedProjects = _Undefined ,
@@ -183,7 +183,7 @@ class _UserImpl extends User {
183183 archivedAt: archivedAt is DateTime ? ? archivedAt : this .archivedAt,
184184 userAuthId: userAuthId ?? this .userAuthId,
185185 displayName: displayName is String ? ? displayName : this .displayName,
186- email: email is String ? ? email : this .email,
186+ email: email ?? this .email,
187187 image: image is Uri ? ? image : this .image,
188188 memberships: memberships is List <_i2.UserRoleMembership >?
189189 ? memberships
0 commit comments