docs: def to_dict(self):
          """Get a dictionary serialization of the object to convert into a Json
          object.
  
          Returns
          -------
          dict
          """
          doc = {
              'filename' : self.filename,
              'mimeType' : self.mime_type
          }
          # Add path if present
          if self.filename != self.path:
              doc['path'] = self.path
          return doc