MastodonSearchResultV1 class
v1 search result (deprecated).
Corresponds to the response from GET /api/v1/search.
The main difference from v2 is that hashtags is returned as a simple
string array rather than Tag objects.
The v1 search endpoint was removed in Mastodon 3.0.0 and is only available on 2.x instances.
- Annotations
-
- @Deprecated('Removed in Mastodon 3.0.0. Use MastodonSearchResult (v2) instead')
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonSearchResultV1({required List<
MastodonAccount> accounts, required List<MastodonStatus> statuses, required List<String> hashtags}) -
const
-
MastodonSearchResultV1.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
-
List of hashtag names matching the search (strings).
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