ChatModel class

Constructors

ChatModel.new({required String userId, required String peerId, required String peerName, bool peerOnline = false, int? mostRecentMessageId, DateTime? lastModified, DateTime? createdAt, String? reference})
ChatModel.fromJson(Map jsonMap)
factory
ChatModel.fromJsonString(String jsonString)
factory

Properties

createdAt DateTime?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
latefinal
lastModified DateTime?
final
mostRecentMessageId int?
getter/setter pair
peerId String
final
peerName String
final
peerOnline bool
getter/setter pair
peerUser ChatUserModel
no setter
reference String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDbJson({List<String> excepts = const []}) Map<String, Object?>
toJson({List<String> excepts = const []}) Map<String, Object?>
toJsonString() → dynamic
toString() String
A string representation of this object.
inherited

Operators

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