code: function toJS(obj): any {
    if (Array.isArray(obj)) {
      return obj.map(toJS);
    } else if (obj && typeof obj === 'object') {
      const ret = {};
      for (const key in obj) {
        ret[key.charAt(0).toLowerCase() + key.substr(1)] = toJS(obj[key]);
      }
      return ret;
    }
    return obj;
  }
docs: eslint-disable-next-line flowtype/no-weak-types