encode<V> static method

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

Implementation

static V encode<V>(
  IssuingTransactionAmountDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.atmFee != null) {
    container.encodeInt(
      'atm_fee',
      instance.atmFee!,
    );
  }
  if (instance.cashbackAmount != null) {
    container.encodeInt(
      'cashback_amount',
      instance.cashbackAmount!,
    );
  }
  return container.value;
}