FinancialConnectionsSession.fromJson constructor
FinancialConnectionsSession.fromJson(
- Object? json
Implementation
factory FinancialConnectionsSession.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return FinancialConnectionsSession(
accountHolder: map['account_holder'] == null
? null
: BankConnectionsResourceAccountholder.fromJson(
map['account_holder']),
accounts: FinancialConnectionsSessionAccounts.fromJson(map['accounts']),
clientSecret: (map['client_secret'] as String),
filters: map['filters'] == null
? null
: BankConnectionsResourceLinkAccountSessionFilters.fromJson(
map['filters']),
id: (map['id'] as String),
livemode: (map['livemode'] as bool),
permissions: (map['permissions'] as List<Object?>)
.map((el) => FinancialConnectionsAccountPermissionsItem.fromJson(el))
.toList(),
prefetch: map['prefetch'] == null
? null
: (map['prefetch'] as List<Object?>)
.map((el) => FinancialConnectionsSessionPrefetchItem.fromJson(el))
.toList(),
returnUrl:
map['return_url'] == null ? null : (map['return_url'] as String),
);
}