blob: 1af9047a53a3f3c35bb02e643265df436bff39e9 [file] [log] [blame]
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]));
}
}