UserObject constructor

UserObject({
  1. DateTime? banExpires,
  2. required bool banned,
  3. DateTime? createdAt,
  4. Map<String, Object> custom = const {},
  5. DateTime? deactivatedAt,
  6. DateTime? deletedAt,
  7. required String id,
  8. bool? invisible,
  9. String? language,
  10. DateTime? lastActive,
  11. required bool online,
  12. PrivacySettings? privacySettings,
  13. PushNotificationSettings? pushNotifications,
  14. DateTime? revokeTokensIssuedBefore,
  15. required String role,
  16. List<String> teams = const [],
  17. DateTime? updatedAt,
})

Returns a new UserObject instance.

Implementation

UserObject({
  this.banExpires,
  required this.banned,
  this.createdAt,
  this.custom = const {},
  this.deactivatedAt,
  this.deletedAt,
  required this.id,
  this.invisible,
  this.language,
  this.lastActive,
  required this.online,
  this.privacySettings,
  this.pushNotifications,
  this.revokeTokensIssuedBefore,
  required this.role,
  this.teams = const [],
  this.updatedAt,
});