OwnUser constructor

OwnUser({
  1. List<Device> devices = const [],
  2. List<Mute> mutes = const [],
  3. int totalUnreadCount = 0,
  4. int unreadChannels = 0,
  5. List<ChannelMute> channelMutes = const [],
  6. int unreadThreads = 0,
  7. List<String> blockedUserIds = const [],
  8. PushPreference? pushPreferences,
  9. PrivacySettings? privacySettings,
  10. required String id,
  11. String? role,
  12. String? name,
  13. String? image,
  14. DateTime? createdAt,
  15. DateTime? updatedAt,
  16. DateTime? lastActive,
  17. bool online = false,
  18. Map<String, Object?> extraData = const {},
  19. bool banned = false,
  20. DateTime? banExpires,
  21. List<String> teams = const [],
  22. String? language,
  23. bool? invisible,
  24. Map<String, String>? teamsRole,
  25. int? avgResponseTime,
})

Constructor used for json serialization.

Implementation

OwnUser({
  this.devices = const [],
  this.mutes = const [],
  this.totalUnreadCount = 0,
  this.unreadChannels = 0,
  this.channelMutes = const [],
  this.unreadThreads = 0,
  this.blockedUserIds = const [],
  this.pushPreferences,
  this.privacySettings,
  required super.id,
  super.role,
  super.name,
  super.image,
  super.createdAt,
  super.updatedAt,
  super.lastActive,
  super.online,
  super.extraData,
  super.banned,
  super.banExpires,
  super.teams,
  super.language,
  super.invisible,
  super.teamsRole,
  super.avgResponseTime,
});