walletTransactionStatusListToJson function

List<String> walletTransactionStatusListToJson(
  1. List<WalletTransactionStatus>? walletTransactionStatus
)

Implementation

List<String> walletTransactionStatusListToJson(
    List<enums.WalletTransactionStatus>? walletTransactionStatus) {
  if (walletTransactionStatus == null) {
    return [];
  }

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