"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.formDataToJSON = formDataToJSON;
/**
 * Helper function that creates JSON object from the given FormData object
 * Note: this function was created only as a test helper
 * @param formData
 * @returns {{}}
 */
function formDataToJSON(formData) {
  var obj = {};
  formData.forEach(function (value, key) {
    obj[key] = value;
  });
  return obj;
}