UploadRequest constructor

UploadRequest({
  1. FileInfo? fileInfo,
  2. bool? shouldTruncate,
})

Implementation

factory UploadRequest({
  $2.FileInfo? fileInfo,
  $core.bool? shouldTruncate,
}) {
  final _result = create();
  if (fileInfo != null) {
    _result.fileInfo = fileInfo;
  }
  if (shouldTruncate != null) {
    _result.shouldTruncate = shouldTruncate;
  }
  return _result;
}