investmentAccountSubtypeListToJson function

List<String> investmentAccountSubtypeListToJson(
  1. List<InvestmentAccountSubtype>? investmentAccountSubtype
)

Implementation

List<String> investmentAccountSubtypeListToJson(
    List<enums.InvestmentAccountSubtype>? investmentAccountSubtype) {
  if (investmentAccountSubtype == null) {
    return [];
  }

  return investmentAccountSubtype
      .map((e) => enums.$InvestmentAccountSubtypeMap[e]!)
      .toList();
}