protected function createPayload()
    {
        if (!$this->body) {
            return null;
        }

        if (!$this->serializer) {
            throw new UnConfiguredException('No serializer assigned, cannot build the payload.');
        }

        return $this->serializer->deserialize($this->body);
    }
protected function createPayload()
    {
        if (!$this->body) {
            return null;
        }

        if (!$this->serializer) {
            throw new UnConfiguredException('No serializer assigned, cannot build the payload.');
        }

        return $this->serializer->deserialize($this->body);
    }
protected function createPayload ( ) { if ( ! $ this -> body ) { return null ; } if ( ! $ this -> serializer ) { throw new UnConfiguredException ( 'No serializer assigned, cannot build the payload.' ) ; } return $ this -> serializer -> deserialize ( $ this -> body ) ; }
Try to create the payload out of the assigned body.

@return mixed
Try to create the payload out of the assigned body .