encode<V> static method
Implementation
static V encode<V>(
PaymentPagesCheckoutSessionShippingAddressCollection instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeList(
'allowed_countries',
(container) => instance.allowedCountries.forEach((el) =>
CheckoutSessionShippingAddressCollectionAllowedCountriesItem.encode(
el,
container.nestedSingleValueContainer().encoder,
)),
);
return container.value;
}