GameServerSelector constructor

GameServerSelector({
  1. Map<String, String>? matchLabels,
  2. GameServerSelector_GameServerState? gameServerState,
  3. PlayerSelector? players,
})

Implementation

factory GameServerSelector({
  $core.Map<$core.String, $core.String>? matchLabels,
  GameServerSelector_GameServerState? gameServerState,
  PlayerSelector? players,
}) {
  final _result = create();
  if (matchLabels != null) {
    _result.matchLabels.addAll(matchLabels);
  }
  if (gameServerState != null) {
    _result.gameServerState = gameServerState;
  }
  if (players != null) {
    _result.players = players;
  }
  return _result;
}