export default class Projects { constructor(asProjects = {}) { Object.assign(this, asProjects); } getDefaultCodeName() { for(const [sCodeName, asProject] of Object.entries(this)) { if(asProject.default) return sCodeName; } } getDefaultProject() { const sCodeName = this.getDefaultCodeName(); return this[this.getDefaultCodeName()]; } }