list method
Implementation
@override
Future<CronJobList> list({String? authorization}) async {
final response = await _client.request(
method: 'GET',
path: '/crons/list',
headers: {'authorization': authorization},
);
final _body = await response.transform(utf8.decoder).join();
if (jsonDecode(_body) case {'data': final Map data}) {
return CronJobList.fromJson(Map.from((data as Map)));
}
throw Exception('Invalid response');
}