productStatusBreakdownRefreshIntervalListToJson function

List<String> productStatusBreakdownRefreshIntervalListToJson(
  1. List<ProductStatusBreakdownRefreshInterval>? productStatusBreakdownRefreshInterval
)

Implementation

List<String> productStatusBreakdownRefreshIntervalListToJson(
    List<enums.ProductStatusBreakdownRefreshInterval>?
        productStatusBreakdownRefreshInterval) {
  if (productStatusBreakdownRefreshInterval == null) {
    return [];
  }

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