OwnUserResponse constructor
OwnUserResponse({
- required bool banned,
- List<
String> blockedUserIds = const [], - List<
ChannelMute> channelMutes = const [], - required DateTime createdAt,
- Map<
String, Object> custom = const {}, - DateTime? deactivatedAt,
- DateTime? deletedAt,
- List<
Device> devices = const [], - required String id,
- String? image,
- required bool invisible,
- required String language,
- DateTime? lastActive,
- List<
String> latestHiddenChannels = const [], - List<
UserMuteResponse> mutes = const [], - String? name,
- required bool online,
- PrivacySettingsResponse? privacySettings,
- PushNotificationSettingsResponse? pushNotifications,
- DateTime? revokeTokensIssuedBefore,
- required String role,
- List<
String> teams = const [], - required int totalUnreadCount,
- required int unreadChannels,
- required int unreadThreads,
- required DateTime updatedAt,
Returns a new OwnUserResponse instance.
Implementation
OwnUserResponse({
required this.banned,
this.blockedUserIds = const [],
this.channelMutes = const [],
required this.createdAt,
this.custom = const {},
this.deactivatedAt,
this.deletedAt,
this.devices = const [],
required this.id,
this.image,
required this.invisible,
required this.language,
this.lastActive,
this.latestHiddenChannels = const [],
this.mutes = const [],
this.name,
required this.online,
this.privacySettings,
this.pushNotifications,
this.revokeTokensIssuedBefore,
required this.role,
this.teams = const [],
required this.totalUnreadCount,
required this.unreadChannels,
required this.unreadThreads,
required this.updatedAt,
});