encode<V> static method

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

Implementation

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