encode<V> static method

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

Implementation

static V encode<V>(
  ShippingRateDeliveryEstimateBound instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  ShippingRateDeliveryEstimateMaximumUnit.encode(
    instance.unit,
    container.nestedSingleValueContainer('unit').encoder,
  );
  container.encodeInt(
    'value',
    instance.value,
  );
  return container.value;
}