encode<V> static method

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

Implementation

static V encode<V>(
  CreditNoteShippingCost instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.shippingRate != null) {
    container.encodeString(
      'shipping_rate',
      instance.shippingRate!,
    );
  }
  return container.value;
}