TrackUnpublished constructor

TrackUnpublished({
  1. String? userId,
  2. String? sessionId,
  3. TrackType? type,
  4. TrackUnpublishReason? cause,
  5. Participant? participant,
})

Implementation

factory TrackUnpublished({
  $core.String? userId,
  $core.String? sessionId,
  $0.TrackType? type,
  $0.TrackUnpublishReason? cause,
  $0.Participant? participant,
}) {
  final $result = create();
  if (userId != null) {
    $result.userId = userId;
  }
  if (sessionId != null) {
    $result.sessionId = sessionId;
  }
  if (type != null) {
    $result.type = type;
  }
  if (cause != null) {
    $result.cause = cause;
  }
  if (participant != null) {
    $result.participant = participant;
  }
  return $result;
}