encode<V> static method
Implementation
static V encode<V>(
ReceivedCreditInitiatingPaymentMethodDetails instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeString(
'type',
'us_bank_account',
);
if (instance.usBankAccount != null) {
ReceivedCreditUsBankAccount.encode(
instance.usBankAccount!,
container.nestedSingleValueContainer('us_bank_account').encoder,
);
}
return container.value;
}