toJson method
override
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> jsonMap = {
"amountGiven": amountGiven,
"amountReturned": amountReturned,
"type": PaymentTypeEnumMap[type],
};
return jsonMap;
}