mapReceiptPaymentSummary method

ReceiptPaymentSummary mapReceiptPaymentSummary(
  1. ReceiptPaymentSummaryResp? resp
)

Implementation

ReceiptPaymentSummary mapReceiptPaymentSummary(
  ReceiptPaymentSummaryResp? resp,
) {
  return ReceiptPaymentSummary(
    paymentMethod: resp?.paymentMethod ?? "",
    totalPrice: resp?.totalPrice ?? 0,
    totalQuantity: resp?.totalQuantity ?? 0,
    totalDiscount: resp?.totalDiscount ?? 0,
  );
}