SessionFinancialConnections.fromJson constructor

SessionFinancialConnections.fromJson(
  1. Object? json
)

Implementation

factory SessionFinancialConnections.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionFinancialConnections(
    permissions: map['permissions'] == null
        ? null
        : (map['permissions'] as List<Object?>)
            .map((el) =>
                FinancialConnectionsAccountPermissionsItem.fromJson(el))
            .toList(),
    prefetch: map['prefetch'] == null
        ? null
        : (map['prefetch'] as List<Object?>)
            .map((el) =>
                InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsPrefetchItem
                    .fromJson(el))
            .toList(),
  );
}