BatchList class

A list of batches.

Annotations
  • @immutable

Constructors

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

Properties

data List<Batch>
The list of batches.
final
firstId String?
The ID of the first batch in the list.
final
hashCode int
The hash code for this object.
no setteroverride
hasMore bool
Whether there are more batches to retrieve.
final
lastId String?
The ID of the last batch 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