getAllItemsJson method

List<Map<String, dynamic>> getAllItemsJson()

Get JSON representation of all items

Implementation

List<Map<String, dynamic>> getAllItemsJson() {
  return _items.map((item) => item.toJson()).toList();
}