investmentTransactionSubtypeListToJson function

List<String> investmentTransactionSubtypeListToJson(
  1. List<InvestmentTransactionSubtype>? investmentTransactionSubtype
)

Implementation

List<String> investmentTransactionSubtypeListToJson(
    List<enums.InvestmentTransactionSubtype>? investmentTransactionSubtype) {
  if (investmentTransactionSubtype == null) {
    return [];
  }

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