| export class Product { |
| public id: number = null; |
| public serialNumber: string = null; |
| public name: string = null; |
| public description: string = null; |
| public category: string = null; |
| public warrantyExpiration: string = null; |
| public price: number = null; |
| public currency: string = null; |
| |
| /** |
| *Creates an instance of Product. |
| * @param {*} [data=null] |
| * @memberof Product |
| */ |
| public constructor(data: any = null) { |
| Object.keys(data || {}) |
| .filter(property => this.hasOwnProperty(property)) |
| .forEach(property => (this[property] = data[property])); |
| } |
| } |