* Creates a task. * * @param {!Object} exportArgs The export task arguments. * @return {!ExportTask} * @package
(exportArgs)
| 54 | * @package |
| 55 | */ |
| 56 | static create(exportArgs) { |
| 57 | // Extract the EE element from the exportArgs. |
| 58 | |
| 59 | const eeElement = Export.extractElement(exportArgs); |
| 60 | // Construct a configuration object for the server. |
| 61 | let config = {'element': eeElement}; |
| 62 | Object.assign(config, exportArgs); |
| 63 | // The config is some kind of task configuration. |
| 64 | config = /** @type {!data.AbstractTaskConfig} */ ( |
| 65 | googObject.filter(config, x => x != null)); |
| 66 | |
| 67 | return new ExportTask(config); |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Starts processing of the task. |
no test coverage detected