encode<V> static method
Implementation
static V encode<V>(
ConfigurationCustomerUpdate instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.allowedUpdates != null) {
container.encodeList(
'allowed_updates',
(container) => instance.allowedUpdates!
.forEach((el) => PortalCustomerUpdateAllowedUpdatesItem.encode(
el,
container.nestedSingleValueContainer().encoder,
)),
);
}
container.encodeBool(
'enabled',
instance.enabled,
);
return container.value;
}