$this->id, 'contentType' => $this->whenLoaded('contentType'), 'contentVariant' => $this->whenLoaded('contentVariant'), 'type' => [ 'name' => ucfirst($this->type), 'value' => $this->type ], 'watermark' => $this->watermark, 'inTime' => $this->in_time, 'inDuration' => $this->in_duration, 'outTime' => $this->out_time, 'outDuration' => $this->out_duration, 'left' => $this->left, 'top' => $this->top, 'right' => $this->right, 'bottom' => $this->bottom, 'active' => $this->active ? true : false, 'key' => $this->updated_at->format('YmdHis'), 'watermarkUrl' => $this->watermark_url ]; } }