src/Resource/NotificationPreferences.php
protected function populate(stdClass $response)
    {
        $account = clone $this;
        $account->data->events = $this->getIfSet('events', $response);
        $account->data->target = $this->getIfSet('target', $response);
        $account->data->media = $this->getIfSet('media', $response);
        $account->data->token = $this->getIfSet('token', $response);
        $account->data->id = $this->getIfSet('id', $response);

        return $account;
    }
protected function populate(stdClass $response)
    {
        $account = clone $this;
        $account->data->events = $this->getIfSet('events', $response);
        $account->data->target = $this->getIfSet('target', $response);
        $account->data->media = $this->getIfSet('media', $response);
        $account->data->token = $this->getIfSet('token', $response);
        $account->data->id = $this->getIfSet('id', $response);

        return $account;
    }
protected function populate ( stdClass $ response ) { $ account = clone $ this ; $ account -> data -> events = $ this -> getIfSet ( 'events' , $ response ) ; $ account -> data -> target = $ this -> getIfSet ( 'target' , $ response ) ; $ account -> data -> media = $ this -> getIfSet ( 'media' , $ response ) ; $ account -> data -> token = $ this -> getIfSet ( 'token' , $ response ) ; $ account -> data -> id = $ this -> getIfSet ( 'id' , $ response ) ; return $ account ; }
Mount the notification preference structure.

@param \stdClass $response

@return \Moip\Resource\NotificationPreferences data
Mount the notification preference structure .