PaginatedResponseKeys class

Key aliases used when parsing a PaginatedResponse from JSON.

Each field is a list of names tried in order, so a service that calls the page page and another that calls it pageNumber share one parser.

Constructors

PaginatedResponseKeys({List<String> items = const ['items'], List<String> pageNumber = const ['pageNumber', 'page'], List<String> pageSize = const ['pageSize'], List<String> totalCount = const ['totalCount'], List<String> totalPages = const ['totalPages']})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<String>
final
pageNumber List<String>
final
pageSize List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalCount List<String>
final
totalPages List<String>
final

Methods

copyWith({List<String>? items, List<String>? pageNumber, List<String>? pageSize, List<String>? totalCount, List<String>? totalPages}) PaginatedResponseKeys
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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