Conversation class
- Annotations
-
- @JsonSerializable()
- @ConversationCategoryJsonConverter()
- @ConversationStatusJsonConverter()
Constructors
- Conversation({required String conversationId, required DateTime createdAt, required ConversationStatus status, String? name, String? ownerId, ConversationCategory? category, String? announcement, String? iconUrl, DateTime? pinedAt, String? lastMessageId, String? lastReadMessageId, int? unseenMessageCount, String? draft, String? muteUntil})
-
Conversation.fromJson(Map<
String, dynamic> json) -
factory
Properties
- announcement ↔ String?
-
getter/setter pair
- category ↔ ConversationCategory?
-
getter/setter pair
- conversationId ↔ String
-
getter/setter pair
- createdAt ↔ DateTime
-
getter/setter pair
- draft ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconUrl ↔ String?
-
getter/setter pair
- isContact → bool
-
no setter
- isGroup → bool
-
no setter
- lastMessageId ↔ String?
-
getter/setter pair
- lastReadMessageId ↔ String?
-
getter/setter pair
- muteUntil ↔ String?
-
getter/setter pair
- name ↔ String?
-
getter/setter pair
- ownerId ↔ String?
-
getter/setter pair
- pinedAt ↔ DateTime?
-
getter/setter pair
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ ConversationStatus
-
getter/setter pair
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - unseenMessageCount ↔ int?
-
getter/setter pair
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