feat: managing returns

This commit is contained in:
alzalia1 2025-08-18 18:20:33 +02:00
parent ca1eeafd8f
commit 6947bcfb01
11 changed files with 521 additions and 22 deletions

View file

@ -0,0 +1,28 @@
class BalStats {
BalStats(
this.totalOwnedCollectedMoney,
this.totalDifferentOwners,
this.totalCollectedMoney,
this.balId,
this.totalSoldBooks,
this.totalOwnedSoldBooks,
);
int balId;
double totalCollectedMoney;
double totalOwnedCollectedMoney;
int totalDifferentOwners;
int totalSoldBooks;
int totalOwnedSoldBooks;
factory BalStats.fromJSON(Map<String, dynamic> json) {
return BalStats(
json["total_owned_collected_money"],
json["total_different_owners"],
json["total_collected_money"],
json["bal_id"],
json["total_sold_books"],
json["total_owned_sold_books"],
);
}
}