apiV3ProfileUpdatePartialUpdate method
{ "name": "string", "first_name": "string", "last_name": "string", "phone_number": "string", "email": "user@example.com", "has_dbs_update_service": true, "dbs_number": "string", "dbs_date_of_issue": "2024-04-17", "dbs_scan": "string", "video": "string", "video_link": "string", "photo": "string", "postcode": "string", "has_skype": true, "experience_years": 2147483647, "experience": "string", "tagline": "string", "online_tutoring": true, "in_person_tutoring": true, "profile_photo_rejected": true, "profile_submitted": true, "statement_confirmation": true, "handbook": true, "tutor_ID_image": "string", "tutor_cv": "pdf" }
Parameters:
- Object body:
Implementation
Future<TutorProfileOnboardingDTO?> apiV3ProfileUpdatePartialUpdate({ Object? body, }) async {
final response = await apiV3ProfileUpdatePartialUpdateWithHttpInfo( body: body, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TutorProfileOnboardingDTO',) as TutorProfileOnboardingDTO;
}
return null;
}