/**
  * @param string $key
  *
  * @return ImportJob
  */
 public function findByKey(string $key) : ImportJob
 {
     $result = $this->user->importJobs()->where('key', $key)->first(['import_jobs.*']);
     if (is_null($result)) {
         return new ImportJob();
     }
     return $result;
 }