encode<V> static method

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

Implementation

static V encode<V>(
  PaymentLinksResourceShippingOption instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'shipping_amount',
    instance.shippingAmount,
  );
  ShippingRateOrId.encode(
    instance.shippingRate,
    container.nestedSingleValueContainer('shipping_rate').encoder,
  );
  return container.value;
}