lib/converters/v1.0.0/converter-v1-to-v2.js
function (collectionV1) {
        var info = {
            _postman_id: collectionV1.id || util.uid(),
            name: collectionV1.name
        };

        if (collectionV1.description) { info.description = collectionV1.description; }
        else if (this.options.retainEmptyValues) { info.description = null; }

        info.schema = constants.SCHEMA_V2_URL;

        return info;
    }
function (collectionV1) {
        var info = {
            _postman_id: collectionV1.id || util.uid(),
            name: collectionV1.name
        };

        if (collectionV1.description) { info.description = collectionV1.description; }
        else if (this.options.retainEmptyValues) { info.description = null; }

        info.schema = constants.SCHEMA_V2_URL;

        return info;
    }
function ( collectionV1 ) { var info = { _postman_id : collectionV1 . id || util . uid ( ) , name : collectionV1 . name } ; if ( collectionV1 . description ) { info . description = collectionV1 . description ; } else if ( this . options . retainEmptyValues ) { info . description = null ; } info . schema = constants . SCHEMA_V2_URL ; return info ; }
Constructs a V2 compatible "info" object from a V1 Postman Collection

@param {Object} collectionV1 - A v1 collection to derive collection metadata from.
@returns {Object} - The resultant v2 info object.
Constructs a V2 compatible info object from a V1 Postman Collection