fromJsonToList static method
Implementation
static List<OrderItem>? fromJsonToList(List<dynamic> json) {
List<OrderItem> items =
json.map((item) => OrderItem.fromJson(item)).toList();
return items != null && items.length > 0 ? items : null;
}