MastodonConversation class
Direct message conversation.
Corresponds to the response from /api/v1/conversations.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonConversation({required String id, required bool unread, required List<
MastodonAccount> accounts, MastodonStatus? lastStatus}) -
const
-
MastodonConversation.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
accounts
→ List<
MastodonAccount> -
List of accounts participating in the conversation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Internal ID of the conversation.
final
- lastStatus → MastodonStatus?
-
Most recent status in the conversation.
nullif none exists.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unread → bool
-
Whether the conversation is unread.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited