AccountSettings.fromJson constructor
AccountSettings.fromJson(
- Object? json
Implementation
factory AccountSettings.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountSettings(
bacsDebitPayments: map['bacs_debit_payments'] == null
? null
: AccountBacsDebitPaymentsSettings.fromJson(
map['bacs_debit_payments']),
branding: AccountBrandingSettings.fromJson(map['branding']),
cardIssuing: map['card_issuing'] == null
? null
: AccountCardIssuingSettings.fromJson(map['card_issuing']),
cardPayments: AccountCardPaymentsSettings.fromJson(map['card_payments']),
dashboard: AccountDashboardSettings.fromJson(map['dashboard']),
invoices: map['invoices'] == null
? null
: AccountInvoicesSettings.fromJson(map['invoices']),
payments: AccountPaymentsSettings.fromJson(map['payments']),
payouts: map['payouts'] == null
? null
: AccountPayoutSettings.fromJson(map['payouts']),
sepaDebitPayments: map['sepa_debit_payments'] == null
? null
: AccountSepaDebitPaymentsSettings.fromJson(
map['sepa_debit_payments']),
treasury: map['treasury'] == null
? null
: AccountTreasurySettings.fromJson(map['treasury']),
);
}