Map<String, dynamic> toJson() { final jobId = this.jobId; final type = this.type; return { if (jobId != null) 'jobId': jobId, if (type != null) 'type': type.toValue(), }; }