encode<V> static method

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

Implementation

static V encode<V>(
  TreasuryFinancialAccountsResourceClosedStatusDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeList(
    'reasons',
    (container) =>
        instance.reasons.forEach((el) => container.encodeString(el)),
  );
  return container.value;
}