Message constructor

Message({
  1. String? id,
  2. Author? author,
  3. Map<String, dynamic>? status,
  4. String? channelMessageId,
  5. String? message,
  6. List? readBy,
  7. bool? forwarded,
  8. bool? isChild,
  9. dynamic parentId,
  10. bool? isDeleted,
  11. String? messageType,
  12. int? direction,
  13. String? recipient,
  14. String? channel,
  15. String? extension,
  16. DateTime? createdAt,
  17. String? interactionId,
  18. List<Attachment?> attachments = const [],
  19. DateTime? updatedAt,
  20. int? v,
  21. ExtraPayload? extraPayload,
  22. String? uniqueId,
  23. bool isDelivered = false,
})

Implementation

Message(
    {this.id,
    this.author,
    this.status,
    this.channelMessageId,
    this.message,
    this.readBy,
    this.forwarded,
    this.isChild,
    this.parentId,
    this.isDeleted,
    this.messageType,
    this.direction,
    this.recipient,
    this.channel,
    this.extension,
    this.createdAt,
    this.interactionId,
    this.attachments = const [],
    this.updatedAt,
    this.v,
    this.extraPayload,
    this.uniqueId,
    this.isDelivered = false});