feat: add a book by scanning
This commit is contained in:
parent
72fd0b66a9
commit
981dce5bfe
14 changed files with 264 additions and 59 deletions
|
|
@ -12,4 +12,12 @@ class Book {
|
|||
String ean;
|
||||
int id;
|
||||
String priceNew;
|
||||
|
||||
factory Book.fromJSON(Map<String, dynamic> json) => Book(
|
||||
author: json["author"],
|
||||
ean: json["ean"],
|
||||
id: json["id"],
|
||||
priceNew: json["price_new"],
|
||||
title: json["title"],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue