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(),
'placeholder': placeholder?.toJson(),
'displaySavedPaymentMethodsCheckbox': displaySavedPaymentMethodsCheckbox,
'displaySavedPaymentMethods': displaySavedPaymentMethods,
'paymentSheetHeaderLabel': paymentSheetHeaderLabel,
'savedPaymentSheetHeaderLabel': savedPaymentSheetHeaderLabel,
'displayDefaultSavedPaymentIcon': displayDefaultSavedPaymentIcon,
'netceteraSDKApiKey': netceteraSDKApiKey
};
}