static create(exportArgs) {
    // Extract the EE element from the exportArgs.

    const eeElement = Export.extractElement(exportArgs);
    // Construct a configuration object for the server.
    let config = {'element': eeElement};
    Object.assign(config, exportArgs);
    // The config is some kind of task configuration.
    config = /** @type {!data.AbstractTaskConfig} */ (
        googObject.filter(config, x => x != null));

    return new ExportTask(config);
  }
Creates a task.

@param {!Object} exportArgs The export task arguments.
@return {!ExportTask}
@package