ServerInfo constructor

ServerInfo({
  1. String? uuid,
  2. String? name,
  3. String? serverHost,
  4. String? loginKey,
  5. int? tcpPort,
  6. int? kcpPort,
  7. int? udpApiPort,
  8. int? kcpApiPort,
  9. int? tlsPort,
  10. int? grpcPort,
  11. String? description,
  12. bool? isPublic,
  13. bool? isSharedServer,
})

Implementation

factory ServerInfo({
  $core.String? uuid,
  $core.String? name,
  $core.String? serverHost,
  $core.String? loginKey,
  $core.int? tcpPort,
  $core.int? kcpPort,
  $core.int? udpApiPort,
  $core.int? kcpApiPort,
  $core.int? tlsPort,
  $core.int? grpcPort,
  $core.String? description,
  $core.bool? isPublic,
  $core.bool? isSharedServer,
}) {
  final $result = create();
  if (uuid != null) {
    $result.uuid = uuid;
  }
  if (name != null) {
    $result.name = name;
  }
  if (serverHost != null) {
    $result.serverHost = serverHost;
  }
  if (loginKey != null) {
    $result.loginKey = loginKey;
  }
  if (tcpPort != null) {
    $result.tcpPort = tcpPort;
  }
  if (kcpPort != null) {
    $result.kcpPort = kcpPort;
  }
  if (udpApiPort != null) {
    $result.udpApiPort = udpApiPort;
  }
  if (kcpApiPort != null) {
    $result.kcpApiPort = kcpApiPort;
  }
  if (tlsPort != null) {
    $result.tlsPort = tlsPort;
  }
  if (grpcPort != null) {
    $result.grpcPort = grpcPort;
  }
  if (description != null) {
    $result.description = description;
  }
  if (isPublic != null) {
    $result.isPublic = isPublic;
  }
  if (isSharedServer != null) {
    $result.isSharedServer = isSharedServer;
  }
  return $result;
}