OwnUserResponse constructor

OwnUserResponse({
  1. required bool banned,
  2. List<String> blockedUserIds = const [],
  3. List<ChannelMute> channelMutes = const [],
  4. required DateTime createdAt,
  5. Map<String, Object> custom = const {},
  6. DateTime? deactivatedAt,
  7. DateTime? deletedAt,
  8. List<Device> devices = const [],
  9. required String id,
  10. String? image,
  11. required bool invisible,
  12. required String language,
  13. DateTime? lastActive,
  14. List<String> latestHiddenChannels = const [],
  15. List<UserMuteResponse> mutes = const [],
  16. String? name,
  17. required bool online,
  18. PrivacySettingsResponse? privacySettings,
  19. PushNotificationSettingsResponse? pushNotifications,
  20. DateTime? revokeTokensIssuedBefore,
  21. required String role,
  22. List<String> teams = const [],
  23. required int totalUnreadCount,
  24. required int unreadChannels,
  25. required int unreadCount,
  26. required int unreadThreads,
  27. 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.unreadCount,
  required this.unreadThreads,
  required this.updatedAt,
});