toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'appearance': appearance?.toJson(),
    'allowsDelayedPaymentMethods': allowsDelayedPaymentMethods,
    'allowsPaymentMethodsRequiringShippingAddress': allowsPaymentMethodsRequiringShippingAddress,
    'merchantDisplayName': merchantDisplayName,
    'primaryButtonLabel': primaryButtonLabel,
    'customer': customer?.toJson(),
    'defaultBillingDetails': defaultBillingDetails?.toJson(),
    'shippingDetails': shippingDetails?.toJson(),
  };
}