$this->id, "name" => $this->name, "user" => new UserResource($this->user), "type" => $this->type->label(), "state" => $this->state->label(), "from" => $this->from->toDisplayString(), "to" => $this->to->toDisplayString(), "comment" => $this->comment, ]; } }