public function attribute($key) { return isset($this->message['attributes'][$key]) ? $this->message['attributes'][$key] : null; }