export interface SettingAssessmentModel {
  apsyear: string;
  companyId: string;
  expectationLevel: number;
  settingGroupAssessment: string;
  settingScore7: number;
  settingScore6: number;
  settingScore5: number;
  settingScore4: number;
  settingScore3: number;
  settingScore2: number;
  settingScore1: number;
  active: boolean
}

export class MySettingAssessmentModel implements SettingAssessmentModel {
  apsyear: string;
  companyId: string;
  expectationLevel: number;
  settingGroupAssessment: string;
  settingScore7: number;
  settingScore6: number;
  settingScore5: number;
  settingScore4: number;
  settingScore3: number;
  settingScore2: number;
  settingScore1: number;
  active: boolean
  constructor(data?: Partial<SettingAssessmentModel>) {
    this.apsyear = data?.apsyear || "";
    this.companyId = data?.companyId || "";
    this.expectationLevel = data?.expectationLevel ?? 0;
    this.settingGroupAssessment = data?.settingGroupAssessment || "";
    this.settingScore7 = data?.settingScore7 ?? 0;
    this.settingScore6 = data?.settingScore6 ?? 0;
    this.settingScore5 = data?.settingScore5 ?? 0;
    this.settingScore4 = data?.settingScore4 ?? 0;
    this.settingScore3 = data?.settingScore3 ?? 0;
    this.settingScore2 = data?.settingScore2 ?? 0;
    this.settingScore1 = data?.settingScore1 ?? 0;
    this.active = data?.active ?? false
  }
}
