Participant constructor

Participant({
  1. String? userId,
  2. String? sessionId,
  3. Iterable<TrackType>? publishedTracks,
  4. Timestamp? joinedAt,
  5. String? trackLookupPrefix,
  6. ConnectionQuality? connectionQuality,
  7. bool? isSpeaking,
  8. bool? isDominantSpeaker,
  9. double? audioLevel,
  10. String? name,
  11. String? image,
  12. Struct? custom,
  13. Iterable<String>? roles,
})

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;
}