encode<V> static method
Implementation
static V encode<V>(
AccountPayoutSettings instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeBool(
'debit_negative_balances',
instance.debitNegativeBalances,
);
TransferSchedule.encode(
instance.schedule,
container.nestedSingleValueContainer('schedule').encoder,
);
if (instance.statementDescriptor != null) {
container.encodeString(
'statement_descriptor',
instance.statementDescriptor!,
);
}
return container.value;
}