src/Dropbox/Dropbox.php
public function makeModelFromResponse(DropboxResponse $response)
    {
        //Get the Decoded Body
        $body = $response->getDecodedBody();

        if (is_null($body)) {
            $body = [];
        }

        //Make and Return the Model
        return ModelFactory::make($body);
    }
public function makeModelFromResponse(DropboxResponse $response)
    {
        //Get the Decoded Body
        $body = $response->getDecodedBody();

        if (is_null($body)) {
            $body = [];
        }

        //Make and Return the Model
        return ModelFactory::make($body);
    }
public function makeModelFromResponse ( DropboxResponse $ response ) { //Get the Decoded Body $ body = $ response -> getDecodedBody ( ) ; if ( is_null ( $ body ) ) { $ body = [ ] ; } //Make and Return the Model return ModelFactory :: make ( $ body ) ; }
Make Model from DropboxResponse

@param  DropboxResponse $response

@return \Kunnu\Dropbox\Models\ModelInterface

@throws \Kunnu\Dropbox\Exceptions\DropboxClientException
Make Model from DropboxResponse