getEmployeeStatistics method

Future<EmployeeStatistics> getEmployeeStatistics(
  1. int year,
  2. int month, {
  3. required Object authorization,
})

Parameters:

  • int year (required):

  • int month (required):

  • Object authorization:

Implementation

Future<EmployeeStatistics> getEmployeeStatistics(
  int year,
  int month, {
  required Object authorization,
}) async {
  final response = await getEmployeeStatisticsWithHttpInfo(
    year,
    month,
    authorization: authorization,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }

  return await apiClient.deserializeAsync(
    await _decodeBodyBytes(response),
    'EmployeeStatistics',
  ) as EmployeeStatistics;
}