MediaMessage constructor

MediaMessage({
  1. String? caption,
  2. Attachment? attachment,
  3. String? file,
  4. List<String>? tags,
  5. int? id,
  6. String? muid,
  7. User? sender,
  8. AppEntity? receiver,
  9. required String receiverUid,
  10. required String type,
  11. required String receiverType,
  12. String? category,
  13. DateTime? sentAt,
  14. DateTime? deliveredAt,
  15. DateTime? readAt,
  16. Map<String, dynamic>? metadata,
  17. DateTime? readByMeAt,
  18. DateTime? deliveredToMeAt,
  19. DateTime? deletedAt,
  20. DateTime? editedAt,
  21. String? deletedBy,
  22. String? editedBy,
  23. DateTime? updatedAt,
  24. String? conversationId,
  25. int? parentMessageId,
  26. int? replyCount,
})

Implementation

MediaMessage({
  this.caption,
  this.attachment,
  this.file,
  this.tags,
  int? id,
  String? muid,
  User? sender,
  AppEntity? receiver,
  required String receiverUid,
  required String type,
  required String receiverType,
  String? category,
  DateTime? sentAt,
  DateTime? deliveredAt,
  DateTime? readAt,
  Map<String, dynamic>? metadata,
  DateTime? readByMeAt,
  DateTime? deliveredToMeAt,
  DateTime? deletedAt,
  DateTime? editedAt,
  String? deletedBy,
  String? editedBy,
  DateTime? updatedAt,
  String? conversationId,
  int? parentMessageId,
  int? replyCount,
}) : super(
        id: id ?? 0,
        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 ?? 0,
        replyCount: replyCount ??= 0,
      );