Settings.fromJson constructor

Settings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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