encode<V> static method
V
encode<V>(
- TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount instance,
- Encoder<
V> encoder
Implementation
static V encode<V>(
TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bankName != null) {
container.encodeString(
'bank_name',
instance.bankName!,
);
}
if (instance.last4 != null) {
container.encodeString(
'last4',
instance.last4!,
);
}
if (instance.routingNumber != null) {
container.encodeString(
'routing_number',
instance.routingNumber!,
);
}
return container.value;
}