encode<V> static method
Implementation
static V encode<V>(
AccountTreasurySettings instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.tosAcceptance != null) {
AccountTermsOfService.encode(
instance.tosAcceptance!,
container.nestedSingleValueContainer('tos_acceptance').encoder,
);
}
return container.value;
}