encode<V> static method

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

Implementation

static V encode<V>(
  PaymentPagesCheckoutSessionCurrencyConversion instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'amount_subtotal',
    instance.amountSubtotal,
  );
  container.encodeInt(
    'amount_total',
    instance.amountTotal,
  );
  container.encodeString(
    'fx_rate',
    instance.fxRate,
  );
  container.encodeString(
    'source_currency',
    instance.sourceCurrency,
  );
  return container.value;
}