Book constructor

Book({
  1. required String title,
  2. @JsonKey.new(name: 'title_long') String? titleLong,
  3. required String isbn,
  4. required String isbn13,
  5. @JsonKey.new(name: 'dewey_decimal') String? deweyDecimal,
  6. String? binding,
  7. String? publisher,
  8. String? language,
  9. @JsonKey.new(name: 'date_published') DateTime? datePublished,
  10. String? edition,
  11. int? pages,
  12. String? dimensions,
  13. String? overview,
  14. String? image,
  15. double? msrp,
  16. String? excerpt,
  17. String? synopsys,
  18. List<String?>? authors,
  19. List<String>? subjects,
  20. List<String>? reviews,
  21. List<Merchant>? prices,
  22. List<String>? related,
})

Implementation

factory Book({
  /// Title of the book
  required String title,

  /// Long version of the title
  @JsonKey(name: 'title_long') String? titleLong,

  /// ISBN of the book
  required String isbn,

  /// New 13-digit ISBN
  required String isbn13,

  /// Not documented in the official API
  @JsonKey(name: 'dewey_decimal') String? deweyDecimal,

  /// Not documented in the official API
  String? binding,

  /// The name of the publisher
  String? publisher,

  /// Language of the book
  String? language,

  /// Date when the book was published. Can be a year or a full date.
  @_DateConverter() @JsonKey(name: 'date_published') DateTime? datePublished,

  /// Details about the edition
  String? edition,

  /// Number of pages of the book
  int? pages,

  /// Dimensions of the book
  String? dimensions,

  /// Not documented in the official API
  String? overview,

  /// URL of the cover
  String? image,

  /// Not documented in the official API
  @_MsrpConverter() double? msrp,

  /// Excerpt of the book
  String? excerpt,

  /// Synopsys of the book
  String? synopsys,

  /// List of the authors of the book
  List<String?>? authors,

  /// List of the subjects of the book
  List<String>? subjects,

  /// Not documented in the official API
  List<String>? reviews,

  /// List of the merchants selling this book with real-time prices
  List<Merchant>? prices,

  /// Not documented in the official API
  List<String>? related,
}) = _Book;