createFromDbObj(dbObject) {
    const columns = this.constructor.getColumns();
    for (const column of columns) {
      this[column] = dbObject[column];
    }
  }
/**
   * Creates instance of the class using a raw object from the database.
   * @param  {Object} dbObj the DB object to construct this instance from
   */
Creates instance of the class using a raw object from the database.
@param  {Object} dbObj the DB object to construct this instance from
Creates instance of the class using a raw object from the database . @param { Object } dbObj the DB object to construct this instance from
createFromDbObj(dbObject) {
    const columns = this.constructor.getColumns();
    for (const column of columns) {
      this[column] = dbObject[column];
    }
  }
createFromDbObj ( dbObject ) { const columns = this . constructor . getColumns ( ) ; for ( const column of columns ) { this [ column ] = dbObject [ column ] ; } }
Creates instance of the class using a raw object from the database.
Creates instance of the class using a raw object from the database .