fromJson static method

Book fromJson(
  1. Map<String, dynamic> json, {
  2. bool reschemeImageLinks = false,
})

Implementation

static Book fromJson(
  Map<String, dynamic> json, {
  bool reschemeImageLinks = false,
}) {
  return Book(
    id: json['id'],
    etag: json['etag'],
    info: BookInfo.fromJson(
      json['volumeInfo'],
      reschemeImageLinks: reschemeImageLinks,
    ),
    selfLink: Uri.parse(json['selfLink']),
    saleInfo: SaleInfo.fromJson(json['saleInfo']),
  );
}