encode<V> static method
Implementation
static V encode<V>(
PaymentMethodDetailsBacsDebit instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
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!,
);
}
if (instance.sortCode != null) {
container.encodeString(
'sort_code',
instance.sortCode!,
);
}
return container.value;
}