encode<V> static method

V encode<V>(
  1. CustomerSessionResourceComponents instance,
  2. Encoder<V> encoder
)

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;
}