toJson method
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(),
};
}