productsListFromJson function

List<Products> productsListFromJson(
  1. List? products
)

Implementation

List<enums.Products> productsListFromJson(List? products) {
  if (products == null) {
    return [];
  }

  return products.map((e) => productsFromJson(e.toString())).toList();
}