addVacationDay method
Parameters:
-
NewVacationDayModel model (required):
-
Object authorization:
Implementation
Future<VacationDay> addVacationDay(
NewVacationDayModel model, {
required Object authorization,
}) async {
final response = await _addVacationDayWithHttpInfo(
model,
authorization: authorization,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'VacationDay',
) as VacationDay;
}