fix: flow on scan + owners managment
This commit is contained in:
parent
70146055df
commit
86094b5d76
10 changed files with 283 additions and 130 deletions
28
lib/domain/models/book_instance.dart
Normal file
28
lib/domain/models/book_instance.dart
Normal 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"],
|
||||
);
|
||||
}
|
||||
Reference in a new issue