FileUploadRequest constructor

FileUploadRequest({
  1. UploadMetadata? metadata,
  2. FileData? fileContents,
})

Implementation

factory FileUploadRequest({
  UploadMetadata? metadata,
  FileData? fileContents,
}) {
  final $result = create();
  if (metadata != null) {
    $result.metadata = metadata;
  }
  if (fileContents != null) {
    $result.fileContents = fileContents;
  }
  return $result;
}