23 lines
426 B
Dart
23 lines
426 B
Dart
class Book {
|
|
Book({
|
|
required this.author,
|
|
required this.ean,
|
|
required this.id,
|
|
required this.priceNew,
|
|
required this.title,
|
|
});
|
|
|
|
String author;
|
|
String title;
|
|
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"],
|
|
);
|
|
}
|