MastodonAdminRole class

Admin-level role information.

Annotations

Constructors

MastodonAdminRole({required int id, required String name, String? color, int? position, String? permissions, bool highlighted = false, DateTime? createdAt, DateTime? updatedAt})
const
MastodonAdminRole.fromJson(Map<String, dynamic> json)
factory

Properties

color String?
Color code of the role.
final
createdAt DateTime?
Timestamp when the role was created.
final
hashCode int
The hash code for this object.
no setterinherited
highlighted bool
Whether to display the role as a badge.
final
id int
ID of the role.
final
name String
Name of the role.
final
permissions String?
Permission bitmask of the role.
final
position int?
Priority of the role.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt DateTime?
Timestamp when the role was last updated.
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