getResource method

Future<ResourceModel> getResource(
  1. String projectId,
  2. String stringId
)

Implementation

Future<ResourceModel> getResource(String projectId, String stringId) async {
  final response = await _dio.get(
    '$_baseUrl/projects/$projectId/resources/$stringId',
  );
  return ResourceModel.fromJson(response.data);
}