public function toJson() { return (object) array('a' => intval($this->role), 'e' => $this->addressObject->bare_address, 'i' => $this->id, 'l' => strval($this->displayName), 'r' => intval($this->response), 'u' => $this->user); }