NewPeerRole constructor

NewPeerRole({
  1. String? peerId,
  2. String? role,
})

Implementation

factory NewPeerRole({
  $core.String? peerId,
  $core.String? role,
}) {
  final $result = create();
  if (peerId != null) {
    $result.peerId = peerId;
  }
  if (role != null) {
    $result.role = role;
  }
  return $result;
}