Call constructor

Call({
  1. String? sessionId,
  2. String? callStatus,
  3. String? action,
  4. String? rawData,
  5. DateTime? initiatedAt,
  6. DateTime? joinedAt,
  7. AppEntity? callInitiator,
  8. AppEntity? callReceiver,
  9. int? id,
  10. String? muid,
  11. User? sender,
  12. AppEntity? receiver,
  13. required String receiverUid,
  14. required String type,
  15. required String receiverType,
  16. String? category,
  17. DateTime? sentAt,
  18. DateTime? deliveredAt,
  19. DateTime? readAt,
  20. Map<String, dynamic>? metadata,
  21. DateTime? readByMeAt,
  22. DateTime? deliveredToMeAt,
  23. DateTime? deletedAt,
  24. DateTime? editedAt,
  25. String? deletedBy,
  26. String? editedBy,
  27. DateTime? updatedAt,
  28. String? conversationId,
  29. int? parentMessageId,
  30. int? replyCount,
  31. int? unreadRepliesCount,
  32. List<User>? mentionedUsers,
  33. bool? hasMentionedMe,
})

Constructs a new Call instance.

Most properties are optional and have default values. Some, such as receiverUid, type, and receiverType are inherited from BaseMessage and are required.

Implementation

Call(
    {this.sessionId,
    this.callStatus,
    this.action,
    this.rawData,
    this.initiatedAt,
    this.joinedAt,
    this.callInitiator,
    this.callReceiver,
    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,
    int? unreadRepliesCount,
    List<User>? mentionedUsers,
    bool? hasMentionedMe})
    : 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,
        unreadRepliesCount: unreadRepliesCount ?? 0,
        hasMentionedMe: hasMentionedMe,
        mentionedUsers: mentionedUsers ?? [],
      );