Event constructor
Event({
- String type = 'local.event',
- String? cid,
- String? connectionId,
- DateTime? createdAt,
- OwnUser? me,
- User? user,
- Message? message,
- int? totalUnreadCount,
- int? unreadChannels,
- Reaction? reaction,
- bool? online,
- EventChannel? channel,
- Member? member,
- String? channelId,
- String? channelType,
- String? parentId,
- bool? hardDelete,
- Map<
String, Object?> extraData = const {}, - bool isLocal = true,
Constructor used for json serialization
Implementation
Event({
this.type = 'local.event',
this.cid,
this.connectionId,
DateTime? createdAt,
this.me,
this.user,
this.message,
this.totalUnreadCount,
this.unreadChannels,
this.reaction,
this.online,
this.channel,
this.member,
this.channelId,
this.channelType,
this.parentId,
this.hardDelete,
this.extraData = const {},
this.isLocal = true,
}) : createdAt = createdAt?.toUtc() ?? DateTime.now().toUtc();