lib/converters/v1.0.0/converter-v1-to-v2.js
function (requestV1) {
        var self = this,
            request = {},
            retainEmpty = self.options.retainEmptyValues,
            units = ['auth', 'method', 'header', 'body', 'url'];

        units.forEach(function (unit) {
            request[unit] = self[unit](requestV1);
        });

        if (requestV1.description) { request.description = requestV1.description; }
        else if (retainEmpty) { request.description = null; }

        return request;
    }
function (requestV1) {
        var self = this,
            request = {},
            retainEmpty = self.options.retainEmptyValues,
            units = ['auth', 'method', 'header', 'body', 'url'];

        units.forEach(function (unit) {
            request[unit] = self[unit](requestV1);
        });

        if (requestV1.description) { request.description = requestV1.description; }
        else if (retainEmpty) { request.description = null; }

        return request;
    }
function ( requestV1 ) { var self = this , request = { } , retainEmpty = self . options . retainEmptyValues , units = [ 'auth' , 'method' , 'header' , 'body' , 'url' ] ; units . forEach ( function ( unit ) { request [ unit ] = self [ unit ] ( requestV1 ) ; } ) ; if ( requestV1 . description ) { request . description = requestV1 . description ; } else if ( retainEmpty ) { request . description = null ; } return request ; }
Creates a V2 format request from a V1 Postman Collection Request

@param {Object} requestV1 - The v1 request to be transformed.
@returns {Object} - The converted v2 request.
Creates a V2 format request from a V1 Postman Collection Request