encode<V> static method
Implementation
static V encode<V>(
CustomerSessionResourceComponents instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
CustomerSessionResourceComponentsResourceBuyButton.encode(
instance.buyButton,
container.nestedSingleValueContainer('buy_button').encoder,
);
CustomerSessionResourceComponentsResourcePricingTable.encode(
instance.pricingTable,
container.nestedSingleValueContainer('pricing_table').encoder,
);
return container.value;
}