PaginatedResponse<T> class
A paginated response from the Outseta API
- Annotations
-
- @JsonSerializable.new(genericArgumentFactories: true)
Constructors
-
PaginatedResponse({required List<
T> items, required Pagination metadata}) -
Creates a new paginated response
const
-
PaginatedResponse.fromJson(Map<
String, dynamic> json, T fromJsonT(Object? json)) -
Factory constructor that creates a PaginatedResponse from JSON data
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
T> -
The list of items in the current page
final
- metadata → Pagination
-
The pagination metadata
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(
Object? toJsonT(T value)) → Map< String, dynamic> - Converts this paginated response to a JSON map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited