Mute class

The class that contains the information about a muted user

Annotations
  • @JsonSerializable(createToJson: false)

Constructors

Mute({required User user, required User target, required DateTime createdAt, required DateTime updatedAt, DateTime? expires})
Constructor used for json serialization
Mute.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

createdAt DateTime
The date in which the use was muted
final
expires DateTime?
The date in which the mute expires
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target User
The target user
final
updatedAt DateTime
The date of the last update
final
user User
The user that performed the muting action
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited