WSClientEvent constructor

WSClientEvent({
  1. required DateTime createdAt,
  2. DateTime? receivedAt,
  3. String type = 'user.updated',
  4. required UserEventPayload user,
})

Returns a new WSClientEvent instance.

Implementation

WSClientEvent({
  required this.createdAt,
  this.receivedAt,
  this.type = 'user.updated',
  required this.user,
});