ProduceRequest constructor

ProduceRequest({
  1. String? peerId,
  2. String? roomId,
  3. String? kind,
  4. bool? paused,
  5. String? label,
  6. ProtoRtpParameters? rtpParameters,
})

Implementation

factory ProduceRequest({
  $core.String? peerId,
  $core.String? roomId,
  $core.String? kind,
  $core.bool? paused,
  $core.String? label,
  $2.ProtoRtpParameters? rtpParameters,
}) {
  final $result = create();
  if (peerId != null) {
    $result.peerId = peerId;
  }
  if (roomId != null) {
    $result.roomId = roomId;
  }
  if (kind != null) {
    $result.kind = kind;
  }
  if (paused != null) {
    $result.paused = paused;
  }
  if (label != null) {
    $result.label = label;
  }
  if (rtpParameters != null) {
    $result.rtpParameters = rtpParameters;
  }
  return $result;
}