encode<V> static method

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

Implementation

static V encode<V>(
  TreasuryFinancialAccountsResourceStatusDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.closed != null) {
    TreasuryFinancialAccountsResourceClosedStatusDetails.encode(
      instance.closed!,
      container.nestedSingleValueContainer('closed').encoder,
    );
  }
  return container.value;
}