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.
no setterinherited
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.
no setterinherited

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.
no setter
parseJson SearchResult Function(String json)
Parses JSON string into SearchResult similarly to parse.
no setter
parseJsonList List<SearchResult> Function(String json)
Parses JSON string into List of SearchResult instances similarly to parseList.
no setter
parseList List<SearchResult> Function(dynamic value)
Parses List of SearchResult instances from a given value.
no setter