MastodonAdminAccount class

Admin-level account information.

Account information returned by the Admin API responses. Includes additional admin-specific details beyond the standard MastodonAccount.

Annotations

Constructors

MastodonAdminAccount({required String id, required String username, String? domain, DateTime? createdAt, String? email, String? ip, List<MastodonAdminIp> ips = const [], String? locale, String? inviteRequest, MastodonAdminRole? role, bool confirmed = false, bool approved = false, bool disabled = false, bool sensitized = false, bool silenced = false, bool suspended = false, MastodonAccount? account, String? createdByApplicationId, String? invitedByAccountId})
const
MastodonAdminAccount.fromJson(Map<String, dynamic> json)
factory

Properties

account MastodonAccount?
User-level account information.
final
approved bool
Whether the account has been approved.
final
confirmed bool
Whether the email address has been confirmed.
final
createdAt DateTime?
Timestamp when the account was created.
final
createdByApplicationId String?
ID of the application that created this account.
final
disabled bool
Whether the account has been disabled.
final
domain String?
Domain of the account (null for local accounts).
final
email String?
Email address associated with the account.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Database ID of the account.
final
invitedByAccountId String?
ID of the account that invited this user.
final
inviteRequest String?
Reason provided when requesting an invite.
final
ip String?
IP address last used for login.
final
ips List<MastodonAdminIp>
History of all IP addresses associated with this account.
final
locale String?
Locale of the account (ISO 639-1 language code).
final
role MastodonAdminRole?
Current role of the account.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensitized bool
Whether the account has been marked as sensitive.
final
silenced bool
Whether the account has been silenced.
final
suspended bool
Whether the account has been suspended.
final
username String
Username of the account.
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