var r=class c{get name(){return this._name}get unitPrice(){var t;return (t=this._unitPrice)!=null?t:null}get discount(){var t;return (t=this._discount)!=null?t:null}get quantity(){return this._quantity}get totalPrice(){var t;return (t=this._totalPrice)!=null?t:null}static fromJSON(t){var i,e,u;let n=new c;return n._name=t.name,n._quantity=t.quantity,n._unitPrice=(i=t.unitPrice)!=null?i:void 0,n._discount=(e=t.discount)!=null?e:void 0,n._totalPrice=(u=t.totalPrice)!=null?u:void 0,n}toJSONObject(){var t,n,i;return {name:this._name,unitPrice:(t=this._unitPrice)!=null?t:null,discount:(n=this._discount)!=null?n:null,quantity:this._quantity,totalPrice:(i=this._totalPrice)!=null?i:null}}};export{r as a};