toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['name'] = this.name;
if (this.unitPrice != null) {
data['unitPrice'] = this.unitPrice!.toJson();
}
if (this.totalPrice != null) {
data['totalPrice'] = this.totalPrice!.toJson();
}
data['quantity'] = this.quantity;
data['taxType'] = this.taxType;
data['taxRate'] = this.taxRate;
data['adhoc'] = this.adhoc;
return data;
}