ResponseList class

A list of responses with pagination.

Annotations
  • @immutable

Constructors

ResponseList({required List<Response> data, required String object, required bool hasMore, String? firstId, String? lastId})
Creates a ResponseList.
const
ResponseList.fromJson(Map<String, dynamic> json)
Creates a ResponseList from JSON.
factory

Properties

data List<Response>
The list of responses.
final
firstId String?
The ID of the first response in the list.
final
hashCode int
The hash code for this object.
no setteroverride
hasMore bool
Whether there are more responses to fetch.
final
lastId String?
The ID of the last response in the list.
final
object String
The object type, always 'list'.
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() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

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