FinancialConnectionsAccountRefreshOptions.fromJson constructor

FinancialConnectionsAccountRefreshOptions.fromJson(
  1. Object? json
)

Implementation

factory FinancialConnectionsAccountRefreshOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return FinancialConnectionsAccountRefreshOptions(
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    features: (map['features'] as List<Object?>)
        .map((el) => AccountFeaturesItem.fromJson(el))
        .toList(),
  );
}