encode<V> static method

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

Implementation

static V encode<V>(
  TreasuryOutboundPaymentReturnedDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'code',
    instance.code,
  );
  TreasuryTransactionOrId.encode(
    instance.transaction,
    container.nestedSingleValueContainer('transaction').encoder,
  );
  return container.value;
}