Pagination class
Official documentation here: API docs: https://api.cloudflare.com/#getting-started-responses
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- Pagination.new({int? page, int? size, int? count, int? totalCount})
-
Pagination.fromJson(Map<
String, dynamic> json) -
factory
Properties
- count ↔ int
-
The amount of results in the requested page
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- page ↔ int
-
The requested page.
default value: 1
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ int
-
The size of the requested page
default value: 50
getter/setter pair
- totalCount ↔ int
-
The total amount
getter/setter pair
Methods
-
fromJsonList(
List? jsonList) → List< Pagination> ? -
inherited
-
fromJsonMap(
Map< String, dynamic> ? json) → Pagination? -
fromJsonString(
String? json) → Pagination? -
inherited
-
fromJsonStringList(
String? jsonStringList) → List< Pagination> ? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toJsonMap(
) → Map< String, dynamic> -
inherited
-
toJsonString(
) → String -
inherited
-
toString(
) → String -
This is just to suggest children to implement a named constructor to
support creating objects fromJson(...) and fromJsonString(...) as easy as
T.build().fromJson(...) or T.build().fromJsonString(...)
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- countHeader → const String
- totalCountHeader → const String