File tree Expand file tree Collapse file tree 2 files changed +81
-0
lines changed Expand file tree Collapse file tree 2 files changed +81
-0
lines changed Original file line number Diff line number Diff line change @@ -255,3 +255,50 @@ class PmMessage extends Message {
255
255
@override
256
256
Map <String , dynamic > toJson () => _$PmMessageToJson (this );
257
257
}
258
+
259
+ @JsonSerializable ()
260
+ class RealmUserEventPerson {
261
+ final int user_id;
262
+
263
+ final String ? full_name;
264
+
265
+ final String ? avatar_url;
266
+ final String ? avatar_url_medium;
267
+ final String ? avatar_source;
268
+ final String ? avatar_version;
269
+
270
+ final String ? timezone;
271
+ // final String? email; // Deprecated as redundant with user_id
272
+
273
+ final int ? bot_owner_id;
274
+
275
+ final int ? role;
276
+
277
+ final bool ? is_billing_admin; // Can also be null? // TODO(server-5)
278
+
279
+ final String ? delivery_email; // TODO(server-7j
280
+
281
+ // custom_profile_field has sub-parts to affect which id/value/rendered_value is updated
282
+
283
+ final String ? new_email;
284
+
285
+ RealmUserEventPerson ({
286
+ required this .user_id,
287
+ this .full_name,
288
+ this .avatar_url,
289
+ this .avatar_url_medium,
290
+ this .avatar_source,
291
+ this .avatar_version,
292
+ this .timezone,
293
+ this .bot_owner_id,
294
+ this .role,
295
+ this .is_billing_admin, // Can also be null?
296
+ this .delivery_email,
297
+ this .new_email,
298
+ });
299
+
300
+ factory RealmUserEventPerson .fromJson (Map <String , dynamic > json) =>
301
+ _$RealmUserEventPersonFromJson (json);
302
+
303
+ Map <String , dynamic > toJson () => _$RealmUserEventPersonToJson (this );
304
+ }
You can’t perform that action at this time.
0 commit comments