MastodonSuggestion class
Suggested account to follow and the reason for the suggestion.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonSuggestion({required String source, required MastodonAccount account})
-
Creates a MastodonSuggestion with the given fields.
const
-
MastodonSuggestion.fromJson(Map<
String, dynamic> json) -
Creates a MastodonSuggestion from a JSON map.
factory
Properties
- account → MastodonAccount
-
Suggested account.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
String indicating the reason for the suggestion.
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