code: function parseFlagsFromResponse(responseFlags, flags) {
    var parsedFlags = {};
  
    for (var flagName in flags) {
      var flag = flags[flagName];
      parsedFlags[flag.name] = Boolean(responseFlags & flag.value);
    }
  
    return parsedFlags;
  }
docs: Helper that parses bit flags from ripple response
  
  @param {Number} responseFlags - Integer flag on the ripple response
  @param {Object} flags - Object with parameter name and bit flag value pairs
  
  @returns {Object} parsedFlags - Object with parameter name and boolean
  flags depending on response flag