deleteEnrollment method

Future<ApiActionResult> deleteEnrollment(
  1. String enrollmentId
)

Implementation

Future<ApiActionResult> deleteEnrollment(String enrollmentId) async {
  final id = Uri.encodeComponent(enrollmentId);
  final json = await _requestJson('DELETE', '/api/enrollments/$id');
  return ApiActionResult.fromJson(json);
}