serialize method

  1. @override
void serialize(
  1. SerializationWriter writer
)
override

Serializes information the current object writer Serialization writer to use to serialize this model

Implementation

@override
void serialize(SerializationWriter writer) {
  writer.writeObjectValue<PaymentMethodCardWalletAmexExpressCheckout>(
      'amex_express_checkout', amexExpressCheckout);
  writer.writeObjectValue<PaymentMethodCardWalletApplePay>(
      'apple_pay', applePay);
  writer.writeStringValue('dynamic_last4', dynamicLast4);
  writer.writeObjectValue<PaymentMethodCardWalletGooglePay>(
      'google_pay', googlePay);
  writer.writeObjectValue<PaymentMethodCardWalletLink>('link', link);
  writer.writeObjectValue<PaymentMethodCardWalletMasterpass>(
      'masterpass', masterpass);
  writer.writeObjectValue<PaymentMethodCardWalletSamsungPay>(
      'samsung_pay', samsungPay);
  writer.writeEnumValue<PaymentMethodCardWalletType>(
      'type', type_, (e) => e?.value);
  writer.writeObjectValue<PaymentMethodCardWalletVisaCheckout>(
      'visa_checkout', visaCheckout);
  writer.writeAdditionalData(additionalData);
}