Action constructor
Action({
- required String message,
- required String rawData,
- required String action,
- required String oldScope,
- required String newScope,
- required int id,
- required String? muid,
- required User sender,
- required AppEntity receiver,
- required String receiverUid,
- required String type,
- required String receiverType,
- required String category,
- required DateTime sentAt,
- required DateTime deliveredAt,
- required DateTime readAt,
- Map<
String, dynamic> metadata = const {}, - required DateTime readByMeAt,
- required DateTime deliveredToMeAt,
- required DateTime deletedAt,
- required DateTime editedAt,
- required String? deletedBy,
- required String? editedBy,
- required DateTime updatedAt,
- required String conversationId,
- required int parentMessageId,
- required dynamic replyCount,
- AppEntity? actionBy,
- AppEntity? actionOn,
- AppEntity? actionFor,
Implementation
Action({
required this.message,
required this.rawData,
required this.action,
required this.oldScope,
required this.newScope,
required int id,
required String? muid,
required User sender,
required AppEntity receiver,
required String receiverUid,
required String type,
required String receiverType,
required String category,
required DateTime sentAt,
required DateTime deliveredAt,
required DateTime readAt,
Map<String, dynamic> metadata = const {},
required DateTime readByMeAt,
required DateTime deliveredToMeAt,
required DateTime deletedAt,
required DateTime editedAt,
required String? deletedBy,
required String? editedBy,
required DateTime updatedAt,
required String conversationId,
required int parentMessageId,
required replyCount,
this.actionBy,
this.actionOn,
this.actionFor
}) : super(
id: id,
muid: muid ?? '',
sender: sender,
receiver: receiver,
receiverUid: receiverUid,
type: type,
receiverType: receiverType,
category: category,
sentAt: sentAt,
deliveredAt: deliveredAt,
readAt: readAt,
metadata: metadata,
readByMeAt: readByMeAt,
deliveredToMeAt: deliveredToMeAt,
deletedAt: deletedAt,
editedAt: editedAt,
deletedBy: deletedBy,
editedBy: editedBy,
updatedAt: updatedAt,
conversationId: conversationId,
parentMessageId: parentMessageId,
replyCount: replyCount,
);