getFieldDeserializers method

  1. @override
Map<String, void Function(ParseNode)> getFieldDeserializers()
override

The deserialization information for the current model

Implementation

@override
Map<String, void Function(ParseNode)> getFieldDeserializers() {
  var deserializerMap = <String, void Function(ParseNode)>{};
  deserializerMap['acss_debit'] = (node) => acssDebit = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsAcssDebit>(
      SetupAttemptPaymentMethodDetailsAcssDebit.createFromDiscriminatorValue);
  deserializerMap['amazon_pay'] = (node) => amazonPay = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsAmazonPay>(
      SetupAttemptPaymentMethodDetailsAmazonPay.createFromDiscriminatorValue);
  deserializerMap['au_becs_debit'] = (node) => auBecsDebit =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsAuBecsDebit>(
          SetupAttemptPaymentMethodDetailsAuBecsDebit
              .createFromDiscriminatorValue);
  deserializerMap['bacs_debit'] = (node) => bacsDebit = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsBacsDebit>(
      SetupAttemptPaymentMethodDetailsBacsDebit.createFromDiscriminatorValue);
  deserializerMap['bancontact'] = (node) => bancontact =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsBancontact>(
          SetupAttemptPaymentMethodDetailsBancontact
              .createFromDiscriminatorValue);
  deserializerMap['boleto'] = (node) => boleto = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsBoleto>(
      SetupAttemptPaymentMethodDetailsBoleto.createFromDiscriminatorValue);
  deserializerMap['card'] = (node) => card =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsCard>(
          SetupAttemptPaymentMethodDetailsCard.createFromDiscriminatorValue);
  deserializerMap['card_present'] = (node) => cardPresent =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsCardPresent>(
          SetupAttemptPaymentMethodDetailsCardPresent
              .createFromDiscriminatorValue);
  deserializerMap['cashapp'] = (node) => cashapp = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsCashapp>(
      SetupAttemptPaymentMethodDetailsCashapp.createFromDiscriminatorValue);
  deserializerMap['ideal'] = (node) => ideal =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsIdeal>(
          SetupAttemptPaymentMethodDetailsIdeal.createFromDiscriminatorValue);
  deserializerMap['kakao_pay'] = (node) => kakaoPay = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsKakaoPay>(
      SetupAttemptPaymentMethodDetailsKakaoPay.createFromDiscriminatorValue);
  deserializerMap['klarna'] = (node) => klarna = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsKlarna>(
      SetupAttemptPaymentMethodDetailsKlarna.createFromDiscriminatorValue);
  deserializerMap['kr_card'] = (node) => krCard = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsKrCard>(
      SetupAttemptPaymentMethodDetailsKrCard.createFromDiscriminatorValue);
  deserializerMap['link'] = (node) => link =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsLink>(
          SetupAttemptPaymentMethodDetailsLink.createFromDiscriminatorValue);
  deserializerMap['naver_pay'] = (node) => naverPay = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsNaverPay>(
      SetupAttemptPaymentMethodDetailsNaverPay.createFromDiscriminatorValue);
  deserializerMap['nz_bank_account'] = (node) => nzBankAccount =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsNzBankAccount>(
          SetupAttemptPaymentMethodDetailsNzBankAccount
              .createFromDiscriminatorValue);
  deserializerMap['paypal'] = (node) => paypal = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsPaypal>(
      SetupAttemptPaymentMethodDetailsPaypal.createFromDiscriminatorValue);
  deserializerMap['payto'] = (node) => payto =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsPayto>(
          SetupAttemptPaymentMethodDetailsPayto.createFromDiscriminatorValue);
  deserializerMap['revolut_pay'] = (node) => revolutPay =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsRevolutPay>(
          SetupAttemptPaymentMethodDetailsRevolutPay
              .createFromDiscriminatorValue);
  deserializerMap['sepa_debit'] = (node) => sepaDebit = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsSepaDebit>(
      SetupAttemptPaymentMethodDetailsSepaDebit.createFromDiscriminatorValue);
  deserializerMap['sofort'] = (node) => sofort = node.getObjectValue<
          SetupAttemptPaymentMethodDetailsSofort>(
      SetupAttemptPaymentMethodDetailsSofort.createFromDiscriminatorValue);
  deserializerMap['type'] = (node) => type_ = node.getStringValue();
  deserializerMap['us_bank_account'] = (node) => usBankAccount =
      node.getObjectValue<SetupAttemptPaymentMethodDetailsUsBankAccount>(
          SetupAttemptPaymentMethodDetailsUsBankAccount
              .createFromDiscriminatorValue);
  return deserializerMap;
}