feat: managing returns
This commit is contained in:
parent
ca1eeafd8f
commit
6947bcfb01
11 changed files with 521 additions and 22 deletions
28
lib/domain/models/bal_stats.dart
Normal file
28
lib/domain/models/bal_stats.dart
Normal 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"],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in a new issue