This repository has been archived on 2025-08-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Seshat/lib/domain/models/bal_stats.dart
2025-08-18 18:20:33 +02:00

28 lines
659 B
Dart

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"],
);
}
}