TreasuryFinancialAccountsResourceAchToggleSettings.fromJson constructor

TreasuryFinancialAccountsResourceAchToggleSettings.fromJson(
  1. Object? json
)

Implementation

factory TreasuryFinancialAccountsResourceAchToggleSettings.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryFinancialAccountsResourceAchToggleSettings(
    requested: (map['requested'] as bool),
    status: TreasuryFinancialAccountsResourceAbaToggleSettingsStatus.fromJson(
        map['status']),
    statusDetails: (map['status_details'] as List<Object?>)
        .map((el) =>
            TreasuryFinancialAccountsResourceTogglesSettingStatusDetails
                .fromJson(el))
        .toList(),
  );
}