whole_func_string: function generateEntity(obj) {
      var entity = _.clone(obj);
      for (var property in entity) {
          if (property !== '_metadata') {
              if (_.isArray(entity[property])) {
                  entity[property] = eg.String(JSON.stringify(entity[property]));
                  continue;
              }
              if (_.isBoolean(entity[property])) {
                  entity[property] = eg.Boolean(entity[property]);
                  continue;
              }
              if (_.isDate(entity[property])) {
                  entity[property] = eg.DateTime(entity[property]);
                  continue;
              }
              if (_.isString(entity[property])) {
                  entity[property] = eg.String(entity[property]);
                  continue;
              }
              if (_.isObject(entity[property])) {
                  entity[property] = eg.String(JSON.stringify(entity[property]));
                  continue;
              }
  
              entity[property] = eg.Entity(entity[property]);
          }
      }
      return entity;
  }
func_code_string: function generateEntity(obj) {
      var entity = _.clone(obj);
      for (var property in entity) {
          if (property !== '_metadata') {
              if (_.isArray(entity[property])) {
                  entity[property] = eg.String(JSON.stringify(entity[property]));
                  continue;
              }
              if (_.isBoolean(entity[property])) {
                  entity[property] = eg.Boolean(entity[property]);
                  continue;
              }
              if (_.isDate(entity[property])) {
                  entity[property] = eg.DateTime(entity[property]);
                  continue;
              }
              if (_.isString(entity[property])) {
                  entity[property] = eg.String(entity[property]);
                  continue;
              }
              if (_.isObject(entity[property])) {
                  entity[property] = eg.String(JSON.stringify(entity[property]));
                  continue;
              }
  
              entity[property] = eg.Entity(entity[property]);
          }
      }
      return entity;
  }
func_documentation_string: helpers