PeersInfo constructor
PeersInfo({
- String? peerId,
- String? metadata,
- Iterable<
PeersInfo_ProducerInfo> ? producers, - 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;
}