investmentTransactionSubtypeListFromJson function

List<InvestmentTransactionSubtype> investmentTransactionSubtypeListFromJson(
  1. List? investmentTransactionSubtype, [
  2. List<InvestmentTransactionSubtype>? defaultValue
])

Implementation

List<enums.InvestmentTransactionSubtype>
    investmentTransactionSubtypeListFromJson(
  List? investmentTransactionSubtype, [
  List<enums.InvestmentTransactionSubtype>? defaultValue,
]) {
  if (investmentTransactionSubtype == null) {
    return defaultValue ?? [];
  }

  return investmentTransactionSubtype
      .map((e) => investmentTransactionSubtypeFromJson(e.toString()))
      .toList();
}