ConsumeDataResponse constructor

ConsumeDataResponse({
  1. String? id,
  2. String? dataProducerId,
  3. String? label,
  4. String? peerId,
  5. String? protocol,
  6. ProtoSctpStreamParameters? sctpStreamParameters,
  7. AppData? appData,
})

Implementation

factory ConsumeDataResponse({
  $core.String? id,
  $core.String? dataProducerId,
  $core.String? label,
  $core.String? peerId,
  $core.String? protocol,
  $4.ProtoSctpStreamParameters? sctpStreamParameters,
  $3.AppData? appData,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (dataProducerId != null) {
    $result.dataProducerId = dataProducerId;
  }
  if (label != null) {
    $result.label = label;
  }
  if (peerId != null) {
    $result.peerId = peerId;
  }
  if (protocol != null) {
    $result.protocol = protocol;
  }
  if (sctpStreamParameters != null) {
    $result.sctpStreamParameters = sctpStreamParameters;
  }
  if (appData != null) {
    $result.appData = appData;
  }
  return $result;
}