FileListResponse class

Response for listing files.

Annotations
  • @immutable

Constructors

FileListResponse({required List<FileMetadata> data, bool hasMore = false, String? firstId, String? lastId})
Creates a FileListResponse.
const
FileListResponse.fromJson(Map<String, dynamic> json)
Creates a FileListResponse from JSON.
factory

Properties

data List<FileMetadata>
List of file metadata objects.
final
firstId String?
ID of the first file in this page of results.
final
hashCode int
The hash code for this object.
no setteroverride
hasMore bool
Whether there are more results available.
final
lastId String?
ID of the last file in this page of results.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<FileMetadata>? data, bool? hasMore, String? firstId, String? lastId}) FileListResponse
Creates a copy with replaced values.
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