investmentAccountSubtypeListFromJson function

List<InvestmentAccountSubtype> investmentAccountSubtypeListFromJson(
  1. List? investmentAccountSubtype, [
  2. List<InvestmentAccountSubtype>? defaultValue
])

Implementation

List<enums.InvestmentAccountSubtype> investmentAccountSubtypeListFromJson(
  List? investmentAccountSubtype, [
  List<enums.InvestmentAccountSubtype>? defaultValue,
]) {
  if (investmentAccountSubtype == null) {
    return defaultValue ?? [];
  }

  return investmentAccountSubtype
      .map((e) => investmentAccountSubtypeFromJson(e.toString()))
      .toList();
}