api/lib/tx-to-rest-converter.js
function parseFlagsFromResponse(responseFlags, flags) {
  var parsedFlags = {};

  for (var flagName in flags) {
    var flag = flags[flagName];
    parsedFlags[flag.name] = Boolean(responseFlags & flag.value);
  }

  return parsedFlags;
}
function parseFlagsFromResponse(responseFlags, flags) {
  var parsedFlags = {};

  for (var flagName in flags) {
    var flag = flags[flagName];
    parsedFlags[flag.name] = Boolean(responseFlags & flag.value);
  }

  return parsedFlags;
}
function parseFlagsFromResponse ( responseFlags , flags ) { var parsedFlags = { } ; for ( var flagName in flags ) { var flag = flags [ flagName ] ; parsedFlags [ flag . name ] = Boolean ( responseFlags & flag . value ) ; } return parsedFlags ; }
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
Helper that parses bit flags from ripple response