WebhookEvent constructor

WebhookEvent({
  1. UserResponse? blockedByUser,
  2. required String callCid,
  3. required DateTime createdAt,
  4. String type = 'user.updated',
  5. required UserEventPayload user,
  6. required CallResponse call,
  7. List<MemberResponse> members = const [],
  8. required String hlsPlaylistUrl,
  9. Map<String, List<String>> capabilitiesByRole = const {},
  10. required bool notifyUser,
  11. required String sessionId,
  12. required ReactionResponse reaction,
  13. required CallRecording callRecording,
  14. String? reason,
  15. required bool video,
  16. required String name,
  17. required CallParticipantResponse participant,
  18. required CallTranscription callTranscription,
  19. required String fromUserId,
  20. List<String> mutedUserIds = const [],
  21. required CallClosedCaption closedCaption,
  22. Map<String, Object> custom = const {},
  23. ReviewQueueItem? item,
  24. Message? message,
  25. String? objectId,
  26. List<String> permissions = const [],
  27. List<OwnCapability> ownCapabilities = const [],
  28. required String channelId,
  29. required String channelType,
  30. required String cid,
  31. required UserObject createdBy,
  32. DateTime? expiration,
  33. required bool shadow,
  34. String? team,
  35. required bool deleteConversationChannels,
  36. required bool hardDelete,
  37. required bool markMessagesDeleted,
  38. String? targetUser,
  39. List<String> targetUsers = const [],
  40. DateTime? receivedAt,
})

Returns a new WebhookEvent instance.

Implementation

WebhookEvent({
  this.blockedByUser,
  required this.callCid,
  required this.createdAt,
  this.type = 'user.updated',
  required this.user,
  required this.call,
  this.members = const [],
  required this.hlsPlaylistUrl,
  this.capabilitiesByRole = const {},
  required this.notifyUser,
  required this.sessionId,
  required this.reaction,
  required this.callRecording,
  this.reason,
  required this.video,
  required this.name,
  required this.participant,
  required this.callTranscription,
  required this.fromUserId,
  this.mutedUserIds = const [],
  required this.closedCaption,
  this.custom = const {},
  this.item,
  this.message,
  this.objectId,
  this.permissions = const [],
  this.ownCapabilities = const [],
  required this.channelId,
  required this.channelType,
  required this.cid,
  required this.createdBy,
  this.expiration,
  required this.shadow,
  this.team,
  required this.deleteConversationChannels,
  required this.hardDelete,
  required this.markMessagesDeleted,
  this.targetUser,
  this.targetUsers = const [],
  this.receivedAt,
});