protected function mapResponse($success, array $response)
    {
        return (new Response())->setRaw($response)->map([
            'success' => $success,
            'message' => $success ? 'Message sent' : $response['message'],
        ]);
    }
protected function mapResponse($success, array $response)
    {
        return (new Response())->setRaw($response)->map([
            'success' => $success,
            'message' => $success ? 'Message sent' : $response['message'],
        ]);
    }
protected function mapResponse ( $ success , array $ response ) { return ( new Response ( ) ) -> setRaw ( $ response ) -> map ( [ 'success' => $ success , 'message' => $ success ? 'Message sent' : $ response [ 'message' ] , ] ) ; }
Map the raw response to our response object.

@param bool  $success
@param array $response

@return \NotifyMeHQ\Contracts\ResponseInterface
Map the raw response to our response object .