encode<V> static method

V encode<V>(
  1. SetupIntentNextActionVerifyWithMicrodeposits instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  SetupIntentNextActionVerifyWithMicrodeposits instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDateTime(
    'arrival_date',
    instance.arrivalDate,
  );
  container.encodeString(
    'hosted_verification_url',
    instance.hostedVerificationUrl,
  );
  if (instance.microdepositType != null) {
    PaymentIntentNextActionVerifyWithMicrodepositsMicrodepositType.encode(
      instance.microdepositType!,
      container.nestedSingleValueContainer('microdeposit_type').encoder,
    );
  }
  return container.value;
}