createProject method

Future<Response> createProject(
  1. Map<String, dynamic> projectData
)

Create a project

Implementation

Future<Response> createProject(Map<String, dynamic> projectData) async {
  try {
    final response = await _dio.post(
      '/projects',
      data: projectData,
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to create project: ${e.message}');
  }
}