ConsumeResponse constructor

ConsumeResponse({
  1. String? peerId,
  2. String? label,
  3. String? consumerId,
  4. String? producerId,
  5. String? producerPeerId,
  6. String? kind,
  7. ProtoRtpParameters? rtpParameters,
})

Implementation

factory ConsumeResponse({
  $core.String? peerId,
  $core.String? label,
  $core.String? consumerId,
  $core.String? producerId,
  $core.String? producerPeerId,
  $core.String? kind,
  $2.ProtoRtpParameters? rtpParameters,
}) {
  final $result = create();
  if (peerId != null) {
    $result.peerId = peerId;
  }
  if (label != null) {
    $result.label = label;
  }
  if (consumerId != null) {
    $result.consumerId = consumerId;
  }
  if (producerId != null) {
    $result.producerId = producerId;
  }
  if (producerPeerId != null) {
    $result.producerPeerId = producerPeerId;
  }
  if (kind != null) {
    $result.kind = kind;
  }
  if (rtpParameters != null) {
    $result.rtpParameters = rtpParameters;
  }
  return $result;
}