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