MastodonCredentialAccount class

Account information of the authenticated user.

Includes all MastodonAccount fields plus additional information available only to authenticated users, such as source (default posting settings) and role (user role).

Corresponds to responses from /api/v1/accounts/verify_credentials, /api/v1/accounts/update_credentials, DELETE /api/v1/profile/avatar|header, etc.

Annotations

Constructors

MastodonCredentialAccount({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, MastodonAccountSource? source, MastodonRole? role})
const
MastodonCredentialAccount.fromJson(Map<String, dynamic> json)
factory

Properties

acct String
Fully qualified account name.
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.
final
fields List<MastodonField>
List of profile fields.
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 image (static version).
final
headerUrl String
URL of the header 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.
final
locked bool
Whether follow requests require approval.
final
moved MastodonAccount?
Migration target account.
final
noindex bool?
Whether the account opts out of search engine indexing.
final
note String
Profile bio (HTML format).
final
role MastodonRole?
User role information.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source MastodonAccountSource?
Private information including default posting settings and follow request count.
final
statusesCount int
Number of statuses posted.
final
suspended bool?
Whether the account has been suspended.
final
url String
Profile page URL.
final
username String
Username within the instance.
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