encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentNextActionCardAwaitNotification instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.chargeAttemptAt != null) {
    container.encodeDateTime(
      'charge_attempt_at',
      instance.chargeAttemptAt!,
    );
  }
  if (instance.customerApprovalRequired != null) {
    container.encodeBool(
      'customer_approval_required',
      instance.customerApprovalRequired!,
    );
  }
  return container.value;
}