UserBannedEvent class

Inheritance
Annotations
  • @freezed
  • @immutable
  • @JsonSerializable.new()

Constructors

UserBannedEvent({required String channelId, required String channelType, required String cid, required DateTime createdAt, required User createdBy, DateTime? expiration, String? reason, required bool shadow, String? team, required String type, User? user})
const

Properties

channelId String
final
channelType String
final
cid String
final
copyWith → $UserBannedEventCopyWith<UserBannedEvent>
Create a copy of UserBannedEvent with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
final
createdBy → User
final
error Object?
no setterinherited
expiration DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
healthCheckInfo HealthCheckInfo?
no setterinherited
reason String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadow bool
final
team String?
final
type String
final
user → User?
final

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) UserBannedEvent