encode<V> static method
Implementation
static V encode<V>(
TaxSettingsUpdateOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.defaults != null) {
SettingsDefaults.encode(
instance.defaults!,
container.nestedSingleValueContainer('defaults').encoder,
);
}
if (instance.expand != null) {
container.encodeList(
'expand',
(container) =>
instance.expand!.forEach((el) => container.encodeString(el)),
);
}
if (instance.headOffice != null) {
SettingsHeadOffice.encode(
instance.headOffice!,
container.nestedSingleValueContainer('head_office').encoder,
);
}
return container.value;
}