productStatusBreakdownRefreshIntervalNullableListFromJson function

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

Implementation

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

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