ChatMessageModel class

Constructors

ChatMessageModel({required int id, required String chatId, required String senderId, required String content, required String messageType, int? updatedAt, int? parentId, bool? isDeleted, required int createdAt, String? platform, Map? customData, Map? fileInfo, List<MessageReactionModel>? reactions})
ChatMessageModel.fromJson(Map<String, dynamic> json)
factory

Properties

chatId String
final
content String
getter/setter pair
createdAt int
final
customData Map?
final
fileInfo Map?
final
groupedReactions List<MessageReactionModel>
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
final
isDeleted bool?
final
messageType String
final
parentId int?
final
platform String?
final
reactions List<MessageReactionModel>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderId String
final
updatedAt int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited