MastodonAccount class

Mastodon account (user) model.

Corresponds to responses from /api/v1/accounts/:id, /api/v1/accounts/verify_credentials, etc.

Annotations

Constructors

MastodonAccount({required String id, required String username, required String acct, required String displayName, required String note, required String url, required String avatarUrl, required String avatarStaticUrl, required String headerUrl, required String headerStaticUrl, required bool locked, required bool bot, required int followersCount, required int followingCount, required int statusesCount, required List<MastodonField> fields, required List<MastodonCustomEmoji> emojis, bool? discoverable, bool? noindex, DateTime? createdAt, DateTime? lastStatusAt, MastodonAccount? moved, bool? suspended, bool? limited, bool? hideCollections, String? avatarBlurhash, String? headerBlurhash})
const
MastodonAccount.fromJson(Map<String, dynamic> json)
factory

Properties

acct String
Fully qualified account name. Local users have only username, remote users have username@host.
final
avatarBlurhash String?
Blurhash of the avatar image.
final
avatarStaticUrl String
URL of the avatar image (static version).
final
avatarUrl String
URL of the avatar image (animated version).
final
bot bool
Whether this is a bot account.
final
createdAt DateTime?
Timestamp when the account was created.
final
discoverable bool?
Whether the account opts in to discovery features.
final
displayName String
Display name.
final
emojis List<MastodonCustomEmoji>
List of custom emojis used in the profile or display name.
final
fields List<MastodonField>
List of custom fields on the profile.
final
followersCount int
Number of followers.
final
followingCount int
Number of accounts being followed.
final
hashCode int
The hash code for this object.
no setterinherited
headerBlurhash String?
Blurhash of the header image.
final
headerStaticUrl String
URL of the header (banner) image (static version).
final
headerUrl String
URL of the header (banner) image (animated version).
final
hideCollections bool?
Whether the follow/followers lists are hidden.
final
id String
Internal ID of the account.
final
lastStatusAt DateTime?
Date of the last posted status.
final
limited bool?
Whether the account has been limited by an administrator.
final
locked bool
Whether follow requests require approval.
final
moved MastodonAccount?
Migration target account. Non-null only if the account has migrated.
final
noindex bool?
Whether the account opts out of search engine indexing.
final
note String
Profile bio (HTML format).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusesCount int
Number of statuses posted.
final
suspended bool?
Whether the account has been suspended by an administrator.
final
url String
URL of the account's profile page.
final
username String
Username within the instance (without @ or host portion).
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