$this->id, 'name' => $this->name, 'status' => $this->status, 'dirties' => $this->when($this->resource->hasDirty(), function () { return $this->resource->getOldDirty(); }) ]; } }