getTimesheet function

Future<ApiResponse<Timesheets>> getTimesheet(
  1. ExsitedClient client,
  2. Object timesheetId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/{api_version}/timesheets/{timesheet_id}

Get one timesheet, by the ts_ id the listing and the create answer.

Implementation

Future<ApiResponse<Timesheets>> getTimesheet(
  ExsitedClient client,
  Object timesheetId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(TimesheetsUrls.timesheet,
        pathParams: {'timesheet_id': timesheetId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: Timesheets.fromMap);