AllocationResponse constructor

AllocationResponse({
  1. String? gameServerName,
  2. Iterable<AllocationResponse_GameServerStatusPort>? ports,
  3. String? address,
  4. String? nodeName,
  5. String? source,
})

Implementation

factory AllocationResponse({
  $core.String? gameServerName,
  $core.Iterable<AllocationResponse_GameServerStatusPort>? ports,
  $core.String? address,
  $core.String? nodeName,
  $core.String? source,
}) {
  final _result = create();
  if (gameServerName != null) {
    _result.gameServerName = gameServerName;
  }
  if (ports != null) {
    _result.ports.addAll(ports);
  }
  if (address != null) {
    _result.address = address;
  }
  if (nodeName != null) {
    _result.nodeName = nodeName;
  }
  if (source != null) {
    _result.source = source;
  }
  return _result;
}