feat: update app icon
This commit is contained in:
@@ -85,12 +85,32 @@ class SyncResponse {
|
||||
}
|
||||
}
|
||||
|
||||
/// One line on a tab as shown in the dashboard, e.g. "10× Cola".
|
||||
class SnapshotTabItem {
|
||||
final String productName;
|
||||
final int quantity;
|
||||
final int unitPriceInCents;
|
||||
|
||||
const SnapshotTabItem({
|
||||
required this.productName,
|
||||
required this.quantity,
|
||||
required this.unitPriceInCents,
|
||||
});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'productName': productName,
|
||||
'quantity': quantity,
|
||||
'unitPriceInCents': unitPriceInCents,
|
||||
};
|
||||
}
|
||||
|
||||
class SnapshotTab {
|
||||
final String id;
|
||||
final String customerName;
|
||||
final int version;
|
||||
final int totalInCents;
|
||||
final int itemCount;
|
||||
final List<SnapshotTabItem> items;
|
||||
|
||||
const SnapshotTab({
|
||||
required this.id,
|
||||
@@ -98,6 +118,7 @@ class SnapshotTab {
|
||||
required this.version,
|
||||
required this.totalInCents,
|
||||
required this.itemCount,
|
||||
this.items = const [],
|
||||
});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
@@ -106,6 +127,7 @@ class SnapshotTab {
|
||||
'version': version,
|
||||
'totalInCents': totalInCents,
|
||||
'itemCount': itemCount,
|
||||
'items': items.map((item) => item.toJson()).toList(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user