mapPairListToKeyValPairs = (pairList = [], parseEnabled = true) => {
  if (!pairList.length) {
    return [];
  }
  return _.map(pairList[0], (pair) => {
    let name = _.keys(pair)[0];
    let value = pair[name];

    if (!parseEnabled) {
      return {
        name,
        value
      };
    }

    let enabled = true;
    if (name && name.length && name.charAt(0) === '~') {
      name = name.slice(1);
      enabled = false;
    }

    return {
      name,
      value,
      enabled
    };
  });
}
A Bru file is made up of blocks.
There are two types of blocks

1. Dictionary Blocks - These are blocks that have key value pairs
ex:
 headers {
  content-type: application/json
 }

2. Text Blocks - These are blocks that have text
ex:
body:json {
 {
  "username": "John Nash",
  "password": "governingdynamics
 }