investmentTransactionTypeListToJson function

List<String> investmentTransactionTypeListToJson(
  1. List<InvestmentTransactionType>? investmentTransactionType
)

Implementation

List<String> investmentTransactionTypeListToJson(
    List<enums.InvestmentTransactionType>? investmentTransactionType) {
  if (investmentTransactionType == null) {
    return [];
  }

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