28 lines
659 B
Dart
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"],
|
|
);
|
|
}
|
|
}
|