encode<V> static method
Implementation
static V encode<V>(
PaymentIntentKonbini instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.confirmationNumber != null) {
container.encodeString(
'confirmation_number',
instance.confirmationNumber!,
);
}
if (instance.expiresAfterDays != null) {
container.encodeInt(
'expires_after_days',
instance.expiresAfterDays!,
);
}
if (instance.expiresAt != null) {
container.encodeDateTime(
'expires_at',
instance.expiresAt!,
);
}
if (instance.productDescription != null) {
container.encodeString(
'product_description',
instance.productDescription!,
);
}
if (instance.setupFutureUsage != null) {
container.encodeString(
'setup_future_usage',
'none',
);
}
return container.value;
}