getEmployee method
Implementation
Future<EmployeeModel> getEmployee(
int employeeId, {
required Object authorization,
}) async {
final response = await _getEmployeeWithHttpInfo(
employeeId,
authorization: authorization,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'EmployeeModel',
) as EmployeeModel;
}