WSEvent class

Constructors

WSEvent({UserResponse? blockedByUser, required String callCid, required DateTime createdAt, String type = 'user.unbanned', required UserObject user, required CallResponse call, List<MemberResponse> members = const [], required String hlsPlaylistUrl, Map<String, List<String>> capabilitiesByRole = const {}, required bool notifyUser, required String sessionId, required ReactionResponse reaction, required CallRecording callRecording, String? reason, required bool video, required String name, required int anonymousParticipantCount, Map<String, int> participantsCountByRole = const {}, required CallParticipantResponse participant, required CallTranscription callTranscription, required String fromUserId, List<String> mutedUserIds = const [], required CallClosedCaption closedCaption, required String connectionId, required OwnUserResponse me, required APIError error, 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 []})
Returns a new WSEvent instance.

Properties

anonymousParticipantCount int
getter/setter pair
blockedByUser UserResponse?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
call CallResponse
getter/setter pair
callCid String
getter/setter pair
callRecording CallRecording
getter/setter pair
callTranscription CallTranscription
getter/setter pair
capabilitiesByRole Map<String, List<String>>
The capabilities by role for this call
getter/setter pair
channelId String
getter/setter pair
channelType String
getter/setter pair
cid String
getter/setter pair
closedCaption CallClosedCaption
getter/setter pair
connectionId String
getter/setter pair
createdAt DateTime
getter/setter pair
createdBy UserObject
getter/setter pair
custom Map<String, Object>
Custom data for this object
getter/setter pair
deleteConversationChannels bool
getter/setter pair
error APIError
getter/setter pair
expiration DateTime?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
fromUserId String
getter/setter pair
hardDelete bool
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hlsPlaylistUrl String
getter/setter pair
item ReviewQueueItem?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
markMessagesDeleted bool
getter/setter pair
me OwnUserResponse
getter/setter pair
members List<MemberResponse>
Call members
getter/setter pair
message Message?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
mutedUserIds List<String>
getter/setter pair
name String
Name of the given RTMP broadcast
getter/setter pair
notifyUser bool
getter/setter pair
objectId String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
ownCapabilities List<OwnCapability>
The capabilities of the current user
getter/setter pair
participant CallParticipantResponse
getter/setter pair
participantsCountByRole Map<String, int>
getter/setter pair
permissions List<String>
The list of permissions requested by the user
getter/setter pair
reaction ReactionResponse
getter/setter pair
reason String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String
Call session ID
getter/setter pair
shadow bool
getter/setter pair
targetUser String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
targetUsers List<String>
getter/setter pair
team String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
type String
getter/setter pair
user UserObject
getter/setter pair
video bool
getter/setter pair

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.
override

Operators

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

Static Methods

fromJson(dynamic value) WSEvent?
Returns a new WSEvent instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<WSEvent>
mapFromJson(dynamic json) Map<String, WSEvent>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<WSEvent>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.