BlocklistRecord class

User's record in a blocklist of the authenticated MyUser.

Implemented types
Annotations

Constructors

BlocklistRecord({required UserId userId, BlocklistReason? reason, required PreciseDateTime at})
BlocklistRecord.fromJson(Map<String, dynamic> json)
Constructs a BlocklistRecord from the provided json.
factory

Properties

at PreciseDateTime
PreciseDateTime when the User was blocked.
final
hashCode int
The hash code for this object.
no setteroverride
reason BlocklistReason?
Reason of why the User was blocked.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId UserId
Blocked User.
final

Methods

compareTo(BlocklistRecord other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a Map representing this BlocklistRecord.
toString() String
A string representation of this object.
inherited

Operators

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