function getAllTransactionsInjectingId (collection, allRequests) {
  if (!_.has(collection, 'item') || !_.isArray(collection.item)) {
    return;
  }
  _.forEach(collection.item, (item) => {
    if (_.has(item, 'request') || _.has(item, 'response')) {
      // let idstr = _.get(item, 'request.method') + ' ' + _.join(_.get(item, 'request.url.path'), '/');
      allRequests.push(_.assign({}, _.omit(item, ['id', 'response']), {
        id: idstr(),
        response: _.map(item.response, (res) => {
          return _.assign({}, res, { id: idstr() });
        })
      }));
    }
    else {
      getAllTransactionsInjectingId(item, allRequests);
    }
  });
}
Extract all transaction from collection and appends them into array
And adds id to each item object

@param {*} collection - Postman Collection
@param {*} allRequests - Array to which transactions are appended
@returns {*} - null