ProduceDataRequest constructor

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

Implementation

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