encode<V> static method
Implementation
static V encode<V>(
CheckoutAcssDebitMandateOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.customMandateUrl != null) {
container.encodeString(
'custom_mandate_url',
instance.customMandateUrl!,
);
}
if (instance.defaultFor != null) {
container.encodeList(
'default_for',
(container) =>
instance.defaultFor!.forEach((el) => container.encodeString(el)),
);
}
if (instance.intervalDescription != null) {
container.encodeString(
'interval_description',
instance.intervalDescription!,
);
}
if (instance.paymentSchedule != null) {
container.encodeString(
'payment_schedule',
instance.paymentSchedule!,
);
}
if (instance.transactionType != null) {
container.encodeString(
'transaction_type',
instance.transactionType!,
);
}
return container.value;
}