ListRunsResponse constructor

const ListRunsResponse({
  1. required String object,
  2. required List<RunObject> data,
  3. @JsonKey.new(name: 'first_id', includeIfNull: false) String? firstId,
  4. @JsonKey.new(name: 'last_id', includeIfNull: false) String? lastId,
  5. @JsonKey.new(name: 'has_more') required bool hasMore,
})

Factory constructor for ListRunsResponse

Implementation

const factory ListRunsResponse({
  /// The object type, which is always `list`.
  required String object,

  /// The list of runs.
  required List<RunObject> data,

  /// The ID of the first run in the list.
  @JsonKey(name: 'first_id', includeIfNull: false) String? firstId,

  /// The ID of the last run in the list.
  @JsonKey(name: 'last_id', includeIfNull: false) String? lastId,

  /// Whether there are more runs to retrieve.
  @JsonKey(name: 'has_more') required bool hasMore,
}) = _ListRunsResponse;