ConsumeDataResponse constructor

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

Implementation

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