WebhookEvent constructor
WebhookEvent({
- UserResponse? blockedByUser,
- required String callCid,
- required DateTime createdAt,
- String type = 'user.updated',
- required UserEventPayload user,
- required CallResponse call,
- List<
MemberResponse> members = const [], - required String hlsPlaylistUrl,
- Map<
String, List< capabilitiesByRole = const {},String> > - required bool notifyUser,
- required String sessionId,
- required ReactionResponse reaction,
- required CallRecording callRecording,
- String? reason,
- required bool video,
- required String name,
- required CallParticipantResponse participant,
- required CallTranscription callTranscription,
- required String fromUserId,
- List<
String> mutedUserIds = const [], - required CallClosedCaption closedCaption,
- Map<
String, Object> custom = const {}, - ReviewQueueItem? item,
- Message? message,
- String? objectId,
- List<
String> permissions = const [], - List<
OwnCapability> ownCapabilities = const [], - required String channelId,
- required String channelType,
- required String cid,
- required UserObject createdBy,
- DateTime? expiration,
- required bool shadow,
- String? team,
- required bool deleteConversationChannels,
- required bool hardDelete,
- required bool markMessagesDeleted,
- String? targetUser,
- List<
String> targetUsers = const [], - 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,
});