toJson method

Map<String, Object> toJson()

Serializes the presentation flags for the versioned native bridge.

Implementation

Map<String, Object> toJson() => {
      if (showLineItems) 'showLineItems': true,
      if (showInvoiceDownload) 'showInvoiceDownload': true,
      if (showReceiptDownload) 'showReceiptDownload': true,
      if (!allowPaymentMethodChange) 'allowPaymentMethodChange': false,
    };