AssistantList class

A list of assistants.

Annotations
  • @immutable

Constructors

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

Properties

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