ConsumeResponse constructor

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

Implementation

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