TreasuryFinancialAccountsResourceClosedStatusDetails.fromJson constructor

TreasuryFinancialAccountsResourceClosedStatusDetails.fromJson(
  1. Object? json
)

Implementation

factory TreasuryFinancialAccountsResourceClosedStatusDetails.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryFinancialAccountsResourceClosedStatusDetails(
      reasons: (map['reasons'] as List<Object?>)
          .map((el) =>
              TreasuryFinancialAccountsResourceClosedStatusDetailsReasonsItem
                  .fromJson(el))
          .toList());
}