getAllResources method

Future<List<ResourceModel>> getAllResources(
  1. String projectId
)

Implementation

Future<List<ResourceModel>> getAllResources(String projectId) async {
  final response = await _dio.get('$_baseUrl/projects/$projectId/resources');
  return (response.data as List).map((e) => ResourceModel.fromJson(e)).toList();
}