public function toObject($dbBatchJob = null, $props_to_skip = array()) { if (is_null($dbBatchJob)) { $dbBatchJob = new BatchJob(); } $dbBatchJob = parent::toObject($dbBatchJob); $this->toData($dbBatchJob); if (!is_null($this->jobSubType) && $this->data instanceof KalturaJobData) { $dbBatchJob->setJobSubType($this->data->toSubType($this->jobSubType)); } return $dbBatchJob; }