DownloadResponse constructor

DownloadResponse({
  1. String? nodeAddr,
  2. int? taskId,
  3. FileInfo? fileInfo,
})

Implementation

factory DownloadResponse({
  $core.String? nodeAddr,
  $core.int? taskId,
  $2.FileInfo? fileInfo,
}) {
  final _result = create();
  if (nodeAddr != null) {
    _result.nodeAddr = nodeAddr;
  }
  if (taskId != null) {
    _result.taskId = taskId;
  }
  if (fileInfo != null) {
    _result.fileInfo = fileInfo;
  }
  return _result;
}