encode<V> static method

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

Implementation

static V encode<V>(
  IssuingDisputeTreasury instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.debitReversal != null) {
    container.encodeString(
      'debit_reversal',
      instance.debitReversal!,
    );
  }
  container.encodeString(
    'received_debit',
    instance.receivedDebit,
  );
  return container.value;
}