fix: flow on scan + owners managment

This commit is contained in:
Alzalia 2025-08-05 15:13:52 +02:00
parent 70146055df
commit 86094b5d76
10 changed files with 283 additions and 130 deletions

View file

@ -0,0 +1,28 @@
class BookInstance {
BookInstance({
required this.balId,
required this.bookId,
required this.id,
required this.ownerId,
required this.price,
required this.status,
this.soldPrice,
});
int balId;
int bookId;
int id;
int ownerId;
double price;
double? soldPrice;
bool status;
factory BookInstance.fromJSON(Map<String, dynamic> json) => BookInstance(
balId: json["balId"],
bookId: json["bookId"],
id: json["id"],
ownerId: json["ownerId"],
price: json["price"],
status: json["status"],
);
}