encode<V> static method

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

Implementation

static V encode<V>(
  TreasuryFinancialAccountsResourceAbaToggleSettings instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeBool(
    'requested',
    instance.requested,
  );
  container.encodeString(
    'status',
    instance.status,
  );
  container.encodeList(
    'status_details',
    (container) => instance.statusDetails.forEach((el) =>
        TreasuryFinancialAccountsResourceTogglesSettingStatusDetails.encode(
          el,
          container.nestedSingleValueContainer().encoder,
        )),
  );
  return container.value;
}