FileDownloadResp constructor

FileDownloadResp({
  1. List<int>? body,
  2. String? fileName,
  3. String? contentType,
  4. String? fileExt,
  5. FileType? fileType,
  6. Int64? fileSize,
  7. int? filePart,
  8. int? fileWidth,
  9. int? fileHeight,
})

Implementation

factory FileDownloadResp({
  $core.List<$core.int>? body,
  $core.String? fileName,
  $core.String? contentType,
  $core.String? fileExt,
  FileType? fileType,
  $fixnum.Int64? fileSize,
  $core.int? filePart,
  $core.int? fileWidth,
  $core.int? fileHeight,
}) {
  final result = create();
  if (body != null) result.body = body;
  if (fileName != null) result.fileName = fileName;
  if (contentType != null) result.contentType = contentType;
  if (fileExt != null) result.fileExt = fileExt;
  if (fileType != null) result.fileType = fileType;
  if (fileSize != null) result.fileSize = fileSize;
  if (filePart != null) result.filePart = filePart;
  if (fileWidth != null) result.fileWidth = fileWidth;
  if (fileHeight != null) result.fileHeight = fileHeight;
  return result;
}