ChatModel class
Constructors
-
ChatModel({required int id, required bool isGroup, String? name, String? picture, String? createdBy, required int createdAt, int? updatedAt, required String encryptionKey, int? latestMessageId, required List<
ChatMember> members, ChatMessageModel? latestMessage}) -
ChatModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- createdAt → int
-
final
- createdBy → String?
-
final
- encryptionKey → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
final
- isGroup → bool
-
final
- latestMessage → ChatMessageModel?
-
final
- latestMessageId → int?
-
final
-
members
→ List<
ChatMember> -
final
- name → String?
-
final
- picture → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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