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. required String id,
  7. String? role,
  8. String? name,
  9. String? image,
  10. DateTime? createdAt,
  11. DateTime? updatedAt,
  12. DateTime? lastActive,
  13. bool online = false,
  14. Map<String, Object?> extraData = const {},
  15. bool banned = false,
  16. DateTime? banExpires,
  17. List<String> teams = const [],
  18. String? language,
})

Constructor used for json serialization.

Implementation

OwnUser({
  this.devices = const [],
  this.mutes = const [],
  this.totalUnreadCount = 0,
  this.unreadChannels = 0,
  this.channelMutes = const [],
  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,
});