SearchResult class

Search result.

Implementers
Annotations
  • @immutable
  • @MappableClass()

Constructors

SearchResult({required int pages, required int perPage, required List<Book> books})
Creates a search result.
const

Properties

books List<Book>
books length can't exceed perPage size.
final
hashCode int
The hash code for this object.
read-onlyinherited
pages int
Total pages available.
final
perPage int
Number of maximum books per single search page.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Static Properties

parse SearchResult Function(dynamic value)
Parses SearchResult instance from a given value.
read-only
parseJson SearchResult Function(String json)
Parses JSON string into SearchResult similarly to parse.
read-only
parseJsonList List<SearchResult> Function(String json)
Parses JSON string into List of SearchResult instances similarly to parseList.
read-only
parseList List<SearchResult> Function(dynamic value)
Parses List of SearchResult instances from a given value.
read-only