getDatasources method

Future<List<Datasource>> getDatasources({
  1. Pagination? pagination,
})

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();
}