SendDataRequest constructor

SendDataRequest({
  1. String? roomId,
  2. String? payload,
  3. String? label,
  4. Iterable<String>? peers,
  5. bool? admin,
})

Implementation

factory SendDataRequest({
  $core.String? roomId,
  $core.String? payload,
  $core.String? label,
  $core.Iterable<$core.String>? peers,
  $core.bool? admin,
}) {
  final $result = create();
  if (roomId != null) {
    $result.roomId = roomId;
  }
  if (payload != null) {
    $result.payload = payload;
  }
  if (label != null) {
    $result.label = label;
  }
  if (peers != null) {
    $result.peers.addAll(peers);
  }
  if (admin != null) {
    $result.admin = admin;
  }
  return $result;
}