LaravelFCM\Request\Request::buildBody PHP Method

buildBody() protected method

Build the body for the request
protected buildBody ( ) : array
return array
    protected function buildBody()
    {
        $message = ['to' => $this->getTo(), 'registration_ids' => $this->getRegistrationIds(), 'notification' => $this->getNotification(), 'data' => $this->getData()];
        $message = array_merge($message, $this->getOptions());
        // remove null entries
        return array_filter($message);
    }