encode<V> static method

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

Implementation

static V encode<V>(
  ClimateRemovalsProductsPrice instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'amount_fees',
    instance.amountFees,
  );
  container.encodeInt(
    'amount_subtotal',
    instance.amountSubtotal,
  );
  container.encodeInt(
    'amount_total',
    instance.amountTotal,
  );
  return container.value;
}