import { PLModel, MyPLModel } from "./pl.model"
import { MyPmsEvaluationFactors1Model, PmsEvaluationFactors1Model } from "./pms-evaluation-factors1.model"

export interface PmsEvaluationFactorsModel {
    jl: PLModel
    companyId: string
    pmsEvaluationFactors1ModelList: PmsEvaluationFactors1Model[]
}

export class MyPmsEvaluationFactorsModel implements PmsEvaluationFactorsModel {
    jl: PLModel
    companyId: string
    pmsEvaluationFactors1ModelList: PmsEvaluationFactors1Model[]
    constructor(data?: Partial<PmsEvaluationFactorsModel>) {
        this.jl = new MyPLModel(data?.jl)
        this.companyId = data?.companyId || ""
        this.pmsEvaluationFactors1ModelList = data?.pmsEvaluationFactors1ModelList?.map(x => new MyPmsEvaluationFactors1Model(x)) || []
    }
}

