productStatusBreakdownRefreshIntervalListFromJson function

List<ProductStatusBreakdownRefreshInterval> productStatusBreakdownRefreshIntervalListFromJson(
  1. List? productStatusBreakdownRefreshInterval, [
  2. List<ProductStatusBreakdownRefreshInterval>? defaultValue
])

Implementation

List<enums.ProductStatusBreakdownRefreshInterval>
    productStatusBreakdownRefreshIntervalListFromJson(
  List? productStatusBreakdownRefreshInterval, [
  List<enums.ProductStatusBreakdownRefreshInterval>? defaultValue,
]) {
  if (productStatusBreakdownRefreshInterval == null) {
    return defaultValue ?? [];
  }

  return productStatusBreakdownRefreshInterval
      .map((e) => productStatusBreakdownRefreshIntervalFromJson(e.toString()))
      .toList();
}