ProduceDataRequest constructor
ProduceDataRequest({})
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;
}