getDatasources method
Implementation
Future<List<Datasource>> getDatasources({
Pagination? pagination,
}) async {
final json = await _getRequest(
path: _pathDatasources,
queryParameters: {
if (pagination != null) ...pagination.toParameters(),
},
);
return List<JSONMap>.from(json["datasources"]).map(Datasource.fromJson).toList();
}