encode<V> static method
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;
}