Conversation class

Annotations
  • @freezed

Constructors

Conversation.new({@JsonKey(name: 'id', required: true) required String id, @JsonKey(name: 'type', required: true) required String type, @JsonKey(name: 'open', required: true) required bool open, @JsonKey(name: 'read', required: true) required bool read, @JsonKey(name: 'lastActivityAt', required: true) required DateTime lastActivityAt, @JsonKey(name: 'source', required: true) required ConversationSource source, @JsonKey(name: 'lastRenderablePart') required ConversationPart? lastRenderablePart, @JsonKey(name: 'conversationParts') required List<ConversationPart>? conversationParts, @JsonKey(name: 'participants', required: true) required List<ConversationParticipant> participants})
const
factory
Conversation.fromJson(Map<String, Object?> json)
factory

Properties

conversationParts List<ConversationPart>?
The full conversation
no setterinherited
copyWith → $ConversationCopyWith<Conversation>
Create a copy of Conversation with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
Conversation Id
no setterinherited
lastActivityAt DateTime
When there was last activity
no setterinherited
lastRenderablePart ConversationPart?
The last part in the conversation
no setterinherited
open bool
If the conversation is open
no setterinherited
participants List<ConversationParticipant>
The conversation participants
no setterinherited
read bool
A new message in the conversation that has not been read
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source ConversationSource
Conversation source
no setterinherited
type String
Conversation type
no setterinherited

Methods

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

Operators

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