Book class

An object which handle the details of a book

Annotations
  • @freezed

Constructors

Book({required String title, @JsonKey(name: 'title_long') String? titleLong, required String isbn, required String isbn13, @JsonKey(name: 'dewey_decimal') String? deweyDecimal, String? binding, String? publisher, String? language, @_DateConverter() @JsonKey(name: 'date_published') DateTime? datePublished, String? edition, int? pages, String? dimensions, String? overview, String? image, @_MsrpConverter() double? msrp, String? excerpt, String? synopsys, List<String?>? authors, List<String>? subjects, List<String>? reviews, List<Merchant>? prices, List<String>? related})
factory
Book.fromJson(Map<String, dynamic> json)
Used to build the object from the response of the ISBNdb API
factory

Properties

authors List<String?>?
List of the authors of the book
no setterinherited
binding String?
Not documented in the official API
no setterinherited
copyWith → $BookCopyWith<Book>
no setterinherited
datePublished DateTime?
Date when the book was published. Can be a year or a full date.
no setterinherited
deweyDecimal String?
Not documented in the official API
no setterinherited
dimensions String?
Dimensions of the book
no setterinherited
edition String?
Details about the edition
no setterinherited
excerpt String?
Excerpt of the book
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
image String?
URL of the cover
no setterinherited
isbn String
ISBN of the book
no setterinherited
isbn13 String
New 13-digit ISBN
no setterinherited
language String?
Language of the book
no setterinherited
msrp double?
Not documented in the official API
no setterinherited
overview String?
Not documented in the official API
no setterinherited
pages int?
Number of pages of the book
no setterinherited
prices List<Merchant>?
List of the merchants selling this book with real-time prices
no setterinherited
publisher String?
The name of the publisher
no setterinherited
Not documented in the official API
no setterinherited
reviews List<String>?
Not documented in the official API
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subjects List<String>?
List of the subjects of the book
no setterinherited
synopsys String?
Synopsys of the book
no setterinherited
title String
Title of the book
no setterinherited
titleLong String?
Long version of the title
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited