ServerInfo constructor
ServerInfo({})
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;
}