productsListFromJson function
Implementation
List<enums.Products> productsListFromJson(
List? products, [
List<enums.Products>? defaultValue,
]) {
if (products == null) {
return defaultValue ?? [];
}
return products.map((e) => productsFromJson(e.toString())).toList();
}