ChannelMute class

The class that contains the information about a muted channel

Annotations
  • @JsonSerializable(createToJson: false)

Constructors

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

Properties

channel ChannelModel
The target channel
final
createdAt DateTime
The date in which the channel 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
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