core.Map<core.String, core.dynamic> toJson() => { if (failedJobs != null) 'failedJobs': failedJobs!, if (job != null) 'job': job!, };