Participant constructor
Participant({})
Implementation
factory Participant({
$core.String? userId,
$core.String? sessionId,
$core.Iterable<TrackType>? publishedTracks,
$0.Timestamp? joinedAt,
$core.String? trackLookupPrefix,
ConnectionQuality? connectionQuality,
$core.bool? isSpeaking,
$core.bool? isDominantSpeaker,
$core.double? audioLevel,
$core.String? name,
$core.String? image,
$1.Struct? custom,
$core.Iterable<$core.String>? roles,
}) {
final $result = create();
if (userId != null) {
$result.userId = userId;
}
if (sessionId != null) {
$result.sessionId = sessionId;
}
if (publishedTracks != null) {
$result.publishedTracks.addAll(publishedTracks);
}
if (joinedAt != null) {
$result.joinedAt = joinedAt;
}
if (trackLookupPrefix != null) {
$result.trackLookupPrefix = trackLookupPrefix;
}
if (connectionQuality != null) {
$result.connectionQuality = connectionQuality;
}
if (isSpeaking != null) {
$result.isSpeaking = isSpeaking;
}
if (isDominantSpeaker != null) {
$result.isDominantSpeaker = isDominantSpeaker;
}
if (audioLevel != null) {
$result.audioLevel = audioLevel;
}
if (name != null) {
$result.name = name;
}
if (image != null) {
$result.image = image;
}
if (custom != null) {
$result.custom = custom;
}
if (roles != null) {
$result.roles.addAll(roles);
}
return $result;
}