toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.currencyCode != null) data['currency_code'] = this.currencyCode;
if (this.description != null) data['description'] = this.description;
if (this.quantity != null) data['quantity'] = this.quantity;
if (this.totalPrice != null) data['total_price'] = this.totalPrice;
if (this.unitPrice != null) data['unit_price'] = this.unitPrice;
return data;
}