TournamentList constructor

TournamentList({
  1. Iterable<Tournament>? tournaments,
  2. String? cursor,
})

Implementation

factory TournamentList({
  $core.Iterable<Tournament>? tournaments,
  $core.String? cursor,
}) {
  final _result = create();
  if (tournaments != null) {
    _result.tournaments.addAll(tournaments);
  }
  if (cursor != null) {
    _result.cursor = cursor;
  }
  return _result;
}