UNPKG

armisa-models

Version:
11 lines (10 loc) 388 B
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)); } }