encode<V> static method

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

Implementation

static V encode<V>(
  PortalSubscriptionUpdateProduct instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeList(
    'prices',
    (container) =>
        instance.prices.forEach((el) => container.encodeString(el)),
  );
  container.encodeString(
    'product',
    instance.product,
  );
  return container.value;
}