This repository has been archived on 2025-08-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Seshat/lib/domain/models/book.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"],
);
}