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