newInstance(model, exclude = [this.primaryKeyPropertyKey]) {
          let props = model.properties; // Raw properties object... not "normalized" yet w/ "key" as its own key
          if (!props || props.length < 1) return {};

          console.log(`PI: $model "newInstance" excluding ${JSON.stringify(exclude)}`);
          let instance = {};
          let propVal = null;
          _(props).forEach((val, key) => {
            if (exclude.includes(key)) propVal = undefined;
            else {
              if (typeof val.default != 'undefined') propVal = val.default;
              else propVal = null;
            }

            instance[key] = propVal;
          });

          return instance;
        }
/**
         * Given a model object return an instance object with all of the properties set to null or their default, or an empty object on failure
         * @param {object} model Model object
         * @param {array} [exclude=[]] Optional array of keys to explicitly exclude from the result. Defaults to model primary key property key
         */
Given a model object return an instance object with all of the properties set to null or their default, or an empty object on failure
@param {object} model Model object
@param {array} [exclude=[]] Optional array of keys to explicitly exclude from the result. Defaults to model primary key property key
Given a model object return an instance object with all of the properties set to null or their default or an empty object on failure @param { object } model Model object @param { array } [ exclude = [] ] Optional array of keys to explicitly exclude from the result . Defaults to model primary key property key
newInstance(model, exclude = [this.primaryKeyPropertyKey]) {
          let props = model.properties; 
          if (!props || props.length < 1) return {};
          console.log(`PI: $model "newInstance" excluding ${JSON.stringify(exclude)}`);
          let instance = {};
          let propVal = null;
          _(props).forEach((val, key) => {
            if (exclude.includes(key)) propVal = undefined;
            else {
              if (typeof val.default != 'undefined') propVal = val.default;
              else propVal = null;
            }
            instance[key] = propVal;
          });
          return instance;
        }
newInstance ( model , exclude = [ this . primaryKeyPropertyKey ] ) { let props = model . properties ; if ( ! props || props . length < 1 ) return { } ; console . log ( ` ${ JSON . stringify ( exclude ) } ` ) ; let instance = { } ; let propVal = null ; _ ( props ) . forEach ( ( val , key ) => { if ( exclude . includes ( key ) ) propVal = undefined ; else { if ( typeof val . default != 'undefined' ) propVal = val . default ; else propVal = null ; } instance [ key ] = propVal ; } ) ; return instance ; }
Given a model object return an instance object with all of the properties set to null or their default, or an empty object on failure
 @param {object} model Model object
 @param {array} [exclude=[]] Optional array of keys to explicitly exclude from the result.
Given a model object return an instance object with all of the properties set to null or their default or an empty object on failure @param { object } model Model object @param { array } [ exclude = [] ] Optional array of keys to explicitly exclude from the result .
// Raw properties object... not "normalized" yet w/ "key" as its own key