reclaimLogSpace method
Future<LogSpaceReclamationResult>
reclaimLogSpace(
{ - String? authorization,
})
override
Implementation
@override
Future<LogSpaceReclamationResult> reclaimLogSpace({
String? authorization,
}) async {
final response = await _client.request(
method: 'POST',
path: '/dashboard/maintenance/reclaim-log-space',
headers: {'authorization': authorization},
);
final _body = await response.transform(utf8.decoder).join();
if (jsonDecode(_body) case {'data': final Map data}) {
return LogSpaceReclamationResult.fromJson(Map.from((data as Map)));
}
throw Exception('Invalid response');
}