MastodonInstanceRule class

Instance rule (rules).

Annotations

Constructors

MastodonInstanceRule({required String id, required String text, String? hint, Map<String, MastodonInstanceRuleTranslation>? translations})
const
MastodonInstanceRule.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hint String?
Supplementary description of the rule.
final
id String
ID of the rule.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Body text of the rule.
final
translations Map<String, MastodonInstanceRuleTranslation>?
Translation map keyed by language code.
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