$this->id, 'task_id' => $this->task_id, 'title' => $this->title, 'description' => $this->description, 'assignee_id' => $this->assignee_id, 'assignee' => new UserResource($this->whenLoaded('assignee')), 'status' => $this->status, 'due_date' => $this->due_date, 'position' => $this->position, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }