toJson method
Implementation
Map<String, dynamic> toJson() {
return {
"id": id,
"lineItems": lineItems.map((item) => item.toJson()).toList(),
"totalValue": totalValue,
"currency": currency,
"attributes": attributes,
"objType": _objType
};
}