Mute class Null safety
The class that contains the information about a muted user
- Annotations
- @JsonSerializable(createToJson: false)
Constructors
- Mute({required User user, required ChannelModel channel, required DateTime createdAt, required DateTime updatedAt})
- Constructor used for json serialization
-
Mute.fromJson(Map<
String, dynamic> json) -
Create a new instance from a json
factory
Properties
- channel → ChannelModel
-
The target user
@JsonKey(includeIfNull: false, toJson: Serializer.readOnly), final
- createdAt → DateTime
-
The date in which the use was muted
@JsonKey(includeIfNull: false, toJson: Serializer.readOnly), final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- updatedAt → DateTime
-
The date of the last update
@JsonKey(includeIfNull: false, toJson: Serializer.readOnly), final
- user → User
-
The user that performed the muting action
@JsonKey(includeIfNull: false, toJson: Serializer.readOnly), final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited