MastodonAccountWarning class

Moderation warning (Mastodon 4.3+).

Annotations

Constructors

MastodonAccountWarning({required String id, required String action, required String text, required bool appeal, DateTime? createdAt})
const
MastodonAccountWarning.fromJson(Map<String, dynamic> json)
factory

Properties

action String
Type of warning (none / disable / mark_statuses_as_sensitive, etc.).
final
appeal bool
Whether an appeal exists.
final
createdAt DateTime?
Timestamp when the notification was created.
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Body text of the warning.
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