apiV2TutorTrialsCallsCreateWithHttpInfo method

Future<Response> apiV2TutorTrialsCallsCreateWithHttpInfo({
  1. TrialCallInvitation? trialCallInvitation,
})

View used by Customers to create Trial calls

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV2TutorTrialsCallsCreateWithHttpInfo({ TrialCallInvitation? trialCallInvitation, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/tutor/trials-calls/';

  // ignore: prefer_final_locals
  Object? postBody = trialCallInvitation;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}