encode<V> static method
Implementation
static V encode<V>(
PaymentMethodDetailsSepaDebit instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bankCode != null) {
container.encodeString(
'bank_code',
instance.bankCode!,
);
}
if (instance.branchCode != null) {
container.encodeString(
'branch_code',
instance.branchCode!,
);
}
if (instance.country != null) {
container.encodeString(
'country',
instance.country!,
);
}
if (instance.fingerprint != null) {
container.encodeString(
'fingerprint',
instance.fingerprint!,
);
}
if (instance.last4 != null) {
container.encodeString(
'last4',
instance.last4!,
);
}
if (instance.mandate != null) {
container.encodeString(
'mandate',
instance.mandate!,
);
}
return container.value;
}