docs: function toJS(entity) {
    let data = {};
    Object.keys(entity).forEach(key => {
      if (_.some(customObjects, obj => entity[key] instanceof obj)) {
        data[key] = toJS(entity[key])
      } else {
        data[key] = entity[key]
      }
    });
    return data
  }