armisa-models
Version:
models of armisa!
11 lines (10 loc) • 388 B
text/typescript
import { AttachedData } from "./AttachedData";
export class AmisaAttachedDatas {
public attachedDatas: AttachedData[];
constructor(
attachedDataResponse: any[],
public currentData: AttachedData
) {
this.attachedDatas = attachedDataResponse.map(i => new AttachedData(i.id || 0, i.nameData || '', i.nameSalMali || '', i.salMali || 0));
}
}