MastodonSearchResult class

v2 search result.

Corresponds to the response from GET /api/v2/search. hashtags is returned as an array of MastodonTag objects.

Annotations

Constructors

MastodonSearchResult({required List<MastodonAccount> accounts, required List<MastodonStatus> statuses, required List<MastodonTag> hashtags})
const
MastodonSearchResult.fromJson(Map<String, dynamic> json)
factory

Properties

accounts List<MastodonAccount>
List of accounts matching the search.
final
hashCode int
The hash code for this object.
no setterinherited
hashtags List<MastodonTag>
List of hashtags matching the search (Tag objects).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statuses List<MastodonStatus>
List of statuses matching the search.
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