PeersInfo constructor

PeersInfo({
  1. String? peerId,
  2. String? metadata,
  3. Iterable<PeersInfo_ProducerInfo>? producers,
  4. String? role,
})

Implementation

factory PeersInfo({
  $core.String? peerId,
  $core.String? metadata,
  $core.Iterable<PeersInfo_ProducerInfo>? producers,
  $core.String? role,
}) {
  final $result = create();
  if (peerId != null) {
    $result.peerId = peerId;
  }
  if (metadata != null) {
    $result.metadata = metadata;
  }
  if (producers != null) {
    $result.producers.addAll(producers);
  }
  if (role != null) {
    $result.role = role;
  }
  return $result;
}