Cloud Code afterSaveFile file properties

I have using the example from the docs.

Parse.Cloud.afterSaveFile(async (request) => {
  const { file, fileSize, user } = request;
  const fileObject = new Parse.Object('FileObject');
  fileObject.set('file', file);
  fileObject.set('fileSize', fileSize);
  fileObject.set('createdBy', user);
  const token = { sessionToken: user.getSessionToken() };
  await, token);

How do I get the name and url of the saved file? and file.url()

Thank you.
That worked. I was missing the () after name and url.