encode<V> static method
Implementation
static V encode<V>(
PaymentMethodAcssDebit instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bankName != null) {
container.encodeString(
'bank_name',
instance.bankName!,
);
}
if (instance.fingerprint != null) {
container.encodeString(
'fingerprint',
instance.fingerprint!,
);
}
if (instance.institutionNumber != null) {
container.encodeString(
'institution_number',
instance.institutionNumber!,
);
}
if (instance.last4 != null) {
container.encodeString(
'last4',
instance.last4!,
);
}
if (instance.transitNumber != null) {
container.encodeString(
'transit_number',
instance.transitNumber!,
);
}
return container.value;
}