toJson method
Implementation
Map<String, dynamic> toJson() => {
"title": title!.toJson(),
"instructions": instructions == null ? null : instructions!.toJson(),
"enable_for_methods":
enableForMethods == null ? null : enableForMethods!.toJson(),
"enable_for_virtual":
enableForVirtual == null ? null : enableForVirtual!.toJson(),
"email": email == null ? null : email!.toJson(),
"advanced": advanced == null ? null : advanced!.toJson(),
"testmode": testmode == null ? null : testmode!.toJson(),
"debug": debug == null ? null : debug!.toJson(),
"ipn_notification":
ipnNotification == null ? null : ipnNotification!.toJson(),
"receiver_email":
receiverEmail == null ? null : receiverEmail!.toJson(),
"identity_token":
identityToken == null ? null : identityToken!.toJson(),
"invoice_prefix":
invoicePrefix == null ? null : invoicePrefix!.toJson(),
"send_shipping": sendShipping == null ? null : sendShipping!.toJson(),
"address_override":
addressOverride == null ? null : addressOverride!.toJson(),
"paymentaction": paymentaction == null ? null : paymentaction!.toJson(),
"page_style": pageStyle == null ? null : pageStyle!.toJson(),
"image_url": imageUrl == null ? null : imageUrl!.toJson(),
"api_details": apiDetails == null ? null : apiDetails!.toJson(),
"api_username": apiUsername == null ? null : apiUsername!.toJson(),
"api_password": apiPassword == null ? null : apiPassword!.toJson(),
"api_signature": apiSignature == null ? null : apiSignature!.toJson(),
"sandbox_api_username":
sandboxApiUsername == null ? null : sandboxApiUsername!.toJson(),
"sandbox_api_password":
sandboxApiPassword == null ? null : sandboxApiPassword!.toJson(),
"sandbox_api_signature":
sandboxApiSignature == null ? null : sandboxApiSignature!.toJson(),
"account_settings":
accountSettings == null ? null : accountSettings!.toJson(),
"environment": environment == null ? null : environment!.toJson(),
"api_credentials":
apiCredentials == null ? null : apiCredentials!.toJson(),
"api_certificate":
apiCertificate == null ? null : apiCertificate!.toJson(),
"api_subject": apiSubject == null ? null : apiSubject!.toJson(),
"sandbox_api_credentials": sandboxApiCredentials == null
? null
: sandboxApiCredentials!.toJson(),
"sandbox_api_certificate": sandboxApiCertificate == null
? null
: sandboxApiCertificate!.toJson(),
"sandbox_api_subject":
sandboxApiSubject == null ? null : sandboxApiSubject!.toJson(),
"paypal_hosted_settings": paypalHostedSettings == null
? null
: paypalHostedSettings!.toJson(),
"brand_name": brandName == null ? null : brandName!.toJson(),
"logo_image_url": logoImageUrl == null ? null : logoImageUrl!.toJson(),
"header_image_url":
headerImageUrl == null ? null : headerImageUrl!.toJson(),
"landing_page": landingPage == null ? null : landingPage!.toJson(),
"require_billing":
requireBilling == null ? null : requireBilling!.toJson(),
"require_phone_number":
requirePhoneNumber == null ? null : requirePhoneNumber!.toJson(),
"instant_payments":
instantPayments == null ? null : instantPayments!.toJson(),
"subtotal_mismatch_behavior": subtotalMismatchBehavior == null
? null
: subtotalMismatchBehavior!.toJson(),
"button_settings":
buttonSettings == null ? null : buttonSettings!.toJson(),
"use_spb": useSpb == null ? null : useSpb!.toJson(),
"button_color": buttonColor == null ? null : buttonColor!.toJson(),
"button_shape": buttonShape == null ? null : buttonShape!.toJson(),
"button_layout": buttonLayout == null ? null : buttonLayout!.toJson(),
"button_size": buttonSize == null ? null : buttonSize!.toJson(),
"hide_funding_methods":
hideFundingMethods == null ? null : hideFundingMethods!.toJson(),
"credit_enabled":
creditEnabled == null ? null : creditEnabled!.toJson(),
"cart_checkout_enabled":
cartCheckoutEnabled == null ? null : cartCheckoutEnabled!.toJson(),
"mini_cart_settings":
miniCartSettings == null ? null : miniCartSettings!.toJson(),
"mini_cart_settings_toggle": miniCartSettingsToggle == null
? null
: miniCartSettingsToggle!.toJson(),
"mini_cart_button_layout": miniCartButtonLayout == null
? null
: miniCartButtonLayout!.toJson(),
"mini_cart_button_size":
miniCartButtonSize == null ? null : miniCartButtonSize!.toJson(),
"mini_cart_hide_funding_methods": miniCartHideFundingMethods == null
? null
: miniCartHideFundingMethods!.toJson(),
"mini_cart_credit_enabled": miniCartCreditEnabled == null
? null
: miniCartCreditEnabled!.toJson(),
"single_product_settings": singleProductSettings == null
? null
: singleProductSettings!.toJson(),
"checkout_on_single_product_enabled":
checkoutOnSingleProductEnabled == null
? null
: checkoutOnSingleProductEnabled!.toJson(),
"single_product_settings_toggle": singleProductSettingsToggle == null
? null
: singleProductSettingsToggle!.toJson(),
"single_product_button_layout": singleProductButtonLayout == null
? null
: singleProductButtonLayout!.toJson(),
"single_product_button_size": singleProductButtonSize == null
? null
: singleProductButtonSize!.toJson(),
"single_product_hide_funding_methods":
singleProductHideFundingMethods == null
? null
: singleProductHideFundingMethods!.toJson(),
"single_product_credit_enabled": singleProductCreditEnabled == null
? null
: singleProductCreditEnabled!.toJson(),
"mark_settings": markSettings == null ? null : markSettings!.toJson(),
"mark_enabled": markEnabled == null ? null : markEnabled!.toJson(),
"mark_settings_toggle":
markSettingsToggle == null ? null : markSettingsToggle!.toJson(),
"mark_button_layout":
markButtonLayout == null ? null : markButtonLayout!.toJson(),
"mark_button_size":
markButtonSize == null ? null : markButtonSize!.toJson(),
"mark_hide_funding_methods": markHideFundingMethods == null
? null
: markHideFundingMethods!.toJson(),
"mark_credit_enabled":
markCreditEnabled == null ? null : markCreditEnabled!.toJson(),
"webhook": webhook == null ? null : webhook!.toJson(),
"test_publishable_key":
testPublishableKey == null ? null : testPublishableKey!.toJson(),
"test_secret_key":
testSecretKey == null ? null : testSecretKey!.toJson(),
"test_webhook_secret":
testWebhookSecret == null ? null : testWebhookSecret!.toJson(),
"publishable_key":
publishableKey == null ? null : publishableKey!.toJson(),
"secret_key": secretKey == null ? null : secretKey!.toJson(),
"webhook_secret":
webhookSecret == null ? null : webhookSecret!.toJson(),
"inline_cc_form": inlineCcForm == null ? null : inlineCcForm!.toJson(),
"statement_descriptor":
statementDescriptor == null ? null : statementDescriptor!.toJson(),
"capture": capture == null ? null : capture!.toJson(),
"payment_request":
paymentRequest == null ? null : paymentRequest!.toJson(),
"payment_request_button_type": paymentRequestButtonType == null
? null
: paymentRequestButtonType!.toJson(),
"payment_request_button_theme": paymentRequestButtonTheme == null
? null
: paymentRequestButtonTheme!.toJson(),
"payment_request_button_height": paymentRequestButtonHeight == null
? null
: paymentRequestButtonHeight!.toJson(),
"saved_cards": savedCards == null ? null : savedCards!.toJson(),
"logging": logging == null ? null : logging!.toJson(),
};