list method
Implementation
Future<({List<BucketFile> files, int? nextOffset})> list({
required String bucket,
int offset = 0,
int? limit,
String? orderDirection,
String? orderField,
}) => http
.request('${_config.serviceUrl}/data/$bucket/list')
.use(http.context(_config))
.use(http.access())
.params({
'offset': offset,
if (limit != null) 'limit': limit,
if (orderDirection != null) 'orderDirection': orderDirection,
if (orderField != null) 'orderField': orderField,
})
.get()
.json(
(json) => (
files: (json['files'] as List<dynamic>)
.map((e) => BucketFile.fromJson(e as Map<String, dynamic>))
.toList(),
nextOffset: json['nextOffset'] as int?,
),
);