encode<V> static method
Implementation
static V encode<V>(
BalanceAmountBySourceType instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bankAccount != null) {
container.encodeInt(
'bank_account',
instance.bankAccount!,
);
}
if (instance.card != null) {
container.encodeInt(
'card',
instance.card!,
);
}
if (instance.fpx != null) {
container.encodeInt(
'fpx',
instance.fpx!,
);
}
return container.value;
}