OwnUser constructor
OwnUser({
- List<
Device> devices = const [], - List<
Mute> mutes = const [], - int totalUnreadCount = 0,
- int unreadChannels = 0,
- List<
ChannelMute> channelMutes = const [], - int unreadThreads = 0,
- List<
String> blockedUserIds = const [], - PushPreference? pushPreferences,
- PrivacySettings? privacySettings,
- required String id,
- String? role,
- String? name,
- String? image,
- DateTime? createdAt,
- DateTime? updatedAt,
- DateTime? lastActive,
- bool online = false,
- Map<
String, Object?> extraData = const {}, - bool banned = false,
- DateTime? banExpires,
- List<
String> teams = const [], - String? language,
- bool? invisible,
- Map<
String, String> ? teamsRole, - 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,
});