ConversationPart class
- Annotations
-
- @freezed
Constructors
- ConversationPart.new({@JsonKey(name: 'id', required: true) required String id, @JsonKey(name: 'partType', required: true) required String partType, @JsonKey(name: 'body', required: true) required String body, @JsonKey(name: 'bodyText') String? bodyText, @JsonKey(name: 'channel') String? channel, @JsonKey(name: 'createdAt', required: true) required DateTime createdAt, @JsonKey(name: 'author') required ConversationParticipant? author})
-
constfactory
-
ConversationPart.fromJson(Map<
String, Object?> json) -
factory
Properties
-
Who the author of the part is
no setterinherited
- body → String
-
Full body
no setterinherited
- bodyText → String?
-
Body converted to text
no setterinherited
- channel → String?
-
Conversation channel
no setterinherited
-
copyWith
→ $ConversationPartCopyWith<
ConversationPart> -
Create a copy of ConversationPart
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
When the part was created
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Part Id
no setterinherited
- partType → String
-
Part type
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ConversationPart to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited