SendMetricsRequest constructor

SendMetricsRequest({
  1. String? sessionId,
  2. String? unifiedSessionId,
  3. Iterable<InboundRtp>? inbounds,
  4. Iterable<OutboundRtp>? outbounds,
  5. Iterable<RemoteInboundRtp>? remoteInbounds,
  6. Iterable<RemoteOutboundRtp>? remoteOutbounds,
})

Implementation

factory SendMetricsRequest({
  $core.String? sessionId,
  $core.String? unifiedSessionId,
  $core.Iterable<$0.InboundRtp>? inbounds,
  $core.Iterable<$0.OutboundRtp>? outbounds,
  $core.Iterable<$0.RemoteInboundRtp>? remoteInbounds,
  $core.Iterable<$0.RemoteOutboundRtp>? remoteOutbounds,
}) {
  final result = create();
  if (sessionId != null) result.sessionId = sessionId;
  if (unifiedSessionId != null) result.unifiedSessionId = unifiedSessionId;
  if (inbounds != null) result.inbounds.addAll(inbounds);
  if (outbounds != null) result.outbounds.addAll(outbounds);
  if (remoteInbounds != null) result.remoteInbounds.addAll(remoteInbounds);
  if (remoteOutbounds != null) result.remoteOutbounds.addAll(remoteOutbounds);
  return result;
}