encode<V> static method
Implementation
static V encode<V>(
CashBalanceUpdateOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.expand != null) {
container.encodeList(
'expand',
(container) =>
instance.expand!.forEach((el) => container.encodeString(el)),
);
}
if (instance.settings != null) {
CustomerSettings.encode(
instance.settings!,
container.nestedSingleValueContainer('settings').encoder,
);
}
return container.value;
}